Courses · Calculus 2 · Unit guide
Calculus 2: Trigonometric integrals and trig substitution
How to handle powers of trig functions and the three substitutions for square roots
This unit covers: Powers of sine, cosine, secant and tangent; the three substitutions for square roots of quadratics.

Do you know which factor to save when you integrate sine cubed times cosine squared? That one choice decides everything in calculus trig integrals. We'll cover powers of sine, cosine, secant and tangent, then the three trig substitutions for square roots.
An Odd Power of Sine or Cosine
Take the integral of sine cubed x times cosine squared x. Since sine's power is odd, peel off one sine and rewrite sine squared as one minus cosine squared. Let u be cosine x, so du is minus sine x dx. The integral becomes minus the integral of u squared minus u to the fourth, giving minus cosine cubed over three plus cosine to the fifth over five, plus C.
∫sin³x cos²x dx = ∫(1−cos²x)cos²x sin x dx u = cos x, du = −sin x dx = −∫(u² − u⁴) du = −cos³x/3 + cos⁵x/5 + C
Key points.
- If sine's power is odd, save one sine
- Rewrite sin² as 1 − cos², then let u = cos x
- Odd cosine works the same way with u = sin x
Both Powers Even: Half-Angle Identities
When both powers are even, there's no spare factor to save, so you lower the powers instead. Write sine squared x as one minus cosine two x, all over two, and cosine squared x as one plus cosine two x, over two. Then the integral of sine squared x becomes the integral of that half-angle form, which gives x over two minus sine two x over four, plus C.
sin²x = (1 − cos2x)/2 cos²x = (1 + cos2x)/2 ∫sin²x dx = ∫(1 − cos2x)/2 dx = x/2 − sin2x/4 + C
Key points.
- No odd power means nothing to save
- Use half-angle identities to lower the power
- Repeat for higher even powers like sin⁴x
An Even Power of Secant
Secant and tangent follow the same idea. In the integral of tangent squared x times secant to the fourth x, the secant power is even, so save one secant squared. Rewrite the other secant squared as one plus tangent squared. Let u be tangent x, so du is secant squared x dx. You get the integral of u squared plus u to the fourth, which is tangent cubed over three plus tangent to the fifth over five, plus C.
∫tan²x sec⁴x dx = ∫tan²x(1+tan²x)sec²x dx u = tan x, du = sec²x dx = ∫(u² + u⁴) du = tan³x/3 + tan⁵x/5 + C
Key points.
- Save sec²x, because it's the derivative of tan x
- Rewrite the remaining secants with 1 + tan²x
- Substitute u = tan x
An Odd Power of Tangent
If the tangent power is odd and there's at least one secant, save secant x tangent x instead. In the integral of tangent cubed x times secant x, that leaves tangent squared, which you rewrite as secant squared minus one. Let u be secant x, so du is secant x tangent x dx. The integral of u squared minus one gives secant cubed over three minus secant x, plus C.
∫tan³x sec x dx = ∫(sec²x − 1) sec x tan x dx u = sec x, du = sec x tan x dx = ∫(u² − 1) du = sec³x/3 − sec x + C
Key points.
- Save sec x tan x, the derivative of sec x
- Rewrite the remaining tan² as sec² − 1
- Substitute u = sec x
Two Results Worth Memorising
Some cases don't fit either pattern, so a couple of results are worth knowing by heart. The integral of tangent x is the natural log of the absolute value of secant x, plus C. The integral of secant x is the natural log of the absolute value of secant x plus tangent x, plus C. An odd power of secant on its own, like secant cubed, needs integration by parts and ends up using this second result.
∫sec x dx = ln|sec x + tan x| + C Standard integral of secant
Key points.
- ∫tan x dx = ln|sec x| + C
- ∫sec x dx = ln|sec x + tan x| + C
- Odd powers of secant alone, like sec³x, need integration by parts
The Three Trig Substitutions
Now for trig substitution, which handles square roots of quadratics. Each form matches a Pythagorean identity. For the square root of a squared minus x squared, let x be a sine theta, and the root becomes a cosine theta. For a squared plus x squared, let x be a tangent theta, giving a secant theta. For x squared minus a squared, let x be a secant theta, giving a tangent theta.
Key points.
- √(a² − x²): let x = a sin θ, root becomes a cos θ
- √(a² + x²): let x = a tan θ, root becomes a sec θ
- √(x² − a²): let x = a sec θ, root becomes a tan θ
How a Trig Substitution Runs
Every trig substitution follows the same routine. First, match the square root to one of the three forms. Second, replace x and also dx, since forgetting dx is a common slip. Third, use the identity to turn the root into a single trig function. Fourth, integrate in theta. Finally, draw a right triangle from your substitution and read off the trig functions you need to write the answer in x.
- Match the root to a²−x², a²+x² or x²−a²
- Substitute x and dx in terms of θ
- Simplify the root with a Pythagorean identity
- Integrate with respect to θ
- Use a right triangle to convert back to x
Worked Example with x = 2 sin θ
Let's integrate one over x squared times the square root of four minus x squared. Let x be two sine theta, so dx is two cosine theta d theta. The root becomes two cosine theta. After cancelling, the integral is one quarter of the integral of cosecant squared theta, which is minus one quarter cotangent theta plus C. The triangle gives cotangent theta as root four minus x squared over x, so the answer is minus that root over four x, plus C.
x = 2sinθ, dx = 2cosθ dθ √(4 − x²) = 2cosθ ∫dx/(x²√(4−x²)) = ¼∫csc²θ dθ = −¼ cotθ + C cotθ = √(4 − x²)/x = −√(4 − x²)/(4x) + C
Key points.
- The root of 4 − x² suggests x = 2 sin θ
- The integral simplifies to a quarter of csc²θ
- The triangle gives cot θ = √(4 − x²)/x
Completing the Square First
Sometimes the quadratic under the root has a middle term, like x squared plus two x plus five, so it doesn't match any of the three forms yet. Complete the square first, which turns it into x plus one, all squared, plus four. Now let u be x plus one, and you're looking at u squared plus four, which is the tangent form, so you'd let u be two tangent theta.
Key points.
- A quadratic with an x term doesn't match a form yet
- Complete the square: x² + 2x + 5 = (x + 1)² + 4
- Shift with u = x + 1, then let u = 2 tan θ
Remember this
The one thing to remember: an identity turns the integral into a simple substitution, whether you save one factor or swap x for a trig function. Now quiz yourself on which strategy each integral needs.
Practice this unit
- Calculus 2: Trigonometric Integrals and Trig Substitution quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Integration By Parts quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Partial Fractions quiz11 multiple-choice questions with explanations · no account needed
- Calculus 2: Trigonometric Integrals and Trig Substitution34 flashcards · study free
- Calculus 2: Integration By Parts34 flashcards · study free
- Calculus 2: Partial Fractions34 flashcards · study free
- Calculus 2: Improper Integrals32 flashcards · study free
Every Calculus 2 deck and quiz: the Calculus 2 page.
Other Calculus 2 unit guides
- Integration by partsStudy guide
- Partial fractionsStudy guide
- Improper integralsStudy guide
- Area, volume and arc lengthStudy guide
- Work and other applicationsStudy guide
- Sequences and series basicsStudy guide
- Convergence testsStudy guide
- Power series and Taylor seriesStudy guide
- Parametric equations and polar coordinatesStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.