In any metric space, $(X,D)$. Let $f$ be self-mapping function that is one-to-one. Set $D(x,y)=D(f(x),f(y))$. Prove that $D$ is a metric on $X$
I understand that $D(x,y)=D(f(x),f(y)) \implies |y-x|=|f(x)-f(y)|$ but since we are dealing with a self mapping function, $f:X \rightarrow X$. Doesnt reflexivity, symmetry, and transitivity follow as a trivial consequence? Cleary, $f(x)=f(y) \implies x=y$ and this is true $\forall x \in X$.
Any help and hints(no solutions) would be appreciated.