Calculus3Integration Techniques3 of 5
Integration Techniques · 3

Trigonometric Substitution

1

Integrating 1−x2\sqrt{1 - x^2}

Let's find the integral of 1−x2\rt{\sqrt{1 - x^2}}.

∫1−x2 dx\displaystyle \int \rt{\sqrt{1-x^2}}\,\dxc{dx} =  ?\displaystyle = \;?

Our first instinct with a root is u-substitution. That works when there's an extra x\xs{x} outside the root, because then x dx\xs{x}\,\dxc{dx} is part of du\dxc{du}. Without it, solving for dx\dxc{dx} leaves a lone x\xs{x} in the denominator with nothing to cancel it.

∫x1−x2 dx\displaystyle \int \xs{x}\rt{\sqrt{1-x^2}}\,\dxc{dx}
u=1−x2,du=−2x dx\displaystyle \begin{aligned}u = 1-x^2,\quad \dxc{du} = \xs{-2x}\,\dxc{dx}\end{aligned}
→  −12∫u du\displaystyle \to\; -\frac12\int \rt{\sqrt{u}}\,\dxc{du}
∫1−x2 dx\displaystyle \int \rt{\sqrt{1-x^2}}\,\dxc{dx}
u=1−x2,du=−2x dx\displaystyle \begin{aligned}u = 1-x^2,\quad \dxc{du} = \xs{-2x}\,\dxc{dx}\end{aligned}
dx=du−2x\displaystyle \begin{aligned}\dxc{dx} = \frac{\dxc{du}}{\xs{-2x}}\end{aligned}

So we need another way to get rid of the root. Think of 1−x21 - x^2 as 12−x2\nm{1}^2 - \xs{x}^2. In a right triangle with hypotenuse 1\nm{1} and one leg x\xs{x}, the other leg is 1−x2\rt{\sqrt{1 - x^2}}. Let's make θ\ang{\theta} the angle opposite x\xs{x}.

1\htmlClass{lc-orange}{1}
x\htmlClass{lc-green}{x}
1−x2\htmlClass{lc-pink}{\sqrt{1-x^2}}
θ\htmlClass{lc-violet}{\theta}
sin⁡θ=x1=xcos⁡θ=1−x21=1−x2\displaystyle \begin{aligned}\sin\theta &= \frac{\xs{x}}{\nm{1}} = \xs{x}\\[6pt] \cos\theta &= \frac{\rt{\sqrt{1-x^2}}}{\nm{1}} = \rt{\sqrt{1-x^2}}\end{aligned}

That suggests x=sin⁡θ\xs{x = \sin\theta}. Because sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1, 1−x2\rt{\sqrt{1 - x^2}} becomes cos⁡θ\rt{\cos\theta}, and the square root is gone.

x=sin⁡θ,dx=cos⁡θ dθ\displaystyle \begin{aligned}\xs{x = \sin\theta}, \qquad \dxc{dx} = \dxc{\cos\theta\,d\theta}\end{aligned}
1−x2=1−sin⁡2θ=cos⁡2θ=cos⁡θ\displaystyle \begin{aligned}\rt{\sqrt{1-x^2}} = \rt{\sqrt{1-\sin^2\theta}} = \rt{\sqrt{\cos^2\theta}} = \rt{\cos\theta}\end{aligned}
1−x2=1−sin⁡2θ=cos⁡2θ=cos⁡θ\displaystyle \begin{aligned}\rt{\sqrt{1-x^2}} &= \rt{\sqrt{1-\sin^2\theta}}\\ &= \rt{\sqrt{\cos^2\theta}} = \rt{\cos\theta}\end{aligned}
∫1−x2 dx=∫cos⁡θ⋅cos⁡θ dθ=∫cos⁡2θ dθ\displaystyle \begin{aligned}\int \rt{\sqrt{1-x^2}}\,\dxc{dx} = \int \rt{\cos\theta} \cdot \dxc{\cos\theta\,d\theta} = \int \cos^2\theta\,d\theta\end{aligned}
∫1−x2 dx=∫cos⁡θ⋅cos⁡θ dθ=∫cos⁡2θ dθ\displaystyle \begin{aligned}\int \rt{\sqrt{1-x^2}}\,\dxc{dx} &= \int \rt{\cos\theta} \cdot \dxc{\cos\theta\,d\theta}\\ &= \int \cos^2\theta\,d\theta\end{aligned}

Now let's use this substitution to evaluate the definite integral from −1-1 to 11.

Evaluate ∫−111−x2 dx\int_{-1}^1 \sqrt{1 - x^2}\,dx
∫−111−x2 dx  \displaystyle \int_{-1}^{1}\htmlClass{lc-pink}{\sqrt{1-x^2}}\,\htmlClass{lc-blue}{dx} \;=  ?\displaystyle =\; ?
Text solution
Change the bounds to θ\ang{\theta}−1-1 and 11 are xx-values, so we use sin⁡θ=x\sin\theta = \xs{x} to turn them into θ\ang{\theta}-values.
x\displaystyle x =−1→θ=−π2\displaystyle = -1 \to \ang{\theta = -\frac{\pi}{2}}
x\displaystyle x =1→θ=π2\displaystyle = 1 \to \ang{\theta = \frac{\pi}{2}}
Lower the power and evaluateRewrite cos⁡2θ\cos^2\theta as 1+cos⁡2θ2\frac{1 + \cos 2\theta}{2}, integrate, and plug in the θ\ang{\theta}-bounds.
∫−111−x2 dx=∫−π2π21+cos⁡2θ2 dθ=[θ2+sin⁡2θ4]−π2π2=π2\displaystyle \begin{aligned}\int_{-1}^{1}\rt{\sqrt{1-x^2}}\,\dxc{dx} &= \int_{\ang{-\frac{\pi}{2}}}^{\ang{\frac{\pi}{2}}}\frac{1+\cos 2\theta}{2}\,d\theta\\ &= \Big[\frac{\ang{\theta}}{2} + \frac{\sin 2\theta}{4}\Big]_{\ang{-\frac{\pi}{2}}}^{\ang{\frac{\pi}{2}}}\\ &= \frac{\pi}{2}\end{aligned}

That's exactly the area of a semicircle. y=1−x2\rt{y = \sqrt{1 - x^2}} is the top half of the circle x2+y2=1x^2 + y^2 = 1, whose area is π⋅12=π\pi \cdot \nm{1}^2 = \pi, so the semicircle has area π2\frac{\pi}{2}.

y=1−x2\htmlClass{lc-pink}{y=\sqrt{1-x^2}}
x2+y2=1x^2+y^2=1
1\htmlClass{lc-orange}{1}
−1-1
11
∫−111−x2 dx=12⋅π⋅12=π2\displaystyle \begin{aligned}&\int_{-1}^{1}\rt{\sqrt{1-x^2}}\,\dxc{dx}\\ &\quad= \frac12\cdot\pi\cdot\nm{1}^2\\ &\quad= \frac{\pi}{2}\end{aligned}
2

