I have to solve this integral: $$\int_{-\pi}^\pi{x^2\sin\frac{x}{2}\mathrm dx}$$
I'm thinking about integration by parts, but I'm not sure how to either derivate or integrate the $\sin\frac{x}{2}$ part. These are solutions to that part: $$\int{\sin\frac{x}{2}\mathrm dx} = -2\cos\frac{x}{2} + C$$ $$\frac{\mathrm d}{\mathrm dx}\left(\sin\frac{x}{2}\right)=\frac12\cos\frac{x}{2}$$
How do I get to these solutions? By introducing a new variable? Or are these one of those "well known" ones that I can simply memorise?