I have problem with the sum:
$$ \sum_{k=0}^n \dbinom{n}{k}(\cos \alpha)^k(i\sin \alpha)^{n-k}\,\, $$ Apparantly, I have an imaginary unit therefore I need to distinguish even and odd powers of $i$ to do so I need to introduce $2k$ as in: $$ \sum_{k=0}^n f(k) = \sum_{k=0}^{n/2} g(2k) $$ and eventually find $g$ starting from $f$
The goal of the exercise is to separate the real part and an imaginary part of this sum to find real expressions of $\sin (n\alpha)$ and $\cos (n\alpha)$
Follow Christopher's suggestion. Suppose that $n=2m+1$ then $$A_{2m+1}=\sum_{k=0}^m \dbinom{2m+1}{2k}(\cos \alpha)^{2m+1-2k}(i\sin \alpha)^{2k}$$ $$+\sum_{k=0}^m \dbinom{2m+1}{2k+1}(\cos \alpha)^{2m+1-(2k+1)}(i\sin \alpha)^{2k+1}$$
$$Re(A_{2m+1})=\sum_{k=0}^m \dbinom{2m+1}{2k}(\cos \alpha)^{2m+1-2k}(-1)^k(\sin \alpha)^{2k}$$ $$Im(A_{2m+1})=\sum_{k=0}^m \dbinom{2m+1}{2k+1}(\cos \alpha)^{2m+1-(2k+1)}(-1)^k(\sin \alpha)^{2k+1}$$
Similarly let $n=2m$ then
$$A_{2m}=\sum_{k=0}^m \dbinom{2m}{2k}(\cos \alpha)^{2m-2k}(i\sin \alpha)^{2k}$$ $$+\sum_{k=0}^{m-1} \dbinom{2m}{2k+1}(\cos \alpha)^{2m+1-(2k+1)}(i\sin \alpha)^{2k+1}$$
$$Re(A_{2m})=\sum_{k=0}^m \dbinom{2m}{2k}(\cos \alpha)^{2m-2k}(-1)^k(\sin \alpha)^{2k}$$ $$Im(A_{2m})=\sum_{k=0}^{m-1} \dbinom{2m}{2k+1}(\cos \alpha)^{2m-(2k+1)}(-1)^k(\sin \alpha)^{2k+1}$$