Why the Decomposition Is Legal
The method rests on a fact from algebra: if factors into factors that share no common root â pairwise coprime polynomials â then can be written as a combination of fractions whose denominators are those factors, and the combination is unique. Concretely, when with , there is exactly one pair of constants , with
Uniqueness is what makes the constant-hunting tricks valid: any constants you find that make the identity true must be the constants. Multiplying both sides by clears the denominators and leaves a polynomial identity â true for every â and polynomial identities can be settled by plugging in convenient values of or by matching coefficients of like powers.
Case 1: Non-Repeating Linear Factors
If :
Each distinct linear factor earns exactly one constant in the numerator.
Two Ways to Find the Constants
After clearing denominators you have a single polynomial equation holding for all . Two standard strategies extract the constants. The cover-up method substitutes each root of a linear factor in turn: every term containing that factor dies, and one constant falls out immediately. It fails to touch constants sitting over repeated or quadratic factors, which need the remaining equations. Equating coefficients expands everything and matches the coefficients of , , and the constant term, producing a small linear system. A third trick, useful for repeated linear factors, is to differentiate the cleared identity before substituting, which peels off the inner constants one layer at a time. Practitioners usually cover-up what they can, then solve the leftovers by coefficients.
Example: Non-Repeating Linear Factors
Evaluate .
Case 2: Repeating Linear Factors
If :
A factor contributes terms, one for every power from up to , each with its own constant. Only the highest power is reachable by the cover-up trick; the lower constants come from coefficients or differentiation. Integrating, the top-power terms produce rational functions such as , while the simple term still produces a logarithm.
Worked Problem: Repeated Linear Factor
Evaluate .
Case 3: Quadratic Factors
If where is irreducible (no real roots):
An irreducible quadratic earns a linear numerator , not a single constant â there are two degrees of freedom hiding inside one quadratic factor. When the same irreducible quadratic repeats, each power gets its own linear numerator.
Example: Quadratic Factor
Evaluate .
Irreducible Quadratics: Derivative Plus Remainder
When the denominator holds a true irreducible quadratic, the integration step needs one more idea. Split the linear numerator into a multiple of the derivative of the quadratic plus a leftover constant: write . The first piece integrates to because it is exactly ; the leftover over the completed square produces an arctangent.
Checking Decompositions Numerically
A decomposition that looks wrong usually is. Since the identity is supposed to hold for all away from the poles, you can integrate the original rational function by quadrature on a safe interval and compare against the closed-form antiderivative â a check that catches sign errors in constants immediately.
import math
def f(x):
return (4 * x * x - 3 * x + 5) / ((x - 1) ** 2 * (x + 2))
def F(x):
# antiderivative from the decomposition: 1/(x-1) + 2/(x-1)^2 + 3/(x+2)
return math.log(abs(x - 1)) - 2.0 / (x - 1) + 3.0 * math.log(abs(x + 2))
def trapezoid(g, a, b, n=200000):
h = (b - a) / n
s = 0.5 * (g(a) + g(b))
for i in range(1, n):
s += g(a + i * h)
return s * h
# interval [3, 5] avoids the poles at x = 1 and x = -2
numeric = trapezoid(f, 3.0, 5.0)
closed = F(5.0) - F(3.0)
print(round(numeric, 6), round(closed, 6)) # both print 1.081... â decomposition confirmed
import math
def g(x):
return (2 * x + 3) / (x * x + 2 * x + 5)
def G(x):
return math.log(x * x + 2 * x + 5) + 0.5 * math.atan((x + 1) / 2)
def trapezoid(h, a, b, n=200000):
step = (b - a) / n
s = 0.5 * (h(a) + h(b))
for i in range(1, n):
s += h(a + i * step)
return s * step
print(round(trapezoid(g, 0.0, 2.0), 6), round(G(2.0) - G(0.0), 6)) # identical to 6 decimals
Choosing the Right Form for Q(x)
| Factor in | Terms it contributes | Constants per factor | Integral produces |
|---|---|---|---|
| linear | one fraction over | 1 | natural log |
| repeated | one fraction for each power up to | logs plus rational powers | |
| irreducible quadratic | one fraction with linear numerator | 2 | log plus arctangent |
| repeated irreducible | linear numerator over each power | twice the power | logs, arctans, rational terms |
The table is the decision procedure: factor completely over the reals, read off the template from the table, then find constants by cover-up and coefficients.
Important Integrals
These three integrals show up the moment a quadratic denominator survives the decomposition, so keep them within reach.
The first feeds the arctangent pieces that come from irreducible quadratics; the latter two feed the trigonometric substitutions covered in the inverse-trig lesson.
Common Mistakes
Starting the decomposition while the degree of P still matches or exceeds the degree of Q
Fix: Divide first: run polynomial long division, decompose only the remainder, and add the quotient back at the end.
Writing a single constant C over an irreducible quadratic instead of a linear numerator Bx + C
Fix: An irreducible quadratic has two degrees of freedom, so its numerator must be linear; repeated quadratics each get their own Bx + C layer.
Trying the cover-up trick on the lower terms of a repeated factor and getting inconsistent constants
Fix: Cover-up only reaches the highest power of a repeated factor; find the remaining constants by equating coefficients or by differentiating the cleared identity.
Key Takeaways
- Partial fractions split a rational function into pieces whose denominators mirror the factors of Q, and the split is unique once Q is factored.
- Distinct linear factors give one constant each; a power (x minus a) to the m gives m stacked terms; irreducible quadratics give a linear numerator each.
- Find constants by substituting the roots of linear factors, then finish the leftovers by equating coefficients; verify the identity at a spare value of x.
- Integrating the pieces yields only logs, arctangents, and rational powers â the full toolkit for rational functions at this level.