Putting xx back

Without bounds, we can't finish in θ\ang{\theta}. The same substitution gives θ2+sin⁡2θ4+C\frac{\ang{\theta}}{2} + \frac{\sin 2\theta}{4} + C, and since we started with x\xs{x}, we have to put x\xs{x} back. The triangle we set up for x=sin⁡θ\xs{x = \sin\theta} does it. From sin⁡θ=x\sin\theta = \xs{x}, the angle itself is arcsin⁡x\ang{\arcsin x}. But 2θ2\theta isn't an angle in the triangle, so we rewrite sin⁡2θ\sin 2\theta as 2sin⁡θcos⁡θ2\sin\theta\cos\theta first, and read both pieces off the triangle.

1\htmlClass{lc-orange}{1}
x\htmlClass{lc-green}{x}
1−x2\htmlClass{lc-pink}{\sqrt{1-x^2}}
θ\htmlClass{lc-violet}{\theta}
sin⁡θ=x  →  θ=arcsin⁡x\displaystyle \begin{aligned}\sin\theta = \xs{x} \;\to\; \ang{\theta = \arcsin x}\end{aligned}
sin⁡2θ=2sin⁡θcos⁡θ=2x1−x2\displaystyle \begin{aligned}\sin 2\theta &= 2\sin\theta\cos\theta\\ &= 2\xs{x}\rt{\sqrt{1-x^2}}\end{aligned}
Write the antiderivative of 1−x2\sqrt{1 - x^2} in terms of xx
∫1−x2 dx=θ2+sin⁡2θ4+C=  ?\displaystyle \begin{aligned}&\int \htmlClass{lc-pink}{\sqrt{1-x^2}}\,\htmlClass{lc-blue}{dx}\\ &= \frac{\htmlClass{lc-violet}{\theta}}{2}+\frac{\sin 2\theta}{4}+C\\ &= \;?\end{aligned}
Text solution
The antiderivative in θ\ang{\theta}With x=sin⁡θ\xs{x = \sin\theta}, the integral is ∫cos⁡2θ dθ\int \cos^2\theta\,d\theta, and cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \frac{1 + \cos 2\theta}{2}.
∫1−x2 dx=∫1+cos⁡2θ2 dθ=θ2+sin⁡2θ4+C\displaystyle \begin{aligned}\int \rt{\sqrt{1-x^2}}\,\dxc{dx} &= \int \frac{1+\cos 2\theta}{2}\,d\theta\\ &= \frac{\ang{\theta}}{2} + \frac{\sin 2\theta}{4} + C\end{aligned}
Put x\xs{x} backReplace θ\ang{\theta} with arcsin⁡x\ang{\arcsin x} and sin⁡2θ\sin 2\theta with 2x1−x22\xs{x}\rt{\sqrt{1-x^2}}.
∫1−x2 dx\displaystyle \int \rt{\sqrt{1-x^2}}\,\dxc{dx} =12arcsin⁡x+12x1−x2+C\displaystyle = \frac12\ang{\arcsin x} + \frac12 \xs{x}\rt{\sqrt{1-x^2}} + C
The root in the denominatorFor ∫dx1−x2\int \frac{\dxc{dx}}{\rt{\sqrt{1-x^2}}}, the cosines cancel. We get arcsin⁡x+C\ang{\arcsin x} + C, which we already knew, since the derivative of arcsin⁡x\ang{\arcsin x} is 11−x2\frac{1}{\rt{\sqrt{1-x^2}}}.
∫dx1−x2\displaystyle \int \frac{\dxc{dx}}{\rt{\sqrt{1-x^2}}} =∫cos⁡θ dθcos⁡θ\displaystyle = \int \frac{\dxc{\cos\theta\,d\theta}}{\rt{\cos\theta}} =∫dθ\displaystyle = \int d\theta =arcsin⁡x+C\displaystyle = \ang{\arcsin x} + C

How does finishing a definite integral differ from finishing an indefinite one?

3

Other numbers under the root

Now the number under the root isn't 11, as in ∫dx(4−x2)32\int \frac{\dxc{dx}}{\rt{(4-x^2)^{\frac32}}}. A power of 32\frac32 just means taking the square root, and then cubing it.

If we try x=sin⁡θ\xs{x = \sin\theta}, 4−x24 - x^2 becomes 4−sin⁡2θ4 - \sin^2\theta, which isn't 4cos⁡2θ4\cos^2\theta, so the root stays. To get a 44 in front of sin⁡2θ\sin^2\theta, write 4−x24 - x^2 as 22−x2\nm{2}^2 - \xs{x}^2. Now the hypotenuse is 2\nm{2} and the opposite leg is x\xs{x}, so sin⁡θ=x2\sin\theta = \frac{\xs{x}}{\nm{2}} gives x=2sin⁡θ\xs{x = 2\sin\theta}.

2\htmlClass{lc-orange}{2}
x\htmlClass{lc-green}{x}
4−x2\htmlClass{lc-pink}{\sqrt{4-x^2}}
θ\htmlClass{lc-violet}{\theta}
sin⁡θ=x2cos⁡θ=4−x22\displaystyle \begin{aligned}\sin\theta &= \frac{\xs{x}}{\nm{2}}\\[6pt] \cos\theta &= \frac{\rt{\sqrt{4-x^2}}}{\nm{2}}\end{aligned}
4−4sin⁡2θ=4cos⁡2θ\displaystyle \begin{aligned}4 - 4\sin^2\theta = 4\cos^2\theta\end{aligned}
x=2sin⁡θdx=2cos⁡θ dθ4−x2=2cos⁡θ\displaystyle \begin{aligned}\xs{x} &\xs{{}= 2\sin\theta}\\ \dxc{dx} &= \dxc{2\cos\theta\,d\theta}\\ \rt{\sqrt{4-x^2}} &= \rt{2\cos\theta}\end{aligned}
Evaluate ∫dx(4−x2)32\int \frac{dx}{(4-x^2)^{\frac32}}, then find the substitution for 9−4x2\sqrt{9-4x^2}
∫dx(4−x2)32  \displaystyle \int \frac{\htmlClass{lc-blue}{dx}}{\htmlClass{lc-pink}{(4-x^2)^{\frac{3}{2}}}} \;=  ?\displaystyle =\; ?
Text solution
Cube the whole rootThe 22 gets cubed too, so the denominator is 8cos⁡3θ\rt{8\cos^3\theta}. Then 1cos⁡2θ\frac{1}{\cos^2\theta} is sec⁡2θ\sec^2\theta.
∫dx(4−x2)32=∫2cos⁡θ dθ8cos⁡3θ=14∫sec⁡2θ dθ=14tan⁡θ+C\displaystyle \begin{aligned}\int \frac{\dxc{dx}}{\rt{(4-x^2)^{\frac32}}} &= \int \frac{\dxc{2\cos\theta\,d\theta}}{\rt{8\cos^3\theta}}\\ &= \frac14\int \sec^2\theta\,d\theta\\ &= \frac14\tan\theta + C\end{aligned}
Put x\xs{x} backTangent is opposite over adjacent in the triangle.
tan⁡θ\displaystyle \tan\theta =x4−x2\displaystyle = \frac{\xs{x}}{\rt{\sqrt{4-x^2}}}
14tan⁡θ+C\displaystyle \frac14\tan\theta + C =x44−x2+C\displaystyle = \frac{\xs{x}}{4\rt{\sqrt{4-x^2}}} + C

