I want to prove that $\displaystyle \frac{1}{2\pi} \int_0^{2\pi} (\sum_{k=-n+1}^{n+1} (n-|k|)e^{ik\theta})^2d\theta = \sum_{k=-n+1}^{n+1} (n-|k|)^2$.
I have seen some leads using Parseval relations and Fourier coefficients but I haven't done it in class and I'm looking for a solution with just calculus, not with some theorem.