1

Does $d(x,y)$ defined below metric on $\Bbb R$ ?

  1. $d(x,y) = |x+y|$

  2. $d(x,y) = |\sin(x-y)|$

My Attempt:

For a metric, we have following 4 conditions required.

  1. $d(x,y) \geq 0$ for all $x$, $y \in X$.
  2. $d(x,y) = 0$ if and only if $x=y$.
  3. $d(x,y) = d(y,x)$ for all $x$, $y\in X$.
  4. $d(x,z) \leq d(x,y) + d(y,z)$ for all $x$, $y$, $z \in X$

For $d(x,y) = |x+y|$,

(i) $d(x,y) \geq 0$ as $|x+y| \geq 0$ for all $x,y \in \Bbb R$

(ii) $d(x,y) = 0$ iff $x = +y$ and $x = -y$ (If I neglect $x = -y$ then there is no problem. I'm confusing here)

(iii) $d(x,y) = |x+y| = |y+x| = d(y,x)$ (iv) $d(x,y) = |x+y| = |x+z-z+y| \leq |x+z| + |y-z| \leq |x+z| + |z+y|$ (As $|-z+y| \leq |z+y|$)

For $d(x,y) = |\sin(x-y)|$,

(i) $d(x,y) \geq 0$ as $|\sin(x,y)| \geq 0$ for all $x,y \in \Bbb R$

(ii) $d(x,y) = 0$ iff $|\sin(x-y)| = 0$ iff $\sin(x-y) = 0$ iff $x-y = nπ, n \in \Bbb Z$ (but if I take $n = 0$ then there is no problem. I'm confusing here)

(iii) $d(x,y) = |\sin(x-y)| = |-\sin(y-x)| = |\sin(y-x)| = d(y,x)$

(iv) $d(x,y) = |\sin(x-y)| = |\sin(x-z+z-y)| = |\sin(x-z)\cos(z-y)+ \cos(x-z)\sin(z-y)| \leq |\sin(x-z)\cos(z-y)|+ |\cos(x-z)\sin(z-y)| \leq |\sin(x-z)|\cos(z-y)|+ |\cos(x-z)|\sin(z-y)| \leq |\sin(x-z)|+\sin(z-y)|= d(x,z)+d(z,y)$ (Note : $|\cos A| \leq 1$)

2 Answers2

3

Neither of them is a metric.

  1. $d(1,1)=2\ne0$.
  2. $d(0,\pi)=0$, but $0\ne\pi$.
Infinity_hunter
  • 5,369
  • 1
  • 10
  • 30
1

None of the two functions is a metric. A metric function $d$ must be able to separate distinct points that is $d(x,y)=0 \iff x=y $. However, for $d(x,y)=|x+y|$, it's noted that $d(t,-t)=0 \;\forall t\in \mathbb R$ so point separation property is not being satisfied by this $d$ and hence it's not a metric on $\mathbb R$.
For the second one: $d(x,y)=|\sin (x-y)|$, it is noted that $d(n\pi, 0)=0\; \forall n\in \mathbb Z$ hence again the point separation property was not satisfied hence not a metric on $\mathbb R$.

Koro
  • 11,402