Question
Question: \max_{0\leq x\leq\pi}\{x-2\sin x \cos x + \frac{1}{3}\sin 3x\} =...
\max_{0\leq x\leq\pi}{x-2\sin x \cos x + \frac{1}{3}\sin 3x} =

Answer
\frac{5\pi}{6} + \frac{\sqrt{3}}{2} + \frac{1}{3}
Explanation
Solution
The function is f(x)=x−sin2x+31sin3x. Its derivative is f′(x)=1−2cos2x+cos3x. Setting f′(x)=0 and using trigonometric identities leads to (4cos2x−3)(cosx−1)=0. The critical points in [0,π] are x=0,x=6π,x=65π. Evaluating f(x) at these points and the endpoint x=π shows that f(65π) is the maximum value.
