Skip to content

Partial fractions: decomposition methods and worked examples

Partial fractions reverse the process of adding algebraic fractions. A complicated rational expression is rewritten as a sum of simpler fractions. The value of the expression does not change, but its structure becomes easier to use in algebra, series and integration.

For example,

5x+1(x1)(x+2)=2x1+3x+2.\frac{5x+1}{(x-1)(x+2)} =\frac{2}{x-1}+\frac{3}{x+2}.

Combining the right-hand side confirms the identity:

2x1+3x+2=2(x+2)+3(x1)(x1)(x+2)=5x+1(x1)(x+2).\frac{2}{x-1}+\frac{3}{x+2} =\frac{2(x+2)+3(x-1)}{(x-1)(x+2)} =\frac{5x+1}{(x-1)(x+2)}.

The aim of decomposition is to discover the numerators 22 and 33 systematically.

You should be able to:

  • factorise quadratic and simple polynomial expressions;
  • add algebraic fractions using a common denominator;
  • expand brackets and compare polynomial coefficients;
  • use polynomial division when the numerator has equal or greater degree than the denominator.

First decide whether the fraction is proper

Section titled “First decide whether the fraction is proper”

A rational expression

P(x)Q(x)\frac{P(x)}{Q(x)}

is proper if

degP<degQ.\deg P<\deg Q.

It is improper if degPdegQ\deg P\ge\deg Q. An improper fraction must be divided first. Partial fraction forms describe the proper remainder, not the original improper expression directly.

For instance,

x2+3x+5x2+x2\frac{x^2+3x+5}{x^2+x-2}

is improper because both polynomials have degree 22. By contrast,

3x+5x2+x2\frac{3x+5}{x^2+x-2}

is proper.

Choosing the correct partial fraction form

Section titled “Choosing the correct partial fraction form”

Factorise the denominator completely over the real numbers. Its factors determine the form of the decomposition.

For different linear factors,

P(x)(xa)(xb)=Axa+Bxb.\frac{P(x)}{(x-a)(x-b)} =\frac{A}{x-a}+\frac{B}{x-b}.

Each linear factor receives a constant numerator.

More generally,

P(x)(xa)(xb)(xc)=Axa+Bxb+Cxc.\frac{P(x)}{(x-a)(x-b)(x-c)} =\frac{A}{x-a}+\frac{B}{x-b}+\frac{C}{x-c}.

If a factor is repeated, include every power from 11 up to its multiplicity:

P(x)(xa)3=Axa+B(xa)2+C(xa)3.\frac{P(x)}{(x-a)^3} =\frac{A}{x-a}+\frac{B}{(x-a)^2}+\frac{C}{(x-a)^3}.

If another factor is present, include its term as well. For example,

P(x)(x1)2(x+4)=Ax1+B(x1)2+Cx+4.\frac{P(x)}{(x-1)^2(x+4)} =\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+4}.

Skipping an intermediate power produces a form that is not general enough.

If a quadratic factor cannot be factorised into real linear factors, its numerator must be linear:

P(x)(x2+1)(x2)=Ax+Bx2+1+Cx2.\frac{P(x)}{(x^2+1)(x-2)} =\frac{Ax+B}{x^2+1}+\frac{C}{x-2}.

The numerator over a factor must have lower degree than that factor. This gives the useful rule:

  • linear denominator factor: constant numerator;
  • quadratic denominator factor: linear numerator;
  • cubic denominator factor: quadratic numerator, if such a factor is being left irreducible.

At A-level, the most common non-linear case is an irreducible quadratic with a numerator of the form Ax+BAx+B.

For a proper fraction:

  1. Factorise the denominator completely.
  2. Write the correct partial fraction form.
  3. Multiply through by the common denominator.
  4. Find the unknown coefficients using convenient substitutions and, where needed, coefficient comparison.
  5. Verify the result.

The equation after clearing denominators is a polynomial identity. It is true for every value of xx, not merely for the values used to find the coefficients.

Decompose

7x+11(x+1)(x+3).\frac{7x+11}{(x+1)(x+3)}.

Step 1: write the correct form.

7x+11(x+1)(x+3)=Ax+1+Bx+3.\frac{7x+11}{(x+1)(x+3)} =\frac{A}{x+1}+\frac{B}{x+3}.

Step 2: multiply by (x+1)(x+3)(x+1)(x+3).

