I was solving indefinite integrals for preparing me to a math test but I found a very hard one I'm not able to solve. It is
$$\int \sin(x)\ln(\sin(x))\, \mathrm{d}x$$
I tried to solve it by substitution but I wasn't able to express the $dx$ with a smart method. The only way I can think to solve it is by parts but it would be too much difficult in my opinion.
I hope you can help me even with an advice, thanks in advance.
If you let $u=\ln(\sin(x))$ and $dv=\sin(x)\,dx$, then $du=\dfrac{\cos(x)}{\sin(x)}$ and $v=-\cos(x)$. You get \begin{align*}\int&=-\cos(x)\ln(\sin(x))+\int\cos(x)\,\frac{\cos(x)}{\sin(x)}\,dx\\ &=-\cos(x)\ln(\sin(x))+\int\frac{\cos^2(x)}{\sin(x)}\,dx\\ &=-\cos(x)\ln(\sin(x))+\int\frac{1-\sin^2(x)}{\sin(x)}\,dx \\ &=-\cos(x)\ln(\sin(x))+\int[\csc(x)-\sin(x)]\,dx. \end{align*} These last two integrals succumb to standard, known methods.