Show that: $$ \max\{x,y\}=\frac{1}{2} \left(x+y+|x-y|\right) $$
I have no idea how to prove this; most likely it is trivial.
Show that: $$ \max\{x,y\}=\frac{1}{2} \left(x+y+|x-y|\right) $$
I have no idea how to prove this; most likely it is trivial.
On
If $y>x \implies |x-y|=y-x$ hence $\max\{x,y\}=y$.
If $x>y \implies |x-y|=x-y$ hence $\max\{x,y\}=x$.
For $x=y$, it's trivial
Geometrically, $\frac{x+y}{2}$ is the midpoint between $x$ and $y$, and $\frac{|x-y|}{2}$ is half the distance between $x$ and $y$.
So if you start at the midpoint and go half the distance in the positive direction, you end up at the right endpoint (or max).