7x+11=A(x+3)+B(x+1).7x+11=A(x+3)+B(x+1).

Step 3: choose values that eliminate terms.

Set x=1x=-1:

4=2A,4=2A,

so A=2A=2.

Set x=3x=-3:

10=2B,-10=-2B,

so B=5B=5.

Therefore

7x+11(x+1)(x+3)=2x+1+5x+3.\boxed{\frac{7x+11}{(x+1)(x+3)} =\frac{2}{x+1}+\frac{5}{x+3}}.

The substitutions x=1x=-1 and x=3x=-3 are efficient because each makes one bracket zero.

For distinct linear factors, the same calculation can be written compactly. To find the coefficient above xax-a, multiply the original fraction by xax-a and then set x=ax=a.

For example, if

P(x)(xa)(xb)=Axa+Bxb,\frac{P(x)}{(x-a)(x-b)} =\frac{A}{x-a}+\frac{B}{x-b},

then

A=P(x)xbx=a.A=\left.\frac{P(x)}{x-b}\right|_{x=a}.

This is often called the cover-up method. It is a shortcut for strategic substitution, not a different theorem. It works immediately for coefficients attached to distinct linear factors. Repeated factors and irreducible quadratics usually require further work.

Decompose

2x23x5(x1)(x+2)(x3).\frac{2x^2-3x-5}{(x-1)(x+2)(x-3)}.

Write

2x23x5(x1)(x+2)(x3)=Ax1+Bx+2+Cx3.\frac{2x^2-3x-5}{(x-1)(x+2)(x-3)} =\frac{A}{x-1}+\frac{B}{x+2}+\frac{C}{x-3}.

After clearing denominators,

2x23x5=A(x+2)(x3)+B(x1)(x3)+C(x1)(x+2).2x^2-3x-5 =A(x+2)(x-3)+B(x-1)(x-3)+C(x-1)(x+2).

Set x=1x=1:

6=A(3)(2),-6=A(3)(-2),

so A=1A=1.

Set x=2x=-2:

9=B(3)(5),9=B(-3)(-5),

so B=35B=\frac35.

Set x=3x=3:

4=C(2)(5),4=C(2)(5),

so C=25C=\frac25.

Hence

2x23x5(x1)(x+2)(x3)=1x1+35(x+2)+25(x3).\boxed{ \frac{2x^2-3x-5}{(x-1)(x+2)(x-3)} =\frac{1}{x-1}+\frac{3}{5(x+2)}+\frac{2}{5(x-3)} }.

Fractional coefficients are perfectly acceptable. Do not change a correct answer merely because you expected integers.

Decompose

3x+5(x1)2(x+2).\frac{3x+5}{(x-1)^2(x+2)}.

Step 1: include both powers of the repeated factor.

3x+5(x1)2(x+2)=Ax1+B(x1)2+Cx+2.\frac{3x+5}{(x-1)^2(x+2)} =\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+2}.

Step 2: clear denominators.

3x+5=A(x1)(x+2)+B(x+2)+C(x1)2.3x+5=A(x-1)(x+2)+B(x+2)+C(x-1)^2.

Step 3: use the roots of the denominator.

Set x=1x=1:

8=3B,8=3B,

so B=83B=\frac83.

Set x=2x=-2:

1=9C,-1=9C,

so C=19C=-\frac19.

These substitutions do not determine AA, because both AA and one other term vanish at each available root.

Step 4: choose one easy additional value.

Set x=0x=0 in the identity:

5=2A+2B+C.5=-2A+2B+C.

Substitute B=8/3B=8/3 and C=1/9C=-1/9:

5=2A+16319=2A+479.5=-2A+\frac{16}{3}-\frac19 =-2A+\frac{47}{9}.

Therefore

2A=29,-2A=-\frac29,

so A=19A=\frac19.

Thus

3x+5(x1)2(x+2)=19(x1)+83(x1)219(x+2).\boxed{ \frac{3x+5}{(x-1)^2(x+2)} =\frac{1}{9(x-1)}+\frac{8}{3(x-1)^2}-\frac{1}{9(x+2)} }.

Instead of choosing an extra value, expand the identity and compare coefficients of equal powers of xx. From

3x+5=A(x1)(x+2)+B(x+2)+C(x1)2,3x+5=A(x-1)(x+2)+B(x+2)+C(x-1)^2,

