Prove that for all real numbers $x$ and $y$, $$\max(x, y) = \dfrac{x + y + |x - y|}{2},$$ and $$\min(x, y) = \dfrac{x + y - |x - y|}{2}.$$ For any real number $x$, the absolute value of $x$, denoted $|x|$ is defined as follows: \begin{equation} |x| = \begin{cases} x; & \text{ if } x \geq 0 \\ -x; & \text{ if } x< 0 \end{cases} \end{equation}
What I understand from this is that $|x| = x$ if $x \geq 0$ or $|x| = −x$ if $x<0$. Other than that I don't really know how to start this.
This is a good approach, but it might be useful to rewrite $|x-y|$ in terms of $x$ and $y$: $$ |x-y|=\left\{\begin{array}{} x-y&\text{if }x\ge y\\ y-x&\text{if }x\lt y \end{array}\right. $$ Using this in your formula should make things simpler.