Master integrals containing √(a²±x²) and √(x²-a²) using step‑by‑step trig substitution. Visualize with the reference triangle.
Trigonometric substitution is a powerful technique for integrals involving radicals of the forms √(a²−x²), √(x²+a²), or √(x²−a²). By substituting x with a trigonometric function of θ, the radical simplifies using Pythagorean identities, transforming the integral into a trigonometric integral that is often easier to evaluate.
Three core cases:
| Form | Substitution | Differential | Identity used | Range of θ (typical) |
|---|---|---|---|---|
| √(a²−x²) | x = a sinθ | dx = a cosθ dθ | 1−sin²θ = cos²θ | −π/2 ≤ θ ≤ π/2 |
| √(x²+a²) | x = a tanθ | dx = a sec²θ dθ | 1+tan²θ = sec²θ | −π/2 < θ < π/2 |
| √(x²−a²) | x = a secθ | dx = a secθ tanθ dθ | sec²θ−1 = tan²θ | 0 ≤ θ < π/2 or π/2 < θ ≤ π |
The ranges ensure the square root can be written without absolute values (e.g., cosθ ≥ 0 for sin substitution).
Each substitution is chosen to turn the expression under the square root into a perfect square:
Let x = a sinθ, dx = a cosθ dθ. Then √(a²−x²) = √(a²−a² sin²θ) = a√(cos²θ) = a cosθ (for −π/2 ≤ θ ≤ π/2).
Integral becomes ∫ a cosθ · a cosθ dθ = a² ∫ cos²θ dθ = a² ∫ (1+cos2θ)/2 dθ = a²(θ/2 + sin2θ/4) + C.
Now back‑substitute: sinθ = x/a → θ = arcsin(x/a). From the triangle, cosθ = √(a²−x²)/a, and sin2θ = 2 sinθ cosθ = 2(x/a)(√(a²−x²)/a).
Thus final result: ∫ √(a²−x²) dx = (a²/2) arcsin(x/a) + (x/2)√(a²−x²) + C.
Let x = a tanθ, dx = a sec²θ dθ. Then √(x²+a²) = √(a² tan²θ + a²) = a√(sec²θ) = a secθ (for −π/2 < θ < π/2).
Integral becomes ∫ (a sec²θ dθ) / (a secθ) = ∫ secθ dθ = ln|secθ + tanθ| + C.
From the triangle: tanθ = x/a, secθ = √(x²+a²)/a. So back‑substitution gives ∫ dx/√(x²+a²) = ln| x/a + √(x²+a²)/a | + C = ln| x + √(x²+a²) | − ln|a| + C.
The constant −ln|a| can be absorbed into C, so final answer: ln| x + √(x²+a²) | + C.
Let x = a secθ, dx = a secθ tanθ dθ. Then √(x²−a²) = √(a² sec²θ − a²) = a√(tan²θ) = a tanθ (for 0 < θ < π/2).
The integrand becomes (a tanθ) / (a secθ) · a secθ tanθ dθ = a tan²θ dθ = a (sec²θ − 1) dθ.
Integral: a ∫ (sec²θ − 1) dθ = a (tanθ − θ) + C.
From the triangle: tanθ = √(x²−a²)/a, and secθ = x/a ⇒ θ = arcsec(x/a). So final result: ∫ √(x²−a²)/x dx = √(x²−a²) − a arcsec(x/a) + C.
For definite integrals, you can either:
Remember to adjust the range of θ so that the substitution is one‑to‑one on the interval of integration.
For integrals involving √(x²+a²) or √(x²−a²), hyperbolic substitutions (x = a sinh t or x = a cosh t) can sometimes be more efficient because the hyperbolic identities are simpler (cosh²t−sinh²t = 1). However, trigonometric substitution is more traditional and often preferred when the final answer is expected in terms of inverse trigonometric functions. Both methods are valid.
Calculator features: symbolic manipulation with nerdamer.js, dynamic reference triangle, step display. Works for many algebraic combinations. The tool shows the substitution and simplification steps; the actual integration with respect to θ can be performed using our Integral Calculator.
√(a²−x²) x = a sinθ√(x²+a²) x = a tanθ√(x²−a²) x = a secθ