On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Partial Fraction Decomposition

Partial fraction decomposition rewrites a proper rational expression as a sum of simpler fractions, one over each factor of the denominator, with unknown numerators you solve for.

P(x)(x−a)(x−b)=Ax−a+Bx−b Repeated: P(x)(x−a)2=Ax−a+B(x−a)2. Irreducible quadratic: Ax+Bx2+bx+c.

Quick Answer

Partial fraction decomposition rewrites a proper rational expression as a sum of simpler fractions, one over each factor of the denominator, with unknown numerators you solve for. Use it on integrals like ∫5x−1(x+1)(x−2) dx, where no substitution works but each piece Ax−a integrates to a logarithm. Factor the denominator, write one term per factor (two for a squared factor, a linear numerator over an irreducible quadratic), and solve for the constants. If the top's degree is not lower than the bottom's, divide first.

Why This Matters

Rational functions turn up in growth models, circuits and probability, and their integrals are usually not in any table until they are split. Partial fractions turn ∫1x2−1 dx into two logarithms, solve the logistic growth equation, and make sums like ∑1n(n+1) collapse. Skipping the long division, or the extra term a repeated factor needs, produces an identity that is simply false.

Intuitive Explanation

Adding fractions goes one way: 2x−1−1x+3=2(x+3)−(x−1)(x−1)(x+3)=x+7(x−1)(x+3). Partial fractions runs it backward. You are given the combined fraction and want the simple pieces, because 2x−1 and 1x+3 each integrate to a logarithm, while the combined form matches no basic rule.

The denominator's factors set the shape of the pieces. Two different linear factors give Ax−1+Bx+3. Multiply through by the denominator to get x+7=A(x+3)+B(x−1), which must hold for every x. Choosing x=1 wipes out the B term and gives 8=4A, so A=2; choosing x=−3 gives 4=−4B, so B=−1. A repeated factor (x−a)2 needs two pieces, Ax−a+B(x−a)2, and an irreducible quadratic such as x2+1 needs a numerator Ax+B; its piece integrates to a mix of a logarithm and an arctangent.

The method needs a proper fraction, one whose top has lower degree than its bottom. x2+1x−1 is not proper, and no constant A makes Ax−1 equal to it: for large x the original behaves like x, while Ax−1 shrinks to 0. Long division comes first, x2+1x−1=x+1+2x−1, and only the proper remainder is decomposed.

Think of it like this. Partial fractions is unmixing paint: you are handed a colour and asked which pure colours, in what amounts, were stirred together to make it. The denominator's factors say which pure colours are possible, and solving for A and B finds the amounts. Unlike real paint, the unmixing is exact and has only one correct answer.

Core idea. Split a rational function into simpler fractions whose denominators are the original's factors.


When to Use

Use it when you must integrate (or sum) a rational function, a polynomial over a polynomial, whose denominator factors and no substitution fits. Check the degrees first: if the top's degree is at least the bottom's, divide. If the top is a multiple of the bottom's derivative, as in 2xx2+1, a u-substitution is faster. If the denominator is a single quadratic that does not factor, complete the square and use an arctangent instead.

Tip. Ask: Is this a proper rational function whose denominator factors, that I need to break into a sum of simpler fractions?

How to Recognize It

Look at what is on top, how the bottom factors, and which direction you are going: taking one fraction apart or putting pieces together.

  1. Is the top a constant multiple of the bottom's derivative?

    Then a substitution with u equal to the bottom is faster: ∫2x+3x2+3x−4 dx=ln⁡∣x2+3x−4∣+C, even though the bottom factors. Partial fractions works there too, just with more steps.

  2. Does any factor of the bottom appear more than once, like (x−1)2?

    Yes means one term for each power up to the repeat: Ax−1+B(x−1)2. A bottom made only of distinct linear factors needs just one constant over each factor.

  3. Does a quadratic factor refuse to factor over the real numbers, like x2+4?

    Check its discriminant: if b2−4ac<0 the factor is irreducible and gets a linear numerator Ax+B, which integrates to a logarithm plus an arctangent. If the quadratic does factor, split it into two linear factors first.

  4. Are you adding fractions together, rather than taking one apart?

    Adding 2x−1+3x+2 is combining over a common denominator, the reverse direction. Partial fractions starts from the single combined fraction and recovers those separate pieces.

Partial Fraction Decomposition compared with Combining fractions (common denominator), Polynomial long division, and Factoring