expansion gives

3x+5=(A+C)x2+(A+B2C)x+(2A+2B+C).3x+5=(A+C)x^2+(A+B-2C)x+(-2A+2B+C).

Since the left side has coefficient 00 for x2x^2,

A+C=0.A+C=0.

Together with the other coefficient equations, this determines AA, BB and CC. Strategic substitution is usually quicker, but coefficient comparison is systematic and is essential when convenient roots do not provide enough information.

A quadratic ax2+bx+cax^2+bx+c has no real linear factors when its discriminant is negative:

b24ac<0.b^2-4ac<0.

The numerator above such a quadratic must be linear.

Worked example 4: linear and quadratic factors

Section titled “Worked example 4: linear and quadratic factors”

Decompose

2x2+3x+7(x1)(x2+4).\frac{2x^2+3x+7}{(x-1)(x^2+4)}.

Since x2+4x^2+4 is irreducible over the reals, write

2x2+3x+7(x1)(x2+4)=Ax1+Bx+Cx2+4.\frac{2x^2+3x+7}{(x-1)(x^2+4)} =\frac{A}{x-1}+\frac{Bx+C}{x^2+4}.

Clear denominators:

2x2+3x+7=A(x2+4)+(Bx+C)(x1).2x^2+3x+7=A(x^2+4)+(Bx+C)(x-1).

Set x=1x=1:

12=5A,12=5A,

so A=125A=\frac{12}{5}.

Now expand the right side:

Ax2+4A+Bx2Bx+CxC.A x^2+4A+Bx^2-Bx+Cx-C.

Collecting coefficients gives

(A+B)x2+(CB)x+(4AC).(A+B)x^2+(C-B)x+(4A-C).

Compare coefficients with 2x2+3x+72x^2+3x+7:

A+B=2,A+B=2, CB=3.C-B=3.

Using A=12/5A=12/5,

B=2125=25,B=2-\frac{12}{5}=-\frac25,

and then

C=3+B=135.C=3+B=\frac{13}{5}.

Therefore

2x2+3x+7(x1)(x2+4)=125(x1)+2x+135(x2+4).\boxed{ \frac{2x^2+3x+7}{(x-1)(x^2+4)} =\frac{12}{5(x-1)}+\frac{-2x+13}{5(x^2+4)} }.

The constant equation 4AC=74A-C=7 provides a useful check:

4(125)135=7.4\left(\frac{12}{5}\right)-\frac{13}{5}=7.

If the numerator’s degree is at least the denominator’s degree, divide first. The result will be

polynomial+proper fraction.\text{polynomial}+\text{proper fraction}.

Only the proper fraction is then decomposed.

Worked example 5: divide before decomposing

Section titled “Worked example 5: divide before decomposing”

Decompose

2x2+5x+1(x1)(x+2).\frac{2x^2+5x+1}{(x-1)(x+2)}.

First expand the denominator:

(x1)(x+2)=x2+x2.(x-1)(x+2)=x^2+x-2.

The fraction is improper. Divide:

2x2+5x+1=2(x2+x2)+(3x+5).2x^2+5x+1=2(x^2+x-2)+(3x+5).

Hence

2x2+5x+1(x1)(x+2)=2+3x+5(x1)(x+2).\frac{2x^2+5x+1}{(x-1)(x+2)} =2+\frac{3x+5}{(x-1)(x+2)}.

Now write

3x+5(x1)(x+2)=Ax1+Bx+2.\frac{3x+5}{(x-1)(x+2)} =\frac{A}{x-1}+\frac{B}{x+2}.

Clearing denominators gives

3x+5=A(x+2)+B(x1).3x+5=A(x+2)+B(x-1).

Set x=1x=1:

8=3A,8=3A,

so A=83A=\frac83.

Set x=2x=-2:

1=3B,-1=-3B,

so B=13B=\frac13.

The complete decomposition is

2x2+5x+1(x1)(x+2)=2+83(x1)+13(x+2).\boxed{ \frac{2x^2+5x+1}{(x-1)(x+2)} =2+\frac{8}{3(x-1)}+\frac{1}{3(x+2)} }.

The polynomial term 22 is part of the answer. Omitting it changes the function.

When the denominator is not already factorised

Section titled “When the denominator is not already factorised”

Factorisation is part of the method, not an optional preliminary.

Worked example 6: expose the linear factors

