College Algebra

Partial Fraction Decomposition

Last updated: March 2026 · Advanced
Before you start

You should be comfortable with:

Partial fraction decomposition is the reverse of adding fractions. Just as you combine 1x1+2x+3\frac{1}{x-1} + \frac{2}{x+3} into a single fraction, partial fractions breaks 5x+7(x1)(x+3)\frac{5x + 7}{(x-1)(x+3)} back into a sum of simpler fractions. This technique is essential for integration in calculus, for inverse Laplace transforms in engineering, and for simplifying complex rational expressions.

Why Partial Fractions?

Consider the fraction 5x+7x2+2x3\frac{5x + 7}{x^2 + 2x - 3}. As a single fraction, it is hard to integrate, hard to analyze, and hard to invert in a Laplace transform. But if we write it as:

5x+7x2+2x3=3x1+2x+3\frac{5x + 7}{x^2 + 2x - 3} = \frac{3}{x - 1} + \frac{2}{x + 3}

Each piece has a simple, well-known integral (lnx1\ln|x-1| and lnx+3\ln|x+3|), and each piece has a straightforward Laplace inverse. The decomposition makes hard problems easy.

The Setup: Three Cases

The method depends on the type of factors in the denominator after complete factoring.

Case 1: Distinct Linear Factors

If the denominator factors into distinct (non-repeating) linear factors:

P(x)(xa1)(xa2)(xan)=A1xa1+A2xa2++Anxan\frac{P(x)}{(x - a_1)(x - a_2) \cdots (x - a_n)} = \frac{A_1}{x - a_1} + \frac{A_2}{x - a_2} + \cdots + \frac{A_n}{x - a_n}

Each factor gets one constant in the numerator.

Example 1: Decompose 5x+7(x1)(x+3)\frac{5x + 7}{(x - 1)(x + 3)}.

Setup:

5x+7(x1)(x+3)=Ax1+Bx+3\frac{5x + 7}{(x - 1)(x + 3)} = \frac{A}{x - 1} + \frac{B}{x + 3}

Solve: Multiply both sides by (x1)(x+3)(x - 1)(x + 3):

5x+7=A(x+3)+B(x1)5x + 7 = A(x + 3) + B(x - 1)

Strategic substitution — choose xx-values that eliminate one variable:

Set x=1x = 1: 5(1)+7=A(1+3)+B(0)    12=4A    A=35(1) + 7 = A(1 + 3) + B(0) \implies 12 = 4A \implies A = 3

Set x=3x = -3: 5(3)+7=A(0)+B(31)    8=4B    B=25(-3) + 7 = A(0) + B(-3 - 1) \implies -8 = -4B \implies B = 2

Result:

5x+7(x1)(x+3)=3x1+2x+3\frac{5x + 7}{(x - 1)(x + 3)} = \frac{3}{x - 1} + \frac{2}{x + 3}

Verification: 3x1+2x+3=3(x+3)+2(x1)(x1)(x+3)=3x+9+2x2(x1)(x+3)=5x+7(x1)(x+3)\frac{3}{x-1} + \frac{2}{x+3} = \frac{3(x+3) + 2(x-1)}{(x-1)(x+3)} = \frac{3x+9+2x-2}{(x-1)(x+3)} = \frac{5x+7}{(x-1)(x+3)} — confirmed.

Case 2: Repeated Linear Factors

If a linear factor (xa)(x - a) appears with multiplicity kk, you need kk terms with increasing powers:

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

Example 2: Decompose 3x2+5x+2(x+1)2(x2)\frac{3x^2 + 5x + 2}{(x + 1)^2(x - 2)}.

Setup:

3x2+5x+2(x+1)2(x2)=Ax+1+B(x+1)2+Cx2\frac{3x^2 + 5x + 2}{(x + 1)^2(x - 2)} = \frac{A}{x + 1} + \frac{B}{(x + 1)^2} + \frac{C}{x - 2}

Solve: Multiply both sides by (x+1)2(x2)(x + 1)^2(x - 2):

3x2+5x+2=A(x+1)(x2)+B(x2)+C(x+1)23x^2 + 5x + 2 = A(x + 1)(x - 2) + B(x - 2) + C(x + 1)^2

Set x=2x = 2: 3(4)+5(2)+2=C(3)2    24=9C    C=833(4) + 5(2) + 2 = C(3)^2 \implies 24 = 9C \implies C = \frac{8}{3}

Set x=1x = -1: 3(1)+5(1)+2=B(3)    0=3B    B=03(1) + 5(-1) + 2 = B(-3) \implies 0 = -3B \implies B = 0

