Trigonometric Substitution

Trigonometric Substitution
Integrals containing a2−x2, a2+x2, or x2−a2 are often complicated to deal with. Thankfully, we can use our knowledge of trig identities and trig integrals to perform Trig Substitution.
Trigonometric Substitutions
Note:a is the constant; x is the variable expression (this can be something like x−b).
Steps for Trig Substitutions
- Identify the expression
- You may need to adjust it to the correct form
- bx2→factor out the b
- Trinomials→complete the square
- Substitute for x and dx
- Use the appropriate trig identity and simplify
- Compute the integral
- Back substitute to write the expression in terms of x
- You may need to draw a triangle and use the Pythagorean Theorem

Example: Trig Sub (with Completing the Square)
Evaluate the following indefinite integral
∫x2−4x+2 dx
1. Identity the expression
This doesn't have the form we need yet, but we do have ...x2....
Since we have a trinomial, we need to complete the square.
=∫(x−2)2−2 dx
The expression we have is x2−a2 where the variable term is x−2 and the constant term is a=2.
2. Substitute the appropriate terms for x and dx
Let x−2=a secθ → x−2=2secθ.
Then dx=2secθ tanθ dθ
The new integral becomes:
=∫(2secθ)2−2(2secθ tanθ dθ)
=∫2sec2θ−2(2secθ tanθ dθ)
=∫2sec2θ−1(2secθ tanθ dθ)
=∫2sec2θ−1(secθ tanθ dθ)
3. Use the trig identity to simplify
=∫2tan2θ(secθ tanθ dθ)
=∫2tanθ(secθ tanθ dθ)
=2∫secθ tan2θ dθ
=2∫secθ (sec2θ−1) dθ
=2∫(sec3θ−secθ) dθ
4. Solve the integral
We will use the known forms for both these integrals.
=2[2secθ tanθ+ln∣secθ+tanθ∣−ln∣secθ+tanθ∣]+C
=secθ tanθ+ln∣secθ+tanθ∣−2ln∣secθ+tanθ∣+C
=secθ tanθ−ln∣secθ+tanθ∣+C
5. Back substitute to make it in terms of x
Since we let x−2=2secθ, we can rearrange to get secθ=2x−2 → cosθ=x−22. Using this, we can draw a triangle where the adjacent side is 2 and the hypotenuse is x−2. We can also find the opposite side using Pythagorean theorem.
Now we are able to replace the trig ratios in our answer and rewrite it back in terms of x:
=(2x−2)2(x−2)2−2−ln2x−2+2(x−2)2−2+C
=2(x−2)(x−2)2−2−ln2x−2+(x−2)2−2+C
Practice: Trig Sub
Evaluate the following indefinite integral
∫(x2−6x+11)21dx