(b)
Given,
$f(x) = (x - 1)^{2} + 3,\ \ \ x \in \lbrack - 3,\ 1\rbrack$
$\Rightarrow \ \ \ f^{'}(x) = 2(x - 1)$
For maxima and minima, put $f^{'}(x) = 0\ \Rightarrow \ \ x = 1$
Now, $f^{''}(x) = 2$, minima $\forall\ x \in R$
At $x = 1,\ \ \ f(1) = (1 - 1)^{2} + 3 = 3$
At $x\text{=} - 3,\ \ \ \ \ \ \ f( - 3) = ( - 3 - 1)^{2} + 3 = 19$
Here, $m = 3$ and $M = 19$