
Bradford T. answered 02/02/21
Retired Engineer / Upper level math instructor
If you just need to know how many times to use Integration by parts, you can use the DI method and count how many times you have ∫f(x)g(x)dx.
F(x) = ∫x2e4xdx
Let's differentiate x2 and integrate e4x
D I
1) + x2 e4x
2) - 2x e4x/4
3) + 2 e4x/16
4) - 0 e4x/64
By the rules of the DI method, line 3), going left to right, you have 2∫e4xdx/16
So there were only 2 repetitions before a simple integration.
To get the answer just accumulate the diagonals and add C.
F(x) = x2e4x/4 - 2xe4x/16 + 2e4x/64 + C
= x2e4x/4 - xe4x/8 + e4x/32 + C