Partial fractions
Split a fraction into simpler pieces, then integrate.
A fraction like 1/((x − a)(x − b)) can be split into A/(x − a) + B/(x − b). Find A and B by clearing denominators and plugging in x = a and x = b. Each piece integrates to a logarithm: the integral of A/(x − a) is A ln|x − a|.
Example: 1/((x − 1)(x + 2))
- 1 = A(x + 2) + B(x − 1) — Clear denominators
- x = 1: A = 1/3; x = −2: B = −1/3
- (1/3)ln|x − 1| − (1/3)ln|x + 2| + C — Integrate each piece
Why it works: A complicated fraction can be split into simple fractions that add back up to it, and each simple one is easy to integrate.
Tip: The cover-up method is fast: to find A, cover (x − a) and plug x = a into what is left.