I am not sure where to post this question, but it seems to require only algebra.
The maximum of two numbers x and y is denoted by max(x,y). Thus max(-1,3) = max(3,3) = 3 and max (-1, -4) = max(-4, -1) = -1. The minimum of x and y is denoted by min(x,y). Prove that:
max(x,y) = (x+y+abs(y-x))/2
I was able to prove it if x = y but after that I don't know how to prove it.