How to effectively calculate $$\int_0^\pi \sin^3x \sin(nx)dx$$
I think by the formula: $$\sin 3x=3\sin x -4\sin^3x $$ So we get $$\sin^3x = \frac{3\sin x-\sin 3x}{4}$$
Plug in we obtain $$\frac{1}{4}\int_0^\pi (3\sin x-\sin 3x) \sin(nx)dx$$
Then how do I proceed?
Maybe it's a more advanced tool. I'm expose anyway my solution (for people who are interested). Remark that $x\mapsto \sin(x)\sin(nx)$ is even for all $n\in\mathbb N^*$, therefore, $$\int_0^{\pi}\sin^3(x)\sin(nx)\,\mathrm d x=\frac{1}{2}\int_{-\pi}^\pi\sin^3(x)\sin(nx)\,\mathrm d x.$$
As the OP remarked, $$\sin^3(x)=\frac{3}{4}\sin(x)-\frac{1}{4}\sin(3x).$$ Therefore, using Fourier series, we immediately obtain
$$\int_{-\pi}^\pi\sin^3(x)\sin(nx)\,\mathrm d x=\begin{cases}\frac{3\pi}{4}&n=1\\ -\frac{\pi}{4}&n=3\\ 0&\text{otherwise}\end{cases}.$$