Concept:Use the substitution t=xex and then apply partial fractions to integrate.Explanation:Let I=∫x(1+xex)2x+1dx.Put t=xex.Then dt=(x+1)exdx, so (x+1)dx=e−xdt.Also x(1+xex)2=te−x(1+t)2.Therefore, I=∫t(1+t)2dt.Now express t(1+t)21=t1−1+t1−(1+t)21.So I=∫(t1−1+t1−(1+t)21)dt.This gives I=log∣t∣−log∣1+t∣+1+t1+c.Substitute back t=xex:I=log1+xexxex+1+xex1+c.Answer:log1+xexxex+1+xex1+cHence, the correct option is C.