Can you help me to prove that $$|x-y|\leq |x|+|y|$$ I get a proff of this equality, but it's very short and I don't know if it's correct.
Asked
Active
Viewed 3.0k times
3 Answers
5
Take the square root of this: $$ (x-y)^2=x^2+y^2-2xy\leq x^2+y^2+2|x||y|=(|x|+|y|)^2 $$ and get $$ |x-y|\leq |x|+|y| $$

Frank
- 2,348
1
Clearly $|x| = \max\{x,-x\}$
Thus $\pm x ≤ |x|$.
Then you can observe that :
\begin{align*} x + y &≤ |x| + y ≤ |x| + |y|,\quad\text{and}\\ -x - y &≤ |x| -y ≤ |x| + |y|. \end{align*}
So we have that $|x+y| \leq |x|+|y|$
Now put $x=X$ and $y=-Y$ ,
Thus $$|X-Y| \leq |X|+|-Y|$$
Since $|-Y|=|Y|$ , $$|X-Y| \leq |X|+|Y|$$

Angelo Mark
- 5,954
-1
$$\sqrt{(x-y)^2}\leqslant \sqrt{x^2}+\sqrt{y^2}$$ $$\sqrt{x^2-2xy+y^2}\leqslant \sqrt{x^2}+\sqrt{y^2}$$ $$x^2-2xy+y^2\leqslant x^2+y^2+2\sqrt{y^2x^2}$$

E.H.E
- 23,280
-
It appears to me that the OP is asking for a proof of the triangle inequality, not an "assertion" that it holds. Also, your statements are false (when $x=y=0$ for example). – TravisJ Sep 07 '16 at 15:23
$$|x + y| = |x - z| \leq |x| + |-z| = |x| + |z|$$
– Edward Evans Sep 07 '16 at 14:57