Trigonometric substitution: how to choose and use it

Some integrals become easier when a square root can be rewritten using a Pythagorean trig identity. Trigonometric substitution lets us choose a new variable that makes that happen. We’ll match the expression to sine, tangent, or secant, then work through the substitution and back to x.

When is trig substitution useful?

The usual patterns are a² − x², a² + x², and x² − a², especially inside a square root, with a > 0. The goal is to turn the expression into a squared trig function so that the radical can simplify.

A simpler substitution, integration by parts, or partial fractions may be quicker for a particular integral. Trig substitution is another method to consider when those approaches do not make the integral easier.

How to choose sine, tangent, or secant

The three standard trig substitutions, with a > 0
ExpressionSubstitution and identity
a² − x²x = a sin θ; 1-sin2θ=cos2θ
a² + x²x = a tan θ; 1+tan2θ=sec2θ
x² − a²x = a sec θ; sec2θ-1=tan2θ

Differentiate the substitution to replace dx. Use dx=acosθdθ for sine, dx=asec2θdθ for tangent, and dx=asecθ·tanθdθ for secant.

Choose an angle range for the square root

For x = a sin θ, choose -π2≤θ≤π2. Cosine is nonnegative on that range, so a2-x2=acosθ. For x = a tan θ, use -π2<θ<π2; secant is positive there, giving a2+x2=asecθ.

For the secant substitution, x2-a2=a|tanθ|. On the branch x ≥ a, choose 0≤θ<π2, so this becomes a tan θ. On the branch x ≤ −a, we can choose π2<θ≤π, where it becomes −a tan θ. We work on intervals where the original integrand is defined; a denominator may exclude the endpoints.

Example: Integrate 4-x2

Let’s evaluate the following integral. Its radical has the form a² − x² with a = 2, so we choose a sine substitution.

∫4-x2dx
x=2sinθ,dx=2cosθdθ

On -π2≤θ≤π2, the radical simplifies to 2 cos θ. Replacing both the radical and dx gives

∫(2cosθ)(2cosθ)dθ
=4∫cos2θdθ

Use the half-angle identity cos2θ=1+cos(2θ)2 to put the integrand into a form we can integrate.

4∫1+cos(2θ)2dθ
=2θ+sin(2θ)+C

Back-substitute to write the answer in x

From x = 2 sin θ, we have θ=arcsin(x2) and sinθ=x2. The same identity that simplified the radical gives cos θ = 4-x22.

Reference triangle for a sine substitutionFor positive x less than two, the hypotenuse is two, the side opposite theta is x, and the adjacent side is square root of four minus x squared.sin θ = x/22x√(4 − x²)θ
For 0 < x < 2, this reference triangle gives cos θ = 4-x22. The algebraic identity also applies for −2 < x < 0 with the chosen angle range.

Use sin(2θ) = 2 sin θ cos θ to replace the double-angle term:

sin(2θ)=2x2·4-x22
=x4-x22

Substituting these expressions into the antiderivative gives

2arcsin(x2)+x4-x22+C

This is an antiderivative on −2 < x < 2. Differentiating it gives 4-x2, which checks the result.

What if the quadratic has other coefficients?

Match the entire squared term. For 9-25x2, the sine substitution is x=35sinθ, so 25x² becomes 9 sin²θ. If there is a linear term, completing the square can reveal the needed form. For example, x2+6x+5=(x+3)2-4, and setting u = x + 3 produces u² − 4.

The steps for a trig-substitution integral

  1. Rewrite the quadratic if needed, then identify its standard form.
  2. Choose the trig substitution and a range that gives the appropriate signs.
  3. Differentiate the substitution to find dx.
  4. Replace every x and dx, simplify using the identity, and integrate.
  5. Use the substitution and identities, or a reference triangle, to return to the original variable.