01 / 20

Trigonometric
Substitution

Master the technique of replacing variables with trig functions to evaluate integrals containing quadratic radicals like \(\sqrt{a^2 - x^2}\), \(\sqrt{a^2 + x^2}\), and \(\sqrt{x^2 - a^2}\).

Calculus 2

Why Trig Substitution?

Many integrals involve square roots of quadratic expressions that resist standard techniques like \(u\)-substitution or integration by parts. Expressions such as \(\sqrt{9 - x^2}\) or \(\sqrt{x^2 + 4}\) appear frequently in physics, geometry, and engineering.

The Three Radical Forms

\(\sqrt{a^2 - x^2}\)
Set \(x = a\sin\theta\). Uses \(1 - \sin^2\theta = \cos^2\theta\).
\(\sqrt{a^2 + x^2}\)
Set \(x = a\tan\theta\). Uses \(1 + \tan^2\theta = \sec^2\theta\).
\(\sqrt{x^2 - a^2}\)
Set \(x = a\sec\theta\). Uses \(\sec^2\theta - 1 = \tan^2\theta\).

The Reference Triangle Approach

Each substitution corresponds to a right triangle where the sides are labeled in terms of \(x\), \(a\), and the radical. After integrating in \(\theta\), use the triangle to convert back to \(x\).

θ
\(\sqrt{a^2 - x^2}\)
\(x\)
\(a\)
\(x = a\sin\theta\)
θ
\(a\)
\(x\)
\(\sqrt{a^2+x^2}\)
\(x = a\tan\theta\)
θ
\(a\)
\(\sqrt{x^2-a^2}\)
\(x\)
\(x = a\sec\theta\)

The Substitution Rules

Radical Form Substitution Identity Used Result
\(\sqrt{a^2 - x^2}\) \(x = a\sin\theta\) \(1 - \sin^2\theta = \cos^2\theta\) \(a\cos\theta\)
\(\sqrt{a^2 + x^2}\) \(x = a\tan\theta\) \(1 + \tan^2\theta = \sec^2\theta\) \(a\sec\theta\)
\(\sqrt{x^2 - a^2}\) \(x = a\sec\theta\) \(\sec^2\theta - 1 = \tan^2\theta\) \(a\tan\theta\)

Restrictions on \(\theta\)

Each substitution requires a restricted domain for \(\theta\) so the substitution is invertible (one-to-one) and the radical remains non-negative.

\(x = a\sin\theta\)
\(\theta \in \left[-\frac{\pi}{2},\,\frac{\pi}{2}\right]\), so \(\cos\theta \geq 0\).
\(x = a\tan\theta\)
\(\theta \in \left(-\frac{\pi}{2},\,\frac{\pi}{2}\right)\), so \(\sec\theta > 0\).
\(x = a\sec\theta\)
\(\theta \in \left[0, \frac{\pi}{2}\right) \cup \left[\pi, \frac{3\pi}{2}\right)\). This range ensures \(\tan\theta \ge 0\).

Trig Sub vs. \(u\)-Substitution

Feature Trig Substitution \(u\)-Substitution
When to use Radical of a quadratic: \(\sqrt{a^2 \pm x^2}\), \(\sqrt{x^2 - a^2}\) Integrand contains a function and its derivative
Direction Replace \(x\) with a trig expression Replace a complicated piece with a single \(u\)
Key challenge Converting back to \(x\) after integrating Identifying the right inner function
Complexity Often multi-step with trig identities Usually a single algebraic move

Step-by-Step Method

1
Identify the form. Match the radical to \(\sqrt{a^2 - x^2}\), \(\sqrt{a^2 + x^2}\), or \(\sqrt{x^2 - a^2}\) and read off \(a\).
2
Choose the substitution. Set \(x = a\sin\theta\), \(x = a\tan\theta\), or \(x = a\sec\theta\) accordingly. Compute \(dx\).
3
Substitute everything. Replace \(x\), \(dx\), and simplify the radical using the Pythagorean identity.
4
Integrate in \(\theta\). The resulting integral should involve only trig functions.
5
Back-substitute. Draw the reference triangle and express the answer in terms of \(x\).

Example 1: \(\displaystyle\int \frac{dx}{\sqrt{9 - x^2}}\)
1
Substitute: \(\sqrt{9 - 9\sin^2\theta} = \sqrt{9\cos^2\theta} = 3\cos\theta\).
2
Rewrite: \(\displaystyle\int \frac{3\cos\theta\,d\theta}{3\cos\theta} = \int d\theta = \theta + C\).
3
Back-substitute: Since \(x = 3\sin\theta\), we have \(\theta = \arcsin\left(\frac{x}{3}\right)\).

