Key idea: Factor f′(x) in terms of cosx. Then compare the critical values with the endpoint values.
- f(x)=x−sin2x+31sin3x, so f′(x)=1−2cos2x+cos3x.
- With c=cosx: f′=1−2(2c2−1)+4c3−3c=4c3−4c2−3c+3=(c−1)(4c2−3).
- On (0,π): f′<0 for c>23, f′>0 for ∣c∣<23, and f′<0 for c<−23. So there is a local max at x=65π.
- f(65π)=65π−sin35π+31sin25π=65π+23+31=65π+33+2.
- Endpoints: f(0)=0 and f(π)=π. Both are smaller, since 65π+2+33≈3.82.
Answer: (D) 65π+2+33