Show that x(1 + x) , x [0, π] is maximum at x = π/3 .
Question 213 marksMedium
Show that sinx(1+cosx), x∈[0,π] is maximum at x=3π.
Solution:
Key idea: On the closed interval [0,π], the greatest value occurs at a critical point or at an end point. We show that x=3π is a critical point with f′′<0, and that its value is larger than the values at the end points.
Step 1 — Rewrite the function.
Let f(x)=sinx(1+cosx). We expand and use sinxcosx=21sin2x.
f(x)=sinx+sinxcosx
f(x)=sinx+21sin2x
Step 2 — Differentiate and factorise.
We differentiate each term, then use cos2x=2cos2x−1 to get a quadratic in cosx.
f′(x)=cosx+cos2x
f′(x)=2cos2x+cosx−1
f′(x)=(2cosx−1)(cosx+1)
Step 3 — Find the critical points in [0,π].
Setting each factor to zero gives cosx=21 or cosx=−1. In [0,π] these give two points.
x=3πorx=π
Step 4 — Test x=3π with the second derivative.
We differentiate f′(x)=cosx+cos2x again.
f′′(x)=−sinx−2sin2x
At x=3π, sinx=23 and sin2x=23.
f′′(3π)=−23−3
f′′(3π)=−233
This is negative, so f has a maximum at x=3π.
Step 5 — Compare with the end points.
We find the value at x=3π.
f(3π)=23(1+21)
f(3π)=433
At the end points sinx=0, so f(0)=0 and f(π)=0. Since 433≈1.30 is larger, x=3π gives the greatest value on the whole interval.
Therefore, sinx(1+cosx) is maximum on [0,π] at x=3π, with maximum value 433.