All four rows rewrite polynomials or fractions without changing their value, which makes them easy to swap by mistake. Ask which direction you are going: splitting a fraction, merging fractions, dividing out a polynomial part, or breaking a polynomial into factors.

Partial Fraction Decomposition

Meaning
Use this when a proper rational expression has a factorable denominator and you need to split it into simpler fractions to integrate or analyze.
Key test
Is this a proper rational function whose denominator factors, that I need to break into a sum of simpler fractions?
Formula
P(x)(x−a)(x−b)=Ax−a+Bx−b Repeated: P(x)(x−a)2=Ax−a+B(x−a)2. Irreducible quadratic: Ax+Bx2+bx+c.
Example
Decompose 5x−1(x+1)(x−2) into partial fractions.

Combining fractions (common denominator)

Meaning
The REVERSE operation: merges fractions into one over a common denominator.
Key test
Use when adding fractions, not splitting them.
Formula
AB+CD=AD+CBBD
Example
13+14=712

Polynomial long division

Meaning
Used FIRST when the fraction is improper, to extract a polynomial plus a proper remainder.
Key test
Use before decomposing if deg(top) ≥ deg(bottom).
Formula
PQ= quotient +rQ
Example
x2x−1=x+1+1x−1

Factoring

Meaning
Breaks a polynomial into factors; partial fractions then puts pieces OVER those factors.
Key test
Use to find the denominator's factors as a setup step.
Example
x2−x−2=(x−2)(x+1)

Formula & Notation

P(x)(x−a)(x−b)=Ax−a+Bx−b Repeated: P(x)(x−a)2=Ax−a+B(x−a)2. Irreducible quadratic: Ax+Bx2+bx+c.
If deg⁡P<deg⁡Q and Q(x)=(x−a1)m1⋯(x−ak)mk(x2+b1x+c1)n1⋯, then P(x)Q(x)=∑i=1k∑j=1miAij(x−ai)j+∑i=1∑j=1niBijx+Cij(x2+bix+ci)j for unique constants Aij,Bij,Cij.

How to read it: P(x)Q(x) = proper rational function (deg P < deg Q). A, B, C,... are constants to be determined.

Worked Examples

Example 1 — Decompose into simple fractions

Easy

Decompose 5x−1(x+1)(x−2) into partial fractions.
Show the steps and the answer
  1. Check the set-up: the top has degree 1, the bottom degree 2, and the factors x+1 and x−2 are different.

    A proper fraction over two distinct linear factors splits as Ax+1+Bx−2.

  2. Clear the denominators: 5x−1=A(x−2)+B(x+1).

    Multiplying both sides by (x+1)(x−2) leaves an identity that holds for every x.

  3. Choose convenient values: x=2 gives 9=3B, so B=3; x=−1 gives −6=−3A, so A=2.

    Each choice makes one bracket zero and isolates one constant.

  4. Check by recombining: 2(x−2)+3(x+1)(x+1)(x−2)=5x−1(x+1)(x−2).

    Adding the pieces over the common denominator returns the original fraction.

Answer: 2x+1+3x−2

Takeaway: Put one constant over each distinct linear factor, and plug in each factor's root to find its constant.

Example 2 — Improper first

Standard

Can you immediately decompose x2+1x−1 as Ax−1?
Show the steps and the answer
  1. Compare degrees: the top has degree 2, the bottom degree 1.

    The fraction is improper, so no sum of proper pieces can equal it on its own.

  2. See why a constant fails: for large x, x2+1x−1 grows like x, while Ax−1 shrinks to 0.

    The two sides cannot agree for every x, whatever A is.

  3. Divide: x2+1=(x−1)(x+1)+2, so x2+1x−1=x+1+2x−1.

    Long division splits off the polynomial part x+1 and leaves the proper remainder 2x−1, already a single partial fraction.

Answer: x+1+2x−1 (divide first)

Takeaway: Divide first whenever the top's degree is at least the bottom's; decompose only the proper remainder.

Example 3 — Find the mistake: a repeated factor

Application

Decompose x+5(x+1)(x−1)2. Nia writes: "x+5(x+1)(x−1)2=Ax+1+Bx−1." Find the mistake and correct it.
Show the steps and the answer
  1. Test Nia's form: Ax+1+Bx−1 combines over (x+1)(x−1), which has only one factor of x−1.

    No choice of A and B can produce the squared factor, so her form cannot equal the original.

  2. Use the full form: Ax+1+Bx−1+C(x−1)2, so x+5=A(x−1)2+B(x+1)(x−1)+C(x+1).

    A squared factor needs one term for each power, x−1 and (x−1)2.

  3. Solve: x=1 gives 6=2C, so C=3; x=−1 gives 4=4A, so A=1; x=0 gives 5=A−B+C=4−B, so B=−1.

    Two roots fix A and C, and any third value of x then finds B.

  4. Check: (x−1)2−(x+1)(x−1)+3(x+1)=x2−2x+1−x2+1+3x+3=x+5.

    The pieces recombine to the original numerator.

