Calculus › Section I · Integration techniques and improper integrals › Topic I.4

Trigonometric substitution

Square roots like √(a² − x²) appear in circle areas, arc lengths and distance calculations in physics — and they resist substitution, parts and every algebraic trick. Trigonometric substitution makes the root vanish: replace x with a trigonometric function chosen so that a Pythagorean identity turns the expression under the root into a perfect square.

The three cases

Match the sign pattern under the root to the identity that neutralises it. For \(\sqrt{a^2 - x^2}\), substitute \(x = a\sin\theta\): then \(a^2 - x^2 = a^2(1 - \sin^2\theta) = a^2\cos^2\theta\), so the root becomes \(a\cos\theta\). For \(\sqrt{a^2 + x^2}\), substitute \(x = a\tan\theta\): then \(a^2 + x^2 = a^2(1 + \tan^2\theta) = a^2\sec^2\theta\), root \(a\sec\theta\). For \(\sqrt{x^2 - a^2}\), substitute \(x = a\sec\theta\): then \(x^2 - a^2 = a^2(\sec^2\theta - 1) = a^2\tan^2\theta\), root \(a\tan\theta\). Minus with \(a^2\) first needs sine; plus needs tangent; \(x^2\) first needs secant.

Choosing θ so the root stays positive

A square root is never negative, so strictly \(\sqrt{a^2\cos^2\theta} = a|\cos\theta|\) (with \(a > 0\)). Each substitution therefore comes with a range of \(\theta\) that makes the absolute value unnecessary. For \(x = a\sin\theta\), take \(-\frac{\pi}{2} \le \theta \le \frac{\pi}{2}\), where \(\cos\theta \ge 0\); this is the range of arcsine, so \(\theta = \arcsin\frac{x}{a}\). For \(x = a\tan\theta\), take \(-\frac{\pi}{2} < \theta < \frac{\pi}{2}\), where \(\sec\theta > 0\). For \(x = a\sec\theta\) with \(x \ge a\), take \(0 \le \theta < \frac{\pi}{2}\), where \(\tan\theta \ge 0\). That is why the secant example below assumes \(x > 2\).

How a substitution proceeds

Trigonometric substitution runs like ordinary substitution, but in reverse: instead of naming a new \(u\) as a function of \(x\), you replace \(x\) by a function of \(\theta\). Two conversions must happen every time. First the root simplifies, as in the three cases above. Second, \(dx\) itself converts: \(x = a\sin\theta\) gives \(dx = a\cos\theta\,d\theta\); \(x = a\tan\theta\) gives \(dx = a\sec^2\theta\,d\theta\); \(x = a\sec\theta\) gives \(dx = a\sec\theta\tan\theta\,d\theta\). Forgetting the \(dx\) conversion is one of the most common errors in the technique. What is left is a trigonometric integral in \(\theta\) — which is exactly the skill of the previous topic: odd powers, even powers, secants and tangents.

Worked example: the semicircle root

Evaluate \(\int \sqrt{9 - x^2}\,dx\). Substitute \(x = 3\sin\theta\), \(dx = 3\cos\theta\,d\theta\), \(\sqrt{9 - x^2} = 3\cos\theta\):

\int 9\cos^2\theta\,d\theta = 9\left(\frac{\theta}{2} + \frac{\sin 2\theta}{4}\right) = \frac{9\theta}{2} + \frac{9\sin\theta\cos\theta}{2}

Convert back with \(\theta = \arcsin\frac{x}{3}\), \(\sin\theta = \frac{x}{3}\), \(\cos\theta = \frac{\sqrt{9-x^2}}{3}\):

\frac{9}{2}\arcsin\frac{x}{3} + \frac{x\sqrt{9-x^2}}{2} + C

For the definite version, change the limits instead: \(x = 0\) gives \(\theta = 0\) and \(x = 3\) gives \(\theta = \frac{\pi}{2}\), so \(\int_0^3 \sqrt{9 - x^2}\,dx = 9\int_0^{\pi/2}\cos^2\theta\,d\theta = \frac{9\pi}{4}\) — exactly a quarter of the circle's area \(\pi \cdot 3^2\), as the geometry demands.

The reference triangle

The clean way to convert back to \(x\) is a right triangle labelled from the substitution. For \(x = 3\sin\theta\): the sine is opposite over hypotenuse, so the side opposite \(\theta\) is \(x\), the hypotenuse is 3, and the adjacent side is \(\sqrt{9 - x^2}\) (Pythagoras). Read any trig function of \(\theta\) straight off the triangle: \(\cos\theta = \frac{\sqrt{9-x^2}}{3}\), \(\tan\theta = \frac{x}{\sqrt{9-x^2}}\). For \(x = a\tan\theta\): opposite \(x\), adjacent \(a\), hypotenuse \(\sqrt{a^2 + x^2}\). For \(x = a\sec\theta\): hypotenuse \(x\), adjacent \(a\), opposite \(\sqrt{x^2 - a^2}\). Drawing the triangle beats memorising conversion formulas — and it is self-checking, because the sides must satisfy Pythagoras.

