Calculus › Section I · Integration techniques and improper integrals › Topic I.5

Partial fractions

Adding fractions glues simple pieces into one complicated fraction; partial fractions runs that process backwards. It is a purely algebraic step, but it unlocks the calculus: each simple piece integrates to a logarithm or an arctangent, while the combined form resists everything.

Adding fractions, run backwards

When two simple fractions add, the result is one complicated one: \(\frac{2}{x - 1} - \frac{1}{x + 2} = \frac{x + 5}{(x - 1)(x + 2)}\). The left-hand side integrates to logarithms on sight; the right-hand side resists every technique so far. Partial fractions runs the addition backwards — starting from \(\frac{x+5}{(x-1)(x+2)}\), recover the simple pieces, then integrate each one. It is the algebra of un-doing common denominators, nothing more, but it is the key that unlocks every rational function: integrals whose integrands are one polynomial over another.

The setup: one term per factor

Two checks come before anything else. First, the fraction must be proper — the numerator's degree less than the denominator's; if not, do polynomial long division first and split only the remainder. Second, factor the denominator completely. Then give every factor its own term: each distinct linear factor \((x - a)\) contributes \(\frac{A}{x-a}\); a repeated factor \((x-a)^2\) contributes \(\frac{A}{x-a} + \frac{B}{(x-a)^2}\) — one term per power; an irreducible quadratic \(x^2 + bx + c\) contributes \(\frac{Bx + C}{x^2 + bx + c}\). The unknown constants are found algebraically, and only after the split does any integration happen.

Worked example: distinct linear factors

Evaluate \(\int \frac{x + 5}{(x - 1)(x + 2)}\,dx\). Write

\frac{x + 5}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}

Multiply through by the denominator: \(x + 5 = A(x + 2) + B(x - 1)\). The cover-up shortcut finds each constant fast: cover \((x - 1)\) and substitute \(x = 1\) into what remains, giving \(A = \frac{6}{3} = 2\); cover \((x + 2)\) and substitute \(x = -2\), giving \(B = \frac{3}{-3} = -1\). So

\int \left(\frac{2}{x - 1} - \frac{1}{x + 2}\right)dx = 2\ln|x - 1| - \ln|x + 2| + C

Check the split by recombining: \(\frac{2(x+2) - (x-1)}{(x-1)(x+2)} = \frac{x+5}{(x-1)(x+2)}\) ✓. The same move on \(\frac{1}{x^2 - 4} = \frac{1}{(x-2)(x+2)}\) gives \(A = \frac{1}{4}\) and \(B = -\frac{1}{4}\), so \(\int \frac{dx}{x^2 - 4} = \frac{1}{4}\ln\left|\frac{x-2}{x+2}\right| + C\).

When long division comes first

Partial fractions demands a proper fraction, and \(\frac{x^2 + 1}{x + 1}\) is not one: the numerator's degree matches the denominator's. Divide first:

\frac{x^2 + 1}{x + 1} = x - 1 + \frac{2}{x + 1}

Verify by recombining: \((x+1)(x-1) + 2 = x^2 - 1 + 2 = x^2 + 1\) ✓. Now every piece is easy:

\int \frac{x^2 + 1}{x + 1}\,dx = \int \left(x - 1 + \frac{2}{x + 1}\right)dx = \frac{x^2}{2} - x + 2\ln|x + 1| + C

The habit is general: see a top-heavy fraction, divide before you do anything else. Skipping this step cannot be repaired later: no choice of \(A\) and \(B\) makes a top-heavy fraction equal to a sum of proper ones.

Worked example: a repeated factor

Evaluate \(\int \frac{2x + 3}{x^2(x + 1)}\,dx\). The repeated \(x^2\) needs one term per power:

\frac{2x + 3}{x^2(x+1)} = \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x + 1}

Multiply through: \(2x + 3 = Ax(x + 1) + B(x + 1) + Cx^2\). Substitute \(x = 0\): \(3 = B\). Substitute \(x = -1\): \(1 = C\). Compare \(x^2\)-coefficients to finish: \(0 = A + C\), so \(A = -1\).

