Skip to content

Trigonometric Substitution

In this lesson you’ll learn trigonometric substitution, a technique for handling integrals with square roots of quadratic expressions. It turns ugly radicals into clean trig functions.

When you see a square root like a2−x2\sqrt{a^2 - x^2}, x2+a2\sqrt{x^2 + a^2}, or x2−a2\sqrt{x^2 - a^2}, none of the earlier techniques (u-sub, by parts, trig integrals) will simplify it directly. Trig substitution works by replacing xx with a trig expression that eliminates the radical via a Pythagorean identity.

These are the identities that make trig substitution work. You’ll use them constantly in this lesson.

Pythagorean identities

sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta sec⁡2θ−1=tan⁡2θ\sec^2\theta - 1 = \tan^2\theta

Double angle and half-angle (for simplifying after substitution)

sin⁡(2θ)=2sin⁡θcos⁡θ\sin(2\theta) = 2\sin\theta\cos\theta cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \frac{1 + \cos 2\theta}{2} sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}

Key derivatives (you’ll need these for computing dx)

ddθ[sin⁡θ]=cos⁡θddθ[tan⁡θ]=sec⁡2θddθ[sec⁡θ]=sec⁡θtan⁡θ\frac{d}{d\theta}[\sin\theta] = \cos\theta \qquad \frac{d}{d\theta}[\tan\theta] = \sec^2\theta \qquad \frac{d}{d\theta}[\sec\theta] = \sec\theta\tan\theta

And one integral that shows up in the tan and sec cases

∫sec⁡θ dθ=ln⁡∣sec⁡θ+tan⁡θ∣+C\int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C

Each form of square root has a specific substitution.

For a2−x2\sqrt{a^2 - x^2}, let x=asin⁡θx = a\sin\theta

a2−x2=a2−a2sin⁡2θ=acos⁡θ\sqrt{a^2 - x^2} = \sqrt{a^2 - a^2\sin^2\theta} = a\cos\theta

For x2+a2\sqrt{x^2 + a^2}, let x=atan⁡θx = a\tan\theta

x2+a2=a2tan⁡2θ+a2=asec⁡θ\sqrt{x^2 + a^2} = \sqrt{a^2\tan^2\theta + a^2} = a\sec\theta

For x2−a2\sqrt{x^2 - a^2}, let x=asec⁡θx = a\sec\theta

x2−a2=a2sec⁡2θ−a2=atan⁡θ\sqrt{x^2 - a^2} = \sqrt{a^2\sec^2\theta - a^2} = a\tan\theta
  1. Identify which form is under the radical
  2. Make the substitution (x=asin⁡θx = a\sin\theta, atan⁡θa\tan\theta, or asec⁡θa\sec\theta)
  3. Compute dxdx
  4. Replace everything in the integral (no xx should remain)
  5. Simplify and integrate the trig expression
  6. Draw a reference triangle to convert back to xx

This is the key step students often skip. After integrating in terms of θ\theta, you need to get back to xx. Draw a right triangle where

For x=asin⁡θx = a\sin\theta: opposite =x= x, hypotenuse =a= a, adjacent =a2−x2= \sqrt{a^2 - x^2}

For x=atan⁡θx = a\tan\theta: opposite =x= x, adjacent =a= a, hypotenuse =x2+a2= \sqrt{x^2 + a^2}

For x=asec⁡θx = a\sec\theta: hypotenuse =x= x, adjacent =a= a, opposite =x2−a2= \sqrt{x^2 - a^2}

Read off whatever trig functions you need from the triangle.

Case 1: x = a sin θ θ x a √(a² − x²) Case 2: x = a tan θ θ x √(x² + a²) a Case 3: x = a sec θ θ √(x² − a²) x a
opposite hypotenuse adjacent θ angle

Example 1: a2−x2\sqrt{a^2 - x^2} form

Evaluate

∫9−x2 dx\int \sqrt{9 - x^2}\,dx

Here a=3a = 3. Let x=3sin⁡θx = 3\sin\theta, so dx=3cos⁡θ dθdx = 3\cos\theta\,d\theta.

9−x2=9−9sin⁡2θ=3cos⁡θ\sqrt{9 - x^2} = \sqrt{9 - 9\sin^2\theta} = 3\cos\theta

The integral becomes

∫3cos⁡θ⋅3cos⁡θ dθ=9∫cos⁡2θ dθ\int 3\cos\theta \cdot 3\cos\theta\,d\theta = 9\int \cos^2\theta\,d\theta

Use the half-angle identity cos⁡2θ=(1+cos⁡2θ)/2\cos^2\theta = (1 + \cos 2\theta)/2

