Trigonometric Integrals and Substitution
Integrate powers of sine and cosine with identities, and use trig substitution to handle square roots of a² − x², a² + x² and x² − a².
Welcome back!
Step 1 of 13Learn
Powers of sine and cosine
What is the area under y = sin²x from 0 to π? No basic rule applies, substitution with u = sin x leaves no cos x to pair with du, and parts goes in circles. The fix is algebra: rewrite the integrand with a power-reducing identity.
sin²x = (1 − cos 2x)/2 cos²x = (1 + cos 2x)/2
Now the integral is easy:
∫ sin²x dx = ∫ (1/2 − (1/2)cos 2x) dx = x/2 − (sin 2x)/4 + C.
Over [0, π], the sine term vanishes at both ends, leaving π/2. That's exactly half the area of the rectangle of height 1 over [0, π], which makes sense: sin²x and cos²x add to 1 and split the rectangle evenly over a full half period.
Identities are the main weapon in this lesson. You'll also use sin²x + cos²x = 1, 1 + tan²x = sec²x, and the double-angle formula sin 2x = 2 sin x cos x.
Step 2 of 13Practice · Work it out
Evaluate ∫ from 0 to π of sin²x dx. Round to three decimals.
Step 3 of 13Explore
Area under sin²x
Using sin²x = (1 − cos 2x)/2, the area from 0 to b is b/2 − sin(2b)/4. Slide b: over each full hump the area grows by exactly π/2, half the area of the 1-by-π rectangle around it.
- Area from 0 to b
- 0.8146
- Area of the rectangle b × 1, halved
- 0.8
Step 4 of 13Learn
Odd powers: save one factor
For ∫ sinᵐx·cosⁿx dx, the strategy depends on whether the powers are odd or even.
If either power is odd, peel off one factor of that function to serve as du, and convert the rest with sin²x + cos²x = 1.
Example. ∫ sin³x dx. The power of sine is odd, so save one sin x:
∫ sin²x·sin x dx = ∫ (1 − cos²x)·sin x dx.
Let u = cos x, du = −sin x dx:
−∫ (1 − u²) du = −u + u³/3 + C = −cos x + (cos³x)/3 + C.
Example. ∫ sin²x·cos³x dx. Cosine has the odd power, so save one cos x and write cos²x = 1 − sin²x. With u = sin x, the integral becomes ∫ u²(1 − u²) du = (sin³x)/3 − (sin⁵x)/5 + C.
If both powers are even, use the power-reducing identities, possibly several times. ∫ sin²x·cos²x dx becomes (1/4)∫ sin²(2x) dx = (1/8)∫ (1 − cos 4x) dx.
The same logic works for tangent and secant: save a sec²x when the power of secant is even (u = tan x), or save sec x·tan x when the power of tangent is odd (u = sec x).
Step 5 of 13Practice · Diagram
Strategy for ∫ sinᵐx·cosⁿx dx
Which branch handles ∫ sin²x·cos⁴x dx?
Tap the shape that answers the question, then press Check.
- Powers of sine and cosine
- Sine power odd
- Cosine power odd
- Both powers even
- Save one sin x, let u = cos x
Convert the remaining sin²x factors with sin²x = 1 − cos²x.
- Save one cos x, let u = sin x
Convert the remaining cos²x factors with cos²x = 1 − sin²x.
- Use half-angle identities
sin²x = (1 − cos 2x)/2 and cos²x = (1 + cos 2x)/2, repeatedly if needed.
Step 6 of 13Practice · Sort into groups
Choose the best first move for each integral.
Tap an item, then tap its group (or drag it there).
Step 7 of 13Learn
Trigonometric substitution
Integrals with √(a² − x²), √(a² + x²) or √(x² − a²) resist substitution because there's no x outside to match du. Instead, replace x with a trig expression so that a Pythagorean identity removes the square root.
- √(a² − x²): let x = a sin θ. Then a² − a²sin²θ = a²cos²θ, so the root becomes a cos θ.
- √(a² + x²): let x = a tan θ. Then a² + a²tan²θ = a²sec²θ, so the root becomes a sec θ.
- √(x² − a²): let x = a sec θ. Then the root becomes a tan θ.
Don't forget dx: with x = a sin θ, dx = a cos θ dθ.
Example: the area of a circle. The upper half of x² + y² = r² is y = √(r² − x²). Let x = r sin θ, dx = r cos θ dθ; as x goes from −r to r, θ goes from −π/2 to π/2:
∫ √(r² − x²) dx = ∫ r cos θ · r cos θ dθ = r² ∫ cos²θ dθ = r²·(π/2).
Doubling for the lower half gives πr², the formula you've known since middle school, now proved by calculus.
Example. ∫ dx/(x² + 9). Let x = 3 tan θ, dx = 3 sec²θ dθ, and x² + 9 = 9 sec²θ. The integral becomes ∫ (3 sec²θ)/(9 sec²θ) dθ = θ/3 + C = (1/3) arctan(x/3) + C. In general, ∫ dx/(x² + a²) = (1/a) arctan(x/a) + C.
Step 8 of 13Practice · Match the pairs
Match each expression with the substitution that removes its square root.
Tap an answer, then tap the place where it belongs (or drag it there).
- √(4 − x²)
- √(x² + 25)
- √(x² − 9)
- √(16 − 9x²)
Step 9 of 13Compare
The three trig substitutions at a glance
| Aspect | √(a² − x²) | √(a² + x²) | √(x² − a²) |
|---|---|---|---|
| Substitution | x = a sin θ | x = a tan θ | x = a sec θ |
| dx | a cos θ dθ | a sec²θ dθ | a sec θ tan θ dθ |
| Identity used | 1 − sin²θ = cos²θ | 1 + tan²θ = sec²θ | sec²θ − 1 = tan²θ |
| Root becomes | a cos θ | a sec θ | a tan θ |
| Triangle | opposite x, hypotenuse a | opposite x, adjacent a | hypotenuse x, adjacent a |
Step 10 of 13Learn
Getting back to x with a triangle
After integrating in θ, an indefinite integral must be rewritten in terms of x. A right triangle does this reliably.
Example. ∫ dx/(x² + 4)^(3/2).
Let x = 2 tan θ, so dx = 2 sec²θ dθ and x² + 4 = 4 sec²θ. Then (x² + 4)^(3/2) = 8 sec³θ, and
∫ (2 sec²θ)/(8 sec³θ) dθ = (1/4)∫ cos θ dθ = (1/4) sin θ + C.
Now draw the triangle for tan θ = x/2: opposite side x, adjacent side 2, hypotenuse √(x² + 4). Read off sin θ = x/√(x² + 4). The answer is
x/(4√(x² + 4)) + C.
Differentiate to check: the quotient rule gives [√(x² + 4) − x²/√(x² + 4)]/(4(x² + 4)), which simplifies to 4/(4(x² + 4)^(3/2)) = 1/(x² + 4)^(3/2). It works.
For definite integrals you can skip the triangle by converting the limits to θ-values, just as you converted limits to u-values in substitution. In the circle example, x = −r and x = r became θ = −π/2 and θ = π/2.
Trig substitution is longer than other methods, so check first whether a plain substitution works. ∫ x/√(9 − x²) dx looks like a trig-sub candidate, but u = 9 − x² finishes it immediately: −√(9 − x²) + C.
Step 11 of 13Note
Step 12 of 13Practice · Work it out
Evaluate ∫ from 0 to 3 of dx/(x² + 9). Round to four decimals.
Step 13 of 13Practice · Choose one
What is the most efficient first step for ∫ cos²x dx?
Lesson complete!