By evaluating the Fourier series of $g(x)$ at $x = 0$ show that: $$\dfrac{\pi^2}{12} = \sum_{n=1}^\infty\dfrac{(-1)^n+1}{n^2}$$
I have that $g(x)=f'(x)$ where $$f(x) = \dfrac \pi2 - \dfrac4\pi\sum_{n=1}^\infty \dfrac{\cos(nx)}{n^2}$$
I'm quite confused as subbing in $x=0$ obviously gets $0$.
This is more of a comment than an actual answer
This is a graph of $f(x)$, so far I can tell $f(x)$ is not even differentiable at $x= 0$.