\[g(x) = \left\{ \begin{matrix} - x^{2};\ \ \ \ \ \ \ \ \ \ \ \ \ x > 1 \\ - x;\ \ \ - 1 \leq x \leq 1 \\ x^{2};\ \ \ \ \ \ \ \ \ \ \ \ \ x < - 1 \\ \end{matrix} \right.\ \]