Define a function $f(x) =(2\cos(\pi x))^{10} $$f\in L^{1}$ so it's one-period. I would like to calculate the Fourier coefficient $\hat{f}(2)$.
So we get $\displaystyle\hat{f}(n)=\int_{0}^{1}e^{-2\pi inx}(2\cos(\pi x))^{10}dx$ , $n\in \mathbb{Z}$
I know that we can write $\cos(\pi x)^{10}$ = $((e^{i\pi x}+e^{-i\pi x})/2)^{10}$ and with the binomial formula we get
$$\sum_{k=0}^{10}\binom{10}{k}(e^{i\pi x})^{10-k}(e^{-i\pi x})^{k}$$
So the Fourier coefficient $\displaystyle \hat{f}(n) = \int_{0}^{1}e^{-2\pi inx}2^{10}\sum_{k=0}^{10}\binom{10}{k}(e^{i\pi x})^{10-k}(e^{-i\pi x})^{k}dx$ , where $n\in \mathbb{Z}$
I have no idea how to easily integrate this one. I appreciate any help.
Integrate[Exp[-4Pi I x](2Cos[Pi x])^10,{x,0,1}]returns $120$ – robjohn Oct 05 '14 at 03:27