0

I tried to prove it like this:

$\sqrt{x-a}^2+\sqrt{y-b}^2=\sqrt{(\sqrt{x-a}^2+\sqrt{y-b}^2)^2}$
from this we can expand all the terms and end up with a messy sum that I suppose results in
$|$(x+y)-(a+b)|
Is there more sophisticated and logical way of proving or should I say deriving this?

1 Answers1

1

With $u=x-a$ and $v =y-b$ you have the triangle inequality $$ |(x+y) - (a+b)| =|u+v| \le |u| + |v| = |x-a| + |y-b| \, . $$

Equality holds (for real numbers) if and only if $uv \ge 0$, i.e. $x-a$ and $y-b$ have the same sign, or one of them is zero.

For various proofs of the triangle inequality for real numbers, see for example Proof of triangle inequality or Triangle Inequality/Real Numbers.

Martin R
  • 113,040