Trig substitution handles integrals containing √(a² − x²), √(a² + x²) or √(x² − a²): you replace x with a sin θ, a tan θ or a sec θ so that a Pythagorean identity removes the square root. Partial fractions handles rational functions (a polynomial over a polynomial) by splitting them into simple fractions that integrate to logs and arctangents. Both are standard Calculus II techniques, and both are mostly about recognising the form, so this guide starts with a recognition table and then works six examples.
Which technique? Read the integrand first
| integrand contains | technique | substitution or form | identity or result used |
|---|---|---|---|
| √(a² − x²) | trig substitution | x = a sin θ | 1 − sin²θ = cos²θ |
| √(a² + x²) or (a² + x²)ⁿ | trig substitution | x = a tan θ | 1 + tan²θ = sec²θ |
| √(x² − a²) | trig substitution | x = a sec θ | sec²θ − 1 = tan²θ |
| quadratic not in these forms, e.g. x² − 4x + 8 | complete the square first | then one of the rows above | (x − 2)² + 4 |
| P(x)/Q(x), deg P ≥ deg Q | long division first | polynomial + proper fraction | then partial fractions |
| distinct linear factors (x − a)(x − b) | partial fractions | A/(x − a) + B/(x − b) | logs |
| repeated factor (x − a)² | partial fractions | A/(x − a) + B/(x − a)² | log and a power |
| irreducible quadratic x² + c | partial fractions | (Bx + C)/(x² + c) | log and arctan |
Before either technique, check for a plain substitution. ∫x/√(9 − x²) dx looks like a sine substitution, but w = 9 − x² gives −√(9 − x²) + C in one line, because the x on top is (almost) the derivative of the inside.
This unit, together with integration by parts, is where Calculus II integration questions are won or lost; our college maths tutoring page for US students explains how online sessions with Ajay Vatsyayan work through it with your own course's problem sets.
Partial fractions: three worked examples
Example 1: distinct linear factors and the cover-up method
Find ∫(5x − 4)/(x² − x − 2) dx.
Factor: x² − x − 2 = (x − 2)(x + 1). Write
(5x − 4)/((x − 2)(x + 1)) = A/(x − 2) + B/(x + 1)
Multiply through: 5x − 4 = A(x + 1) + B(x − 2). Put x = 2: 6 = 3A, so A = 2. Put x = −1: −9 = −3B, so B = 3. (This is the cover-up method: each root of the denominator kills every term but one.)
∫(5x − 4)/(x² − x − 2) dx = 2 ln|x − 2| + 3 ln|x + 1| + C
Example 2: a repeated linear factor
Find ∫(5x² + x + 2)/((x − 1)(x + 1)²) dx.
A repeated factor needs one term for each power:
(5x² + x + 2)/((x − 1)(x + 1)²) = A/(x − 1) + B/(x + 1) + C/(x + 1)²
Clear denominators: 5x² + x + 2 = A(x + 1)² + B(x − 1)(x + 1) + C(x − 1).
- x = 1: 8 = 4A, so A = 2.
- x = −1: 6 = −2C, so C = −3.
- Compare x² coefficients: 5 = A + B, so B = 3.
Integrating, the squared term gives a power, not a log:
∫ = 2 ln|x − 1| + 3 ln|x + 1| + 3/(x + 1) + C
Leaving out the B/(x + 1) term is the classic error here: the system then has no solution, and students force one.
Example 3: an irreducible quadratic factor
Find ∫(3x² + x + 4)/(x³ + 2x) dx.
Factor: x³ + 2x = x(x² + 2), and x² + 2 has no real roots. So
(3x² + x + 4)/(x(x² + 2)) = A/x + (Bx + C)/(x² + 2)
x = 0 gives 4 = 2A, so A = 2. Then 3x² + x + 4 − 2(x² + 2) = x² + x = x(Bx + C), so B = 1 and C = 1.
Split the quadratic term into a log part and an arctan part:
∫(x + 1)/(x² + 2) dx = ½ ln(x² + 2) + (1/√2) arctan(x/√2)
∫(3x² + x + 4)/(x³ + 2x) dx = 2 ln|x| + ½ ln(x² + 2) + (1/√2) arctan(x/√2) + C
Trig substitution: three worked examples
Example 4: the sine substitution
Find ∫dx/(x²√(9 − x²)).
Let x = 3 sin θ, so dx = 3 cos θ dθ and √(9 − x²) = 3 cos θ (with −π/2 ≤ θ ≤ π/2, cos θ ≥ 0).
∫3 cos θ dθ/(9 sin²θ · 3 cos θ) = (1/9)∫csc²θ dθ = −(1/9) cot θ + C
Back to x with a right triangle: sin θ = x/3, so the opposite side is x, the hypotenuse 3 and the adjacent side √(9 − x²). Then cot θ = √(9 − x²)/x, and
∫dx/(x²√(9 − x²)) = −√(9 − x²)/(9x) + C
Draw the triangle every time. Converting back to x is where most marks go.
Example 5: a definite integral with the secant substitution
Evaluate ∫₂⁴ √(x² − 4)/x dx.
Let x = 2 sec θ, so dx = 2 sec θ tan θ dθ and √(x² − 4) = 2 tan θ. Change the limits too: x = 2 gives sec θ = 1, θ = 0; x = 4 gives sec θ = 2, θ = π/3.
∫₀^(π/3) (2 tan θ/(2 sec θ)) · 2 sec θ tan θ dθ = 2∫₀^(π/3) tan²θ dθ = 2∫₀^(π/3) (sec²θ − 1) dθ
= 2[tan θ − θ]₀^(π/3) = 2(√3 − π/3) = 2√3 − 2π/3 ≈ 1.370
Changing the limits means you never convert back to x. Mixing the two (θ-antiderivative, x-limits) gives a wrong number with no warning.
Example 6: complete the square, then tangent
Find ∫dx/√(x² − 4x + 8).
Complete the square: x² − 4x + 8 = (x − 2)² + 4. Let x − 2 = 2 tan θ, so dx = 2 sec²θ dθ and √((x − 2)² + 4) = 2 sec θ.
∫2 sec²θ dθ/(2 sec θ) = ∫sec θ dθ = ln|sec θ + tan θ| + C
From the triangle, tan θ = (x − 2)/2 and sec θ = √(x² − 4x + 8)/2. The factor ½ inside the log becomes a constant and is absorbed into C:
∫dx/√(x² − 4x + 8) = ln|x − 2 + √(x² − 4x + 8)| + C
Errors that cost marks
- Skipping the degree check. If the top has degree at least the bottom's, divide first. Partial fractions on an improper fraction gives nonsense.
- Too few terms for a repeated factor. (x + 1)² needs both B/(x + 1) and C/(x + 1)².
- A constant over a quadratic. Over an irreducible quadratic the numerator is Bx + C, not just B.
- Dropping the absolute value in ln|x − 2|. On an interval where x − 2 < 0 the log needs it.
- Wrong substitution for the sign pattern. a² − x² takes sine, a² + x² takes tangent, x² − a² takes secant. Learn the identities, not the list: whichever makes the identity remove the root.
- Forgetting dx. dx = 3 cos θ dθ, not dθ. Missing it changes the whole integral.
- Back-substituting without a triangle, or mixing θ and x limits in a definite integral.
- Using trig substitution when a plain substitution works, which wastes exam time.
Practice set
- ∫(x³ + 2)/(x² − 1) dx
- ∫dx/(x² + 4)^(3/2)
- ∫x/√(9 − x²) dx
- ∫₀¹ dx/((x + 1)(x + 2))
- ∫₀² √(4 − x²) dx
- ∫(x + 5)/(x² + 2x + 5) dx
Answers:
- Divide first: x + (x + 2)/(x² − 1). Result: x²/2 + (3/2) ln|x − 1| − ½ ln|x + 1| + C.
- x = 2 tan θ: x/(4√(x² + 4)) + C.
- Not a trig substitution: −√(9 − x²) + C.
- ln(4/3) ≈ 0.288.
- π (a quarter of a circle of radius 2, which makes a good check on the sine substitution).
- Write x + 5 = (x + 1) + 4: ½ ln(x² + 2x + 5) + 2 arctan((x + 1)/2) + C.
All worked answers and practice answers were checked in Python (sympy), by differentiating each antiderivative or evaluating each definite integral exactly.
Where these techniques are used next
Partial fractions returns almost at once: telescoping series in the series convergence tests flowchart are partial fractions in disguise, and inverse Laplace transforms rely on them (see the Laplace transforms exam guide). Trig substitution appears in arc length and surface area integrals and in polar and multiple integrals in Calculus III. In differential equations, separable equations such as dy/dx = y(1 − y) need partial fractions; see first-order differential equations.
The other half of the toolkit is integration by parts and the tabular method. Mixed sets that combine parts, substitution, trig substitution and partial fractions are the realistic exam test. For the derivative side of Calculus I, see optimization problems in calculus.
How Maths Bodhi helps
The hard part of this unit is choosing the method quickly under time pressure. In online sessions we use unlabelled mixed integrals, ask you to name the technique before starting and then review each conversion back to x. We teach and review your own work; we don't complete graded work. The university maths tutoring hub shows the later courses that build on these integrals.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Written and checked by the Maths Bodhi team (November 2026).
Frequently asked questions
- When do you use trig substitution?
- When the integrand contains √(a² − x²), √(a² + x²) or √(x² − a²) (or a power of a² + x²) and a simple substitution doesn't work.
- How do you know which trig substitution to use?
- Use x = a sin θ for a² − x², x = a tan θ for a² + x² and x = a sec θ for x² − a².
- How do you do partial fractions with a repeated factor?
- Include one term for each power, e.g. A/(x + 1) + B/(x + 1)², then solve for the constants.
- What do you do if the degree of the numerator is higher in partial fractions?
- Do polynomial long division first, then decompose the proper fraction that remains.
- Do you need to convert back to x after trig substitution?
- For an indefinite integral yes, using a right triangle; for a definite integral you can change the limits to θ instead.
- Is trig substitution on the Calc 2 final?
- It usually appears as part of the integration techniques unit, but check your own syllabus and past finals.