Answer: 1x+1−1x−1+3(x−1)2

Takeaway: Each power of a repeated factor gets its own term: (x−a)2 needs both Bx−a and C(x−a)2.

Where You'll See It

  • Population growth with a ceiling

    The logistic model dPdt=kP(1−PM) leads to ∫MP(M−P) dP, which splits into ∫(1P+1M−P)dP. Integrating the two logarithms gives the S-shaped curve used to model epidemics, fish stocks and the spread of new products.

  • How a circuit settles down

    Engineers write a circuit's response as a fraction such as s+3(s+1)(s+2) and split it into 2s+1−1s+2. Each piece stands for one decaying exponential, so the circuit's output is 2e−t−e−2t: a fast fade and a slow fade added together.

Common Mistakes

  1. The slip: Decomposing an improper fraction directly

    Instead: do long division first so the leftover is proper (deg top < deg bottom).

  2. The slip: Using a constant numerator over an irreducible quadratic

    Instead: quadratics like x2+1 need a linear numerator Ax+B.

  3. The slip: Forgetting repeated-factor terms

    Instead: (x−a)2 needs both Ax−a and B(x−a)2, not just one.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Decompose 7(x−3)(x+4) into partial fractions.

    Hint: Write 7=A(x+4)+B(x−3) and substitute x=3 and x=−4.

  2. Decompose 3x+5(x+1)2 into partial fractions.

    Hint: A repeated factor needs both Ax+1 and B(x+1)2.

  3. Use partial fractions to find ∫1x2−1 dx.

    Hint: Factor x2−1 first, then split into two simpler fractions.

  4. Decompose 2x2+x+1x(x2+1) into partial fractions.

    Hint: The factor x2+1 cannot be factored further, so it needs a numerator Bx+C.

  5. You want to decompose x3+2x2−1. Should you start with partial fractions or with polynomial long division?

    Hint: Compare the degree of the top with the degree of the bottom.

  6. A student writes "5(x−2)2(x+1)=Ax−2+Bx+1." Correct the setup.

    Hint: How many terms does a squared factor in the denominator need?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Is there a shortcut for finding A and B?

For distinct linear factors, yes: the cover-up method. To find AA in 5x−1(x+1)(x−2)=Ax+1+Bx−2\frac{5x-1}{(x+1)(x-2)}=\frac{A}{x+1}+\frac{B}{x-2}, cover the factor (x+1)(x+1) and substitute x=−1x=-1 into what is left: A=−6−3=2A=\frac{-6}{-3}=2. Covering (x−2)(x-2) and setting x=2x=2 gives B=93=3B=\frac{9}{3}=3. It works because each substitution makes every other term vanish.

Is the decomposition always possible, and can there be two different answers?

It is always possible and the answer is unique. Every real polynomial factors into linear and irreducible quadratic pieces, and a proper fraction over such a product always splits into the standard terms. Matching coefficients gives as many equations as unknowns, with exactly one solution. So if two methods give you different constants, one of them contains an arithmetic slip.

Where else does partial fraction decomposition show up?

It turns some infinite sums into telescoping ones. Since 1n(n+1)=1n−1n+1\frac{1}{n(n+1)}=\frac1n-\frac{1}{n+1}, the sum 11⋅2+12⋅3+⋯\frac{1}{1\cdot2}+\frac{1}{2\cdot3}+\cdots collapses: almost every term cancels its neighbour, the partial sums are 1−1N+11-\frac{1}{N+1}, and the total is 1. Engineers use the same splitting with the Laplace transform to break a circuit's response into simple exponential pieces.

Learning Path

Partial Fraction Decomposition

You are here

You need Integral, especially ∫1x−a dx=ln⁡∣x−a∣+C, and Long Division of polynomials for fractions that are improper. Partial fractions split a rational function into pieces with one simple denominator each, so every piece has a known antiderivative. Next, Improper Integrals often use this split on infinite intervals, as in ∫1∞1x(x+1) dx=ln⁡2.

See Also