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.
Combining the right side gives , for .
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.
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 . 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 and ?
Write a prediction (optional)
Exact symbolic investigation
Select Run Python with the code unchanged.
Your saved draft is open. To use the published code, select Restore example in Tools. Use Recover draft to bring back your code.
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.
Execution error
Technical error details
Your result
Python text output
Compare with the worked example
Executed from the published Python during the site build. Your own run appears above. Build environment ↗
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.
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?
Need a hint?
Hint 1
Think about integrating a sum term by term.
Hint 2
A simple denominator may have a familiar antiderivative.