I need to solve this integral: $$ \int{x\sin^2(x)}\ dx $$
I SOLVED it by writting: $$ \sin^2(x) = \frac{1-\cos(2x)}{2} $$ and used integration by parts for $x\cos(2x)$, and the result is:
$$ \frac{1}{4}(x^2-x\sin(2x)-\frac{\cos(2x)}{2}) + C $$
I need to know other methods of solving this integral (preferable simple methods). Thank you!