Prove that if $d$ is a metric and $(X,d)$ is a metric space then $D(x,y)=(d(x,y))^2$ is also a metric on $X$.
I have problem of showing that $D(x,y)$ is well-defined and proving the triangle inequality to prove that $D(x,y)$ is a metric on $X$.
Please help me, thank you very much!