6

I have the following exercise:

$M$ is a non empty set and $d: M\times M \to \mathbb R$ and application such that:

a) $d(x,y)=0\iff x=y$

b) $d(x,z) \le d(x,y)+d(y,z)$

show that $d$ is a metric

Aren't those 2 of the properties for a metric space? Also, wouldn't $b)$ imply that:

$$d(x,x)\le d(x,y)+d(y,x) \implies 0 \le d(x,y)+d(y,x)$$

which if we accept that $d(x,y) = d(y,x)$:

$$0 \le 2d(x,y) \implies d(x,y) \ge 0$$ ?

So, wouldn't it be necessary for a metric space to have only:

$$d(x,y)\ge 0$$ $$d(x,z)\le d(x,y)+d(y,z)$$ $$d(x,y)=0\iff x=y$$ ?

What am I not getting here?

UPDATE: the right question is:

$M$ is a non empty set and $d: M\times M \to \mathbb R$ and application such that:

a) $d(x,y)=0\iff x=y$

b) $d(x,z) \le d(x,y)+d(z,y)$

show that $d$ is a metric

1 Answers1

4

So you have a function $d: M\times M \to \mathbb R$ satisfying -

a) $d(x,y)=0\iff x=y$

b) $d(x,z) \le d(x,y)+d(z,y)$

As you noted, you just have to show that it takes non-negative values and that the symmetry property is satisfied. Also you need to show triangle inequality (which is obvious from (b) once you've shown symmetry)

To show non-negativity (as you have done) - $$d(x,x)\le d(x,y)+d(x,y) \implies 0 \le 2d(x,y)\implies d(x,y)\ge0$$

To show symmetry we play around with (b)-

Taking $y=x$ in (b) we get, $$d(x,z)\le d(x,x)+d(z,x) \implies d(x,z) \le d(z,x)$$ Similarly interchanging $x$ and $z$ and taking $y=z$ we get, $$d(z,x)\le d(z,z)+d(x,z) \implies d(z,x) \le d(x,z)$$ So that $$d(x,z)=d(z,x)$$

R_D
  • 7,312