\[g(x) = x - |x|\]
\[g(x) = \left\{ \begin{matrix} 2x;\ \ x < 0 \\ 0;\ \ \ \ x \geq 0 \\ \end{matrix} \right.\ \]