Solve a trigonometric equation using the double angle formulas