Shape an expressionLesson 10 of 48 · 7 min

Separate partial fractions

Rewrite a rational function as a sum of simpler fractions.

Maths refresher: Adding fractions in reverse

Partial fractions reverse common-denominator addition. A rational function is a ratio of polynomials.

1x(x+1)=1x−1x+1\frac1{x(x+1)}=\frac1x-\frac1{x+1}
Worked example

Combining the right side gives (x+1)−xx(x+1)=1x(x+1)\frac{(x+1)-x}{x(x+1)}=\frac1{x(x+1)}, for x≠0,−1x\ne0,-1.

Maths prerequisite map ↗

Partial fractions decompose a rational function into simpler denominator pieces. This can expose contributions, inputs where a denominator is zero, or terms that are easier to integrate. The decomposition is an identity on the original domain.

See the mathematics
-3-1.75-0.50.752-5-2.502.55xy
-3-1.75-0.50.752-5-2.502.55xy
1x(x+1)=1x−1x+1\frac1{x(x+1)}=\frac1x-\frac1{x+1}
  • 1x(x+1)\frac{1}{x \left(x + 1\right)}
  • 1x\frac{1}{x}
  • −1x+1- \frac{1}{x + 1}
Starter reference. The green curve is the sum of the other two. All three are shown only away from their poles; x = 0 and x = −1 are excluded.

Use apart with the intended variable. Treat other symbols as parameters only when the relevant coefficient assumptions support that interpretation. Repeated or irreducible factors can produce different kinds of terms from this first example.

Below, the denominator has factors x and x+1x+1. Compare the decomposition with the original by bringing their difference to a common denominator. A zero result verifies the identity away from the poles; it does not make either expression defined at them.

Will the decomposition preserve the excluded values x=0x=0 and x=−1x=-1?

Write a prediction (optional)

Exact symbolic investigation

Select Run Python with the code unchanged.

Tools
About Python

Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗

Ctrl+Enter or ⌘+Enter runs Python.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Original
1x(x+1)\frac{1}{x \left(x + 1\right)}
Partial fractions
−1x+1+1x- \frac{1}{x + 1} + \frac{1}{x}
Difference check
00
Worked text output
Original: 1/(x*(x + 1))
Partial fractions: -1/(x + 1) + 1/x
Difference check: 0

Read the starter result

In Partial fractions the second term has a minus sign. Use Difference check to confirm equality wherever the original fraction is defined.

Edit and compare

Replace original = 1/(x*(x+1)) with original = 1/(x*(x+2)). Select Run Python. Compare the two coefficients in Partial fractions, confirm the Difference check, and identify both values excluded by the new original denominator.

Return to the editor

Scope. This example has distinct linear factors. Higher-degree and repeated factors need a more general decomposition.

Try a fresh case

Why might partial fractions be useful before integration?

Choose an answer
Need a hint?
Hint 1

Think about integrating a sum term by term.

Hint 2

A simple denominator may have a familiar antiderivative.

Your notesNotes save in this browser when storage is available.