Courses · Calculus 2 · Unit guide
Calculus 2: Partial fractions
How to decompose and integrate any proper rational function, step by step
This unit covers: Linear, repeated and irreducible quadratic factors; long division first.

Would you remember to check the degrees before you split a fraction into partial fractions? That's the step most people skip in calculus. We'll cover long division, distinct and repeated linear factors, irreducible quadratics, and a full exam-style integral.
The big idea: one fraction becomes several
A rational function is just one polynomial divided by another, and most of them don't have an antiderivative you can spot. Partial fractions runs ordinary fraction addition in reverse. Instead of combining simple fractions over a common denominator, you start with the combined fraction and break it back into those simple pieces. Each piece then integrates to something familiar, usually a natural log or an arctangent.
Key points.
- A rational function is a polynomial over a polynomial
- Partial fractions reverses adding fractions
- Each simple piece integrates to a log or an arctangent
Check the degrees first: long division
Before anything else, compare degrees. Partial fractions only works on a proper fraction, where the top has a lower degree than the bottom. Take x cubed over x squared minus one. The top has degree three and the bottom has degree two, so we divide first. x cubed equals x times x squared minus one, plus a remainder of x. So the fraction becomes x plus x over x squared minus one.
x³/(x²−1) deg 3 ≥ deg 2 → divide x³ = x(x²−1) + x = x + x/(x²−1)
Key points.
- Decompose only proper fractions: top degree below bottom
- If the top degree is equal or higher, divide first
- Polynomial part plus a proper remainder fraction
Distinct linear factors
Now the simplest case. We write x plus five over x minus one times x plus two as A over x minus one plus B over x plus two. Multiplying through gives x plus five equals A times x plus two, plus B times x minus one. Setting x equal to one gives six equals three A, so A is two. Setting x equal to minus two gives B equals minus one. The integral is two ln of x minus one, minus ln of x plus two.
(x+5)/((x−1)(x+2)) = A/(x−1) + B/(x+2) x+5 = A(x+2) + B(x−1) x=1: 6 = 3A → A = 2 x=−2: 3 = −3B → B = −1 ∫ = 2ln|x−1| − ln|x+2| + C
Key points.
- Each linear factor gets a constant numerator
- Clear denominators, then plug in each root
- Each term integrates to a natural log
Repeated linear factors
When a factor repeats, you need one term for every power. For one over x times x minus one squared, we write A over x, plus B over x minus one, plus C over x minus one squared. Clearing denominators, setting x to zero gives A equals one, and x equal to one gives C equals one. Comparing x squared coefficients, zero equals A plus B, so B is minus one. The squared term integrates to minus one over x minus one.
1/(x(x−1)²) = A/x + B/(x−1) + C/(x−1)² 1 = A(x−1)² + Bx(x−1) + Cx x=0: A=1 x=1: C=1 x²: 0 = A+B → B = −1 ∫ = ln|x| − ln|x−1| − 1/(x−1) + C
Key points.
- A factor squared needs a term for each power
- Roots give some constants; compare coefficients for the rest
- Higher powers integrate by the power rule, not a log
Linear factors versus irreducible quadratics
The numerator you write depends on the factor underneath it. A linear factor always gets a constant on top. An irreducible quadratic, one whose discriminant b squared minus four a c is negative, so it can't factor over the real numbers, gets a linear numerator, B x plus C. That's the most common setup mistake. Those quadratic terms usually split into a log piece and an arctangent piece when you integrate.
Linear factor
- Numerator is a constant: A/(ax+b)
- Repeated k times: one term per power up to k
- Integrates to a log, or a power for repeats
Irreducible quadratic factor
- Test: b² − 4ac < 0, no real roots
- Numerator is linear: (Bx+C)/(ax²+bx+c)
- Integrates to a log plus an arctangent
The full procedure
Let's put the whole method in order. First, divide if the top's degree is at least the bottom's. Second, factor the denominator completely into linear and irreducible quadratic factors. Third, write one term for each factor and each power, with constants over linear factors and B x plus C over quadratics. Fourth, clear denominators and solve, using roots or matching coefficients. Finally, integrate each simple fraction.
- Divide if top degree ≥ bottom degree
- Factor the denominator completely
- Write one term per factor and per power
- Clear denominators and solve for constants
- Integrate each simple fraction
Worked exam problem
Here's a typical exam integral: two x squared minus x plus four, over x cubed plus four x. The denominator factors as x times x squared plus four, so we write A over x plus B x plus C over x squared plus four. Clearing denominators and matching coefficients gives A equals one, B equals one and C equals minus one. That gives ln of x, plus a half ln of x squared plus four, minus a half arctan of x over two.
∫(2x²−x+4)/(x³+4x) dx = A/x + (Bx+C)/(x²+4) 2x²−x+4 = A(x²+4) + (Bx+C)x A=1, B=1, C=−1 = ∫1/x dx + ∫(x−1)/(x²+4) dx = ln|x| + ½ln(x²+4) − ½arctan(x/2) + C
Key points.
- Integrate (2x²−x+4)/(x³+4x)
- x² plus 4 is irreducible, so it gets Bx plus C
- Answer mixes a log, a log and an arctangent
Mistakes that cost marks
Most lost marks come from a few habits. People skip long division when the fraction is improper, so the whole decomposition is wrong from the start. They write only one term for a repeated factor, when x minus one squared needs two. They put a plain constant over an irreducible quadratic instead of B x plus C. And they forget the absolute values inside logs or the constant of integration.
Key points.
- Skipping long division on an improper fraction
- Missing a term for each power of a repeated factor
- Using a constant over an irreducible quadratic
- Dropping absolute values or the constant C
Remember this
If you remember one thing, make it this: check the degrees, then match each factor with the right numerator. Now try quizzing yourself on a few decompositions to see whether the setup comes automatically.
Practice this unit
- Calculus 2: Partial Fractions quiz11 multiple-choice questions with explanations · no account needed
- Calculus 2: Integration By Parts quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Trigonometric Integrals and Trig Substitution quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Partial Fractions34 flashcards · study free
- Calculus 2: Integration By Parts34 flashcards · study free
- Calculus 2: Trigonometric Integrals and Trig Substitution34 flashcards · study free
- Calculus 2: Improper Integrals32 flashcards · study free
Every Calculus 2 deck and quiz: the Calculus 2 page.
Other Calculus 2 unit guides
- Integration by partsStudy guide
- Trigonometric integrals and trig substitutionStudy guide
- Improper integralsStudy guide
- Area, volume and arc lengthStudy guide
- Work and other applicationsStudy guide
- Sequences and series basicsStudy guide
- Convergence testsStudy guide
- Power series and Taylor seriesStudy guide
- Parametric equations and polar coordinatesStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.