What condition must be exist for this statement about real analysis to be true? Or is it always true? please prove it.
$\max(f(x), g(x)) = \frac{f(x)+g(x)+|f(x)-g(x)|}{2}$
Hints is okay for this problem, because i have no idea how to start this proof.
please prove your answer since i am not in college.