What if we have 9−4x2\rt{\sqrt{9 - 4x^2}} instead? Trying x=3sin⁡θ\xs{x = 3\sin\theta} turns 4x24x^2 into 36sin⁡2θ36\sin^2\theta, and the root stays. This time the opposite leg is 2x\xs{2x}, not x\xs{x}.

3\htmlClass{lc-orange}{3}
2x\htmlClass{lc-green}{2x}
9−4x2\htmlClass{lc-pink}{\sqrt{9-4x^2}}
θ\htmlClass{lc-violet}{\theta}
9−4x2=32−(2x)2\displaystyle \begin{aligned}9 - 4x^2 = \nm{3}^2 - \xs{(2x)^2}\end{aligned}
9−9sin⁡2θ=9cos⁡2θ\displaystyle \begin{aligned}9 - 9\sin^2\theta = 9\cos^2\theta\end{aligned}
2x=3sin⁡θx=32sin⁡θ9−4x2=3cos⁡θ\displaystyle \begin{aligned}\xs{2x} &\xs{{}= 3\sin\theta}\\ \xs{x} &\xs{{}= \frac32\sin\theta}\\ \rt{\sqrt{9-4x^2}} &= \rt{3\cos\theta}\end{aligned}

Whenever you have a number minus a square under a root, the number is the square of the hypotenuse, and whatever is being squared beside it is the opposite leg. For 4−x2\nm{4} - \xs{x^2}, the hypotenuse is 2\nm{2} and the leg is x\xs{x}, so x=2sin⁡θ\xs{x = 2\sin\theta}. For 9−4x2\nm{9} - \xs{4x^2}, the hypotenuse is 3\nm{3} and the leg is 2x\xs{2x}, so 2x=3sin⁡θ\xs{2x = 3\sin\theta}.

4

Tangent and secant substitutions

Now let's look at a plus sign under the root, as in ∫dxx2x2+9\int \frac{\dxc{dx}}{\xs{x^2}\rt{\sqrt{x^2+9}}}. Sine won't help here. With x=3sin⁡θ\xs{x = 3\sin\theta}, 9+x29 + x^2 becomes 9+9sin⁡2θ9 + 9\sin^2\theta, and the sine identity has a minus sign. But x2+32\xs{x^2} + \nm{3}^2 is a sum of squares, so x\xs{x} and 3\nm{3} are the legs of a right triangle, and the square root is the hypotenuse. Opposite over adjacent gives x=3tan⁡θ\xs{x = 3\tan\theta}.

9+x2\htmlClass{lc-pink}{\sqrt{9+x^2}}
x\htmlClass{lc-green}{x}
3\htmlClass{lc-orange}{3}
θ\htmlClass{lc-violet}{\theta}
tan⁡θ=x3sec⁡θ=9+x23\displaystyle \begin{aligned}\tan\theta &= \frac{\xs{x}}{\nm{3}}\\[6pt] \sec\theta &= \frac{\rt{\sqrt{9+x^2}}}{\nm{3}}\end{aligned}
9+9tan⁡2θ=9sec⁡2θ\displaystyle \begin{aligned}9 + 9\tan^2\theta = 9\sec^2\theta\end{aligned}
x=3tan⁡θdx=3sec⁡2θ dθ9+x2=3sec⁡θ\displaystyle \begin{aligned}\xs{x} &\xs{{}= 3\tan\theta}\\ \dxc{dx} &= \dxc{3\sec^2\theta\,d\theta}\\ \rt{\sqrt{9+x^2}} &= \rt{3\sec\theta}\end{aligned}
Evaluate ∫dxx2x2+9\int \frac{dx}{x^2\sqrt{x^2+9}}
∫dxx2x2+9  \displaystyle \int \frac{\htmlClass{lc-blue}{dx}}{\htmlClass{lc-green}{x^2}\htmlClass{lc-pink}{\sqrt{x^2+9}}} \;=  ?\displaystyle =\; ?
Text solution
Substitute and cancelThe 33s cancel, and so does one sec⁡θ\sec\theta.
∫dxx2x2+9=∫3sec⁡2θ dθ9tan⁡2θ⋅3sec⁡θ=19∫sec⁡θtan⁡2θ dθ\displaystyle \begin{aligned}\int \frac{\dxc{dx}}{\xs{x^2}\rt{\sqrt{x^2+9}}} &= \int \frac{\dxc{3\sec^2\theta\,d\theta}}{\xs{9\tan^2\theta} \cdot \rt{3\sec\theta}}\\ &= \frac19\int \frac{\sec\theta}{\tan^2\theta}\,d\theta\end{aligned}
Write it in sine and cosineNow the top is the derivative of sin⁡θ\sin\theta, so u=sin⁡θu = \sin\theta finishes it.
19∫cos⁡θsin⁡2θ dθ\displaystyle \frac19\int \frac{\cos\theta}{\sin^2\theta}\,d\theta =−19sin⁡θ+C\displaystyle = -\frac{1}{9\sin\theta} + C
Put x\xs{x} backSine is opposite over hypotenuse in the triangle, and dividing by it flips the fraction.
sin⁡θ\displaystyle \sin\theta =xx2+9\displaystyle = \frac{\xs{x}}{\rt{\sqrt{x^2+9}}}
−19sin⁡θ+C\displaystyle -\frac{1}{9\sin\theta} + C =−x2+99x+C\displaystyle = -\frac{\rt{\sqrt{x^2+9}}}{9\xs{x}} + C

When a number is subtracted from x2x^2, as in ∫dxx2x2−4\int \frac{\dxc{dx}}{\xs{x^2}\rt{\sqrt{x^2-4}}}, sine fails in a different way. With x=2sin⁡θ\xs{x = 2\sin\theta}, x2−4x^2 - 4 becomes −4cos⁡2θ-4\cos^2\theta, which is negative. This time x2=22+(x2−4)2\xs{x^2} = \nm{2}^2 + \rt{(\sqrt{x^2-4})^2}, so x\xs{x} is the hypotenuse, and hypotenuse over adjacent gives x=2sec⁡θ\xs{x = 2\sec\theta}.