Set x=0x = 0 (using known BB and CC): 2=A(1)(2)+0(2)+83(1)    2=2A+83    2A=283=23    A=132 = A(1)(-2) + 0(-2) + \frac{8}{3}(1) \implies 2 = -2A + \frac{8}{3} \implies -2A = 2 - \frac{8}{3} = -\frac{2}{3} \implies A = \frac{1}{3}

Result:

3x2+5x+2(x+1)2(x2)=1/3x+1+0(x+1)2+8/3x2=13(x+1)+83(x2)\frac{3x^2 + 5x + 2}{(x + 1)^2(x - 2)} = \frac{1/3}{x + 1} + \frac{0}{(x + 1)^2} + \frac{8/3}{x - 2} = \frac{1}{3(x + 1)} + \frac{8}{3(x - 2)}

Case 3: Irreducible Quadratic Factors

An irreducible quadratic is a quadratic ax2+bx+cax^2 + bx + c that cannot be factored over the real numbers (its discriminant b24ac<0b^2 - 4ac < 0). For each irreducible quadratic factor, the partial fraction has a linear numerator:

P(x)(ax2+bx+c)Ax+Bax2+bx+c\frac{P(x)}{(ax^2 + bx + c)} \to \frac{Ax + B}{ax^2 + bx + c}

If the irreducible quadratic is repeated with multiplicity kk, you need kk terms:

A1x+B1ax2+bx+c+A2x+B2(ax2+bx+c)2+\frac{A_1 x + B_1}{ax^2 + bx + c} + \frac{A_2 x + B_2}{(ax^2 + bx + c)^2} + \cdots

Example 3: Decompose 2x2+x+3(x1)(x2+1)\frac{2x^2 + x + 3}{(x - 1)(x^2 + 1)}.

Note: x2+1x^2 + 1 is irreducible (discriminant 04=4<00 - 4 = -4 < 0).

Setup:

2x2+x+3(x1)(x2+1)=Ax1+Bx+Cx2+1\frac{2x^2 + x + 3}{(x - 1)(x^2 + 1)} = \frac{A}{x - 1} + \frac{Bx + C}{x^2 + 1}

Solve: Multiply both sides by (x1)(x2+1)(x - 1)(x^2 + 1):

2x2+x+3=A(x2+1)+(Bx+C)(x1)2x^2 + x + 3 = A(x^2 + 1) + (Bx + C)(x - 1)

Set x=1x = 1: 2+1+3=A(2)    6=2A    A=32 + 1 + 3 = A(2) \implies 6 = 2A \implies A = 3

Expand the right side: A(x2+1)+(Bx+C)(x1)=Ax2+A+Bx2Bx+CxCA(x^2 + 1) + (Bx + C)(x - 1) = Ax^2 + A + Bx^2 - Bx + Cx - C

=(A+B)x2+(B+C)x+(AC)= (A + B)x^2 + (-B + C)x + (A - C)

Match coefficients with 2x2+x+32x^2 + x + 3:

  • x2x^2: A+B=2    3+B=2    B=1A + B = 2 \implies 3 + B = 2 \implies B = -1
  • x1x^1: B+C=1    1+C=1    C=0-B + C = 1 \implies 1 + C = 1 \implies C = 0
  • x0x^0: AC=3    30=3A - C = 3 \implies 3 - 0 = 3 — confirmed

Result:

2x2+x+3(x1)(x2+1)=3x1+xx2+1\frac{2x^2 + x + 3}{(x - 1)(x^2 + 1)} = \frac{3}{x - 1} + \frac{-x}{x^2 + 1}

The General Procedure

  1. Ensure the fraction is proper (numerator degree less than denominator degree). If not, perform long division first.
  2. Factor the denominator completely.
  3. Set up the decomposition according to the three cases above.
  4. Clear denominators by multiplying both sides by the full denominator.
  5. Solve for coefficients using strategic substitution (plug in roots of denominator factors) and/or coefficient matching.
  6. Verify by recombining the partial fractions.

Important: The Fraction Must Be Proper

If deg(P)deg(Q)\deg(P) \geq \deg(Q), you must divide first.

Example 4: Decompose x3+2x2+x+1x21\frac{x^3 + 2x^2 + x + 1}{x^2 - 1}.

Numerator degree 3 is greater than denominator degree 2. Divide first:

x3+2x2+x+1÷(x21)x^3 + 2x^2 + x + 1 \div (x^2 - 1)

Step 1: x3÷x2=xx^3 \div x^2 = x. Multiply: x3xx^3 - x. Subtract: 2x2+2x+12x^2 + 2x + 1.

Step 2: 2x2÷x2=22x^2 \div x^2 = 2. Multiply: 2x222x^2 - 2. Subtract: 2x+32x + 3.

x3+2x2+x+1x21=x+2+2x+3x21\frac{x^3 + 2x^2 + x + 1}{x^2 - 1} = x + 2 + \frac{2x + 3}{x^2 - 1}

