I'm having a few questions regarding the following problem:
Calculate the Fourier series of $f(t)=|t|$ in $[-\pi, \pi)$ and then prove with $$\sum_{k=-n}^n |ck^2| = \frac{1}{2\pi}\int_0^\pi{|f(x)|^2}\,\mathrm dx$$ that $$\sum_{k=0}^{+\infty} \frac{1}{(2k+1)^4}=\frac{\pi^4}{96}.$$
I have calculated the Fourier series: $$f(t)=\pi+\sum_{k=0}^n -\frac{4}{\pi k}\cos(kx)$$ but I don't see any connection to the second part of the problem.
What have I missed or done wrong?