Trigonometric Substitution Calculator
This Trigonometric Substitution Calculator integrates expressions containing a square root of a sum or difference of squares, and shows the working line by line. Replacing x with a trigonometric function lets a Pythagorean identity collapse the root away, which is the whole reason for the substitution. The answer is converted back to x at the end. Following the same pattern every time keeps the substitution matched to the shape of the root.
Step-by-step method
- Set up the problem.
- Choose the matching trigonometric substitution.
- Find dx and simplify the radical with the Pythagorean identity.
- Rewrite the whole integral in terms of θ.
- Integrate with respect to θ.
- Convert back to x and add C.
Formula: Substitution for root(a squared - x squared)
Use x = a sin(theta), so the square root becomes a cos(theta).
Formula: Substitution for root(a squared + x squared)
Use x = a tan(theta), so the square root becomes a sec(theta).
Formula: Substitution for root(x squared - a squared)
Use x = a sec(theta), so the square root becomes a tan(theta).
Useful Tips to Remember
Match the root to the substitution: \(\sqrt{a^2 - x^2}\) uses \(x = a\sin\theta\), \(\sqrt{a^2 + x^2}\) uses \(x = a\tan\theta\), and \(\sqrt{x^2 - a^2}\) uses \(x = a\sec\theta\). Remember to replace \(dx\) as well. After integrating, use a right triangle to change the answer back into terms of \(x\). Add \(+C\) at the end.
Required knowledge
- How sin, cos and tan relate to the sides of a right triangle, covered in the Trigonometric Ratio Calculator.
- How to integrate the simpler integral that is left, covered in the Indefinite Integral Calculator.
- How powers of sin, cos, tan and sec are integrated in θ, covered in the Trigonometric Integrals Calculator.
Where Is Trigonometric Substitution Used?
Trigonometric substitution replaces \(x\) with a sine, tangent or secant expression to simplify integrals with square roots like \(\sqrt{a^2 - x^2}\). These roots come from Pythagoras' theorem, so they appear whenever circles, ellipses and distances are involved. The method is used to find the area of a circle or ellipse by integration, the arc length of curves, and the electric field around charged objects. Engineers also use it to work out the volume of liquid in round tanks lying on their side.
- Finding the area of circles and ellipses by integration
- Working out the liquid in a horizontal cylindrical tank
- Calculating the arc lengths of curves
- Finding electric and gravitational fields in physics
- Integrating expressions with \(\sqrt{a^2 - x^2}\) or \(\sqrt{x^2 + a^2}\)
Trigonometric Substitution Practice Problems
Example 1 integrates \(\sqrt{9 - x^2}\) with a sine substitution, and Example 2 integrates \(\frac{1}{\sqrt{x^2 + 4}}\) with a tangent substitution. Try choosing the substitution yourself first. For two more free worked examples, check out the Trigonometric Substitution Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Choose the matching trigonometric substitution.
- Find dx and simplify the radical with the Pythagorean identity.
- Rewrite the whole integral in terms of θ.
- Integrate with respect to θ.
- Convert back to x and add C.
Formula
Formula: Substitution for root(a squared - x squared)
Use x = a sin(theta), so the square root becomes a cos(theta).
Step 1
Step 1 - Set up the problem.
In this problem: The integrand contains the radical form \(\sqrt{9 - x^{2}}\) with \(a = 3\).
Step 2
Step 2 - Choose the matching trigonometric substitution.
In this problem: Match the radical to one of the three standard forms and substitute.
Step 3
Step 3 - Find dx and simplify the radical with the Pythagorean identity.
In this problem: Differentiate \(x = 3 \sin{\left(\theta \right)}\) to get dx. With this substitution the radical collapses through the Pythagorean identity.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for that trigonometric function.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Step 1
Step 1 - Identify the trigonometric function and any constant multiple.
In this problem: The function is \(\sin{\left(\theta \right)}\). The constant multiple \(3\) stays in front.
Step 2
Step 2 - Write the derivative rule for that trigonometric function.
In this problem: The derivative of \(\sin{\left(\theta \right)}\) is \(\cos{\left(\theta \right)}\).
Step 3
Step 3 - Move the constant multiple in front of the derivative.
In this problem: The number \(3\) in front is a constant multiple, so it moves in front of the derivative and only \(\sin{\left(\theta \right)}\) is differentiated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(3 \sin{\left(\theta \right)}\). The constant coefficient is \(3\), and the variable part is \(\sin{\left(\theta \right)}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(3\) outside the derivative and leave \(\sin{\left(\theta \right)}\) inside the derivative.
Final Answer
Step 4
Step 4 - Apply the derivative rule.
In this problem: Replace \(\frac{d}{d \theta} \sin{\left(\theta \right)}\) with \(\cos{\left(\theta \right)}\) from Step 2.
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of θ.
In this problem: Replace x with \(3 \sin{\left(\theta \right)}\), dx with \(3 \cos{\left(\theta \right)} \, d\theta\) and the radical with \(3 \cos{\left(\theta \right)}\), then simplify.
Step 5
Step 5 - Integrate with respect to θ.
In this problem: Integrate with respect to θ.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that form.
- Move the constant multiple outside the integral.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The trigonometric form is \(\cos^{2}{\left(\theta \right)}\). The number \(9\) in front is a constant multiple.
Step 2
Step 2 - Write the integration rule for that form.
In this problem: Each standard trigonometric form has a known antiderivative.
Step 3
Step 3 - Move the constant multiple outside the integral.
In this problem: The number \(9\) in front is a constant multiple, so it moves outside the integral and only \(\cos^{2}{\left(\theta \right)}\) is integrated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 9\) and the function is \(\cos^{2}{\left(\theta \right)}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(9\) in front of the integral sign and leave \(\cos^{2}{\left(\theta \right)}\) inside.
Final Answer
Step 4
Step 4 - Apply the integration rule and add C.
In this problem: Replace \(\int \cos^{2}{\left(\theta \right)}\, d\theta\) with \(\frac{\theta}{2} + \frac{\sin\left(2\theta\right)}{4}\) from Step 2.
Final Answer
Step 6
Step 6 - Convert back to x and add C.
In this problem: From \(\sin\left(\theta\right) = \frac{x}{3}\), draw the right triangle: it gives every trig function of θ in terms of x, and \(\theta = \arcsin{\left(\frac{x}{3} \right)}\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Choose the matching trigonometric substitution.
- Find dx and simplify the radical with the Pythagorean identity.
- Rewrite the whole integral in terms of θ.
- Integrate with respect to θ.
- Convert back to x and add C.
Formula
Formula: Substitution for root(a squared + x squared)
Use x = a tan(theta), so the square root becomes a sec(theta).
Step 1
Step 1 - Set up the problem.
In this problem: The integrand contains the radical form \(\sqrt{x^{2} + 4}\) with \(a = 2\).
Step 2
Step 2 - Choose the matching trigonometric substitution.
In this problem: Match the radical to one of the three standard forms and substitute.
Step 3
Step 3 - Find dx and simplify the radical with the Pythagorean identity.
In this problem: Differentiate \(x = 2 \tan{\left(\theta \right)}\) to get dx. With this substitution the radical collapses through the Pythagorean identity.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for that trigonometric function.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Step 1
Step 1 - Identify the trigonometric function and any constant multiple.
In this problem: The function is \(\tan{\left(\theta \right)}\). The constant multiple \(2\) stays in front.
Step 2
Step 2 - Write the derivative rule for that trigonometric function.
In this problem: The derivative of \(\tan{\left(\theta \right)}\) is \(\sec^{2}{\left(\theta \right)}\).
Step 3
Step 3 - Move the constant multiple in front of the derivative.
In this problem: The number \(2\) in front is a constant multiple, so it moves in front of the derivative and only \(\tan{\left(\theta \right)}\) is differentiated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(2 \tan{\left(\theta \right)}\). The constant coefficient is \(2\), and the variable part is \(\tan{\left(\theta \right)}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(2\) outside the derivative and leave \(\tan{\left(\theta \right)}\) inside the derivative.
Final Answer
Step 4
Step 4 - Apply the derivative rule.
In this problem: Replace \(\frac{d}{d \theta} \tan{\left(\theta \right)}\) with \(\sec^{2}{\left(\theta \right)}\) from Step 2.
Final Answer
Step 4
Step 4 - Rewrite the whole integral in terms of θ.
In this problem: Replace x with \(2 \tan{\left(\theta \right)}\), dx with \(2 \sec^{2}{\left(\theta \right)} \, d\theta\) and the radical with \(2 \sec{\left(\theta \right)}\), then simplify.
Step 5
Step 5 - Integrate with respect to θ.
In this problem: Integrate with respect to θ.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the integration rule for that form.
- Apply the integration rule and add C.
Step 1
Step 1 - Set up the problem.
In this problem: The trigonometric form is \(\sec{\left(\theta \right)}\).
Step 2
Step 2 - Write the integration rule for that form.
In this problem: Each standard trigonometric form has a known antiderivative.
Step 3
Step 3 - Apply the integration rule and add C.
In this problem: Put \(\sec{\left(\theta \right)}\) into the rule from Step 2.
Final Answer
Step 6
Step 6 - Convert back to x and add C.
In this problem: From \(\tan\left(\theta\right) = \frac{x}{2}\), draw the right triangle: it gives every trig function of θ in terms of x, and \(\theta = \arctan{\left(\frac{x}{2} \right)}\). The constant \(- \ln\left(2\right)\) that comes out is part of C.
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Trigonometric Substitution Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Trigonometric Substitution Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.