calculus

Partial Fractions Decomposition: The Complete Workflow

A no-fluff walkthrough of partial fractions — the four cases (distinct linear, repeated linear, irreducible quadratic, repeated quadratic) with worked examples and integration tips.

本文中文版本即将上线。下方暂以英文原文展示。

AI-Math Editorial Team

作者: AI-Math Editorial Team

发布于 2026-05-01

Partial fraction decomposition is the algebraic skill that lets you integrate any rational function on the planet. Instead of fighting one ugly fraction, you split it into pieces that are easy to integrate term by term. This guide walks through every case you'll meet.

The setup

A rational function is P(x)Q(x)\frac{P(x)}{Q(x)} where P,QP, Q are polynomials. Partial fractions only works when the degree of PP < degree of QQ. If not, do polynomial long division first to peel off the polynomial part.

After dividing, factor Q(x)Q(x) completely over the reals. Every factor falls into one of four categories.

The four cases

Case 1: distinct linear factors

If Q(x)=(xa)(xb)Q(x) = (x - a)(x - b), write:

P(x)(xa)(xb)=Axa+Bxb\frac{P(x)}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}

Example. Decompose 5x1(x1)(x+2)\frac{5x - 1}{(x - 1)(x + 2)}.

Multiply through: 5x1=A(x+2)+B(x1)5x - 1 = A(x + 2) + B(x - 1).

Plug x=1x = 1: 4=3AA=4/34 = 3A \Rightarrow A = 4/3.
Plug x=2x = -2: 11=3BB=11/3-11 = -3B \Rightarrow B = 11/3.

So 5x1(x1)(x+2)=4/3x1+11/3x+2\frac{5x-1}{(x-1)(x+2)} = \frac{4/3}{x-1} + \frac{11/3}{x+2}.

Case 2: repeated linear factor

For (xa)k(x - a)^k, you need one term per power up to kk:

A1xa+A2(xa)2++Ak(xa)k\frac{A_1}{x-a} + \frac{A_2}{(x-a)^2} + \dots + \frac{A_k}{(x-a)^k}

Case 3: irreducible quadratic factor

For each irreducible x2+bx+cx^2 + bx + c, use a numerator with two unknowns:

Bx+Cx2+bx+c\frac{Bx + C}{x^2 + bx + c}

Case 4: repeated irreducible quadratic

Same idea as case 2, but each power gets a Bx+CBx + C form.

Integration application

Once decomposed, integrate term by term:

  • 1xadx=lnxa+C\int \frac{1}{x - a} dx = \ln|x - a| + C
  • 1(xa)kdx=1(k1)(xa)k1+C\int \frac{1}{(x - a)^k} dx = \frac{-1}{(k-1)(x-a)^{k-1}} + C for k>1k > 1
  • Bx+Cx2+bx+cdx\int \frac{Bx + C}{x^2 + bx + c} dx splits into a ln\ln part and an arctan\arctan part.

Common mistakes

  • Forgetting to do long division first when degree of PP ≥ degree of QQ.
  • Skipping repeated terms(x1)3(x - 1)^3 requires three separate fractions.
  • Trying to factor irreducible quadratics — check the discriminant before forcing real roots.

Try with the AI Integral Solver

The Integral Solver automatically does partial fraction decomposition when needed and shows every step.

Related references:

AI-Math Editorial Team

作者: AI-Math Editorial Team

发布于 2026-05-01

A small team of engineers, mathematicians, and educators behind AI-Math, focused on making step-by-step math help accessible to every student.