Show that $d(x, y) = |f (x) − f (y)|$ is a metric on $\mathbb R$

522 Views Asked by At

Prove that for any 1-1 function $f : \mathbb R \to \mathbb R$, the function $d : \mathbb R \to \mathbb R$ defined by $$ d(x, y) = |f (x) − f (y)| $$ is a metric on $\mathbb R$.

I need to prove these properties:

  1. $d(x,y)\ge0$

  2. $d(x,y)=0$ iff $x=y$

  3. $d(x,y)=d(y,x)$

  4. Triangle inequality: $d(x, y) + d(y, z) \ge d(x, z)$

I was able to prove first three but couldn't prove the last one.

1

There are 1 best solutions below

0
On BEST ANSWER

If you know that it's true for the identity function, then: $$|f(x)-f(z)|=|f(x)-f(y)+f(y)-f(z)|=|(f(x)-f(y))+(f(y)-f(z))|\leq |f(x)-f(y)|+|f(y)-f(z)|$$