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 a2x2\sqrt{a^2 - x^2}, x2+a2\sqrt{x^2 + a^2}, or x2a2\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

sin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1 1+tan2θ=sec2θ1 + \tan^2\theta = \sec^2\theta sec2θ1=tan2θ\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 cos2θ=1+cos2θ2\cos^2\theta = \frac{1 + \cos 2\theta}{2} sin2θ=1cos2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}

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

ddθ[sinθ]=cosθddθ[tanθ]=sec2θ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θ=lnsecθ+tanθ+C\int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta| + C

Each form of square root has a specific substitution.

For a2x2\sqrt{a^2 - x^2}, let x=asinθx = a\sin\theta

a2x2=a2a2sin2θ=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=a2tan2θ+a2=asecθ\sqrt{x^2 + a^2} = \sqrt{a^2\tan^2\theta + a^2} = a\sec\theta

For x2a2\sqrt{x^2 - a^2}, let x=asecθx = a\sec\theta

x2a2=a2sec2θ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 =a2x2= \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 =x2a2= \sqrt{x^2 - a^2}

Read off whatever trig functions you need from the triangle.

Example 1: a2x2\sqrt{a^2 - x^2} form

Evaluate

9x2dx\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.

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

The integral becomes

3cosθ3cosθdθ=9cos2θdθ\int 3\cos\theta \cdot 3\cos\theta\,d\theta = 9\int \cos^2\theta\,d\theta

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

91+cos2θ2dθ=92(θ+sin2θ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θ=9x2/3\cos\theta = \sqrt{9 - x^2}/3.

=92arcsin ⁣(x3)+x9x22+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=2sec2θdθdx = 2\sec^2\theta\,d\theta.

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

The integral becomes

2sec2θdθ2secθ=secθdθ=lnsecθ+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.

=lnx2+42+x2+C=lnx+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: x2a2\sqrt{x^2 - a^2} form

Evaluate

dxx29(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.

x29=9sec2θ9=3tanθ\sqrt{x^2 - 9} = \sqrt{9\sec^2\theta - 9} = 3\tan\theta

The integral becomes

3secθtanθdθ3tanθ=secθdθ=lnsecθ+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θ=x29/3\tan\theta = \sqrt{x^2 - 9}/3.

=lnx3+x293+C=lnx+x29+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 a2x2\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