Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a question that asks me to find the value of $\displaystyle\frac{1}{2\pi}\int_{0}^{2\pi} \cos^{2n} x dx$ $\ $ by considering the integral $$ \displaystyle \oint_{\gamma} \frac{1}{z}\left ( z+\frac{1}{z} \right ) ^{2n}dz$$ where $\gamma$ is the circle of radius 1 centered at the origin.

So I expanded the integrand out using the binomial theorem to get the following: $$\displaystyle \frac{1}{z}\left ( z+\frac{1}{z} \right ) ^{2n}=\sum \binom{2n}{k} z^{2n-2k-1}$$ so the integral of each of these terms is 0 apart from when $k=n$ and we get $\int_{\gamma}z^{-1} dz=2\pi{i}$ and so we have that:

$$ \displaystyle \oint_{\gamma} \frac{1}{z}\left ( z+\frac{1}{z} \right ) ^{2n}dz=\binom{2n}{n} 2\pi{i}$$

If we now let $z=e^{it}$ on $\gamma$ then the integral becomes: $$\displaystyle \int_{0}^{2\pi} \frac{ie^{it}}{e^{it}} \left ( e^{it}+e^{-it} \right )^{2n}dt= {i}\int_{0}^{2\pi} \left ( e^{it}+e^{-it} \right )^{2n}dt={i}\int_{0}^{2\pi} \left ( 2{\cos(t)} \right ) ^{2n}dt=\binom{2n}{n} 2\pi{i}$$

and finally: $$\displaystyle\int_{0}^{2\pi} \left ( \cos(t) \right ) ^{2n}dt=\binom{2n}{n} \frac{2\pi}{2^{2n}}$$

However I checked the answers that I have and it is the same apart from on the right hand side there is no $\dfrac{1}{2^{2n}}$, I was wondering what I had done wrong?

Thanks very much for any help

share|cite|improve this question
You mean $\left ( e^{it}+e^{-it} \right )=2\cos(t)$? – draks ... Apr 20 '12 at 9:55
Yeah, don't know why I have done that there, it's correct on the RHS, sorry about that i'll edit – hmmmm Apr 20 '12 at 9:58
up vote 2 down vote accepted

As you can see in this answer (where $n$ is your $2n$), your result is correct; so if you interpreted the answers your were given correctly, they must be wrong.

share|cite|improve this answer
Cool, thanks very much. – hmmmm Apr 20 '12 at 11:18
@hmmmm: You're welcome. – joriki Apr 20 '12 at 11:18

I think that your binomial expansion should be:

summation k goes from 0 to n {(2n n) z^(2k-2n-1) instead of summation (2n n) z^(2n-2k-1)}

Also, I think you are missing 2^(2n) because cos x = 1/2(z + 1/z) while you forgot to put 1/2 before paranthesis.

share|cite|improve this answer
Please use MathJax for formatting questions and answers as it great improves readability and thus understanding. Also, what do you mean by $(2n n)$? Regards. – Amzoti Jan 10 '13 at 17:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.