Find the integrals of the functions. ∫cos2x(cosx+sinx)2dx.
Integrate the rational functions. ∫cosx(1−sinx)(2−sinx)dx.