How does one prove that, for any reals $x,y$ , there holds the equality
$$|x|+|y|+||x|-|y|| = |x-y|+|x+y|\quad?$$
I have tried this using both the reverse and triangle inequalities, but I cannot get the equality between the two expressions.
How does one prove that, for any reals $x,y$ , there holds the equality
$$|x|+|y|+||x|-|y|| = |x-y|+|x+y|\quad?$$
I have tried this using both the reverse and triangle inequalities, but I cannot get the equality between the two expressions.
You only need to worry about two cases: if $|x|\geq |y|$, then both sides equal $2|x|$ and, conversely, if $|x|<|y|$, then both sides equal $2|y|$.
In the above observation, the LHS is simple to see. As for the RHS, you can square it: $$ \text{RHS}^2=(x-y)^2+(x+y)^2+2|x-y||x+y|\\ =2x^2+2y^2+2|x^2-y^2|=\left\{ \begin{array}{ll} 4x^2&\text{if }|x|\geq |y|,\\ 4y^2&\text{if }|x|< |y|. \end{array}\right. $$