\[R_{n}(x)=\frac{1}{2}\int_{0}^{x}\left(\frac{1}{\sin t}-\frac{1}{t}\right)\sin%
\left(2nt\right)\,\mathrm{d}t.\]