Let $d(x,y) = (x-y)^2$ and $d(x,y) = \sqrt{|x-y|}$. MY claims is that the first one does not define a metric on $\mathbb{R}$ since $d(-1,1) = 4$ while $d(-1,0) = d(0,1) = 1 $ and hence the triangle inequality is violated. For the second one, my intuition tell me that it is indeed a metric. The first axioms are obvious. We still need to show the triangle inequality holds. But, notice
$$ d(x,y)^2 = |x-y| \leq |x-z| + |z-y| $$
$$ \implies d(x,y) \leq \sqrt {|x-z| + |z-y|} \leq \sqrt{|x-z|} + \sqrt{|z-y|}$$
I am still unsure about the last inequality. Does it hold? I think it follows because
$$ (\sqrt{x} + \sqrt{y})^2 = x + y + \sqrt{xy} \geq x + y = (\sqrt{x+y})^2$$
is this correct? Any feedback would be appreciated. thanks