Choosing a Trigonometric Substitution

The sign inside the root picks sine or tangent.

When u-substitution has nothing to cancel

Take ∫ √(4 − x²) dx. The substitution u = 4 − x² would need its derivative, −2x, beside the root to cancel du. There is no factor of x there, so that substitution leaves a mixture of u and x.

Compare ∫ x√(4 − x²) dx, which does have the x: with u = 4 − x² it becomes −½ ∫ √u du = −⅓(4 − x²)^(3/2) + C. Without the x, a different substitution is needed.

Substituting x = 2 sin θ

Let x = 2 sin θ, with θ between −π/2 and π/2, so that x runs from −2 to 2 as θ runs across. Then 4 − x² = 4 − 4sin²θ = 4(1 − sin²θ) = 4cos²θ, by the identity sin²θ + cos²θ = 1.

On that range cos θ is not negative, so √(4 − x²) = 2 cos θ. The root is gone.

θ = 45°adjacent = a cos θ = √(a² − x²) = 3.54x = a sin θ = 3.54a = 5

x = a sin θ names the opposite side, so √(a² − x²) is the adjacent side a cos θ, here 3.54

Swing θ until the adjacent side is 3

A right triangle with hypotenuse a = 5 and angle θ. The side opposite θ is x = 5 sin θ, and by Pythagoras the side next to it is √(25 − x²) = 5 cos θ. At θ = 45° both sides are 3.54. Drag θ to 53° and the side next to θ is 3.01 while x is 3.99.

The integral in θ

The dx changes too. Differentiating x = 2 sin θ gives dx = 2 cos θ dθ. So ∫ √(4 − x²) dx = ∫ 2 cos θ × 2 cos θ dθ = ∫ 4cos²θ dθ.

A cosine squared needs the double angle formula: cos²θ = (1 + cos 2θ)/2. So ∫ 4cos²θ dθ = ∫ 2(1 + cos 2θ) dθ = 2θ + sin 2θ + C.

Back to x through a triangle

The answer has to be in x. From x = 2 sin θ, sin θ = x/2, so θ = sin⁻¹(x/2).

For sin 2θ = 2 sin θ cos θ, cos θ is needed as well. Draw a right triangle with angle θ, hypotenuse 2 and opposite side x, so that sin θ = x/2. By Pythagoras the third side is √(4 − x²), so cos θ = √(4 − x²)/2.

Then sin 2θ = 2 × (x/2) × √(4 − x²)/2 = x√(4 − x²)/2, and ∫ √(4 − x²) dx = 2 sin⁻¹(x/2) + x√(4 − x²)/2 + C.

Changing the limits

In a definite integral the limits can travel with the substitution instead, and then there is no need to go back to x. For the integral of √(4 − x²) from 0 to 2: at x = 0, sin θ = 0, so θ = 0, and at x = 2, sin θ = 1, so θ = π/2. The value is [2θ + sin 2θ]₀^(π/2) = (π + sin π) − 0 = π.

That is right: y = √(4 − x²) is the top half of the circle of radius 2, and from 0 to 2 the region is a quarter of that circle, of area ¼ × π × 2² = π.

From 0 to 1, the upper limit becomes θ = π/6, since sin(π/6) = ½. The value is 2(π/6) + sin(π/3) = π/3 + √3/2 ≈ 1.913.

xy

The top half of the circle x² + y² = 4, shaded from x = 0 to x = 1. The region is a triangle with base 1 and height √3, of area √3/2, plus a sector of the circle between the radii to (1, √3) and (0, 2), whose angle is π/6 and whose area is ½ × 2² × π/6 = π/3. Together that is π/3 + √3/2 ≈ 1.913, the value of the integral.

The sign inside decides

Each substitution rests on an identity that turns a sum or difference of squares into one square. a² − x² takes x = a sin θ, because 1 − sin²θ = cos²θ. a² + x² takes x = a tan θ, because 1 + tan²θ = sec²θ. x² − a² takes x = a sec θ, because sec²θ − 1 = tan²θ.

The wrong choice leaves a sum that is not a square: with x = 5 tan θ, 25 − x² becomes 25 − 25tan²θ, which no identity simplifies.

A plus inside

For ∫ 1/(9 + x²) dx, let x = 3 tan θ. Then dx = 3sec²θ dθ, and 9 + x² = 9 + 9tan²θ = 9sec²θ. The integral becomes ∫ 3sec²θ/(9sec²θ) dθ = ∫ ⅓ dθ = θ/3 + C. Since θ = tan⁻¹(x/3), that is (1/3) tan⁻¹(x/3) + C.

The triangle does the work for a tangent substitution too. For ∫ 1/(1 + x²)^(3/2) dx, let x = tan θ, so dx = sec²θ dθ and (1 + x²)^(3/2) = sec³θ. The integral becomes ∫ sec²θ/sec³θ dθ = ∫ cos θ dθ = sin θ + C.

To go back, draw a right triangle with tan θ = x: opposite side x, adjacent side 1, hypotenuse √(1 + x²). Then sin θ = x/√(1 + x²), and the integral is x/√(1 + x²) + C. From 0 to 1 it is 1/√2 ≈ 0.707.

The usual mistakes

Leaving out dx. Replacing √(4 − x²) by 2 cos θ and stopping gives ∫ 2 cos θ dθ, which is missing a whole factor of 2 cos θ; dx = 2 cos θ dθ supplies it.

Keeping the old limits. After x = 2 sin θ the variable is an angle, so the limits 0 and 2 become 0 and π/2.

Leaving the answer in θ. An indefinite integral in x needs an answer in x, which the right triangle gives.

Tangent for a minus, or sine for a plus. The identity has to make a single square: 1 − sin²θ for a² − x², 1 + tan²θ for a² + x².

Practice Choosing a Trigonometric Substitution in the app