For an integer $\,r,\,$ let $$f(x)=\sum\limits_{n=1}^\infty (-1)^{rn}\,\frac{\sin nx}{n^2}.$$ Then we need to prove $f(x)$ is convergent for every $x\in\Bbb R$ and every integer $r$.
My approach is to consider $\,a(n)=\dfrac1{n^2}\,$ and $\,b(n)=(-1)^n\sin(nx).$
The series $\;\sum\limits_{n=1}^{\infty}\dfrac1{n^2}\;$ is bounded and convergent and the sequence $\;b(n)=(-1)^n\sin(nx)\,$ oscillates between positive and negative values as $\,n\,$ increases, but its magnitude is bounded.
Is the approach correct and how to incorporate $\,r\,$ in the solution?