x\htmlClass{lc-green}{x}
2\htmlClass{lc-orange}{2}
x2−4\htmlClass{lc-pink}{\sqrt{x^2-4}}
θ\htmlClass{lc-violet}{\theta}
sec⁡θ=x2tan⁡θ=x2−42\displaystyle \begin{aligned}\sec\theta &= \frac{\xs{x}}{\nm{2}}\\[6pt] \tan\theta &= \frac{\rt{\sqrt{x^2-4}}}{\nm{2}}\end{aligned}
4sec⁡2θ−4=4tan⁡2θ\displaystyle \begin{aligned}4\sec^2\theta - 4 = 4\tan^2\theta\end{aligned}
x=2sec⁡θdx=2sec⁡θtan⁡θ dθx2−4=2tan⁡θ\displaystyle \begin{aligned}\xs{x} &\xs{{}= 2\sec\theta}\\ \dxc{dx} &= \dxc{2\sec\theta\tan\theta\,d\theta}\\ \rt{\sqrt{x^2-4}} &= \rt{2\tan\theta}\end{aligned}
Evaluate ∫dxx2x2−4\int \frac{dx}{x^2\sqrt{x^2-4}}
∫dxx2x2−4  \displaystyle \int \frac{\htmlClass{lc-blue}{dx}}{\htmlClass{lc-green}{x^2}\htmlClass{lc-pink}{\sqrt{x^2-4}}} \;=  ?\displaystyle =\; ?
Text solution
Substitute and cancelThe 2tan⁡θ2\tan\theta terms cancel, and 1sec⁡θ\frac{1}{\sec\theta} is cos⁡θ\cos\theta.
∫dxx2x2−4=∫2sec⁡θtan⁡θ dθ4sec⁡2θ⋅2tan⁡θ=14∫cos⁡θ dθ=14sin⁡θ+C\displaystyle \begin{aligned}\int \frac{\dxc{dx}}{\xs{x^2}\rt{\sqrt{x^2-4}}} &= \int \frac{\dxc{2\sec\theta\tan\theta\,d\theta}}{\xs{4\sec^2\theta} \cdot \rt{2\tan\theta}}\\ &= \frac14\int \cos\theta\,d\theta\\ &= \frac14\sin\theta + C\end{aligned}
Put x\xs{x} backSine is opposite over hypotenuse in the triangle.
sin⁡θ\displaystyle \sin\theta =x2−4x\displaystyle = \frac{\rt{\sqrt{x^2-4}}}{\xs{x}}
14sin⁡θ+C\displaystyle \frac14\sin\theta + C =x2−44x+C\displaystyle = \frac{\rt{\sqrt{x^2-4}}}{4\xs{x}} + C

Each square root fits into the Pythagorean theorem, hypotenuse2=leg2+leg2\text{hypotenuse}^2 = \text{leg}^2 + \text{leg}^2.

4−x2\displaystyle \rt{\sqrt{4-x^2}}
22=x2+(4−x2)2\displaystyle \begin{aligned}\nm{2}^2 = \xs{x^2} + \rt{\big(\sqrt{4-x^2}\big)^2}\end{aligned}
x=2sin⁡θ\displaystyle \xs{x = 2\sin\theta}
4−x2=2cos⁡θ\displaystyle \begin{aligned}\rt{\sqrt{4-x^2}} = \rt{2\cos\theta}\end{aligned}
9+x2\displaystyle \rt{\sqrt{9+x^2}}
(9+x2)2=x2+32\displaystyle \begin{aligned}\rt{\big(\sqrt{9+x^2}\big)^2} = \xs{x^2} + \nm{3}^2\end{aligned}
x=3tan⁡θ\displaystyle \xs{x = 3\tan\theta}
9+x2=3sec⁡θ\displaystyle \begin{aligned}\rt{\sqrt{9+x^2}} = \rt{3\sec\theta}\end{aligned}
x2−4\displaystyle \rt{\sqrt{x^2-4}}
x2=22+(x2−4)2\displaystyle \begin{aligned}\xs{x^2} = \nm{2}^2 + \rt{\big(\sqrt{x^2-4}\big)^2}\end{aligned}
x=2sec⁡θ\displaystyle \xs{x = 2\sec\theta}
x2−4=2tan⁡θ\displaystyle \begin{aligned}\rt{\sqrt{x^2-4}} = \rt{2\tan\theta}\end{aligned}

Which trigonometric substitution does each right triangle suggest?

How do we use the triangle to write the antiderivative in x?

5

Completing the square first

Now the quadratic has an xx term in the middle, as in ∫dx(x2+2x+5)32\int \frac{\dxc{dx}}{\rt{(x^2+2x+5)^{\frac32}}}. If it were just x2+5x^2 + 5, we'd use x=5tan⁡θ\xs{x = \sqrt5\tan\theta}. But that turns the 2x2x into 25tan⁡θ2\sqrt5\tan\theta, which is left over beside 5sec⁡2θ5\sec^2\theta. So we complete the square first. Half of 22 is 11, and 12=11^2 = 1, so we split the 55 into 1+41 + 4.

x2+2x+5\displaystyle x^2 + 2x + 5 =x2+2x+1+4\displaystyle = x^2 + 2x + 1 + 4 =(x+1)2+4\displaystyle = \xs{(x+1)^2} + 4
u=x+1,du=dx\displaystyle \begin{aligned}\xs{u = x + 1}, \qquad \dxc{du} = \dxc{dx}\end{aligned}
∫dx(x2+2x+5)32\displaystyle \int \frac{\dxc{dx}}{\rt{(x^2+2x+5)^{\frac32}}} =∫du(u2+4)32\displaystyle = \int \frac{\dxc{du}}{\rt{(u^2+4)^{\frac32}}}

Now the 2x2x is gone, and we have u2+22\xs{u^2} + \nm{2}^2. That's a sum of squares, so u\xs{u} and 2\nm{2} are the legs, the root is the hypotenuse, and u=2tan⁡θ\xs{u = 2\tan\theta}.