Section titled “Worked example 6: expose the linear factors”

Decompose

4x+1x2x6.\frac{4x+1}{x^2-x-6}.

Factorise:

x2x6=(x3)(x+2).x^2-x-6=(x-3)(x+2).

Then

4x+1(x3)(x+2)=Ax3+Bx+2.\frac{4x+1}{(x-3)(x+2)} =\frac{A}{x-3}+\frac{B}{x+2}.

Clear denominators:

4x+1=A(x+2)+B(x3).4x+1=A(x+2)+B(x-3).

Set x=3x=3:

13=5A,13=5A,

so A=13/5A=13/5.

Set x=2x=-2:

7=5B,-7=-5B,

so B=7/5B=7/5.

Therefore

4x+1x2x6=135(x3)+75(x+2).\boxed{ \frac{4x+1}{x^2-x-6} =\frac{13}{5(x-3)}+\frac{7}{5(x+2)} }.

Several methods are valid. Choose the shortest reliable combination.

After clearing denominators, substitute roots of the denominator first. Each such value usually eliminates several terms. This is the fastest method for distinct linear factors.

Expand both sides and equate coefficients of xnx^n. This always works when the partial fraction form is correct. It is especially useful for irreducible quadratic factors and repeated factors.

After roots have provided most coefficients, x=0x=0, x=1x=1 or another simple value can be quicker than a full expansion.

Sometimes the coefficient of the highest power gives an immediate short equation. For example, in

P(x)=A(x+1)(x+2)+B(x3)(x+2)+C(x3)(x+1),P(x)=A(x+1)(x+2)+B(x-3)(x+2)+C(x-3)(x+1),

the coefficient of x2x^2 on the right is A+B+CA+B+C. Comparing it with the leading coefficient of P(x)P(x) can supply a quick check or a missing equation.

A strong solution often mixes methods: use roots first, then one coefficient or one easy substitution.

You should be able to verify your answer in at least two ways.

Put the partial fractions over the original common denominator and simplify the numerator. It should match exactly.

Choose a value not excluded from the domain and evaluate both forms. This detects many arithmetic errors, although one matching value does not prove an identity.

Confirm that:

  • every denominator factor is represented;
  • every repeated power is present;
  • each numerator has lower degree than its denominator factor;
  • an improper original fraction includes its polynomial quotient.

Worked example 7: verify without full expansion

Section titled “Worked example 7: verify without full expansion”

Suppose you obtain

5x1(x2)(x+1)=3x2+2x+1.\frac{5x-1}{(x-2)(x+1)} =\frac{3}{x-2}+\frac{2}{x+1}.

Recombine the right side:

3(x+1)+2(x2)(x2)(x+1)=5x1(x2)(x+1).\frac{3(x+1)+2(x-2)}{(x-2)(x+1)} =\frac{5x-1}{(x-2)(x+1)}.

The numerator matches, so the decomposition is correct for all xx in the common domain, namely x2,1x\ne2,-1.

Why partial fractions help with integration

Section titled “Why partial fractions help with integration”

Partial fractions turn rational functions into standard integrable forms. For example,

5x+1(x1)(x+2)=2x1+3x+2\frac{5x+1}{(x-1)(x+2)} =\frac{2}{x-1}+\frac{3}{x+2}

leads to

5x+1(x1)(x+2)dx=2lnx1+3lnx+2+C.\int\frac{5x+1}{(x-1)(x+2)}\,dx =2\ln|x-1|+3\ln|x+2|+C.

Repeated factors produce negative powers, while irreducible quadratics may require logarithmic, inverse tangent or further algebraic techniques. The full integration strategy is developed in integration using partial fractions.

Only a linear denominator factor has a constant numerator. An irreducible quadratic factor needs a general linear numerator Ax+BAx+B.

For (xa)3(x-a)^3, include terms over (xa)(x-a), (xa)2(x-a)^2 and (xa)3(x-a)^3. Missing powers make the decomposition incomplete.

Cover-up is immediate for distinct linear factors and can isolate the coefficient over the highest power of a repeated factor. It does not by itself determine all coefficients in every repeated or quadratic case.

”I can decompose an improper fraction directly”

Section titled “”I can decompose an improper fraction directly””

Divide first. Otherwise the proposed right side tends to zero as x|x| becomes large while the original fraction may tend to a non-zero constant or grow without bound.

