I'm working on a problem in Terence Tao's Analysis II book, where he has us show that the series $\frac{1}{3}+\sum_{n=1}^{\infty}\frac{4}{n^2\pi^2}\cos(2\pi nx)$ converges uniformly to $f(x)=(1-2x)^2$ on $[0,1)$. He then wants us to show that this implies $\sum_{n=1}^{\infty}\frac{1}{n^4}=\frac{\pi^4}{90}$, and hints that we should do this by expanding the cosine into exponentials and applying Plancheral's theorem.
I've done this and got the desired result, but in doing so I applied Plancheral's theorem to the series $\frac{1}{3}+\sum_{n=-\infty}^{\infty}\frac{2}{\pi^2n^2}e^{2\pi inx}$, i.e. set $\sum_{n=-\infty}^{\infty}(\frac{2}{n^2\pi^2})^2$, equal to $\int_0^1(1-2x)^4dx$, or $||f^2||_2^2$. But when Plancheral's theorem says that $\sum_{n=-\infty}^{\infty}|c_n|^2=||f^2||_2^2$, isn't this referring to the $c_n$ in the Fourier series $\sum_{n=-\infty}^{\infty}c_ne^{inx}$, not $\sum_{n=-\infty}^{\infty}c_ne^{2\pi inx}$?
I tried to define $y=2\pi x$ and then integrate $2\pi\int_0^1(1-\frac{y}{\pi})^4 dy$ instead (since $dy=2\pi dx$), but got a different answer.
Any explanation on where my reasoning is going wrong would be greatly appreciated!
If $y = 2\pi x$ then $dy = 2\pi dx \implies dx = \frac{dy}{2\pi}$ $\color{blue}{\text{You have multiplied, instead of dividing}}$
Also, the limits would be changed to $\color{blue}{0\to2\pi}$