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