Example 2: \(\displaystyle\int \frac{dx}{\sqrt{x^2 + 4}}\)
1
Simplify radical: \(\sqrt{4\tan^2\theta + 4} = 2\sec\theta\).
2
Integral becomes: \(\displaystyle\int \frac{2\sec^2\theta\,d\theta}{2\sec\theta} = \int \sec\theta\,d\theta\).
3
Evaluate: \(\ln|\sec\theta + \tan\theta| + C\).
4
Back-sub: From the triangle, \(\tan\theta = \frac{x}{2}\) and \(\sec\theta = \frac{\sqrt{x^2+4}}{2}\).

Example 3: \(\displaystyle\int \frac{\sqrt{x^2-25}}{x}\,dx\)
1
Radical: \(\sqrt{25\sec^2\theta - 25} = 5\tan\theta\).
2
Substitute: \(\displaystyle\int \frac{5\tan\theta}{5\sec\theta}\cdot 5\sec\theta\tan\theta\,d\theta = 5\int\tan^2\theta\,d\theta\).
3
Use identity: \(\tan^2\theta = \sec^2\theta - 1\), so \(5\int(\sec^2\theta - 1)\,d\theta = 5(\tan\theta - \theta) + C\).
4
Back-sub: \(\tan\theta = \frac{\sqrt{x^2-25}}{5}\), \(\theta = \arcsec\left(\frac{x}{5}\right)\).

Completing the Square First

Sometimes the quadratic under the radical isn't in one of the three standard forms. You must complete the square first to reveal the pattern.

1
Complete the square on the quadratic expression under the radical.
2
Shift variable if needed (e.g., \(u = x + 3\)).
3
Apply trig sub on the shifted variable \(u\) using the standard table.

Back-Substitution with the Triangle

After integrating in \(\theta\), your answer may contain \(\sin\theta\), \(\cos\theta\), \(\tan\theta\), etc. To convert back to \(x\), draw the reference triangle and read off each trig function.

θ
\(a\)
\(x\)
\(\sqrt{a^2 + x^2}\)
From the triangle:
\(\tan\theta = \frac{x}{a}\)
\(\sec\theta = \frac{\sqrt{a^2+x^2}}{a}\)
\(\sin\theta = \frac{x}{\sqrt{a^2+x^2}}\)
\(\cos\theta = \frac{a}{\sqrt{a^2+x^2}}\)
\(\text{(for } x = a\tan\theta \text{ case)}\)

Definite Integrals: Change Limits

For definite integrals, you have two options. The cleaner method is to convert the limits of integration directly to \(\theta\)-limits.

Option 1: Change Limits
When \(x = a\sin\theta\), find \(\theta\) at each \(x\)-bound. Evaluate in \(\theta\) directly: no back-substitution needed.
Option 2: Back-Sub
Find the antiderivative in \(x\) first (using the triangle), then plug in the original \(x\)-limits.

Common Mistakes

✕ Forgetting \(dx\)
You must replace \(dx\) with the differential of your substitution. If \(x = 3\sin\theta\), then \(dx = 3\cos\theta\,d\theta\), not just \(d\theta\).
✕ Wrong Form Match
Confusing \(\sqrt{a^2 - x^2}\) with \(\sqrt{x^2 - a^2}\). The order matters: check whether \(a^2\) or \(x^2\) comes first under the radical.
✕ Dropping Absolute Values
Writing \(\sqrt{\cos^2\theta} = \cos\theta\) without checking the sign. This is only valid when the \(\theta\)-restriction guarantees \(\cos\theta \geq 0\).
✕ Skipping Back-Sub
Leaving the answer in terms of \(\theta\) for indefinite integrals. You must convert back to \(x\) using the reference triangle.
✕ Ignoring Completion
Trying trig sub on \(\sqrt{x^2+6x+5}\) directly without completing the square first. The expression must match a standard form.

Question 1 of 5

Which substitution is appropriate for the integral \(\displaystyle\int \frac{dx}{\sqrt{16 - x^2}}\)?

Question 2 of 5

After the substitution \(x = 3\tan\theta\), what does \(\sqrt{x^2 + 9}\) simplify to?

Question 3 of 5

Evaluate \(\displaystyle\int \frac{dx}{\sqrt{25 - x^2}}\).

Question 4 of 5

To evaluate \(\displaystyle\int \frac{dx}{\sqrt{x^2 + 6x + 13}}\), what is the first step?

Question 5 of 5

If \(x = 5\sec\theta\) and \(\theta \in [0, \pi/2)\), what is \(\sqrt{x^2 - 25}\) in terms of \(\theta\)?