Application of De-moiver's theorem solution trigonometry maths