I'm stuck with the following problem:
I need to calculate $\sum_{k=0}^n \binom{n}{k} ^2$ using Parseval's identity for the function $f(x) = (1+e^{i x})^n$.
Here's what I did so far:
$f(x) = (1+e^{i x})^n = \sum_{k=0}^n \binom{n}{k} e^{i k x}$, so the Fourier coefficients of $f$ are $f_k = \begin{cases} \binom{n}{k} & 0 \leq k \leq n \\ 0 & \text{otherwise}\end{cases}$. Now I would like to use Parseval, but what is tripping me up is how to get $\int_0^{2 \pi} |f(x)|^2 dx$.
Any help is appreciated.