This question is an extension of Fourier series simplification
I know wish to show $$(\frac{1}{\pi})\int_{-\pi}^{\pi}f^2(x) dx = a_{0}^{2}/2 + \sum_{n=1}^{\infty} (a_{n}^{2} + b_{n}^{2})$$ But, we no longer have the help of uniform convergence. In detail, we have $f:[-\pi,\pi] \to \mathbb{R}$ a piecewise smooth function.
We cannot approach the problem as we did in the previous exercise since we relied on uniform convergence of the Fourier series. How then should we approach the problem? I had found https://www.math.ubc.ca/~yhkim/yhkim-home/teaching/Math257/M257-316Notes_Lecture16.pdf but this assumed uniform convergence.
It is quite simple with uniform convergence, but again, we do not have that luxury.
Clearly we have $$\langle f(x),f(x)\rangle = \int_{-\pi}^{\pi}f(x)^2dx$$ but from here?