\int \left(-\frac{1}{x} + \frac{3}{x^2} + \frac{1}{x + 1}\right)dx = -\ln|x| - \frac{3}{x} + \ln|x + 1| + C

The middle term integrates by the power rule — repeated factors do not always end in logarithms.

Worked example: an irreducible quadratic

Evaluate \(\int \frac{dx}{(x^2 + 1)(x + 1)}\). The quadratic \(x^2 + 1\) has no real roots, so it contributes a linear-over-quadratic term:

\frac{1}{(x^2+1)(x+1)} = \frac{A}{x+1} + \frac{Bx + C}{x^2 + 1}

Multiplying out: \(1 = A(x^2 + 1) + (Bx + C)(x + 1)\). At \(x = -1\): \(1 = 2A\), so \(A = \frac{1}{2}\). Comparing coefficients: \(x^2\) gives \(0 = A + B\), so \(B = -\frac{1}{2}\); the constant gives \(1 = A + C\), so \(C = \frac{1}{2}\).

\int \frac{1/2}{x+1}\,dx + \int \frac{-x/2 + 1/2}{x^2 + 1}\,dx = \frac{1}{2}\ln|x+1| - \frac{1}{4}\ln(x^2+1) + \frac{1}{2}\arctan x + C

A quadratic term over \(x^2 + 1\) always splits this way: the \(x\)-part is a logarithm (because \(x\) is a constant multiple of the denominator's derivative \(2x\)), and the constant part is an arctangent.

Applied: finishing separable equations

Separating variables in a differential equation often leaves exactly this kind of fraction. \(\int \frac{dx}{x(2 - x)}\) appears in growth-with-crowding models, the same family as the logistic equation solved in an earlier topic. The split:

\frac{1}{x(2-x)} = \frac{A}{x} + \frac{B}{2 - x}

Multiplying through and substituting \(x = 0\) gives \(A = \frac{1}{2}\); substituting \(x = 2\) gives \(B = \frac{1}{2}\). The integral is \(\frac{1}{2}\ln|x| - \frac{1}{2}\ln|2 - x| + C\), which then feeds back into the differential equation's solution. Population models, chemical reaction rates and mixing problems all produce rational functions — partial fractions is the standard way to integrate them.

Common mistakes to avoid

Skipping the degree check: a top-heavy fraction must be divided first, because no partial-fractions setup can represent it. Using one term for a repeated factor instead of one term per power — \(\frac{A}{x} + \frac{B}{x+1}\) cannot capture \(\frac{2x+3}{x^2(x+1)}\); the missing \(\frac{B}{x^2}\) term makes the constants unsolvable. Giving the quadratic term a constant numerator instead of \(Bx + C\). Forgetting the absolute value in \(\ln|x - a|\) when the domain is unspecified. And, at the very end, forgetting \(+ C\). The split itself can always be checked by recombining over a common denominator — do that once per problem.

Key takeaways

Partial fractions turns a rational function into simple pieces that integrate to logs, arctangents and the occasional power. The routine: check the degree and divide if needed, factor the denominator, assign one term per factor (one per power for repeats, \(\frac{Bx+C}{\text{quadratic}}\) for irreducible quadratics), solve for the constants — the cover-up shortcut handles distinct linear factors — then integrate piece by piece. Distinct linear factors give logarithms; repeated factors give logarithms and powers; irreducible quadratics give a logarithm plus an arctangent. Recombining the split is the complete check.

Flashcards

Flashcard

Partial fractions

Split a rational function into simple fractions

Algebra first; each piece then integrates to a log or arctangent.

Test your understanding

Question 1 of 5

Which partial-fractions form is correct for (2x + 3)/((x − 1)(x + 2))?

Question 2 of 5

Using the cover-up method on 1/((x − 3)(x + 5)), what is the constant A over (x − 3)?

Question 3 of 5

Which setup is correct for splitting (2x + 3)/(x²(x + 1))?

Question 4 of 5

What is ∫(2x)/(x² + 1) dx?

Question 5 of 5

Before splitting (x³ + 2x)/(x² − 1), what must happen first?

Standards: 6 (BC)

← Previous topicNext topic →