Example 24 Solve 2 cos^2 x + 3 sin x = 0