I found a problem in an older text -
Find the Fourier expansion of $f(x) = x^2$ on $(\pi, 0)$ w.r.t
1) only $\sin-s$ 2) only $\cos-s$
and find $\sum^\infty_{n=1} \frac{1}{n^2}$ and $\sum^\infty_{n=1}\frac{(-1)^n}{n^2}$
I'm not sure how to do any of it. Any help? I'd appreciate it if those who answer could point out the techniques they used to solve it explicitly, so that I can become better familiar with them.