Rational Expressions

Partial Fraction Decomposition: Rules, Examples and Checks

Partial fraction decomposition rewrites a proper rational expression as a sum of simpler fractions, one shape for each factor of the denominator:

P(x)(x−a)(x−b)=Ax−a+Bx−b\frac{P(x)}{(x-a)(x-b)}=\frac{A}{x-a}+\frac{B}{x-b}

The skill has two parts: writing the correct shape for each kind of factor, and finding the constants AA, BB and so on by the quickest method. Both are covered below, along with the traps that cost the most points.

What is partial fraction decomposition and why does it work?

Partial fraction decomposition is addition of fractions run backwards. Adding gives

1x−1+2x+3=(x+3)+2(x−1)(x−1)(x+3)=3x+1(x−1)(x+3),\frac{1}{x-1}+\frac{2}{x+3}=\frac{(x+3)+2(x-1)}{(x-1)(x+3)}=\frac{3x+1}{(x-1)(x+3)},

and decomposition starts from the right-hand side and recovers the two pieces. The forward direction is covered in adding and subtracting rational expressions. This page is the undo button.

The reason it always works is counting. A denominator of degree nn allows the combined numerator to be any polynomial of degree at most n−1n-1, and that polynomial has exactly nn free coefficients. The decomposition also has exactly nn unknown constants, so the matching system has one and only one solution.

The reason only a few shapes ever appear is a fact from the fundamental theorem of algebra: every real polynomial factors completely into linear factors and irreducible quadratics. So there are only four kinds of denominator pieces to learn, and the next section lists them.

How do you set up a partial fraction decomposition?

Counting unknown constants for x(x−2)³(x²+5) gives 1+3+2=6, matching the denominator degree
One term for x, three for (x − 2)³ and two for x² + 5 give 6 unknowns, the same as the denominator's degree.

Three preparation steps decide whether everything after them goes smoothly:

  1. Confirm the fraction is proper, meaning the numerator’s degree is strictly less than the denominator’s. If not, divide first (see the improper-fraction section below).
  2. Factor the denominator completely over the real numbers, and cancel any factor shared with the numerator using simplifying rational expressions.
  3. Write one term for each factor, using the table.
Denominator factor Terms to write
(x−a)(x-a) Ax−a\frac{A}{x-a}
(x−a)n(x-a)^n A1x−a+A2(x−a)2+⋯+An(x−a)n\frac{A_1}{x-a}+\frac{A_2}{(x-a)^2}+\dots+\frac{A_n}{(x-a)^n}
irreducible ax2+bx+cax^2+bx+c Ax+Bax2+bx+c\frac{Ax+B}{ax^2+bx+c}
irreducible (ax2+bx+c)n(ax^2+bx+c)^n A1x+B1ax2+bx+c+⋯+Anx+Bn(ax2+bx+c)n\frac{A_1x+B_1}{ax^2+bx+c}+\dots+\frac{A_nx+B_n}{(ax^2+bx+c)^n}

Here is a mental check that catches most setup errors: the number of unknown constants must equal the degree of the denominator. For x(x−2)3(x2+5)x(x-2)^3(x^2+5) that is 1+3+2=61+3+2=6. If your setup has 5 or 7 unknowns, a term is missing or extra.

The most common trap is writing only the highest power of a repeated factor, such as A(x−1)2\frac{A}{(x-1)^2} alone. Every lower power is needed too, because the lower-power terms are what supply the remaining degrees of freedom.

Quick check

How many unknown constants appear in the decomposition of 1x(x−2)3(x2+5)\frac{1}{x(x-2)^3(x^2+5)}?

Partial fraction decomposition with distinct linear factors

When every factor is linear and appears once, the cover-up method is the fastest route. Take

5x+4x2+x−2=5x+4(x−1)(x+2)=Ax−1+Bx+2.\frac{5x+4}{x^2+x-2}=\frac{5x+4}{(x-1)(x+2)}=\frac{A}{x-1}+\frac{B}{x+2}.

