Given: ∫x2(x−1)exdx,x>0
Consider xex and differentiate using the Quotient Rule:
dxd(xex)=x2x⋅dxd(ex)−ex⋅dxd(x)
=x2x⋅ex−ex⋅1
=x2xex−ex
=x2ex(x−1)
=x2(x−1)ex
This matches the original integrand.
Since dxd(xex)=x2(x−1)ex
∫x2(x−1)exdx=xex+C