Worked example: a plus-sign root

Evaluate \(\int \frac{dx}{(x^2 + 4)^{3/2}}\). With \(x = 2\tan\theta\), \(dx = 2\sec^2\theta\,d\theta\), and \(x^2 + 4 = 4\sec^2\theta\), so the denominator is \((4\sec^2\theta)^{3/2} = 8\sec^3\theta\):

\int \frac{2\sec^2\theta}{8\sec^3\theta}\,d\theta = \frac{1}{4}\int \cos\theta\,d\theta = \frac{\sin\theta}{4} + C

From the triangle (opposite \(x\), adjacent 2, hypotenuse \(\sqrt{x^2+4}\)): \(\sin\theta = \frac{x}{\sqrt{x^2+4}}\), so

\int \frac{dx}{(x^2+4)^{3/2}} = \frac{x}{4\sqrt{x^2+4}} + C

Check by differentiating: \(\frac{1}{4}\left(\frac{1}{\sqrt{x^2+4}} - \frac{x^2}{(x^2+4)^{3/2}}\right) = \frac{4}{4(x^2+4)^{3/2}}\) ✓.

Worked example: the reversed root

Evaluate \(\int \frac{dx}{\sqrt{x^2 - 4}}\) for \(x > 2\). With \(x = 2\sec\theta\), \(dx = 2\sec\theta\tan\theta\,d\theta\), and \(\sqrt{x^2 - 4} = 2\tan\theta\):

\int \frac{2\sec\theta\tan\theta}{2\tan\theta}\,d\theta = \int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C

using the standard secant integral from the previous topic. The triangle (hypotenuse \(x\), adjacent 2, opposite \(\sqrt{x^2-4}\)) gives \(\sec\theta = \frac{x}{2}\) and \(\tan\theta = \frac{\sqrt{x^2-4}}{2}\):

\ln\left|\frac{x + \sqrt{x^2-4}}{2}\right| + C

The \(\frac{1}{2}\) inside the logarithm is absorbed by the constant \(C\) — the answer is often written simply \(\ln\left|x + \sqrt{x^2-4}\right| + C\).

Applied: the field above a charged rod

A classic physics integral computes the electric field at a point a distance \(d\) above the midpoint of a uniformly charged rod. Chopping the rod into pieces and adding their contributions produces an integral of the form \(\int \frac{dx}{(x^2 + d^2)^{3/2}}\) — the exact shape of the worked example above, with \(d\) in place of 2. The antiderivative \(\frac{x}{d^2\sqrt{x^2+d^2}}\), evaluated between the rod's ends and multiplied by the physical constants, gives the field, and the same integral reappears when computing magnetic fields around wires. Square roots of quadratics are not a calculus ornament: they are the signature of distance in two dimensions, and trigonometric substitution is the standard tool for taming them.

Common mistakes to avoid

Mixing up the three cases is the top error: minus-before-\(a^2\) takes sine, plus takes tangent, and \(x^2\) minus \(a^2\) takes secant — match the sign pattern to the identity before doing anything else. Forgetting to convert \(dx\) into its \(d\theta\) form wrecks the problem silently; write the \(dx\) conversion on the same line as the substitution. Forgetting to convert the final answer back to \(x\) leaves an answer in the wrong variable — the reference triangle is the reliable route. For definite integrals, either change the limits to \(\theta\)-values or convert back to \(x\) before evaluating; never mix. And do not reach for trigonometric substitution when a basic inverse-trig pattern already fits: \(\int \frac{dx}{\sqrt{9 - x^2}}\) is \(\arcsin\frac{x}{3} + C\) directly, no substitution needed.

Key takeaways

Trigonometric substitution removes roots of quadratics: \(\sqrt{a^2 - x^2}\) with \(x = a\sin\theta\), \(\sqrt{a^2 + x^2}\) with \(x = a\tan\theta\), \(\sqrt{x^2 - a^2}\) with \(x = a\sec\theta\). Convert the root, convert \(dx\), integrate the resulting trigonometric integral with the previous topic's techniques, and convert back with a reference triangle. Recognise the two standard shortcuts \(\int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C\) and \(\int \frac{dx}{a^2 + x^2} = \frac{1}{a}\arctan\frac{x}{a} + C\) so a full substitution is not wasted on them. The method is the calculus workhorse behind circle, arc-length and two-dimensional-distance problems throughout physics.

Flashcards

Flashcard

√(a² − x²)

Substitute x = a sin θ

Becomes a cos θ; minus with a² first takes sine.

Test your understanding

Question 1 of 5

Which substitution removes the root in an integral containing √(16 − x²)?

Question 2 of 5

After substituting x = 4 sin θ, the expression √(16 − x²) becomes which function of θ?

Question 3 of 5

An integral is worked with x = 3 tan θ. From the reference triangle, what is sin θ in terms of x?

Question 4 of 5

Which standard integral converts a completed x² − a² substitution back into logarithms?

Question 5 of 5

Which substitution suits ∫dx/√(x² − 7)?

Standards: Beyond AP

← Previous topicNext topic →