Multiply both sides by (x−1)(x+2)(x-1)(x+2) to get 5x+4=A(x+2)+B(x−1)5x+4=A(x+2)+B(x-1). This is an identity, true for every xx, so you may choose values that wipe out a term. At x=1x=1 the BB term vanishes: 9=3A9=3A, so A=3A=3. At x=−2x=-2 the AA term vanishes: −6=−3B-6=-3B, so B=2B=2. The result is 3x−1+2x+2\frac{3}{x-1}+\frac{2}{x+2}.

The finger trick

To find AA, cover the factor (x−1)(x-1) in the original fraction and plug x=1x=1 into what remains: 5(1)+41+2=3\frac{5(1)+4}{1+2}=3. This works because multiplying by (x−1)(x-1) and then substituting x=1x=1 is exactly what the covering does.

If the denominator is a quadratic that does not factor on sight, test whether it has real roots first. The quadratic formula gives you the roots, and each root rr gives a factor (x−r)(x-r), even when rr is a messy radical.

How do you handle repeated factors in the denominator?

Worked example showing cover-up finds A and C but B needs x² coefficient matching
For (x² + x + 3) over x(x − 1)², substituting x = 0 and x = 1 gives A and C, while B comes from matching x² coefficients.

A repeated factor needs one term per power, and the cover-up trick then only partly helps. Decompose

x2+x+3x(x−1)2=Ax+Bx−1+C(x−1)2.\frac{x^2+x+3}{x(x-1)^2}=\frac{A}{x}+\frac{B}{x-1}+\frac{C}{(x-1)^2}.

Clear the denominators:

x2+x+3=A(x−1)2+Bx(x−1)+Cx.x^2+x+3=A(x-1)^2+Bx(x-1)+Cx.

Put x=0x=0: 3=A3=A. Put x=1x=1: 5=C5=C. These two are the cover-up values, and they only recover the coefficient of the highest power of each factor. Covering up (x−1)2(x-1)^2 never reveals BB, because BB sits on a lower power.

For BB, match the x2x^2 coefficients. The right side has A+BA+B as its x2x^2 coefficient and the left side has 11, so B=1−3=−2B=1-3=-2. The decomposition is

3x−2x−1+5(x−1)2.\frac{3}{x}-\frac{2}{x-1}+\frac{5}{(x-1)^2}.

A fast sanity check: multiply the original fraction by xx and let xx grow very large. The left side tends to 11, and the right side tends to A+BA+B. Since 3+(−2)=13+(-2)=1, the constants pass.

What if the denominator has an irreducible quadratic?

A quadratic is irreducible over the reals when its discriminant b2−4acb^2-4ac is negative. So x2+2x^2+2 and x2+6x+10x^2+6x+10 are irreducible, while x2−4x^2-4 is not. Such a factor gets a linear numerator Bx+CBx+C, since a quadratic denominator has two degrees of freedom to fill.

Decompose

3x2+x+4x(x2+2)=Ax+Bx+Cx2+2.\frac{3x^2+x+4}{x(x^2+2)}=\frac{A}{x}+\frac{Bx+C}{x^2+2}.

Clear denominators and expand:

3x2+x+4=A(x2+2)+(Bx+C)x=(A+B)x2+Cx+2A.3x^2+x+4=A(x^2+2)+(Bx+C)x=(A+B)x^2+Cx+2A.

Now match coefficients. The constant terms give 2A=42A=4, so A=2A=2. The xx terms give C=1C=1. The x2x^2 terms give A+B=3A+B=3, so B=1B=1. The answer is

2x+x+1x2+2.\frac{2}{x}+\frac{x+1}{x^2+2}.

Over the complex numbers, x2+2x^2+2 factors as (x−i2)(x+i2)(x-i\sqrt{2})(x+i\sqrt{2}), and everything would split into constants over linear factors. Real-number work avoids complex numbers by keeping the quadratic whole and giving it a linear numerator.