”The roots used for substitution are forbidden, so I cannot use them”

Section titled “”The roots used for substitution are forbidden, so I cannot use them””

Those values are forbidden in the original rational expression, but after multiplying through you obtain a polynomial identity. Substituting them into that identity is valid and deliberately eliminates terms.

”Matching one numerical value proves the answer”

Section titled “”Matching one numerical value proves the answer””

One value is only a check. A valid derivation comes from the polynomial identity, coefficient comparison or equivalent algebra.

Decompose

9x1(x2)(x+3).\frac{9x-1}{(x-2)(x+3)}.

Write down the correct partial fraction form, without finding coefficients, for

x2+1(x4)3(x2+9).\frac{x^2+1}{(x-4)^3(x^2+9)}.

Decompose

x+7x(x+1)2.\frac{x+7}{x(x+1)^2}.

Decompose fully

x2+4x+7x2+3x+2.\frac{x^2+4x+7}{x^2+3x+2}.

Find AA, BB and CC if

x2+2x+5(x+1)(x2+1)=Ax+1+Bx+Cx2+1.\frac{x^2+2x+5}{(x+1)(x^2+1)} =\frac{A}{x+1}+\frac{Bx+C}{x^2+1}.
Answers

1. Write

9x1(x2)(x+3)=Ax2+Bx+3.\frac{9x-1}{(x-2)(x+3)} =\frac{A}{x-2}+\frac{B}{x+3}.

Then

9x1=A(x+3)+B(x2).9x-1=A(x+3)+B(x-2).

Setting x=2x=2 gives 17=5A17=5A, so A=17/5A=17/5. Setting x=3x=-3 gives 28=5B-28=-5B, so B=28/5B=28/5. Therefore

9x1(x2)(x+3)=175(x2)+285(x+3).\frac{9x-1}{(x-2)(x+3)} =\frac{17}{5(x-2)}+\frac{28}{5(x+3)}.

2. The complete form is

Ax4+B(x4)2+C(x4)3+Dx+Ex2+9.\frac{A}{x-4} +\frac{B}{(x-4)^2} +\frac{C}{(x-4)^3} +\frac{Dx+E}{x^2+9}.

3. Write

x+7x(x+1)2=Ax+Bx+1+C(x+1)2.\frac{x+7}{x(x+1)^2} =\frac{A}{x}+\frac{B}{x+1}+\frac{C}{(x+1)^2}.

Clearing denominators gives

x+7=A(x+1)2+Bx(x+1)+Cx.x+7=A(x+1)^2+Bx(x+1)+Cx.

Setting x=0x=0 gives A=7A=7. Setting x=1x=-1 gives C=6C=-6. Comparing coefficients of x2x^2 gives A+B=0A+B=0, so B=7B=-7. Hence

x+7x(x+1)2=7x7x+16(x+1)2.\frac{x+7}{x(x+1)^2} =\frac7x-\frac7{x+1}-\frac6{(x+1)^2}.

4. Divide first:

x2+4x+7x2+3x+2=1+x+5(x+1)(x+2).\frac{x^2+4x+7}{x^2+3x+2} =1+\frac{x+5}{(x+1)(x+2)}.

Now

x+5(x+1)(x+2)=4x+13x+2.\frac{x+5}{(x+1)(x+2)} =\frac4{x+1}-\frac3{x+2}.

Therefore

x2+4x+7x2+3x+2=1+4x+13x+2.\frac{x^2+4x+7}{x^2+3x+2} =1+\frac4{x+1}-\frac3{x+2}.

5. Clearing denominators gives

x2+2x+5=A(x2+1)+(Bx+C)(x+1).x^2+2x+5=A(x^2+1)+(Bx+C)(x+1).

Set x=1x=-1 to obtain 4=2A4=2A, so A=2A=2. Comparing coefficients gives

A+B=1,B+C=2,A+C=5.A+B=1,\qquad B+C=2,\qquad A+C=5.

Thus B=1B=-1 and C=3C=3.

Before finalising a decomposition, check that you have:

  • classified the fraction as proper or improper;
  • divided first if necessary;
  • factorised the denominator completely;
  • included every distinct factor and every power of a repeated factor;
  • used a numerator whose degree is one less than its denominator factor;
  • cleared denominators correctly;
  • used strategic substitutions before doing unnecessary expansion;
  • verified the completed identity.