I have to find a Fourier sine series of $f(x)=x^2$ for $0<x\leq2$. And show that converges to $0$ at $x=\pm 2$.
(UPDATE) My attempt was :
extended the function to $0<x\leq-2$ s.t. period is 2.
Then, $b_n=\frac{2}{2}\int_{-2}^{0}x^2sin\frac{\pi nx}{2}dx$
Solving this I got: $$-\frac{8}{\pi n}cos(\pi n)+\frac{16}{(\pi n)^3}cos(\pi n)-\frac{16}{(\pi n )^3}$$ $$=-\frac{8}{\pi n}(-1)^n+\frac{16}{(\pi n)^3}((-1)^n-1)$$
is this correct? how do I show this converges to zero?
Thanks!