Quick check

Is x2+6x+10x^2+6x+10 irreducible over the real numbers? If so, what numerator goes over it?

Partial fractions with an improper rational expression

If the numerator’s degree is at least the denominator’s, polynomial division comes first. The method assumes a proper fraction, and skipping the division makes the setup impossible: no combination of the standard shapes can produce a polynomial part. Consider

x3+2x2−x+5x2−1.\frac{x^3+2x^2-x+5}{x^2-1}.

Dividing, x⋅(x2−1)=x3−xx\cdot(x^2-1)=x^3-x leaves 2x2+52x^2+5, and 2⋅(x2−1)=2x2−22\cdot(x^2-1)=2x^2-2 leaves a remainder of 77. So the fraction equals x+2+7(x−1)(x+1)x+2+\frac{7}{(x-1)(x+1)}. For the remainder, 7=A(x+1)+B(x−1)7=A(x+1)+B(x-1) gives A=72A=\frac{7}{2} at x=1x=1 and B=−72B=-\frac{7}{2} at x=−1x=-1. The full answer is

x+2+7/2x−1−7/2x+1.x+2+\frac{7/2}{x-1}-\frac{7/2}{x+1}.

To confirm, test x=2x=2: the original gives 8+8−2+53=193\frac{8+8-2+5}{3}=\frac{19}{3}, and the decomposition gives 4+72−76=1934+\frac{7}{2}-\frac{7}{6}=\frac{19}{3}. If division feels rusty, the factoring habits in multiplying and dividing rational expressions make it quicker.

Try this: Decompose x2+1x(x+1)\frac{x^2+1}{x(x+1)}. Divide first, then split the remainder. Confirm your result by testing x=1x=1, where both sides should equal 11.

The quotient is not just a leftover. It is the slant or horizontal behavior of the graph, so y=x+2y=x+2 above is the slant line the curve approaches, while the two remaining fractions mark the vertical lines x=±1x=\pm1. See vertical and horizontal asymptotes for how that reading works.

What is the fastest way to solve for the constants?

There are three tools, and the best solvers mix them:

  • Substitution: plug in the roots of the denominator so every term but one disappears. This is quickest for distinct linear factors.
  • Matching coefficients: expand and equate powers of xx. This is required for quadratic factors and for lower powers of repeated factors.
  • A mix: use substitution to get the easy constants, then match one coefficient, usually the highest power, for the rest.

Matching coefficients produces a linear system, and for small systems Cramer’s rule is clean. Suppose matching gives A+B=5A+B=5 and 2A−B=12A-B=1. The determinant of the coefficients is

D=∣112−1∣=−3,D=\begin{vmatrix}1&1\\2&-1\end{vmatrix}=-3,

then A=1D∣511−1∣=−6−3=2A=\frac{1}{D}\begin{vmatrix}5&1\\1&-1\end{vmatrix}=\frac{-6}{-3}=2 and B=1D∣1521∣=−9−3=3B=\frac{1}{D}\begin{vmatrix}1&5\\2&1\end{vmatrix}=\frac{-9}{-3}=3. The mechanics of the two-unknown case are in the determinant of a 2×2 matrix, and three unknowns, as in a setup with a linear factor and an irreducible quadratic, use the determinant of a 3×3 matrix.

In practice, substitution first and coefficients last usually leaves one tiny equation instead of a full system.

How do you check a partial fraction decomposition?

The cleanest check is a numerical test. Choose a simple value of xx that is not a root of the denominator, evaluate the original fraction and your decomposition, and compare. Pick values that keep the arithmetic easy, such as x=1x=1 or x=2x=2, and avoid any value in the excluded set described in the domain of a rational function.

One test can pass by luck, though it rarely does. For a decomposition with three unknowns, a second value of xx makes the check airtight. The algebraic alternative is to recombine the fractions over the common denominator and confirm the numerator matches the original, which is slower but fully rigorous.

