1

Define $d(x,y) = |x - y|^2$ . Explain why d is not a metric.

I have seen that the first two properties of a metric hold, so naturally it's left to prove that the triangle inequality does not hold. But after some algebra, I get stuck at the following:

$2|y|(|x| + |z|)-2|x||z|- 2|y|^2<= 0 $

Am I missing something obvious here? I am not sure how to prove that this inequality doesn't hold from here.

mrf
  • 43,639
Hoodtingz
  • 123
  • 8

1 Answers1

2

On $\mathbb{R}$ we have: $$d(0,1)=1 $$ and $$d(0,\frac{1}{2})=d(\frac{1}{2},1)=\frac{1}{4}$$ under your proposed metric. Hence $$d(0,1)>d(0,\frac{1}{2}) +d(\frac{1}{2},1). $$

Note that this extends to $\mathbb{R}^2$ by simply taking the second coordinate zero.

Leon Sot
  • 1,293