Integration by partial fractions
Some integrals refuse every substitution you throw at them — until you notice the integrand is just one polynomial sitting on top of another. A rational function like cannot be integrated directly, but it can be split into , and each of those pieces is a standard log integral you already know. That splitting trick is integration by partial fractions, and it is the workhorse technique behind the Integrals (Indefinite) section of the ISC Class 12 Calculus unit. Once you can factor a denominator and match the right template to each factor — linear, repeated linear, or irreducible quadratic — almost any rational integrand becomes routine bookkeeping rather than a puzzle.
Any proper rational function decomposes into simple fractions matched to its denominator's factors, and each simple fraction integrates by a standard log or form.
The core idea
Partial fractions works because every real polynomial factors into linear pieces and irreducible quadratic pieces, and a proper rational function's decomposition is uniquely determined once you match the correct type of numerator to each factor type.
- Distinct linear factor contributes a term .
- Repeated linear factor contributes separate terms, one for each power up to — never just one term for the whole repeated factor.
- Irreducible quadratic factor , which cannot be factored further over the reals, needs a linear numerator , not a constant.
For a proper fraction with two distinct linear factors, the setup is
where: is a polynomial of degree lower than the denominator, and , are constants found by clearing denominators and substituting and in turn. If the fraction is improper — numerator degree greater than or equal to denominator degree — you must divide first:
where: the quotient is an ordinary polynomial from long division, and , the remainder, has degree strictly less than , so is now proper and can be decomposed normally. Skipping this check is the single most common reason a decomposition attempt fails outright. The constants in any decomposition can be found two ways, and most problems need a blend of both. Root substitution works whenever a linear factor's root makes the identity collapse to a single unknown — always use it first, for every distinct or repeated linear factor, since it is faster and less error-prone than algebra. Coefficient comparison is the fallback for whatever root substitution cannot reach directly: the coefficients belonging to an irreducible quadratic factor, or the lower-power constants of a repeated linear factor once its highest power has already been pinned down by substitution. Mixing the two — substitute first for the easy roots, then compare coefficients for what remains — is the standard exam workflow.
Deriving the working rule for a proper fraction over two distinct linear factors matters because it is the pattern every other case — repeated linear factors, irreducible quadratic factors, or a mix of both in the same denominator — extends directly, so mastering this one case unlocks the whole technique rather than being a special case you memorise in isolation and forget once the denominator changes shape.
Step 1. Start from the assumed decomposition , where has degree at most 1 (a proper fraction over a quadratic denominator).
Step 2. Multiply both sides by the full denominator to clear all fractions:
This is now a polynomial identity, true for every value of , not just the ones in the domain of the original fraction.
Step 3. Because the identity holds for every , choose the two values that make one bracket vanish. Put : the term disappears, leaving , so . Put : the term disappears, leaving , so .
Step 4. With and known, each simple fraction integrates by the standard log form , so the full result is
where: and are the constants from Step 3, and the absolute values are needed because is undefined for negative arguments while or can be negative over parts of the domain. The same root-substitution trick extends to repeated linear factors (substitute the repeated root to get the highest-power constant directly, then compare coefficients for the rest) and to irreducible quadratics, where after clearing denominators you instead compare coefficients of matching powers of since there is no real root to substitute.
Worked example
Evaluate .
Step 1. Write — two distinct linear factors, so one constant each.
Step 2. Clear denominators: .
Step 3. Put : . Put : .
Step 4. Integrate each term using the standard log form:
Final answer: .
Competitive stretch
For a repeated linear factor, such as , the template needs three terms: . Substituting and gives and directly (the repeated root kills the other terms cleanly at its highest power), and comparing the coefficient then gives . The integral comes out to , mixing a log term with a power term — a signature of repeated factors.
Common traps
- Skipping the improper-fraction check. If numerator degree is greater than or equal to denominator degree, divide first — decomposing directly gives an unsolvable system for the constants.
- Using one constant for a repeated factor instead of one term per power, e.g. writing only instead of .
- Mismatching numerator type to factor type — a constant numerator over an irreducible quadratic, or a linear numerator over a simple linear factor, both break the decomposition.
- Sign slips when substituting negative roots — redo the arithmetic explicitly rather than trusting a mental shortcut, especially for roots like .
Ask the tutor: Not sure which template fits a mixed denominator like ? Ask the AI tutor to walk through setting up each term with you.
Why can't I just use a constant numerator for every factor, linear or quadratic?
Because the numerator's degree must always be one less than the factor it sits over. A linear factor has degree 1, so its numerator is a constant (degree 0). An irreducible quadratic has degree 2, so its numerator must be degree 1, i.e. . Using a constant there leaves the system of equations for the unknowns unsolvable, because you have too few constants to match every power of once you clear denominators.
How do I know if a quadratic factor is irreducible instead of splitting into two linear factors?
Check its discriminant. For , compute . If this is negative, the quadratic has no real roots and cannot be factored further over the reals — it stays as one irreducible quadratic factor with an numerator. If the discriminant is zero or positive, factor it into linear pieces first and use the ordinary linear-factor templates instead, since that decomposition is simpler to integrate.
Why does the root-substitution trick not work for repeated factors past the highest power?
Substituting into the cleared identity for kills every term except the one attached to the highest power, , giving that one constant directly. But the lower-power constants are still multiplied by other factors when is substituted, so they do not vanish to zero the same way — you need a second method, usually comparing coefficients of matching powers of , to pin those down.