For problems 1-6 do the following: (a) find the critical numbers and critical points;
(b) determine the intervals over which $\mathrm{f}$ is increasing and over which $\mathrm{f}$ is decreasing; and (c) identify any relative extrema.
$f(x)=\left\{\begin{array}{ll}2 x+9 & \text { if } x \leq-2 \\ x^2+1 & \text { if } x>-2\end{array}\right\}$