how to solve trigonometric equations by using half angles