1)
\(I=\int\left(cos^2x-cos^2x\cdot sin^3x\right)dx\\ =\int cos^2x\cdot dx-\int cos^2x\cdot sin^3x\cdot dx\\ =\frac{1}{2}\int\left(cos2x+1\right)dx+\int cos^2x\left(1-cos^2x\right)d\left(cosx\right)\\ =\frac{1}{4}sin2x+\frac{1}{2}+\frac{cos^3x}{3}-\frac{cos^5x}{5}+C\)
....
2) Xét riêng mẫu số:
\(sin2x+2\left(1+sinx+cosx\right)\\ =\left(sin2x+1\right)+2\left(sinx+cosx\right)+1\\ =\left(sinx+cosx\right)^2+2\left(sinx+cosx\right)+1\\ =\left(sinx+cosx+1\right)^2\\ =\left[\sqrt{2}cos\left(x-\frac{\pi}{4}\right)+1\right]^2\)
Khi đó:
\(I_2=\int\frac{sin\left(x-\frac{\pi}{4}\right)}{\left[\sqrt{2}cos\left(x-\frac{\pi}{4}\right)+1\right]^2}dx\\ =-\frac{1}{\sqrt{2}}\int\frac{d\left[\sqrt{2}cos\left(x-\frac{\pi}{4}\right)+1\right]}{\left[\sqrt{2}cos\left(x-\frac{\pi}{4}\right)+1\right]^2}\\ =\frac{1}{\sqrt{2}}\cdot\frac{1}{\sqrt{2}cos\left(x-\frac{\pi}{4}\right)+1}+C=\frac{1}{2cos\left(x-\frac{\pi}{4}\right)+1}\)
...