u\htmlClass{lc-green}{u}
2\htmlClass{lc-orange}{2}
u2+4\htmlClass{lc-pink}{\sqrt{u^2+4}}
θ\htmlClass{lc-violet}{\theta}
tan⁡θ=u2sec⁡θ=u2+42\displaystyle \begin{aligned}\tan\theta &= \frac{\xs{u}}{\nm{2}}\\[6pt] \sec\theta &= \frac{\rt{\sqrt{u^2+4}}}{\nm{2}}\end{aligned}
4+4tan⁡2θ=4sec⁡2θ\displaystyle \begin{aligned}4 + 4\tan^2\theta = 4\sec^2\theta\end{aligned}
u=2tan⁡θdu=2sec⁡2θ dθu2+4=2sec⁡θ\displaystyle \begin{aligned}\xs{u} &\xs{{}= 2\tan\theta}\\ \dxc{du} &= \dxc{2\sec^2\theta\,d\theta}\\ \rt{\sqrt{u^2+4}} &= \rt{2\sec\theta}\end{aligned}
Evaluate ∫dx(x2+2x+5)32\displaystyle\int \frac{dx}{(x^2+2x+5)^{\frac32}}
∫dx(x2+2x+5)32  \displaystyle \int \frac{\htmlClass{lc-blue}{dx}}{\htmlClass{lc-pink}{(x^2+2x+5)^{\frac{3}{2}}}} \;=  ?\displaystyle =\; ?
Text solution
Cube the whole rootThe 22 gets cubed along with sec⁡θ\sec\theta, and 1sec⁡θ\frac{1}{\sec\theta} is cos⁡θ\cos\theta.
∫du(u2+4)32=∫2sec⁡2θ dθ8sec⁡3θ=14∫cos⁡θ dθ=14sin⁡θ+C\displaystyle \begin{aligned}\int \frac{\dxc{du}}{\rt{(u^2+4)^{\frac32}}} &= \int \frac{\dxc{2\sec^2\theta\,d\theta}}{\rt{8\sec^3\theta}}\\ &= \frac14\int \cos\theta\,d\theta\\ &= \frac14\sin\theta + C\end{aligned}
Put x\xs{x} backFrom the triangle, sin⁡θ=uu2+4\sin\theta = \frac{\xs{u}}{\rt{\sqrt{u^2+4}}}. Then u\xs{u} is x+1\xs{x+1}, and u2+4u^2 + 4 is x2+2x+5x^2 + 2x + 5.
14sin⁡θ+C=u4u2+4+C=x+14x2+2x+5+C\displaystyle \begin{aligned}\frac14\sin\theta + C &= \frac{\xs{u}}{4\rt{\sqrt{u^2+4}}} + C\\ &= \frac{\xs{x+1}}{4\rt{\sqrt{x^2+2x+5}}} + C\end{aligned}

Summary

When to use trig substitution
∫x9−x2 dx:u=9−x2,du=−2x dx\displaystyle \begin{aligned}&\int \xs{x}\rt{\sqrt{9-x^2}}\,\dxc{dx}:\\ &u = 9 - x^2,\quad \dxc{du} = \xs{-2x}\,\dxc{dx}\end{aligned}
∫9−x2 dx:x=3sin⁡θ\displaystyle \begin{aligned}&\int \rt{\sqrt{9-x^2}}\,\dxc{dx}:\\ &\xs{x = 3\sin\theta}\end{aligned}

In the first integral, we have an x\xs{x} outside the square root, so uu-substitution works because x dx\xs{x}\,\dxc{dx} is part of du\dxc{du}. Without that x\xs{x}, solving for dx\dxc{dx} leaves a lone x\xs{x} in the denominator with nothing to cancel it, so we use a trig substitution instead.

Completing the square first
x2+2x+5=(x+1)2+4\displaystyle \begin{aligned}x^2 + 2x + 5 = \xs{(x+1)^2} + 4\end{aligned}
u=x+1,u=2tan⁡θ\displaystyle \begin{aligned}\xs{u = x + 1}, \qquad \xs{u = 2\tan\theta}\end{aligned}

If the quadratic inside the square root has an xx term, complete the square before choosing a trig substitution. That turns x2+2x+5x^2 + 2x + 5 into (x+1)2+4\xs{(x + 1)^2} + 4, so letting u=x+1\xs{u = x + 1} gives a sum of squares, u2+4\xs{u^2} + 4. Then use u=2tan⁡θ\xs{u = 2\tan\theta}.

Choosing the substitution
4−x2\displaystyle \rt{\sqrt{4-x^2}}
x=2sin⁡θ\displaystyle \xs{x = 2\sin\theta}
1−sin⁡2θ=cos⁡2θ\displaystyle \begin{aligned}1 - \sin^2\theta = \cos^2\theta\end{aligned}
9+x2\displaystyle \rt{\sqrt{9+x^2}}
x=3tan⁡θ\displaystyle \xs{x = 3\tan\theta}
1+tan⁡2θ=sec⁡2θ\displaystyle \begin{aligned}1 + \tan^2\theta = \sec^2\theta\end{aligned}
x2−4\displaystyle \rt{\sqrt{x^2-4}}
x=2sec⁡θ\displaystyle \xs{x = 2\sec\theta}
sec⁡2θ−1=tan⁡2θ\displaystyle \begin{aligned}\sec^2\theta - 1 = \tan^2\theta\end{aligned}
9−4x2\displaystyle \rt{\sqrt{9-4x^2}}
2x=3sin⁡θ\displaystyle \xs{2x = 3\sin\theta}
9−4x2=32−(2x)2\displaystyle \begin{aligned}9 - 4x^2 = \nm{3}^2 - \xs{(2x)^2}\end{aligned}

Set up the sides of a right triangle so that leg2+leg2=hypotenuse2\text{leg}^2 + \text{leg}^2 = \text{hypotenuse}^2. The expression under the square root tells us which side is the hypotenuse. For 4−x2\rt{\sqrt{4 - x^2}}, the hypotenuse is 2\nm{2}, and x=2sin⁡θ\xs{x = 2\sin\theta} turns the root into 2cos⁡θ\rt{2\cos\theta}. For 9+x2\rt{\sqrt{9 + x^2}}, the hypotenuse is the root itself, and x=3tan⁡θ\xs{x = 3\tan\theta} turns it into 3sec⁡θ\rt{3\sec\theta}. For x2−4\rt{\sqrt{x^2 - 4}}, the hypotenuse is x\xs{x}, and x=2sec⁡θ\xs{x = 2\sec\theta} turns it into 2tan⁡θ\rt{2\tan\theta}. When x2x^2 has a coefficient, like 4x2\xs{4x^2}, write the term as (2x)2\xs{(2x)^2} and put 2x\xs{2x} on the triangle. For 9−4x2\rt{\sqrt{9 - 4x^2}}, the hypotenuse is 3\nm{3} and the opposite leg is 2x\xs{2x}, so 2x=3sin⁡θ\xs{2x = 3\sin\theta}.

Definite and indefinite integrals

When an integral has bounds, change the bounds from x\xs{x} to θ\ang{\theta} and finish the problem in θ\ang{\theta}. When an integral has no bounds, use the right triangle to write the answer back in terms of x\xs{x}.

Returning to xx with the triangle
2\htmlClass{lc-orange}{2}
x\htmlClass{lc-green}{x}
4−x2\htmlClass{lc-pink}{\sqrt{4-x^2}}
θ\htmlClass{lc-violet}{\theta}
sin⁡θ=x2cos⁡θ=4−x22tan⁡θ=x4−x2θ=arcsin⁡x2\displaystyle \begin{aligned}\sin\theta &= \frac{\xs{x}}{\nm{2}}\\[10pt] \cos\theta &= \frac{\rt{\sqrt{4-x^2}}}{\nm{2}}\\[10pt] \tan\theta &= \frac{\xs{x}}{\rt{\sqrt{4-x^2}}}\\[10pt] \ang{\theta} &= \ang{\arcsin\frac{x}{2}}\end{aligned}
sin⁡2θ=2sin⁡θcos⁡θ\displaystyle \begin{aligned}\sin 2\theta = 2\sin\theta\cos\theta\end{aligned}

