\[f(x) = \left\{ \begin{matrix} x^{2};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x \leq - 1 \\ x + 5;\ \ \ \ - 1 < x < 4 \\ 3;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x \geq 4 \\ \end{matrix} \right.\ \]
\(f(2) = 2 + 5 = 7\)