1. Find the derivative of the substitution variable and apply the double angle formula for sine.
u=cosx⟹dxdu=−sinx⟹dx=−sinx1du
sin2x=2sinxcosx
2. Substitute $u$ into the integral to eliminate $x$.
∫cos2x+cosx+22sinxcosxdx=∫u2+u+22sinx(u)(−sinx1)du
=∫u2+u+2−2udu
3. Manipulate the numerator to extract the exact derivative of the denominator.
The derivative of u2+u+2 is 2u+1.
∫u2+u+2−2udu=−∫u2+u+22u+1−1du
=−∫u2+u+22u+1du+∫u2+u+21du
4. Complete the square for the denominator of the second integral.
u2+u+2=(u+21)2−41+2
=(u+21)2+47
5. Integrate using standard forms and substitute back $u = \cos x$.
=−ln(u2+u+2)+271tan−1(27u+21)+C
=−ln(cos2x+cosx+2)+72tan−1(72cosx+1)+C
答案−ln(cos2x+cosx+2)+72tan−1(72cosx+1)+C