Read each trig ratio from the right triangle. If the antiderivative has θ\ang{\theta} alone, use θ=arcsin⁡x2\ang{\theta = \arcsin\frac{x}{2}}. The triangle only has the angle θ\ang{\theta}, not 2θ2\theta. So if the antiderivative has sin⁡2θ\sin 2\theta, rewrite it as 2sin⁡θcos⁡θ2\sin\theta\cos\theta first, then read sin⁡θ\sin\theta and cos⁡θ\cos\theta from the triangle.

6

Practice

Give exact answers. Don't use decimals.

1
Evaluate ∫01x24−x2 dx\displaystyle\int_0^1 \frac{x^2}{\sqrt{4-x^2}}\,dx.

In a right triangle with a leg of 4−x2\sqrt{4 - x^2} and a leg of xx, what is the hypotenuse?

When the upper bound is x=1x = 1, we have sin⁡θ=12\sin\theta = \frac12. Which angle θ\theta gives that?

Choose the substitutionIn a right triangle with hypotenuse 2\nm{2} and opposite leg x\xs{x}, the adjacent leg is 4−x2\rt{\sqrt{4 - x^2}}, so let x=2sin⁡θ\xs{x = 2\sin\theta}.
x=2sin⁡θ,dx\displaystyle \xs{x = 2\sin\theta}, \qquad \dxc{dx} =2cos⁡θ dθ,4−x2\displaystyle = \dxc{2\cos\theta\,d\theta}, \qquad \rt{\sqrt{4-x^2}} =2cos⁡θ\displaystyle = \rt{2\cos\theta}
Change the bounds to θ\thetaConvert the xx-bounds to θ\ang{\theta} so we don't need to substitute back at the end.
x\displaystyle x =0→θ=0,x\displaystyle = 0 \to \ang{\theta = 0}, \qquad x =1→sin⁡θ\displaystyle = 1 \to \sin\theta =12→θ=π6\displaystyle = \frac12 \to \ang{\theta = \frac{\pi}{6}}
Substitute and use the half-angle identityThe 2cos⁡θ2\cos\theta factors cancel, and sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}.
∫0π64sin⁡2θ2cos⁡θ⋅2cos⁡θ dθ\displaystyle \int_{\ang{0}}^{\ang{\frac{\pi}{6}}} \frac{\xs{4\sin^2\theta}}{\rt{2\cos\theta}}\cdot \dxc{2\cos\theta\,d\theta} =∫0π64sin⁡2θ dθ\displaystyle = \int_{\ang{0}}^{\ang{\frac{\pi}{6}}} 4\sin^2\theta\,d\theta =∫0π62(1−cos⁡2θ) dθ\displaystyle = \int_{\ang{0}}^{\ang{\frac{\pi}{6}}} 2(1 - \cos 2\theta)\,d\theta
Evaluate the integralNow integrate and plug in the bounds in θ\ang{\theta}.
[2θ−sin⁡2θ]0π6\displaystyle \Big[2\ang{\theta} - \sin 2\theta\Big]_{\ang{0}}^{\ang{\frac{\pi}{6}}} =π3−sin⁡π3\displaystyle = \frac{\pi}{3} - \sin\frac{\pi}{3} =π3−32\displaystyle = \frac{\pi}{3} - \frac{\sqrt3}{2}
2
Evaluate ∫x9−x2 dx\displaystyle\int \frac{x}{\sqrt{9-x^2}}\,dx.

Look at the xx outside the square root. If u=9−x2u = 9 - x^2, what is dudu?

The numerator has x dx\xs{x}\,\dxc{dx}, which is −12 du-\frac12\,\dxc{du}, so a uu-substitution is faster than a trig substitution.
u\displaystyle u =9−x2,du\displaystyle = 9 - x^2, \qquad \dxc{du} =−2x dx,x dx\displaystyle = \xs{-2x}\,\dxc{dx}, \qquad \xs{x}\,\dxc{dx} =−12 du\displaystyle = -\frac12\,\dxc{du}
Integrate with the power rule, then put xx back.
∫x9−x2 dx\displaystyle \int \frac{\xs{x}}{\rt{\sqrt{9-x^2}}}\,\dxc{dx} =−12∫u−12 du\displaystyle = -\frac12\int \rt{u^{-\frac12}}\,\dxc{du} =−u+C\displaystyle = -\rt{\sqrt{u}} + C =−9−x2+C\displaystyle = -\rt{\sqrt{9-x^2}} + C
3
Evaluate ∫03dx(x2+9)32\displaystyle\int_0^3 \frac{dx}{(x^2+9)^{\frac32}}.

The denominator has x2+9x^2 + 9, which is x2+32x^2 + 3^2. Which sides of the right triangle are the legs?

(x2+9)32(x^2 + 9)^{\frac32} is (x2+9)3(\sqrt{x^2 + 9})^3. What is x2+9\sqrt{x^2 + 9} in terms of θ\theta?

Choose the substitutionIn a right triangle with legs x\xs{x} and 3\nm{3}, the hypotenuse is x2+9\rt{\sqrt{x^2 + 9}}, so tan⁡θ=x3\tan\theta = \frac{\xs{x}}{\nm{3}} gives x=3tan⁡θ\xs{x = 3\tan\theta} and x2+9=3sec⁡θ\rt{\sqrt{x^2+9}} = \rt{3\sec\theta}.
x=3tan⁡θ,dx\displaystyle \xs{x = 3\tan\theta}, \qquad \dxc{dx} =3sec⁡2θ dθ,(x2+9)32\displaystyle = \dxc{3\sec^2\theta\,d\theta}, \qquad \rt{(x^2+9)^{\frac32}} =(3sec⁡θ)3\displaystyle = \rt{(3\sec\theta)^3} =27sec⁡3θ\displaystyle = \rt{27\sec^3\theta}
Change the bounds to θ\thetaPlug the xx-bounds into tan⁡θ=x3\tan\theta = \frac{\xs{x}}{\nm{3}} to find the bounds in θ\ang{\theta}.
x\displaystyle x =0→θ=0,x\displaystyle = 0 \to \ang{\theta = 0}, \qquad x =3→tan⁡θ\displaystyle = 3 \to \tan\theta =1→θ=π4\displaystyle = 1 \to \ang{\theta = \frac{\pi}{4}}
Substitute and evaluateThe fraction 3sec⁡2θ27sec⁡3θ\frac{\dxc{3\sec^2\theta}}{\rt{27\sec^3\theta}} simplifies to 19cos⁡θ\frac19\cos\theta.
∫0π43sec⁡2θ dθ27sec⁡3θ\displaystyle \int_{\ang{0}}^{\ang{\frac{\pi}{4}}} \frac{\dxc{3\sec^2\theta\,d\theta}}{\rt{27\sec^3\theta}} =19∫0π4cos⁡θ dθ\displaystyle = \frac19\int_{\ang{0}}^{\ang{\frac{\pi}{4}}} \cos\theta\,d\theta =19[sin⁡θ]0π4\displaystyle = \frac19\Big[\sin\theta\Big]_{\ang{0}}^{\ang{\frac{\pi}{4}}} =19⋅22\displaystyle = \frac19\cdot\frac{\sqrt2}{2} =218\displaystyle = \frac{\sqrt2}{18}
4
Evaluate ∫dx(x2−1)32\displaystyle\int \frac{dx}{(x^2-1)^{\frac32}}.

