solve a trigonometric equation using the double angle formulas