Now decompose the proper fraction 2x+3(x1)(x+1)\frac{2x + 3}{(x-1)(x+1)}:

2x+3(x1)(x+1)=Ax1+Bx+1\frac{2x + 3}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1}

x=1x = 1: 5=2A    A=525 = 2A \implies A = \frac{5}{2}

x=1x = -1: 1=2B    B=121 = -2B \implies B = -\frac{1}{2}

Final result:

x3+2x2+x+1x21=x+2+5/2x11/2x+1\frac{x^3 + 2x^2 + x + 1}{x^2 - 1} = x + 2 + \frac{5/2}{x - 1} - \frac{1/2}{x + 1}

Solving Systems by Coefficient Matching

When strategic substitution does not give you all constants (common with irreducible quadratics), expand the right side and match coefficients of like powers of xx.

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

Setup:

x+4(x2+4)(x1)=Ax+Bx2+4+Cx1\frac{x + 4}{(x^2 + 4)(x - 1)} = \frac{Ax + B}{x^2 + 4} + \frac{C}{x - 1}

Multiply through: x+4=(Ax+B)(x1)+C(x2+4)x + 4 = (Ax + B)(x - 1) + C(x^2 + 4)

Set x=1x = 1: 5=C(5)    C=15 = C(5) \implies C = 1

Expand: (Ax+B)(x1)+(x2+4)=Ax2Ax+BxB+x2+4(Ax + B)(x-1) + (x^2 + 4) = Ax^2 - Ax + Bx - B + x^2 + 4

=(A+1)x2+(A+B)x+(B+4)= (A + 1)x^2 + (-A + B)x + (-B + 4)

Match with 0x2+1x+40 \cdot x^2 + 1 \cdot x + 4:

  • x2x^2: A+1=0    A=1A + 1 = 0 \implies A = -1
  • x1x^1: A+B=1    1+B=1    B=0-A + B = 1 \implies 1 + B = 1 \implies B = 0
  • x0x^0: B+4=4    4=4-B + 4 = 4 \implies 4 = 4 — confirmed

Result:

x+4(x2+4)(x1)=xx2+4+1x1\frac{x + 4}{(x^2 + 4)(x - 1)} = \frac{-x}{x^2 + 4} + \frac{1}{x - 1}

Real-World Application: Electrical Circuit Analysis

In electrical engineering, the transfer function of a circuit is often a rational function of the complex frequency variable ss. To find the time-domain response, engineers use inverse Laplace transforms, which require partial fraction decomposition.

For example, a circuit might produce:

H(s)=10(s+2)(s+5)H(s) = \frac{10}{(s + 2)(s + 5)}

Decomposing: 10(s+2)(s+5)=As+2+Bs+5\frac{10}{(s+2)(s+5)} = \frac{A}{s+2} + \frac{B}{s+5}

s=2s = -2: 10=3A    A=10310 = 3A \implies A = \frac{10}{3}

s=5s = -5: 10=3B    B=10310 = -3B \implies B = -\frac{10}{3}

H(s)=10/3s+210/3s+5H(s) = \frac{10/3}{s + 2} - \frac{10/3}{s + 5}

Each term has a known inverse: as+baebt\frac{a}{s + b} \leftrightarrow ae^{-bt}. So the time response is:

h(t)=103e2t103e5th(t) = \frac{10}{3}e^{-2t} - \frac{10}{3}e^{-5t}

Without partial fractions, finding this inverse would be far more difficult.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Decompose 7x1(x2)(x+3)\frac{7x - 1}{(x - 2)(x + 3)}.

7x1(x2)(x+3)=Ax2+Bx+3\frac{7x - 1}{(x - 2)(x + 3)} = \frac{A}{x - 2} + \frac{B}{x + 3}

x=2x = 2: 13=5A    A=13513 = 5A \implies A = \frac{13}{5}

x=3x = -3: 22=5B    B=225-22 = -5B \implies B = \frac{22}{5}

Answer: 7x1(x2)(x+3)=135(x2)+225(x+3)\frac{7x-1}{(x-2)(x+3)} = \frac{13}{5(x-2)} + \frac{22}{5(x+3)}

Problem 2: Decompose 4x+5(x+1)2\frac{4x + 5}{(x + 1)^2}.

4x+5(x+1)2=Ax+1+B(x+1)2\frac{4x + 5}{(x + 1)^2} = \frac{A}{x + 1} + \frac{B}{(x + 1)^2}

Multiply through: 4x+5=A(x+1)+B4x + 5 = A(x + 1) + B

x=1x = -1: 1=B1 = B

x=0x = 0: 5=A+1    A=45 = A + 1 \implies A = 4

