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