Evaluate $$\int_{0}^{\pi} x \ln(\sin x)dx.$$
My attempt,
My first glance on this question I know that I'm going to use Integration by Parts.
So, it equals to $$-\frac{1}{2}\int_{0}^{\pi} x^2 \cot x dx$$
I've tried every methods that I've learnt for integration for this and I ended up in nowhere. Hope someone could provide a solution and explain for it. Thanks in advance.
Updated
Obviously, my attempt is wrong as the integral does not converge.