- Practice
- About 20 min
- 5 practice questions
Partial fractions, substitution and important standard results
Integrate rational functions by partial fractions, change the variable by substitution, and use the results for f′(x)/f(x), [f(x)]ⁿ f′(x), tan x, cot x, sec x and cosec x.
If something looks wrong, please tell us.
By the end of this lesson you can
- Split a proper rational function into partial fractions and integrate each part.
- Choose a substitution u = g(x) so that g′(x) dx appears in the integrand.
- Use ∫ f′(x)/f(x) dx = log |f(x)| + c and ∫ [f(x)]ⁿ f′(x) dx = [f(x)]ⁿ⁺¹/(n + 1) + c.
- State and use the integrals of tan x, cot x, sec x and cosec x.
Decomposition handles integrands that split easily. Two more powerful tools follow: partial fractions, which split rational functions, and substitution, which undoes the chain rule. Between them they produce a short list of results that the textbook asks you to know by heart.
Decomposition by partial fractions
Let p(x)/q(x) be a rational function with degree of p less than degree of q (if not, divide first). Factorise q(x) and write the fraction as a sum of simpler fractions: a factor (x − a) gives A/(x − a); a repeated factor (x − a)² gives A/(x − a) + B/(x − a)². Find the constants by putting convenient values of x, or by comparing coefficients. Each simple fraction then integrates to a logarithm or a power.
Worked example 1: distinct linear factors
Find ∫ (x + 5)/[(x − 1)(x + 2)] dx. Write (x + 5)/[(x − 1)(x + 2)] = A/(x − 1) + B/(x + 2), so x + 5 = A(x + 2) + B(x − 1). Put x = 1: 6 = 3A, so A = 2. Put x = −2: 3 = −3B, so B = −1. Hence the integral is ∫ [2/(x − 1) − 1/(x + 2)] dx = 2 log |x − 1| − log |x + 2| + c.
Worked example 2: a repeated factor
Find ∫ (3x + 1)/[(x − 1)²(x + 3)] dx. Write it as A/(x − 1) + B/(x − 1)² + C/(x + 3), so 3x + 1 = A(x − 1)(x + 3) + B(x + 3) + C(x − 1)². Put x = 1: 4 = 4B, B = 1. Put x = −3: −8 = 16C, C = −1/2. Compare x² coefficients: 0 = A + C, so A = 1/2. (Check with x = 0: −3A + 3B + C = −1.5 + 3 − 0.5 = 1, which matches 3(0) + 1.) Integrating, with ∫ (x − 1)⁻² dx = −(x − 1)⁻¹: (1/2) log |x − 1| − 1/(x − 1) − (1/2) log |x + 3| + c.
Substitution (change of variable)
Substitution reverses the chain rule. If the integrand contains a function g(x) together with its derivative g′(x), put u = g(x), so du = g′(x) dx. The integral becomes one in u, which we integrate and then write back in terms of x. The skill is in spotting a good u: usually the inside of a bracket, a power, a root, or an exponent.
Worked example 3: three substitutions
- ∫ 2x(x² + 3)⁵ dx: put u = x² + 3, du = 2x dx. Then ∫ u⁵ du = u⁶/6 + c = (x² + 3)⁶/6 + c.
- ∫ sin x cos⁴x dx: put u = cos x, du = −sin x dx. Then −∫ u⁴ du = −u⁵/5 + c = −(1/5) cos⁵x + c.
- ∫ e^(tan⁻¹x)/(1 + x²) dx: put u = tan⁻¹x, du = dx/(1 + x²). Then ∫ eᵘ du = e^(tan⁻¹x) + c.
Steps of the substitution method
- Choose u = g(x) Look for a function whose derivative is also present (up to a constant).
- Find du du = g′(x) dx; adjust any constant factor.
- Rewrite entirely in u No x may remain.
- Integrate and substitute back Replace u by g(x) and add c.
Important results
Two substitutions occur so often that their results are worth memorising. In ∫ f′(x)/f(x) dx put u = f(x): the integral becomes ∫ du/u = log |u| + c. In ∫ [f(x)]ⁿ f′(x) dx put u = f(x): it becomes ∫ uⁿ du = uⁿ⁺¹/(n + 1) + c, for n ≠ −1.
∫ f′(x)/f(x) dx = log |f(x)| + c. ∫ [f(x)]ⁿ f′(x) dx = [f(x)]ⁿ⁺¹/(n + 1) + c, n ≠ −1.
Applying the first result gives four standard integrals. ∫ tan x dx = ∫ sin x/cos x dx = −log |cos x| + c = log |sec x| + c, because the numerator is minus the derivative of the denominator. ∫ cot x dx = ∫ cos x/sin x dx = log |sin x| + c. For sec x, multiply top and bottom by (sec x + tan x): the integrand becomes (sec²x + sec x tan x)/(sec x + tan x), whose numerator is the derivative of the denominator. Similarly for cosec x, multiply by (cosec x − cot x).
| Integral | Result |
|---|---|
| ∫ tan x dx | log |sec x| + c |
| ∫ cot x dx | log |sin x| + c |
| ∫ sec x dx | log |sec x + tan x| + c |
| ∫ cosec x dx | log |cosec x − cot x| + c |
Worked example 4: spotting f′/f and fⁿf′
- ∫ (2x + 3)/(x² + 3x + 7) dx: the numerator is the derivative of the denominator, so the answer is log (x² + 3x + 7) + c (the quadratic has negative discriminant 9 − 28, so it is always positive and no modulus is needed).
- ∫ (cos x − sin x)/(sin x + cos x) dx: d/dx(sin x + cos x) = cos x − sin x, so the answer is log |sin x + cos x| + c.
- ∫ (log x)²/x dx: here f = log x and f′ = 1/x, so the answer is (log x)³/3 + c.
- ∫ tan 3x dx = (1/3) log |sec 3x| + c, using the table with the f(ax + b) rule.
Key takeaways: partial fractions turn a proper rational function into simple logarithm and power terms; substitution works when g(x) and g′(x) both appear; a numerator equal to the derivative of the denominator integrates to a logarithm; learn the integrals of tan, cot, sec and cosec.
Check your understanding
-
1. What is ∫ dx/[x(x + 1)] for x > 0?
- log x · log(x + 1) + c
- log x + log(x + 1) + c
- log [(x + 1)/x] + c
- log [x/(x + 1)] + c
Show answer
Answer: D. 1/[x(x + 1)] = 1/x − 1/(x + 1) (check: (x + 1 − x)/[x(x + 1)]). Integrating: log x − log(x + 1) + c = log [x/(x + 1)] + c.
-
2. What is ∫ 3x²/(x³ + 5) dx?
- log |x³ + 5| + c
- 3 log |x³ + 5| + c
- x³/(x⁴/4 + 5x) + c
- 1/(x³ + 5)² + c
Show answer
Answer: A. The numerator 3x² is exactly the derivative of x³ + 5, so the integral is log |x³ + 5| + c.
-
3. What is ∫ cos x sin³x dx?
- sin⁴x + c
- (1/4) sin⁴x + c
- −(1/4) cos⁴x + c
- (1/4) cos x sin⁴x + c
Show answer
Answer: B. Put u = sin x, du = cos x dx: ∫ u³ du = u⁴/4 + c = (1/4) sin⁴x + c.
-
4. What is ∫ cot x dx?
- log |cos x| + c
- −cosec²x + c
- log |sin x| + c
- log |sec x| + c
Show answer
Answer: C. cot x = cos x/sin x and cos x is the derivative of sin x, so the integral is log |sin x| + c. log |sec x| is the integral of tan x.
-
5. What is ∫ x e^(x²) dx?
- e^(x²) + c
- 2e^(x²) + c
- x² e^(x²)/2 + c
- (1/2) e^(x²) + c
Show answer
Answer: D. Put u = x², du = 2x dx, so x dx = du/2. Then ∫ eᵘ du/2 = (1/2)eᵘ + c = (1/2) e^(x²) + c.
Sign in to keep track of the lessons you finish.