\[\cos\left(nz\right)+i\sin\left(nz\right)=(\cos z+i\sin z)^{n}.\]