Solve 2 sin2x = 1 + cos x for x in [0, 2π].
- Replace sin2x by 1 − cos2x: 2 − 2 cos2x = 1 + cos x, so 2 cos2x + cos x − 1 = 0.
- Factorise: (2 cos x − 1)(cos x + 1) = 0, so cos x = 1/2 or cos x = −1.
- cos x = 1/2 gives x = π/3 and 5π/3; cos x = −1 gives x = π.
- Check x = π/3: 2 × (3/4) = 3/2 and 1 + 1/2 = 3/2.
Answer: x = π/3, π and 5π/3.