In a right triangle with a leg of length x2−1\sqrt{x^2 - 1} and another leg of length 11, what is the hypotenuse?

Write sec⁡θ\sec\theta as 1cos⁡θ\frac{1}{\cos\theta} and tan⁡θ\tan\theta as sin⁡θcos⁡θ\frac{\sin\theta}{\cos\theta}. What does sec⁡θtan⁡2θ\frac{\sec\theta}{\tan^2\theta} simplify to?

If you got −x2−1x+C-\dfrac{\sqrt{x^2-1}}{x} + C That's −sin⁡θ-\sin\theta. The antiderivative in θ\theta is −1sin⁡θ-\frac{1}{\sin\theta}, which is its reciprocal.

Choose the substitutionBecause x2=1+(x2−1)\xs{x^2} = \nm{1} + \rt{(x^2 - 1)}, the hypotenuse is x\xs{x} and the adjacent leg is 1\nm{1}, so let x=sec⁡θ\xs{x = \sec\theta}.
x=sec⁡θ,dx\displaystyle \xs{x = \sec\theta}, \qquad \dxc{dx} =sec⁡θtan⁡θ dθ,(x2−1)32\displaystyle = \dxc{\sec\theta\tan\theta\,d\theta}, \qquad \rt{(x^2-1)^{\frac32}} =(tan⁡θ)3\displaystyle = \rt{(\tan\theta)^3} =tan⁡3θ\displaystyle = \rt{\tan^3\theta}
Substitute and integrateRewrite secant and tangent in terms of sine and cosine, then use u=sin⁡θu = \sin\theta.
∫sec⁡θtan⁡θ dθtan⁡3θ\displaystyle \int \frac{\dxc{\sec\theta\tan\theta\,d\theta}}{\rt{\tan^3\theta}} =∫sec⁡θtan⁡2θ dθ\displaystyle = \int \frac{\sec\theta}{\tan^2\theta}\,d\theta =∫cos⁡θsin⁡2θ dθ\displaystyle = \int \frac{\cos\theta}{\sin^2\theta}\,d\theta =−1sin⁡θ+C\displaystyle = -\frac{1}{\sin\theta} + C
Put xx backFrom the right triangle, sin⁡θ=x2−1x\sin\theta = \frac{\rt{\sqrt{x^2-1}}}{\xs{x}}, so −1sin⁡θ-\frac{1}{\sin\theta} is its reciprocal with a minus sign.
sin⁡θ\displaystyle \sin\theta =x2−1x  →  −xx2−1+C\displaystyle = \frac{\rt{\sqrt{x^2-1}}}{\xs{x}} \;\to\; -\frac{\xs{x}}{\rt{\sqrt{x^2-1}}} + C
5
Which substitution would you use for ∫9−4x2 dx\displaystyle\int \sqrt{9 - 4x^2}\,dx?

Write 4x24x^2 as (2x)2(2x)^2. What are the hypotenuse and the opposite leg of the right triangle?

If you got x=3sin⁡θx = 3\sin\theta Check what happens to the 4x24x^2 term. If x=3sin⁡θx = 3\sin\theta, then 4x24x^2 becomes 36sin⁡2θ36\sin^2\theta, so 9−4x29 - 4x^2 doesn't simplify to 9cos⁡2θ9\cos^2\theta.

Find the substitutionThe expression 9−4x29 - 4x^2 is 32−(2x)2\nm{3}^2 - \xs{(2x)^2}, so the hypotenuse is 3\nm{3} and the opposite leg is 2x\xs{2x}.
9−4x2\displaystyle 9 - 4x^2 =32−(2x)2,2x=3sin⁡θ  →  x=32sin⁡θ\displaystyle = \nm{3}^2 - \xs{(2x)^2}, \qquad \xs{2x = 3\sin\theta} \;\to\; \xs{x = \frac32\sin\theta}
Check the square rootSubstituting x=32sin⁡θ\xs{x = \frac32\sin\theta} turns 4x2\xs{4x^2} into 9sin⁡2θ\xs{9\sin^2\theta}, so the root simplifies to 3cos⁡θ\rt{3\cos\theta}.
9−4⋅94sin⁡2θ\displaystyle 9 - 4\cdot\frac94\sin^2\theta =9−9sin⁡2θ\displaystyle = 9 - 9\sin^2\theta =9cos⁡2θ,9−4x2\displaystyle = 9\cos^2\theta, \qquad \rt{\sqrt{9-4x^2}} =3cos⁡θ\displaystyle = \rt{3\cos\theta}
6
Evaluate ∫x3−2x−x2 dx\displaystyle\int \frac{x}{\sqrt{3 - 2x - x^2}}\,dx.

Group the xx terms under the root as 3−(x2+2x)3 - (x^2 + 2x). How do you complete the square for x2+2xx^2 + 2x?

Let u=x+1u = x + 1, so x=u−1x = u - 1. The integral ∫u−14−u2 du\int \frac{u-1}{\sqrt{4-u^2}}\,du splits into two integrals. Which method works on each piece?

If you got −3−2x−x2+C-\sqrt{3-2x-x^2} + C Check the numerator. Substituting u=x+1u = x + 1 means x=u−1x = u - 1, so you need to integrate both u4−u2\frac{u}{\sqrt{4-u^2}} and −14−u2-\frac{1}{\sqrt{4-u^2}}.

If you got −3−2x−x2−arcsin⁡x+14+C-\sqrt{3-2x-x^2} - \arcsin\dfrac{x+1}{4} + C Check the hypotenuse of the triangle for 4−u2\sqrt{4-u^2}. Since 4=224 = 2^2, the hypotenuse is 22, not 44.

