Solve trigonometric equations using compound and double-angle formulae