I'm not even sure what the technical name is for this function, so I couldn't search for any previous posts about it.

Anyway, I have to prove that $\displaystyle (f \vee g)(x) = (1/2)*(f+g)(x) + (1/2)*|(f-g)(x)|$

Any help on this? I don't really even know how to begin this...