§ 01The Core Idea — Addition in Reverse
You already know how to add fractions: 1/(x−1) + 2/(x+3) = (3x+1)/((x−1)(x+3)). Partial fraction decomposition runs this process in reverse. Given a rational integrand, you split it back into simple pieces: each of which has an elementary antiderivative.
Without this technique, an integral like ∫ (3x+1)/((x−1)(x+3)) dx has no obvious approach. With it, the fraction splits into 1/(x−1) + 2/(x+3), and each piece integrates to a logarithm immediately. The heavy lifting is algebraic, not calculus.
Each simple piece has the form A/(linear factor) or (Bx+C)/(irreducible quadratic), all of which integrate to ln or arctan forms.
§ 02Step 0 — Polynomial Long Division for Improper Fractions
A rational function P(x)/Q(x) is improper if deg(P) ≥ deg(Q). You must divide first, reducing it to a polynomial plus a proper remainder before any decomposition.
Numerator degree 3 ≥ denominator degree 2 → improper. Must divide.
Quotient: x + 3. Remainder: 3x − 1. Now decompose only the remainder fraction.
The integral of the polynomial part (x + 3) is immediate. Only the proper remainder fraction (3x−1)/(x(x−1)) needs decomposition, as shown in Case 1 below.
§ 03The Three Decomposition Cases
Every denominator, once factored, consists of some combination of three types of factor. The form of the partial fraction template depends entirely on which types appear.
§ 04Case 1 — Distinct Linear Factors
The standard method: write the template, clear denominators by multiplying both sides by Q(x), then solve for constants by substituting the roots of each factor (the "cover-up" trick) or by comparing coefficients.
§ 05Case 2 — Repeated Linear Factors
When a linear factor (x−a)n appears with multiplicity n > 1, the template must include one term for every power from 1 up to n. Using fewer terms gives a system with no solution, a common and frustrating error.
For B: expand and compare x2 coefficients. A+B = 0 → B = −3.
The last term: ∫ (x−1)−2 dx = −(x−1)−1 = −1/(x−1)
Compare x2: A+C = 0 → A = −1/4
§ 06Case 3 — Irreducible Quadratic Factors
When Q(x) contains an irreducible quadratic factor, the corresponding partial fraction has a linear numerator Bx + C, not just a constant. After decomposition, these terms typically require completing the square and integrating to arctan (and sometimes ln).
x2+1 has discriminant 0−4 = −4 < 0. Irreducible. Proper fraction ✓.
Expand: 2x2+x+1 = 2x2+2 + Bx2−Bx+Cx−C
x2: 2 = 2+B → B = 0 x: 1 = −B+C = C → C = 1 Check const: 1 = 2−C = 1 ✓
b2−4ac = 4−20 = −16 < 0. Irreducible. Entire integrand is one irreducible quadratic term.
Let u = (x+1)2+4, du = 2(x+1) dx:
∫ (x+1)/((x+1)2+4) dx = (1/2) ln((x+1)2+4)Using ∫ du/(u2+a2) = (1/a) arctan(u/a) with u=x+1, a=2.
§ 07Definite Integrals by Partial Fractions
For definite integrals, decompose and integrate as usual, then evaluate at the limits. Be alert to any discontinuities in the domain: a factor like (x−2) in the denominator means the integrand is undefined at x = 2, so an interval containing that point would be an improper integral, not a standard definite integral.
At x=1: 2 ln 1 − (1/2) ln 2 = 0 − (1/2) ln 2
As x→0+: 2 ln x − (1/2) ln(x2+1) → −∞ + 0: this is an improper integral at x=0! Need limit.
limx→0+ [2 ln x − (1/2)ln(x2+1)] = −∞The integral diverges, the integrand has a non-integrable singularity at x = 0.
§ 08Five Common Mistakes
§ 0910-Question Quiz
Test your decomposition skills: templates, constants, integration forms, and error identification.