9∫1+cos⁡2θ2 dθ=92(θ+sin⁡2θ2)+C9\int \frac{1 + \cos 2\theta}{2}\,d\theta = \frac{9}{2}\left(\theta + \frac{\sin 2\theta}{2}\right) + C

Since sin⁡(2θ)=2sin⁡θcos⁡θ\sin(2\theta) = 2\sin\theta\cos\theta

=92θ+92sin⁡θcos⁡θ+C= \frac{9}{2}\theta + \frac{9}{2}\sin\theta\cos\theta + C

Now convert back. From x=3sin⁡θx = 3\sin\theta: sin⁡θ=x/3\sin\theta = x/3, so θ=arcsin⁡(x/3)\theta = \arcsin(x/3). From the reference triangle: cos⁡θ=9−x2/3\cos\theta = \sqrt{9 - x^2}/3.

=92arcsin⁡ ⁣(x3)+x9−x22+C= \frac{9}{2}\arcsin\!\left(\frac{x}{3}\right) + \frac{x\sqrt{9 - x^2}}{2} + C

Example 2: x2+a2\sqrt{x^2 + a^2} form

Evaluate

∫dxx2+4\int \frac{dx}{\sqrt{x^2 + 4}}

Here a=2a = 2. Let x=2tan⁡θx = 2\tan\theta, so dx=2sec⁡2θ dθdx = 2\sec^2\theta\,d\theta.

x2+4=4tan⁡2θ+4=2sec⁡θ\sqrt{x^2 + 4} = \sqrt{4\tan^2\theta + 4} = 2\sec\theta

The integral becomes

∫2sec⁡2θ dθ2sec⁡θ=∫sec⁡θ dθ=ln⁡∣sec⁡θ+tan⁡θ∣+C\int \frac{2\sec^2\theta\,d\theta}{2\sec\theta} = \int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C

From the reference triangle with x=2tan⁡θx = 2\tan\theta: tan⁡θ=x/2\tan\theta = x/2, and the hypotenuse is x2+4\sqrt{x^2 + 4}, so sec⁡θ=x2+4/2\sec\theta = \sqrt{x^2 + 4}/2.

=ln⁡∣x2+42+x2∣+C=ln⁡∣x+x2+4∣+C1= \ln\left|\frac{\sqrt{x^2+4}}{2} + \frac{x}{2}\right| + C = \ln\left|x + \sqrt{x^2+4}\right| + C_1

(The ln(2) got absorbed into the constant.)

Example 3: x2−a2\sqrt{x^2 - a^2} form

Evaluate

∫dxx2−9(x>3)\int \frac{dx}{\sqrt{x^2 - 9}} \qquad (x > 3)

Here a=3a = 3. Let x=3sec⁡θx = 3\sec\theta, so dx=3sec⁡θtan⁡θ dθdx = 3\sec\theta\tan\theta\,d\theta.

x2−9=9sec⁡2θ−9=3tan⁡θ\sqrt{x^2 - 9} = \sqrt{9\sec^2\theta - 9} = 3\tan\theta

The integral becomes

∫3sec⁡θtan⁡θ dθ3tan⁡θ=∫sec⁡θ dθ=ln⁡∣sec⁡θ+tan⁡θ∣+C\int \frac{3\sec\theta\tan\theta\,d\theta}{3\tan\theta} = \int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C

From the reference triangle: sec⁡θ=x/3\sec\theta = x/3, tan⁡θ=x2−9/3\tan\theta = \sqrt{x^2 - 9}/3.

=ln⁡∣x3+x2−93∣+C=ln⁡∣x+x2−9∣+C1= \ln\left|\frac{x}{3} + \frac{\sqrt{x^2-9}}{3}\right| + C = \ln\left|x + \sqrt{x^2-9}\right| + C_1

Trig substitution shows up in problems involving circles, ellipses, and other curved geometry.

  • Computing the area of an ellipse or a circular segment requires integrals with a2−x2\sqrt{a^2 - x^2}
  • In physics, gravitational and electric field calculations for continuous charge distributions often produce these radical forms
  • Arc length and surface area formulas frequently lead to 1+(dy/dx)2\sqrt{1 + (dy/dx)^2}, which is the x2+a2\sqrt{x^2 + a^2} pattern
  • In engineering, stress analysis on curved beams and fluid flow around cylindrical objects use these integrals
For an integral containing $\sqrt{a^2 - x^2}$, the correct substitution is
For an integral containing $\sqrt{x^2 + a^2}$, the correct substitution is
After integrating with trig substitution, you convert back to $x$ using
$\int \sqrt{9 - x^2}\,dx$ evaluates to
After substituting $x = 3\sec\theta$ into $\int \frac{dx}{\sqrt{x^2 - 9}}$, the integral simplifies to