Partial fraction decomposition rewrites a proper rational function P(x)/Q(x) as a sum of simpler fractions, one for each factor of the denominator. Each piece has a standard integral: A/(x−a) gives Aln∣x−a∣, a repeated factor gives a power of 1/(x−a), and an irreducible quadratic gives a logarithm and an arctangent. If the numerator’s degree is not lower than the denominator’s, divide first.
Add 3/(x−2) and 2/(x+1) over a common denominator. The numerator is 3(x+1)+2(x−2)=5x−1, and the denominator is (x−2)(x+1)=x2−x−2. The sum is (5x−1)/(x2−x−2).
Put in two values of x. At x=3 the combined fraction is 14/4=3.5, and the two pieces give 3/1+2/4=3.5. At x=0 it is −1/−2=0.5, and the pieces give −1.5+2=0.5.
The combined fraction matches no rule in the table of antiderivatives, but each piece does. 3/(x−2) integrates to 3ln∣x−2∣ and 2/(x+1) to 2ln∣x+1∣. Given only (5x−1)/(x2−x−2), the task is to find the pieces again. That is addition run backward, and it is called partial fractions.
A rational function P(x)/Q(x) is proper when the degree of P is less than the degree of Q. Factor Q completely into linear factors and irreducible quadratics, quadratics with no real zeros. A proper fraction is then a sum of simpler fractions, with the terms in the table for each factor.
The capital letters A,B and C name unknown constants of the split. They are found by algebra, and they are not the +C of an integral.
(x−2)(x+1)5x−1=x−2A+x+1B
Terms for each kind of factor
Factor of the denominator
Terms in the decomposition
x−a
A/(x−a)
(x−a)2
A/(x−a)+B/(x−a)2
x2+b2, irreducible
(Bx+C)/(x2+b2)
Integrate each term
Each kind of term has a standard antiderivative. A/(x−a) gives Aln∣x−a∣, and A/(x−a)2gives −A/(x−a), by the power rule. Over x2+b2, split the numerator. x/(x2+b2) gives (1/2)ln(x2+b2) by substitution, and 1/(x2+b2) gives (1/b)arctan(x/b).
An irreducible quadratic with a middle term, such as x2+2x+5, takes one more step. Complete the square, x2+2x+5=(x+1)2+4, and the shift u=x+1 turns it into u2+4, a factor of the form in the table.
∫x−a1dx=ln∣x−a∣+C
Antiderivatives of the pieces
Term
Antiderivative
A/(x−a)
Aln∣x−a∣+C
A/(x−a)2
−A/(x−a)+C
x/(x2+b2)
21ln(x2+b2)+C
1/(x2+b2)
(1/b)arctan(x/b)+C
Why it works
Why it works
Multiply both sides of the split by the whole denominator, and the fractions clear. For (5x−1)/((x−2)(x+1)) that gives 5x−1=A(x+1)+B(x−2). The two sides are polynomials that agree for every x except the two zeros, so they agree everywhere, and any value of x may be used to find A and B.
x=2 makes the B term vanish, which leaves 9=3A, so A=3.x=−1 makes the A term vanish, which leaves −6=−3B, so B=2. This is the cover-up shortcut. Cover the factor x−2 in the original fraction, put x=2 into what is left, and (5⋅2−1)/(2+1)=3 appears.
The forms in the table give exactly enough unknowns. A denominator of degree n leaves room for a numerator of degree n−1, which has n coefficients, and the table supplies n constants. A repeated factor (x+1)2 needs A/(x+1)+B/(x+1)2, because A(x+1)+B is any linear numerator, and B/(x+1)2 alone has only a constant. An irreducible quadratic needs Bx+C on top for the same reason.
5x−1=A(x+1)+B(x−2)
The method
The method in seven steps
The table works through ∫(x+5)/(x2+x−2) dx.
∫x2+x−2x+5dx=2ln∣x−1∣−ln∣x+2∣+C
∫x2+x−2x+5dx=2ln∣x−1∣−ln∣x+2∣+C
Partial fractions on the integral of (x+5)/(x2+x−2)
Step
What to do
For ∫(x+5)/(x2+x−2) dx
1
Check that the fraction is proper
Degree 1 over degree 2
2
Factor the denominator
(x−1)(x+2)
3
Write one term per factor
A/(x−1)+B/(x+2)
4
Clear the denominators
x+5=A(x+2)+B(x−1)
5
Find the constants
x=1 gives A=2,x=−2 gives B=−1
6
Integrate each term
2ln∣x−1∣−ln∣x+2∣+C
7
Check by recombining
2(x+2)−(x−1)=x+5
Divide first when the fraction is improper
When the numerator’s degree is not lower than the denominator’s, divide first. (x2+1)/(x2−1) has degree 2 over degree 2. Division gives 1 with remainder 2, so the fraction is 1+2/(x2−1). The proper part splits as 1/(x−1)−1/(x+1), and the integral is x+ln∣x−1∣−ln∣x+1∣+C.
x2−1x2+1=1+x−11−x+11
Find the constants in two ways
Substituting the zeros of the linear factors gives their constants at once. A repeated factor or an irreducible quadratic leaves constants that no zero isolates. For those, expand both sides and match the coefficients of each power of x, or substitute any other convenient value such as x=0. The repeated-factor example finds its last constant from the x2 terms.
Where it breaks
Where it breaks
Partial fractions apply only to rational functions, and only once the fraction is proper. Splitting (x2+1)/(x2−1) as A/(x−1)+B/(x+1) without dividing first fails, because no choice of A and B gives a numerator of degree 2.
An irreducible quadratic does not split into linear pieces. x2−4=(x−2)(x+2) splits, but x2+4 has no real zeros, and 1/(x2+4) is not 1/x2+1/4. In the table, a sign in the denominator or an x in the numerator decides the method.
Sometimes a quicker route exists. In ∫(2x−1)/(x2−x−2) dx the numerator is the derivative of the denominator, so the substitution u=x2−x−2 gives ln∣x2−x−2∣+C at once. Partial fractions give the same answer in more steps.
The split holds wherever the denominator is not zero. A definite integral across a zero of the denominator, such as the integral of 1/(x−2) from 0 to 3, is improper and needs a limit first.
Three integrals that look alike
Integral
What it needs
Result
∫1/(x2−4) dx
Partial fractions
(1/4)ln∣(x−2)/(x+2)∣+C
∫1/(x2+4) dx
The arctangent rule
(1/2)arctan(x/2)+C
∫x/(x2+4) dx
Substitution, u=x2+4
21ln(x2+4)+C
Check your answer
Check your answer
A split is an identity, so it has to hold for every x you try, and the pieces have to add back to what you started with.
Recombine the pieces. Adding them over the common denominator should return the original numerator exactly. A wrong constant shows at once.
Test one number. At x=3,(5x−1)/(x2−x−2) is 3.5, and so is 3/(x−2)+2/(x+1). Pick a value that is not a zero of the denominator.
Differentiate one logarithm at a time. The derivative of 3ln∣x−2∣+2ln∣x+1∣ is 3/(x−2)+2/(x+1), the split, which is the integrand.
In a Math box, put the fraction on the first row and the split on the row below. Chalk marks the split ✓ when the two agree for every x, and ✗ with a value where they differ when they don’t. For the swapped split 2/(x−2)+3/(x+1) under (5x−1)/(x2−x−2) it reads “The two sides differ at a point Chalk checked.” An integral with its antiderivative below it is checked the same way as in any lesson. Write the integral as ∫(5x−1)/(x2−x−2) dx, with dx after the fraction. For a definite integral, put the bracket on its own row, then the value.
How many unknown constants does the split of 1/((x−2)3(x2+1)) need, and why that many?
Five. The cube needs A/(x−2)+B/(x−2)2+C/(x−2)3, one term per power. The irreducible x2+1 needs (Dx+E)/(x2+1), with a linear top. Five matches the degree of the denominator, 3+2, because a numerator of degree 4 has five coefficients. A single term over (x−2)3 would leave too few.
Why the split always exists
Every polynomial with real coefficients factors into linear factors and irreducible quadratics. The reason is that its complex zeros come in conjugate pairs, and each pair multiplies to a real quadratic. With that factoring, every proper rational function has exactly one split of the form in the table. The constants are unique, which is why every route to them agrees.
Over the complex numbers even x2+4 splits, as (x−2i)(x+2i). The two logarithms that result combine into an arctangent, which is why an irreducible quadratic leads to arctan.
Partial fractions return in differential equations. The logistic equation separates into ∫dP/(P(1−P)), and 1/(P(1−P))=1/P+1/(1−P) turns it into two logarithms. Laplace transforms, met in a later course, are inverted the same way.
P(1−P)1=P1+1−P1
Common mistakes
Decomposing an improper fraction without dividing first. (x2+1)/(x2−1) is 1+2/(x2−1), and only the proper part, 2/(x2−1), splits into 1/(x−1)−1/(x+1).
Giving a repeated factor only one term. (x+1)2 needs A/(x+1)+B/(x+1)2, because a single term over (x+1)2 can hold only a constant numerator.
Putting only a constant over an irreducible quadratic. x2+4 needs Bx+C on top, and the x part integrates to a logarithm while the constant part gives an arctangent.
Dropping the absolute value in ln∣x−a∣.1/(x−2) is defined for x<2 too, and there ln(x−2) is undefined while ln∣x−2∣ is the antiderivative.
Splitting 1/(x2+4) as 1/x2+1/4. Fractions do not split over a sum in the denominator, and at x=2 the two sides are 1/8 and 1/2.
Integrating A/(x−a)2 as a logarithm. It is a power, A(x−a)−2, and its antiderivative is −A/(x−a)+C.
Key terms
Partial fraction decomposition
Rewriting a proper rational function (numerator of lower degree than the denominator) as a sum of simpler fractions, one for each factor of its denominator. A linear factor x−a gives A/(x−a) and a repeated factor gives an extra term for each power. An irreducible quadratic x2+bx+c, which has no real roots, gives (Bx+C)/(x2+bx+c).
Rational expression
A fraction whose numerator and denominator are polynomials. Any value that makes the original denominator zero stays excluded, even if that factor cancels when you simplify.
Irreducible polynomial
A polynomial that can’t be factored into lower-degree polynomials with the allowed coefficients: x2+1 is irreducible over the real numbers but not over the complex numbers.
Natural logarithm
The logarithm with base e, written lnx. It undoes ex:ln(ex)=x for every x, and elnx=x for x>0.
Inverse tangent
arctanx, or tan−1x: the angle between −π/2 and π/2(−90° to 90°) whose tangent is x. It is defined for every real x.
Antiderivative
A function whose derivative is the given function, such as x3 for 3x2. Any two antiderivatives on one interval differ by a constant, which is why answers carry +C.