Integration TechniquesTopic #25 of 32

Trigonometric Substitution

Using trig substitutions to evaluate integrals with radicals.

When to Use

Use trigonometric substitution for integrals containing:

  • a2−x2\sqrt{a^2 - x^2}
  • a2+x2\sqrt{a^2 + x^2}
  • x2−a2\sqrt{x^2 - a^2}

The Three Cases

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

Substitution: x=asin⁡(θ)x = a \sin(\theta), dx=acos⁡(θ) dθdx = a \cos(\theta) \, d\theta

Identity: a2−x2=acos⁡(θ)\sqrt{a^2 - x^2} = a \cos(\theta)

Range: −π2≤θ≤π2-\frac{\pi}{2} \leq \theta \leq \frac{\pi}{2}

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

Substitution: x=atan⁡(θ)x = a \tan(\theta), dx=asec⁡2(θ) dθdx = a \sec^2(\theta) \, d\theta

Identity: a2+x2=asec⁡(θ)\sqrt{a^2 + x^2} = a \sec(\theta)

Range: −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}

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

Substitution: x=asec⁡(θ)x = a \sec(\theta), dx=asec⁡(θ)tan⁡(θ) dθdx = a \sec(\theta) \tan(\theta) \, d\theta

Identity: x2−a2=atan⁡(θ)\sqrt{x^2 - a^2} = a \tan(\theta)

Range: 0≤θ<π20 \leq \theta < \frac{\pi}{2} or π≤θ<3π2\pi \leq \theta < \frac{3\pi}{2}

Steps

  1. Identify the form and make substitution
  2. Replace x\sqrt{\phantom{x}} expression using identity
  3. Substitute dxdx
  4. Simplify and integrate
  5. Use reference triangle to convert back to xx

Examples

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

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

Let x=2sin⁡(θ)x = 2\sin(\theta), dx=2cos⁡(θ) dθdx = 2\cos(\theta) \, d\theta

4−x2=4−4sin⁡2θ=2cos⁡(θ)\sqrt{4 - x^2} = \sqrt{4 - 4\sin^2\theta} = 2\cos(\theta)

=∫2cos⁡(θ)⋅2cos⁡(θ) dθ=4∫cos⁡2(θ) dθ= \int 2\cos(\theta) \cdot 2\cos(\theta) \, d\theta = 4 \int \cos^2(\theta) \, d\theta

=4∫1+cos⁡(2θ)2 dθ=2[θ+sin⁡(2θ)2]+C= 4 \int \frac{1 + \cos(2\theta)}{2} \, d\theta = 2\left[\theta + \frac{\sin(2\theta)}{2}\right] + C

=2θ+sin⁡(2θ)+C=2θ+2sin⁡(θ)cos⁡(θ)+C= 2\theta + \sin(2\theta) + C = 2\theta + 2\sin(\theta)\cos(\theta) + C

Convert back: sin⁡(θ)=x2\sin(\theta) = \frac{x}{2}, cos⁡(θ)=4−x22\cos(\theta) = \frac{\sqrt{4-x^2}}{2}

=2arcsin⁡(x2)+2⋅x2⋅4−x22+C= 2 \arcsin\left(\frac{x}{2}\right) + 2 \cdot \frac{x}{2} \cdot \frac{\sqrt{4-x^2}}{2} + C

=2arcsin⁡(x2)+x4−x22+C= 2 \arcsin\left(\frac{x}{2}\right) + \frac{x\sqrt{4-x^2}}{2} + C

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

∫1x2+9 dx\int \frac{1}{\sqrt{x^2 + 9}} \, dx

Let x=3tan⁡(θ)x = 3\tan(\theta), dx=3sec⁡2(θ) dθdx = 3\sec^2(\theta) \, d\theta

x2+9=3sec⁡(θ)\sqrt{x^2 + 9} = 3\sec(\theta)

=∫3sec⁡2(θ)3sec⁡(θ) dθ=∫sec⁡(θ) dθ= \int \frac{3\sec^2(\theta)}{3\sec(\theta)} \, d\theta = \int \sec(\theta) \, d\theta

=ln⁡∣sec⁡(θ)+tan⁡(θ)∣+C= \ln|\sec(\theta) + \tan(\theta)| + C

Convert back: tan⁡(θ)=x3\tan(\theta) = \frac{x}{3}, sec⁡(θ)=x2+93\sec(\theta) = \frac{\sqrt{x^2+9}}{3}

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

=ln⁡∣x2+9+x∣+C1= \ln\left|\sqrt{x^2+9} + x\right| + C_1

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

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

Let x=2sec⁡(θ)x = 2\sec(\theta), dx=2sec⁡(θ)tan⁡(θ) dθdx = 2\sec(\theta)\tan(\theta) \, d\theta

x2−4=2tan⁡(θ)\sqrt{x^2 - 4} = 2\tan(\theta)

=∫2tan⁡(θ)2sec⁡(θ)⋅2sec⁡(θ)tan⁡(θ) dθ=2∫tan⁡2(θ) dθ= \int \frac{2\tan(\theta)}{2\sec(\theta)} \cdot 2\sec(\theta)\tan(\theta) \, d\theta = 2 \int \tan^2(\theta) \, d\theta

=2∫(sec⁡2(θ)−1) dθ=2[tan⁡(θ)−θ]+C= 2 \int (\sec^2(\theta) - 1) \, d\theta = 2[\tan(\theta) - \theta] + C

Convert back: sec⁡(θ)=x2\sec(\theta) = \frac{x}{2}, tan⁡(θ)=x2−42\tan(\theta) = \frac{\sqrt{x^2-4}}{2}

=2⋅x2−42−2arcsec(x2)+C= 2 \cdot \frac{\sqrt{x^2-4}}{2} - 2 \text{arcsec}\left(\frac{x}{2}\right) + C

=x2−4−2arcsec(x2)+C= \sqrt{x^2 - 4} - 2 \text{arcsec}\left(\frac{x}{2}\right) + C

Example 4: Completing the square first

∫1x2+4x+8 dx\int \frac{1}{\sqrt{x^2 + 4x + 8}} \, dx

Complete the square: x2+4x+8=(x+2)2+4x^2 + 4x + 8 = (x + 2)^2 + 4

Let u=x+2u = x + 2, then u2+4\sqrt{u^2 + 4}

Let u=2tan⁡(θ)u = 2\tan(\theta), du=2sec⁡2(θ) dθdu = 2\sec^2(\theta) \, d\theta

=∫2sec⁡2(θ)2sec⁡(θ) dθ=∫sec⁡(θ) dθ= \int \frac{2\sec^2(\theta)}{2\sec(\theta)} \, d\theta = \int \sec(\theta) \, d\theta

=ln⁡∣sec⁡(θ)+tan⁡(θ)∣+C= \ln|\sec(\theta) + \tan(\theta)| + C

=ln⁡∣u2+42+u2∣+C= \ln\left|\frac{\sqrt{u^2+4}}{2} + \frac{u}{2}\right| + C

=ln⁡∣(x+2)2+4+(x+2)∣+C1= \ln\left|\sqrt{(x+2)^2+4} + (x+2)\right| + C_1