Deduce that $\int_{0}^{2\pi}\cos^{2n}\theta\ d\theta = {{2n}\choose{n}}\frac{\pi}{2^{2n -1}}$
So first we make the following substitution $z = e^{i\theta}$ and hence $\cos = \frac{z + z^{-1}}{2}$. Then we have the following;
$\frac{1}{i}\int_{C(0;1)}(\frac{z+z^{-1}}{2})^{2n}\frac{1}{z}dz$;
multiply "top and bottom on the outside" by $2\pi$, we then arrived at
$2\pi$Res($(\frac{z+z^{-1}}{2})^{2n}\frac{1}{z}$, $0$).
And now I'm totally stuck, I have no idea how to even "magically" make the combinatoric function appear.
Is there some standard result I need to use here or is there a trick I'm not seeing here.
Any help or insight is deeply appreciated (I really mean it :))
EDIT: I realize there is a mistake in my working, hence it's not making sense to some. I edited it.