I=∫ex(x2+1)(x+1)2dx
Put x+1=u and x2=(u−1)2
⟹dx=du
Therefore, C=e−1∫((u−1)2+1)euu2du
=e−1∫(u2+1−2u+1)euu2du
I=e−1∫eudu+e−1∫(2–2u)euu2du
I=e−1eu+2e−1∫(1u2eu−1ueu)du
I=eu−1+2e−1∫1u2eudu–2−11ueu+2e−1∫−1u2eudu
I=eu−1−2eu−1u+c
I=ex−2exx+1+c
I=ex(x+1)–2exx+1+c
I=exx−exx+1+c=ex(x−1)x+1+c