Consider the function $d : \mathbb{R} × \mathbb{R} → \mathbb{R}$ defined by $d(x_1, x_2) = |x_1 − x_2|^2$. Does $d$ define a metric on $\mathbb{R}$? If so, prove it. If not, justify why not.
What I am confused with here is whether $x_1, x_2$ are $x_1=(a,b)$ or if $x_1=a$ for all $a,b \in \mathbb{R}$? If $x_1=(a,b),x_2=(c,d)$ then $|x_1 − x_2|^2= (a-c)^2+(b-d)^2$, right?