The correct option is
A ex[1x+1]+cI=∫xex(x+1)2dx=∫(x+1−1)ex(x+1)2dx=∫(x+1)ex(x+1)2dx−∫ex(x+1)2dx=∫exx+1dx−∫ex(x+1)2dx
We know, ∫u.v dx=u∫v dx −∫(dudx∫v dx)dx
Now by integrating the functions by parts, for the first part taking ex as u and 1x+1 as v
I=exx+1+∫ex(x+1)2dx−∫ex(x+1)2dx
I=exx+1+C