Answer: 4x+5(x+1)2=4x+1+1(x+1)2\frac{4x + 5}{(x+1)^2} = \frac{4}{x+1} + \frac{1}{(x+1)^2}

Problem 3: Decompose x2+2(x1)(x2+x+1)\frac{x^2 + 2}{(x - 1)(x^2 + x + 1)}.

Note: x2+x+1x^2 + x + 1 is irreducible (discriminant 14=3<01 - 4 = -3 < 0).

x2+2(x1)(x2+x+1)=Ax1+Bx+Cx2+x+1\frac{x^2 + 2}{(x-1)(x^2+x+1)} = \frac{A}{x-1} + \frac{Bx + C}{x^2 + x + 1}

Multiply: x2+2=A(x2+x+1)+(Bx+C)(x1)x^2 + 2 = A(x^2 + x + 1) + (Bx + C)(x - 1)

x=1x = 1: 3=3A    A=13 = 3A \implies A = 1

Expand: (x2+x+1)+(Bx+C)(x1)=x2+x+1+Bx2Bx+CxC(x^2 + x + 1) + (Bx + C)(x-1) = x^2 + x + 1 + Bx^2 - Bx + Cx - C

=(1+B)x2+(1B+C)x+(1C)= (1 + B)x^2 + (1 - B + C)x + (1 - C)

Match with x2+0x+2x^2 + 0x + 2:

  • x2x^2: 1+B=1    B=01 + B = 1 \implies B = 0
  • x1x^1: 10+C=0    C=11 - 0 + C = 0 \implies C = -1
  • x0x^0: 1(1)=21 - (-1) = 2 — confirmed

Answer: x2+2(x1)(x2+x+1)=1x1+1x2+x+1\frac{x^2 + 2}{(x-1)(x^2+x+1)} = \frac{1}{x-1} + \frac{-1}{x^2+x+1}

Problem 4: Decompose x3(x1)(x+2)\frac{x^3}{(x-1)(x+2)} (note: improper fraction).

Degree of numerator (3) exceeds denominator (2). Divide first:

x3÷(x2+x2)x^3 \div (x^2 + x - 2):

Step 1: x3÷x2=xx^3 \div x^2 = x. Multiply: x3+x22xx^3 + x^2 - 2x. Subtract: x2+2x-x^2 + 2x.

Step 2: x2÷x2=1-x^2 \div x^2 = -1. Multiply: x2x+2-x^2 - x + 2. Subtract: 3x23x - 2.

x3(x1)(x+2)=x1+3x2(x1)(x+2)\frac{x^3}{(x-1)(x+2)} = x - 1 + \frac{3x - 2}{(x-1)(x+2)}

Now decompose: 3x2(x1)(x+2)=Ax1+Bx+2\frac{3x-2}{(x-1)(x+2)} = \frac{A}{x-1} + \frac{B}{x+2}

x=1x = 1: 1=3A    A=131 = 3A \implies A = \frac{1}{3}

x=2x = -2: 8=3B    B=83-8 = -3B \implies B = \frac{8}{3}

Answer: x3(x1)(x+2)=x1+13(x1)+83(x+2)\frac{x^3}{(x-1)(x+2)} = x - 1 + \frac{1}{3(x-1)} + \frac{8}{3(x+2)}

Problem 5: A circuit has transfer function H(s)=6s(s+3)H(s) = \frac{6}{s(s+3)}. Find the partial fraction decomposition.

6s(s+3)=As+Bs+3\frac{6}{s(s+3)} = \frac{A}{s} + \frac{B}{s+3}

s=0s = 0: 6=3A    A=26 = 3A \implies A = 2

s=3s = -3: 6=3B    B=26 = -3B \implies B = -2

Answer: 6s(s+3)=2s2s+3\frac{6}{s(s+3)} = \frac{2}{s} - \frac{2}{s+3}

This gives the time-domain response h(t)=22e3th(t) = 2 - 2e^{-3t} (using inverse Laplace transforms).

Key Takeaways

  • Partial fraction decomposition breaks a complex rational expression into a sum of simpler fractions
  • Distinct linear factors each get one constant: Axa\frac{A}{x - a}
  • Repeated linear factors need one term per power: Axa+B(xa)2+\frac{A}{x-a} + \frac{B}{(x-a)^2} + \cdots
  • Irreducible quadratic factors get a linear numerator: Ax+Bax2+bx+c\frac{Ax + B}{ax^2 + bx + c}
  • Always check that the fraction is proper first — if not, divide before decomposing
  • Use strategic substitution (roots of denominator) for quick solutions, and coefficient matching when substitution is not enough
  • The technique is foundational for calculus integration and Laplace transforms in engineering

Return to College Algebra for more topics in this section.

Last updated: March 29, 2026