I want to prove the maximum function max: $\mathbb{R} \rightarrow \mathbb{R}$, which is defined by
$$\max(x,y) = \begin{cases}x, \text { if } x \geq y , \\ y, \text { if } x < y \end{cases}$$
I want to prove this for $\max(x,y) = \frac {x +y +|x-y|} {2}$.
I have no idea on how to start, I just read over my search over the internet that the modulus function could be a way. I really appreciate your help!
UPDATE
I want to prove that $\max(x,y) = \frac {x +y +|x-y|} {2}$.
\Large
everywhere. – Asaf Karagila Aug 01 '13 at 11:30