Let $\{a_n\}$ be decreasing sequence of positive terms then prove that $\displaystyle \sum a_n \sin (nx)$ converges uniformly on $\Bbb{R}$ iff $na_n \to 0$ as $n\to \infty$.
I proved that convergence of $ \sum a_n \sin (nx)$ implies $na_n \to 0$ as $n\to \infty$ . I got stuck while prove the converse, I tried ussing Dirichlet's test but the problem here is that partial sums of $\displaystyle \sum^{n}_{k=1} \sin (kx)$ are bounded by $\displaystyle \frac{1}{|\sin (\frac{t}{2})|}$ , so as per Dirichlet's test requirement I'm not getting uniform bound.