Using the substitution u=cos⁡xu = \cos x, find ∫sin⁡2xcos⁡2x+cos⁡x+2 dx\displaystyle \int \frac{\sin 2x}{\cos^2 x + \cos x + 2}\,dx, giving your answer in terms of xx.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

1

1. Find the derivative of the substitution variable and apply the double angle formula for sine.

u=cos⁡x  ⟹  dudx=−sin⁡x  ⟹  dx=−1sin⁡x duu = \cos x \implies \frac{du}{dx} = -\sin x \implies dx = -\frac{1}{\sin x} \, du
sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2 \sin x \cos x

2. Substitute $u$ into the integral to eliminate $x$.

∫2sin⁡xcos⁡xcos⁡2x+cos⁡x+2 dx=∫2sin⁡x(u)u2+u+2(−1sin⁡x) du\int \frac{2 \sin x \cos x}{\cos^2 x + \cos x + 2} \, dx = \int \frac{2 \sin x (u)}{u^2 + u + 2} \left( -\frac{1}{\sin x} \right) \, du
=∫−2uu2+u+2 du= \int \frac{-2u}{u^2 + u + 2} \, du

3. Manipulate the numerator to extract the exact derivative of the denominator.

The derivative of u2+u+2u^2 + u + 2 is 2u+12u + 1.
∫−2uu2+u+2 du=−∫2u+1−1u2+u+2 du\int \frac{-2u}{u^2 + u + 2} \, du = -\int \frac{2u + 1 - 1}{u^2 + u + 2} \, du
=−∫2u+1u2+u+2 du+∫1u2+u+2 du= -\int \frac{2u + 1}{u^2 + u + 2} \, du + \int \frac{1}{u^2 + u + 2} \, du

4. Complete the square for the denominator of the second integral.

u2+u+2=(u+12)2−14+2u^2 + u + 2 = \left( u + \frac{1}{2} \right)^2 - \frac{1}{4} + 2
=(u+12)2+74= \left( u + \frac{1}{2} \right)^2 + \frac{7}{4}

5. Integrate using standard forms and substitute back $u = \cos x$.

=−ln⁡(u2+u+2)+172tan⁡−1(u+1272)+C= -\ln(u^2 + u + 2) + \frac{1}{\frac{\sqrt{7}}{2}} \tan^{-1} \left( \frac{u + \frac{1}{2}}{\frac{\sqrt{7}}{2}} \right) + C
=−ln⁡(cos⁡2x+cos⁡x+2)+27tan⁡−1(2cos⁡x+17)+C= -\ln(\cos^2 x + \cos x + 2) + \frac{2}{\sqrt{7}} \tan^{-1} \left( \frac{2\cos x + 1}{\sqrt{7}} \right) + C

Answer

−ln⁡(cos⁡2x+cos⁡x+2)+27tan⁡−1(2cos⁡x+17)+C-\ln(\cos^2 x + \cos x + 2) + \frac{2}{\sqrt{7}} \tan^{-1} \left( \frac{2\cos x + 1}{\sqrt{7}} \right) + C

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1Differentiate ex2+2x\mathrm{e}^{x^2+2x} with respect to xx and hence find the exact value of ∫01(x+1)ex2+2x  dx\int_{0}^{1} (x+1)\mathrm{e}^{x^2+2x} \; \mathrm{d}x…
  2. 2Show that cos⁡3θ=4cos⁡3θ−3cos⁡θ\cos 3\theta = 4\cos^{3}\theta - 3\cos\theta. Hence, or otherwise, evaluate ∫0π/6sin⁡2θ cos⁡3θ dθ\displaystyle \int_{0}^{\pi/6} \sin 2\theta\,\cos 3\theta\, d\theta…
  3. 3Show that for x>1x>1, ddx(1x2−1)=−x(x2−1)3/2 .\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\dfrac{1}{\sqrt{x^2-1}}\right)=-\dfrac{x}{(x^2-1)^{3/2}}\,.…
  4. 4Obtain a formula for ∫12n(tan⁡−12x)21+4x2 dx\displaystyle\int_{\frac{1}{2}}^{n} \frac{(\tan^{-1} 2x)^2}{1+4x^2}\,dx in terms of nn, where n>0n>0…
  5. 5A curve C is defined by the parametric equations x=θ2−1,y=tan⁡θ2,0≤θ<πx = \theta^2 - 1,\quad y = \tan\frac{\theta}{2},\quad 0 \le \theta < \pi…