A failed test also tells you where to look. If the check fails by a constant amount, an arithmetic slip in one coefficient is likely. If it fails wildly, suspect the setup, usually a missing lower power of a repeated factor or a constant placed over a quadratic.

Quick check

Test x+4x(x+2)=2x+1x+2\frac{x+4}{x(x+2)}=\frac{2}{x}+\frac{1}{x+2} at x=1x=1. Does it pass?

What is partial fraction decomposition used for?

The biggest use is integration. A fraction like 5x+4x2+x−2\frac{5x+4}{x^2+x-2} has no obvious antiderivative, but its pieces do:

∫5x+4x2+x−2 dx=∫(3x−1+2x+2)dx=3ln⁡∣x−1∣+2ln⁡∣x+2∣+C.\int\frac{5x+4}{x^2+x-2}\,dx=\int\left(\frac{3}{x-1}+\frac{2}{x+2}\right)dx=3\ln|x-1|+2\ln|x+2|+C.

The logarithm rules let you merge the result into ln⁡∣(x−1)3(x+2)2∣+C\ln\left|(x-1)^3(x+2)^2\right|+C. Irreducible quadratic pieces integrate to arctangent terms instead, because ∫dxx2+a2=1aarctan⁡xa\int\frac{dx}{x^2+a^2}=\frac{1}{a}\arctan\frac{x}{a}.

Telescoping sums

Since 1n(n+1)=1n−1n+1\frac{1}{n(n+1)}=\frac{1}{n}-\frac{1}{n+1}, the sum ∑n=1N1n(n+1)\sum_{n=1}^{N}\frac{1}{n(n+1)} collapses, with each term canceling the next, to 1−1N+11-\frac{1}{N+1}.

The same splitting powers inverse Laplace transforms in differential equations and signal processing, where a transfer function is broken into pieces with known time-domain forms. In each case the idea is identical: replace one hard fraction with several easy ones.

Practice problems

0 of 5 solved

  1. Decompose 1x(x+1)\frac{1}{x(x+1)}.

  2. Decompose 7x+1(x−2)(x+3)\frac{7x+1}{(x-2)(x+3)}.

  3. Decompose 3x+4(x+2)2\frac{3x+4}{(x+2)^2}.

  4. Decompose 4x2+3x+8x(x2+4)\frac{4x^2+3x+8}{x(x^2+4)}.

  5. Decompose x3+x2−2x+3x2−x\frac{x^3+x^2-2x+3}{x^2-x}.

Common questions

What is partial fraction decomposition?

It is a way to rewrite one rational expression as a sum of simpler fractions whose denominators are the factors of the original denominator. It reverses the process of adding fractions with a common denominator.

When do you use partial fraction decomposition?

Use it when a fraction with a factored denominator is hard to work with directly. The most common cases are integrating rational functions, finding inverse Laplace transforms, and summing series that telescope.

How do you do partial fractions with repeated factors?

Include one term for every power of the repeated factor, from the first power up to the highest. For (x−1)3(x-1)^3 the terms are Ax−1\frac{A}{x-1}, B(x−1)2\frac{B}{(x-1)^2} and C(x−1)3\frac{C}{(x-1)^3}.

What do you do if the numerator's degree is greater than or equal to the denominator's?

Divide the polynomials first. The quotient stays as a polynomial, and only the remainder fraction, which is now proper, gets decomposed.

Why is the numerator Ax + B over an irreducible quadratic?

A quadratic denominator has two degrees of freedom to fill, so its numerator must be allowed two unknown constants. A single constant would not be enough to match every possible numerator.

Can partial fractions be used if the denominator does not factor?

If the denominator has no real factors beyond an irreducible quadratic, it already is a single partial fraction and needs no splitting. For higher degree denominators with no nice roots, you can still factor numerically, but the constants will be decimals.

Up next