Warning: What I am about to do is very messy: hopefully there's a way to do this much more easily. But I can't see it.
integrate: x^2sin^3(x) dx
Basically we want to use integration by parts
Integral(uv') = uv - Integral(u'v)
with u=x^2 so we reduce the power of x^2 down via IBP twice.
But the problem is that we can't integrate [sin(x)]^3 so we need to write in in terms of sinx, sin(3x) that kind of stuff.
There are a few ways of doing this but probably the easiest in 4U is to use DeMoivres and binomial theorem
(cosx + isinx)^3
= cos(3x) + isin(3x)
and by binomial therem with c=cosx, s=sinx
= c^3 + 3(c^2)is + 3c(i^2)(s^2) + (i^3)s^3
so equating imaginary parts
sin(3x) = 3(c^2)s - s^3
= 3(1-s^2)s - s^3
=3s-4s^3
so 4(sinx)^3 = 3sinx - sin(3x)
(sinx)^3 = 3/4sinx - 1/4sin(3x)
so Int(x^2 (sinx)^3)
= 3/4Int(x^2*sinx) - 1/4Int(x^2*sin3x)
I'll do one step of the first integral for you
Int(x^2*sinx)
=x^2*-cosx - Int(2x*-cosx)
= -x^2 cosx + 2Int(x cosx)
So you just need to use IBP again on this integral and then twice on the other integral
My final answer is
Int(x^2*(cosx)^3)
= 1/12*x^2*cos3x - 3/4*x^2*cosx + 2/9*x*sin3x + 3/2*x*sinx +2/27*cos3x + 3/2*sinx