Techniques of Integration I: Substitution and Partial Fractions
From the Integration curriculum
TL;DR
Integration by substitution helps simplify complex integrals by changing the variable, making them easier to solve using standard formulas. Partial fractions help integrate rational functions by breaking them down into simpler fractions that are easier to integrate individually. Together, these are powerful tools for tackling a wide range of integration problems you'll encounter.
1. The Mental Model
Think of integration as "undoing" differentiation. Substitution is like a disguise for your integral, making it look like something you already know how to integrate. Partial fractions are like taking a complicated LEGO structure apart into simpler, manageable pieces.
2. The Core Material
You've likely learned basic integration rules. But what about integrals like $\int x(x^2+1)^5 \, dx$ or $\int \frac{1}{x^2-1} \, dx$? These don't fit the basic rules directly. That's where substitution and partial fractions come in.
Understanding Substitution (u-Substitution)
Substitution is based on the chain rule for differentiation in reverse. If you have an integral of the form $\int f(g(x))g'(x) \, dx$, you can let $u = g(x)$. Then, $du = g'(x) \, dx$, and your integral becomes $\int f(u) \, du$, which is often much simpler.
When to use it:
* You see a composite function (a function inside another function).
* You see a function and its derivative (or a constant multiple of its derivative) also present in the integral.
Steps for u-Substitution:
1. Choose $u$: Identify a part of the integrand that, when differentiated, simplifies the problem. Often, $u$ is the "inside" function.
2. Find $du$: Differentiate $u$ with respect to $x$ to find $du/dx$, then solve for $du$.
3. Substitute: Replace $g(x)$ with $u$ and $g'(x) \, dx$ with $du$ in the integral.
4. Integrate: Solve the new integral in terms of $u$.
5. Substitute back: Replace $u$ with $g(x)$ to get the answer in terms of $x$.
6. (For definite integrals): Change the limits of integration to be in terms of $u$ OR solve as an indefinite integral first, then use original limits.
Understanding Partial Fractions
Partial fractions are used to integrate rational functions – functions that are a ratio of two polynomials, like $\frac{P(x)}{Q(x)}$. This technique works when the degree of the numerator $P(x)$ is less than the degree of the denominator $Q(x)$. If it's not, you'll need to perform polynomial long division first.
The core idea is to decompose a complex rational expression into a sum of simpler fractions that are easy to integrate (e.g., using logarithms).
How it works (for distinct linear factors in the denominator):
Let's say you have $\frac{P(x)}{(ax+b)(cx+d)}$. You can decompose it into:
$\frac{P(x)}{(ax+b)(cx+d)} = \frac{A}{ax+b} + \frac{B}{cx+d}$
You then need to find the constants $A$ and $B$.
General Cases for Denominator Factors:
Here's how to set up the partial fraction decomposition based on the factors of $Q(x)$:
graph TD
A["Rational Function P(x)/Q(x)"] --> B{Factor Q(x)};
B --> C{"Degree P(x) < Degree Q(x)?"};
C -- No --> D["Perform Polynomial Long Division"];
C -- Yes --> E{Type of Factors in Q(x)};
E --> F["Distinct Linear Factors: (ax+b)(cx+d)"];
F --> G["A/(ax+b) + B/(cx+d)"];
E --> H["Repeated Linear Factors: (ax+b)^n"];
H --> I["A_1/(ax+b) + A_2/(ax+b)^2 + ... + A_n/(ax+b)^n"];
E --> J["Irreducible Quadratic Factors: (ax^2+bx+c)"];
J --> K["(Ax+B)/(ax^2+bx+c)"];
E --> L["Repeated Irreducible Quadratic Factors: (ax^2+bx+c)^n"];
L --> M["(A_1x+B_1)/(ax^2+bx+c) + ... + (A_nx+B_n)/(ax^2+bx+c)^n"];
Steps for Partial Fractions:
1. Check degree: If degree of $P(x) \ge$ degree of $Q(x)$, perform polynomial long division first.
2. Factor denominator: Factor $Q(x)$ completely into linear and irreducible quadratic factors.
3. Set up decomposition: Write the rational function as a sum of simpler fractions with unknown constants ($A, B, C$, etc.), based on the factors found in step 2.
4. Clear denominators: Multiply both sides of the equation by $Q(x)$ to eliminate denominators.
5. Solve for constants:
* Method 1 (Heaviside/Zero Method): Substitute specific values of $x$ (especially the roots of the linear factors) to make terms zero and solve for constants directly.
* Method 2 (Equating Coefficients): Expand the equation, collect terms by powers of $x$, and equate the coefficients of corresponding powers of $x$ on both sides to form a system of linear equations. Solve this system.
6. Integrate: Integrate each of the simpler fractions.
3. Worked Example
Let's tackle $\int \frac{x+1}{x^2-4} \, dx$.
- Analyze the integral: It's a rational function. The degree of the numerator (1) is less than the degree of the denominator (2), so no long division needed.
- Factor the denominator: $x^2-4 = (x-2)(x+2)$. These are distinct linear factors.
- Set up partial fraction decomposition:
$\frac{x+1}{(x-2)(x+2)} = \frac{A}{x-2} + \frac{B}{x+2}$ - Clear denominators: Multiply by $(x-2)(x+2)$:
$x+1 = A(x+2) + B(x-2)$ - Solve for constants (using the Heaviside/Zero Method):
- Let $x=2$:
$2+1 = A(2+2) + B(2-2)$
$3 = 4A + 0$
$A = \frac{3}{4}$ - Let $x=-2$:
$-2+1 = A(-2+2) + B(-2-2)$
$-1 = 0 - 4B$
$B = \frac{1}{4}$
- Let $x=2$:
- Rewrite the integral:
$\int \frac{x+1}{x^2-4} \, dx = \int \left( \frac{3/4}{x-2} + \frac{1/4}{x+2} \right) \, dx$ - Integrate:
$= \frac{3}{4} \int \frac{1}{x-2} \, dx + \frac{1}{4} \int \frac{1}{x+2} \, dx$
Using $\int \frac{1}{u} \, du = \ln|u| + C$:
$= \frac{3}{4} \ln|x-2| + \frac{1}{4} \ln|x+2| + C$
So, $\int \frac{x+1}{x^2-4} \, dx = \frac{3}{4} \ln|x-2| + \frac{1}{4} \ln|x+2| + C$.
4. Key Takeaways
- Substitution simplifies integrals by transforming them into a more recognizable form using a variable change.
- The key to u-substitution is recognizing a function and its derivative (or a scalar multiple) within the integrand.
- Partial fractions break down complex rational functions into sums of simpler, integrable fractions.
- Before using partial fractions, check if the numerator's degree is less than the denominator's degree; if not, use polynomial long division first.
- Factorizing the denominator correctly is crucial for setting up the partial fraction decomposition.
- Solving for the constants in partial fractions can be done by equating coefficients or by judiciously choosing values for $x$.
Common Mistakes to Avoid:
- Forgetting to change $dx$ to $du$: When substituting $u$, you must also change $dx$ to an expression involving $du$.
- Not substituting back (u-sub): After integrating in terms of $u$, don't forget to replace $u$ with its original expression in terms of $x$.
- Incorrectly factoring the denominator (partial fractions): Mistakes here will lead to an incorrect setup and wrong constants.
- Missing a term for repeated factors (partial fractions): For $(ax+b)^n$, you need $n$ terms: $\frac{A_1}{ax+b} + \frac{A_2}{(ax+b)^2} + \dots + \frac{A_n}{(ax+b)^n}$.
- Incorrectly setting up the numerator for quadratic factors: An irreducible quadratic factor $(ax^2+bx+c)$ requires a numerator of the form $Ax+B$.
5. Now Try It
Integrate $\int \frac{x}{x^2+1} \, dx$. This integral can be solved using substitution alone. Think about what part of the denominator, when differentiated, looks like the numerator. Success means arriving at an answer involving $\ln|x^2+1|$.
Try it yourself: Area under a curve: integration and the trapezium rule
Frequently asked about Techniques of Integration I: Substitution and Partial Fractions
Study this next
Get the full Integration curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Save this course free