Complete the squareGroup the xx terms and factor out the minus sign so we can complete the square.
3−2x−x2\displaystyle 3 - 2x - x^2 =3−(x2+2x)\displaystyle = 3 - (x^2 + 2x) =3−((x+1)2−1)\displaystyle = 3 - \big(\xs{(x+1)^2} - 1\big) =4−(x+1)2\displaystyle = 4 - \xs{(x+1)^2}
Substitute u=x+1u = x + 1 and splitLet u=x+1\xs{u = x + 1}, so x=u−1\xs{x = u - 1}, and split the integral into two parts.
u=x+1,du\displaystyle \xs{u = x + 1}, \qquad \dxc{du} =dx,x=u−1\displaystyle = \dxc{dx}, \qquad \xs{x = u - 1}
∫x3−2x−x2 dx\displaystyle \int \frac{\xs{x}}{\rt{\sqrt{3-2x-x^2}}}\,\dxc{dx} =∫u−14−u2 du\displaystyle = \int \frac{\xs{u-1}}{\rt{\sqrt{4-u^2}}}\,\dxc{du} =∫u4−u2 du−∫du4−u2\displaystyle = \int \frac{\xs{u}}{\rt{\sqrt{4-u^2}}}\,\dxc{du} - \int \frac{\dxc{du}}{\rt{\sqrt{4-u^2}}}
Evaluate the first integralThe first integral has u du\xs{u}\,\dxc{du} in the numerator, so we use substitution with w=4−u2w = 4 - u^2.
w\displaystyle w =4−u2,dw\displaystyle = 4 - u^2,\quad \dxc{dw} =−2u du:∫u4−u2 du\displaystyle = \xs{-2u}\,\dxc{du}:\quad \int \frac{\xs{u}}{\rt{\sqrt{4-u^2}}}\,\dxc{du} =−12∫w−12 dw\displaystyle = -\frac12\int \rt{w^{-\frac12}}\,\dxc{dw} =−w\displaystyle = -\rt{\sqrt{w}} =−4−u2\displaystyle = -\rt{\sqrt{4-u^2}}
Evaluate the second integralThe second integral has no uu on top, so we use the trig substitution u=2sin⁡θ\xs{u = 2\sin\theta}.
u=2sin⁡θ,du\displaystyle \xs{u = 2\sin\theta},\quad \dxc{du} =2cos⁡θ dθ,4−u2\displaystyle = \dxc{2\cos\theta\,d\theta},\quad \rt{\sqrt{4-u^2}} =2cos⁡θ\displaystyle = \rt{2\cos\theta}
∫du4−u2\displaystyle \int \frac{\dxc{du}}{\rt{\sqrt{4-u^2}}} =∫2cos⁡θ dθ2cos⁡θ\displaystyle = \int \frac{\dxc{2\cos\theta\,d\theta}}{\rt{2\cos\theta}} =∫dθ\displaystyle = \int d\theta =θ\displaystyle = \ang{\theta} =arcsin⁡u2\displaystyle = \ang{\arcsin\frac{u}{2}}
Combine and put xx backCombine both antiderivatives and replace u\xs{u} with x+1\xs{x + 1}.
−4−u2−arcsin⁡u2+C\displaystyle -\rt{\sqrt{4-u^2}} - \ang{\arcsin\frac{u}{2}} + C =−3−2x−x2−arcsin⁡x+12+C\displaystyle = -\rt{\sqrt{3-2x-x^2}} - \ang{\arcsin\frac{x+1}{2}} + C
7
Find the area of the region inside the circle x2+y2=4x^2 + y^2 = 4 and above the line y=1y = 1. (Challenge)

The region lies between the top half of the circle, y=4−x2y = \sqrt{4 - x^2}, and the line y=1y = 1. Where do they intersect?

For the integral of 4−x2\sqrt{4 - x^2}, set up a right triangle with hypotenuse 22 and leg xx. What is the substitution?

When x=3x = \sqrt3, we have sin⁡θ=32\sin\theta = \frac{\sqrt3}{2}. What is θ\theta?

Find the bounds and set up the areaSet the top curve equal to the bottom line to find where they intersect, then write the area as top minus bottom.
4−x2\displaystyle \rt{\sqrt{4-x^2}} =1  →  4−x2\displaystyle = 1 \;\to\; 4 - x^2 =1  →  x\displaystyle = 1 \;\to\; x =±3\displaystyle = \pm\sqrt3
A\displaystyle A =∫−33(4−x2−1) dx\displaystyle = \int_{-\sqrt3}^{\sqrt3} \big(\rt{\sqrt{4-x^2}} - 1\big)\,\dxc{dx}
Set up the trig substitution and boundsFor 4−x2\rt{\sqrt{4 - x^2}}, the hypotenuse is 2\nm{2}, so let x=2sin⁡θ\xs{x = 2\sin\theta} and convert the bounds to θ\ang{\theta}.
x=2sin⁡θ,dx\displaystyle \xs{x = 2\sin\theta}, \qquad \dxc{dx} =2cos⁡θ dθ,4−x2\displaystyle = \dxc{2\cos\theta\,d\theta}, \qquad \rt{\sqrt{4-x^2}} =2cos⁡θ\displaystyle = \rt{2\cos\theta}
x\displaystyle x =−3→θ=−π3,x\displaystyle = -\sqrt3 \to \ang{\theta = -\frac{\pi}{3}}, \qquad x =3→sin⁡θ\displaystyle = \sqrt3 \to \sin\theta =32→θ=π3\displaystyle = \frac{\sqrt3}{2} \to \ang{\theta = \frac{\pi}{3}}
Integrate the top curveUse the half-angle identity cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \frac{1 + \cos 2\theta}{2} to integrate from −π3\ang{-\frac{\pi}{3}} to π3\ang{\frac{\pi}{3}}.
∫−334−x2 dx\displaystyle \int_{-\sqrt3}^{\sqrt3} \rt{\sqrt{4-x^2}}\,\dxc{dx} =∫−π3π32cos⁡θ⋅2cos⁡θ dθ\displaystyle = \int_{\ang{-\frac{\pi}{3}}}^{\ang{\frac{\pi}{3}}} \rt{2\cos\theta}\cdot\dxc{2\cos\theta\,d\theta} =∫−π3π34cos⁡2θ dθ\displaystyle = \int_{\ang{-\frac{\pi}{3}}}^{\ang{\frac{\pi}{3}}} 4\cos^2\theta\,d\theta =∫−π3π32(1+cos⁡2θ) dθ\displaystyle = \int_{\ang{-\frac{\pi}{3}}}^{\ang{\frac{\pi}{3}}} 2(1 + \cos 2\theta)\,d\theta =[2θ+sin⁡2θ]−π3π3\displaystyle = \Big[2\ang{\theta} + \sin 2\theta\Big]_{\ang{-\frac{\pi}{3}}}^{\ang{\frac{\pi}{3}}} =4π3+3\displaystyle = \frac{4\pi}{3} + \sqrt3
Subtract the area under the lineThe line y=1y = 1 gives a rectangle of width 232\sqrt3 and height 11, so subtract its area to finish.
∫−331 dx\displaystyle \int_{-\sqrt3}^{\sqrt3} 1\,dx =23,A\displaystyle = 2\sqrt3, \qquad A =4π3+3−23\displaystyle = \frac{4\pi}{3} + \sqrt3 - 2\sqrt3 =4π3−3\displaystyle = \frac{4\pi}{3} - \sqrt3
Notice we can also get this without calculus by taking the area of the circular sector of angle 2π3\ang{\frac{2\pi}{3}} and subtracting the triangle under the chord.
12⋅22⋅2π3−12⋅2⋅2⋅sin⁡2π3\displaystyle \frac12\cdot \nm{2}^2\cdot\ang{\frac{2\pi}{3}} - \frac12\cdot \nm{2}\cdot \nm{2}\cdot\sin\frac{2\pi}{3} =4π3−3\displaystyle = \frac{4\pi}{3} - \sqrt3