I found this exercise in Demidovich's "Problems in Mathematical Analysis", and found it quite interesting.
Write the function $$ f(x) = \begin{cases} 0, & \text{if $x \leq 0$} \\ x, & \text{if $x > 0$} \end{cases} $$ as a single formula using the absolute value sign.
I've posted my solution below.