Blog · Calculus guides · 29 October 2026 · 4 min read
Trig Substitution: Steps, Examples & Practice Problems

Trig substitution replaces with a trig function so that a square root of a sum or difference of squares collapses into a single trig term. Use for , for , and for . Integrate in , then draw a right triangle to convert back to .
The formula
Three shapes, three substitutions, and each one is a Pythagorean identity wearing a disguise.
When to use it
Reach for trig substitution when the integrand contains , , or in a denominator, and there is no stray outside that would make u-substitution work. That last check matters: looks like a trig substitution but is a two-line u-substitution with . Try the cheap method first and bring out the triangles only if it fails. Completing the square can also unlock it: is , which is the tangent shape with once you let .
How to do it, step by step
- Match the shape. Find and pick the substitution from the table: minus with first is sine, plus is tangent, minus with first is secant.
- Substitute everything. Replace , replace (for , ), and simplify the root with the identity.
- Integrate in . What is left is a trig integral, often , or , which the double-angle or Pythagorean identities finish off.
- Draw the triangle and convert back. From , label the opposite side and the hypotenuse ; Pythagoras gives the third side. Read every trig function of off it, and write itself as an inverse trig function of .
Worked examples
Example 1: A tangent substitution
EasyIntegrate:
The shape is with , so let . Then and .
Everything cancels, which is the substitution doing its job: the from wipes out the the identity made. Since , .
This one is worth remembering as a pattern, because it comes up constantly: . Once you know it, you can skip the substitution entirely.
Answer
Example 2: A sine substitution and a triangle
MediumIntegrate:
The shape is with , so let . Then and .
That used and . Now the triangle: opposite , hypotenuse , so the adjacent side is .
Substitute back: .
A sanity check: between and , this integral is the area of a half-disk of radius . Plugging in the limits gives , which is exactly half of .
Answer
Example 3: A secant substitution
HarderIntegrate, for :
The shape is with , so let . Then and .
Triangle: means hypotenuse and adjacent side , so the opposite side is and .
So , and is the angle whose tangent is . You will also see it written as ; for they are the same angle.
The step is the one to watch. There is no direct antiderivative of in most tables, but integrates to , so the identity swaps an awkward integral for two easy ones.
Answer
Your turn
Three to try, checked by the same machine that grades the game. Type the answer however you like; any correct form counts.
Problem 1
EasyIntegrate:
Problem 2
MediumIntegrate:
Problem 3
HarderIntegrate, for :
Common mistakes
- Forgetting to substitute . Replacing but leaving alone loses a whole factor, usually the one that was going to cancel.
- Picking the wrong substitution. is secant, not sine. Look at which term comes first under the root: the constant first means sine, first means secant.
- Leaving in the final answer. The question was in , so the answer must be too. The triangle exists for exactly this step.
- Losing the . With , , not . The has to go back in when you undo the substitution.
- Using trig substitution when u-substitution works. If there is an outside the root that matches the derivative of what is inside, the inside is far quicker.
Practice it now
No clock, three strikes
Trig substitution turns up in Diverge from about d9: roots of and , and in a denominator. There are no secant () problems in the game yet, and answers are checked up to a constant, so no is needed.
FAQ
- How do you know which trig substitution to use?
- By the sign and the order: takes , takes , and takes . Each is picked so a Pythagorean identity turns the expression into a perfect square.
- Is trig substitution the same as u-substitution?
- It is a cousin. U-substitution replaces an inner function with ; trig substitution goes the other way and replaces itself with a function of . Both need rewritten.
- Why do you draw a triangle in trig substitution?
- To convert the answer back into . The substitution tells you one trig ratio, the triangle and Pythagoras give you all the others.
- Do I need trig substitution for ?
- Not if you know the result: . Trig substitution is how that formula is proved, so it is a good one to derive once and then memorize.
- Can I use hyperbolic substitution instead?
- Yes: handles neatly, which is why some answers come out with in them. It agrees with the trig version up to a constant.
- Where can I find trig substitution practice problems?
- Right on this page: "Your turn" has three trig substitution practice problems, easy, medium and harder, checked as you type by the same checker that grades Asymptote, with the answer and the first step if you miss. For more practice against the clock, Diverge, which has no clock, is free and needs no account.
Keep going
U-Substitution: Steps, Examples & Practice Problems
How to integrate by u-substitution: choosing u, the four steps, three worked examples including a back-substitution, and three practice problems.
Partial Fractions: Steps, Examples & Practice Problems
How to integrate a rational function with partial fractions: factor, split, solve, integrate. Three worked examples and three practice problems to try.
Integration by Parts: Formula, Examples & Practice Problems
How to integrate a product by parts: the formula, choosing u with LIATE, three worked examples and three practice problems checked as you type.