Given that
I=∫cos2x(cosx+sinx)2dx
I=∫cos2xcos2x+sin2x+2sinxcosxdx
We know that
sin2x+cos2x=1
sin2x=2sinxcosx
Therefore,
I=∫cos2x1+sin2xdx
Let t=1+sin2x
dtdx=0+2cos2x
dt2=cos2xdx
Therefore,
I=12∫1tdt
I=12ln(t)+C
On putting the value of t, we get
I=12ln(1+sin2x)+C
Hence, this is the answer.