The integral is: ∫cos2(exx)ex(1+x)dx
Notice that xex appears in the denominator inside cos2(xex).
Let u=xex
Using the product rule:
dxdu=ex+xex
dxdu=ex(1+x)
du=ex(1+x)dx
The integral becomes:
∫cos2(u)du
=∫sec2(u)du
=tan(u)+c
Substituting u=xex:
tan(xex)+c
where c is the constant of integration.