It is well known that: $$\max(a,b) = \frac12(a+b)+\frac12|a-b|$$ and similarly: $$\min(a,b) = \frac12(a+b)-\frac12|a-b|.$$ In fact, they are equivalent since $\max(a,b) = -\min(-a,-b)$. We can try generalizing these representations to more arguments. One obvious approach is to do the following: $$\max(a,b,c) = \max(a,\frac12|b+c|+\frac12|b-c|)$$ and then again use the previous expression. However, the final expression is quite messy and not obviously symmetric under permuting the $3$ variables. Is there a neater expression?
I expect there should be some form in the general case of $n$ variables as a sum over the permutations in $S_n$ with some sort of sign but it is not entirely clear...
Edit: This question answers the $n=3$ case. I am still interested in the general $n$ case or alternative representations for $n=3$.