Show that $$\int_0^\pi\frac{x \sin x}{5-3\cos x}\, \mathrm dx = \frac{2 \pi \log (4/3)} 3$$
I am struggling with this one. I have tried substitutions and the residue theorem but haven't got anywhere. It would be nice to see an 'elementary' solution if there is one, but any will do.
There's a simple trick: $$\sum_{n\geq 1}\frac{\sin(nx)}{3^n} = \frac{3}{2}\cdot\frac{\sin x}{5-3\cos x}\tag{1} $$ and $$ \int_{0}^{\pi} x \sin(nx)\,dx = \frac{\pi(-1)^{n+1}}{n}\tag{2}$$ hence $$ \int_{0}^{\pi}\frac{x\sin(x)}{5-3\cos x}\,dx = \frac{2\pi}{3}\sum_{n\geq 1}\frac{(-1)^{n+1}}{n 3^n}=\frac{2\pi}{3}\log\left(1+\frac{1}{3}\right) \tag{3}$$ nice & easy.