In some of the cases we can split the integrand into the sum of the two functions such that the integration of one of them by parts produces an integral which cancels the other integral. Suppose we have an integral of the type
∫[f(x)h(x)+g(x)]dx
Let ∫f(x)h(x)dx=I1 and ∫g(x)dx=I2
Integrating I1 by parts, we get
I1=f(x)∫h(x)dx−∫{f′(x)∫h(x)dx}dx
∫xex(1+x)2dx is equal to
exx+1+c
∫exx(1+x)2dx=∫ex(11+x−1(1+x)2)dx
=exx+1+c