Some integrals are blocked by a square root containing a quadratic — √(a² − x²), √(a² + x²), √(x² − a²) — and no amount of u-substitution or parts will move them. Trigonometric substitution is the technique built for exactly this wall: replace x with a trigonometric expression chosen so the Pythagorean identities collapse the root into a single term. Choosing the right substitution, and converting back at the end, are the two places the method is won or lost. This calculator performs trigonometric-substitution integrals directly, so you can verify your choice of substitution and your final back-substitution.
Quick Answer
Match the substitution to the form: √(a² − x²) → x = a·sin θ; √(a² + x²) → x = a·tan θ; √(x² − a²) → x = a·sec θ. Each choice makes the root collapse via a Pythagorean identity: 1 − sin²θ = cos²θ, 1 + tan²θ = sec²θ, sec²θ − 1 = tan²θ.
Choosing the Substitution Is the Whole Battle
The three forms look similar and are constantly confused, so anchor them to the identity each one exploits. If the root is a² − x², setting x = a sin θ turns it into a² − a² sin²θ = a² cos²θ, whose root is a cos θ — clean, because cos θ is non-negative on the substitution's interval. If the root is a² + x², x = a tan θ gives a² sec²θ under the root and a sec θ outside it. If the root is x² − a², x = a sec θ yields a tan θ. The pattern to remember is that the substitution is always built from the variable term's partner in the matching identity.
Two supporting moves must accompany the headline substitution. First, dx must be converted too: if x = a sin θ then dx = a cos θ dθ, and forgetting that factor is the method's most common fatal slip. Second, the answer comes out in θ and must be translated back into x. For definite integrals you may either convert the limits to θ-values at the start or back-substitute before evaluating; for indefinite ones, a reference triangle — draw θ with the substitution as a ratio, label the sides, read off sin, cos and tan of θ in terms of x — makes the return trip mechanical rather than memorised.
How to Use the Trigonometric Substitution Calculator
- Identify which of the three root forms your integrand contains, and note the value of a.
- Enter the integrand exactly as written.
- Run the calculation and read the antiderivative.
- Compare the substitution the solution path implies with the one you chose — a mismatch here usually explains a divergent answer.
- If your own answer is in θ, use a reference triangle to convert it to x before comparing; answers in different variables cannot be eyeballed against each other.
- Differentiate the final result to confirm it returns your integrand, especially where a root has been replaced by a trigonometric expression.
A Worked Example: ∫ dx / √(4 − x²)
The root matches √(a² − x²) with a = 2, so set x = 2 sin θ, giving dx = 2 cos θ dθ and √(4 − x²) = √(4 − 4 sin²θ) = 2 cos θ. The integral becomes ∫ (2 cos θ dθ) / (2 cos θ) = ∫ dθ = θ + C. Now back-substitute: since sin θ = x/2, θ = arcsin(x/2), and the answer is arcsin(x/2) + C. Differentiate to verify: the derivative of arcsin(x/2) is (1/2)/√(1 − x²/4) = 1/√(4 − x²) ✓. For a flavour of the harder cases, the companion standard result ∫ √(9 − x²) dx, using x = 3 sin θ, comes out as (x/2)·√(9 − x²) + (9/2)·arcsin(x/3) + C — note how the back-substitution produces both an algebraic term and an inverse-trig term, which is typical once the root multiplies rather than divides.
Back-Substitution Blunders and Wrong-Form Choices
Choosing sin for a plus-form root (or tan for a minus-form) is the foundational error — the root then refuses to collapse and the integral stalls. Forgetting to convert dx ranks second. Third is mishandling the square root's sign: √(a² cos²θ) is a|cos θ|, and the substitution interval is chosen precisely so the absolute value can be dropped; ignoring why that works leads to sign errors in secant cases. A fourth is leaving the final answer in θ, which answers a question nobody asked. When an integral contains no quadratic root at all, this method is the wrong tool — the U Substitution Calculator or the Integration by Parts Calculator will serve better, and the Indefinite Integral Calculator confirms the antiderivative whatever route produced it.
Closing the Loop with a Definite Integral
With definite integrals you have a genuine choice, and the worked example makes a clean demonstration. Evaluate ∫₀¹ dx / √(4 − x²). Route one: use the antiderivative from the worked example, arcsin(x/2), and evaluate between the original limits — arcsin(1/2) − arcsin(0) = π/6 − 0 = π/6 ≈ 0.5236. Route two: convert the limits when substituting x = 2 sin θ. When x = 0, θ = 0; when x = 1, sin θ = 1/2 so θ = π/6. The integral becomes ∫₀^(π/6) dθ = π/6, identically — and notice that on this route the answer appears while still in θ, with no back-substitution at all. Route two is usually faster and less error-prone, but it demands one discipline: the moment you write the substitution, rewrite the limits in the same breath, before any integrating happens. Most definite-integral substitution errors are not calculus errors at all — they are x-limits paired with a θ-integral, a mismatch that converting limits immediately makes impossible.
The Root Is the Signpost
Learn to read the three root forms on sight and trigonometric substitution stops being a maze and becomes a lookup. Verify your substitutions and final answers with this calculator, and keep the reference triangle habit — it is the difference between a method you own and one you borrow.