Question
Mathematics Question on integral
Integrate the function: x2ex
Answer
Let I = ∫x2ex dx
Taking x2 as first function and ex as second function and integrating by parts, we obtain
I= x2∫ex dx - ∫{(dxdx2)∫exdx} dx
I = x2ex - ∫2x.exdx
I = x2ex-2∫x.ex dx
Again integrating by parts,we obtain
I =x2ex - 2[x.∫exdx - ∫{(dxdx).∫exdx} dx]
I = x2ex - 2[xex-∫exdx]
I = x2ex - 2[xex - ex]
I = x2ex - 2xex + 2ex + C
I = ex(x2 - 2x + 2) + C