2sin2x - cosx - 1 = 0
2(1 - cos2x) - cosx - 1 = 0
-2cos2x - cosx + 1 = 0
2cos2x + cosx - 1 = 0
(2cosx - 1)(cosx + 1) = 0
cosx = 1/2 or cosx = -1
If cosx = 1/2 and 0 < x < π, then x = π/3
There are no solutions to the equation cosx = -1 under the restriction 0 < x < π.
So, x = π/3.