\cos nx+i\sin nx=(cos x+i\sin x)^n=\sum_{k=0}^n {n\choose k} \cos^{n-k}x\cdot i^k\cdot \sin^k x