Trigonometric Substitution Calculator

Choose the radical form and enter a to get the recommended trig substitution.

Result

For √(2.5² + x²): Substitution: x = 2.5·tan θ Radical → 2.5·sec θ θ range: −π/2 < θ < π/2 dx = 2.5·sec² θ dθ
2.5·sec θ
dx = 2.5·sec² θ dθ

How it is calculated

You pick one of three radical forms and enter a (a positive number). The tool does not integrate anything; it returns the standard substitution for that form. √(a² − x²): x = a·sin θ, radical a·cos θ, dx = a·cos θ dθ. √(a² + x²): x = a·tan θ, radical a·sec θ, dx = a·sec² θ dθ. √(x² − a²): x = a·sec θ, radical |a·tan θ|, dx = a·sec θ·tan θ dθ; the absolute value is a·tan θ for x ≥ a (0 ≤ θ < π/2) and −a·tan θ for x ≤ −a (π/2 < θ ≤ π). The value a is the square root of the constant under the radical, so 25 − x² means a = 5. Zero or negative a gives no result. The number a is written in the formulas with only the decimals it needs and no thousands separator, so 1000 appears as 1000. The plan also gives the range of θ each simplification assumes, from OpenStax Calculus Volume 2 (3.3): −π/2 ≤ θ ≤ π/2 for the sine case, −π/2 < θ < π/2 for the tangent case and the two intervals above for the secant case.

Worked example

Take the integrand with √(2.5² + x²), so a = 2.5 and the form is a² + x². Because the sign between the terms is plus, the tangent case applies. Substitution: x = 2.5·tan θ. Then 2.5² + x² = 2.5²(1 + tan² θ) = 2.5² sec² θ, so the radical simplifies to 2.5·sec θ. Differentiating x gives dx = 2.5·sec² θ dθ. You can now rewrite the whole integral in θ.

Try this example →

Common mistakes

  • Entering the number under the root instead of its square root. For √(9 − x²) you must enter a = 3, not 9.
  • Choosing the form by the look of the sign. x² − a² (secant) and a² − x² (sine) are different cases, and the order of the terms matters.
  • Forgetting that the tool gives only the substitution, the radical and dx. You still have to rewrite the rest of the integrand, integrate in θ and convert back to x with a right triangle.
  • Using the tool for a coefficient such as √(4x² + 9). Rewrite it first (for example with u = 2x) so that it matches one of the three forms.
  • Dropping the absolute value in the secant case. √(x² − a²) is |a·tan θ|; it equals a·tan θ only for x ≥ a, and −a·tan θ for x ≤ −a, so a definite integral over negative x needs the second form.

Sources

About this calculator

Trigonometric substitution is an integration technique for expressions containing a²−x², a²+x², or x²−a², replacing x with a trig function of a new variable θ so the expression under the radical collapses into a single squared trig term via a Pythagorean identity — a²−x² becomes a·cosθ with x = a·sinθ, a²+x² becomes a·secθ with x = a·tanθ, and x²−a² becomes |a·tanθ| with x = a·secθ, which is a·tanθ when x ≥ a and −a·tanθ when x ≤ −a. This calculator identifies the matching case from your chosen radical form and value of a, returning the correct substitution, the simplified radical, the range of θ it assumes, and dx, as in OpenStax Calculus Volume 2.

The technique is a core topic in integral calculus courses, typically taught after u-substitution and integration by parts, and is essential for evaluating integrals that appear in physics and engineering problems involving circles, ellipses, and hyperbolic geometry — students commonly use a tool like this to check which of the three substitution cases applies before working through the algebra by hand.

Was this helpful?

You can pick up to 3 reactions.

Note from the editors

This tool only names the substitution; it does not integrate. Once you integrate, remember to return to x using a reference triangle. For the sine form, label the hypotenuse a and the side opposite θ as x; the adjacent side is then the radical. Which integral are you stuck on, and which of the three forms does it contain?

Comments

  • Be the first to comment.

Popular calculators

All Calculators