Answer
(a). $f(x) = −2 cos x sin x$, which is zero for $x = 0$,
$x = π/2$, and $x = π$. Since there are endpoints at
$x = 0$ and $x = π$, only $(π/2, 1)$ is a critical point.
(b). We have that $f(0) = 1$, $f(π/2) = 0$, and $f(π) = 1$,
so the maximum value of $f$ on this interval is $1$ and the minimum is $0$.
Work Step by Step
See the graph for explanation.