(a)$f(x)=x^{3}-6x^{2}+9x+15$
so $f'(x)=3x^{2}-12x+9=0 \Rightarrow x=1,3$
Now $f''(x)=6x-12$
$f''(1) < 0,$ so $x = 1$ is point of local maxima, $f''(3) > 0,$ so $x = 3$ is point of local minima.
Also the end points are $0$ and $6$ . $0$ and $6$ are not critical points, as the derivative is not zero there.
At the left endpoint \( a \)
If \( f'(t_0) < 0 \) (so \( f \) is decreasing to the right of \( a \)), then \( a \) is a local maximum.
If \( f'(t_0) > 0 \) (so \( f \) is increasing to the right of \( a \)), then \( a \) is a local minimum.
At the right endpoint \( b \):
If \( f'(t_n) < 0 \) (so \( f \) is decreasing as \( b \) is approached from the left), then \( b \) is a local minimum.
If \( f'(t_n) > 0 \) (so \( f \) is increasing as \( b \) is approached from the left), then \( b \) is a local maximum.
Reference :
https://mathinsight.org/local_minima_maxima_refresher
At the left endpoint \(x = 0\)
\[
f'(x) > 0 \text{ for } x \in (0,1) \Rightarrow f \text{ is increasing to the right of } 0
\]
\[
\therefore x = 0 \text{ is a local minimum.}
\]
At the right endpoint \(x = 6\)
\[
f'(x) > 0 \text{ for } x \in (3,6) \Rightarrow f \text{ is increasing as } x \text{ approaches } 6
\]
\[
\therefore x = 6 \text{ is a local maximum.}
\]
\[
\boxed{
x = 0, 3 \text{ are local minima, and } x = 1, 6 \text{ are local maxima.}
}
\]
(b) Since $x \cos x$ is an odd function, by the properties of definite integration, answer is $0$.