← Back to all lessons
Class 12Calculus14:29Published 17 Sept 2024

Integration by Partial Fractions (Part 1)

Learn how to integrate rational functions by splitting them into partial fractions, worked through three Class 12 examples with distinct, repeated, and mixed linear factors.

This Class 12 lesson shows how to evaluate integrals of rational functions using the partial fractions method. It works through three examples step by step: a fraction with two distinct linear factors, one with a repeated factor and a distinct factor, and one that first needs the denominator factorised. Each example finds the unknown constants by substituting convenient values and comparing coefficients, then integrates each simple piece.

What you'll learn

  • How to split a rational function into partial fractions
  • How to find the unknown constants by substituting values and comparing coefficients
  • How to handle repeated linear factors as well as distinct ones
  • How to factorise the denominator first when it is given as a cubic

Lesson chapters

0:00Example 1: distinct linear factors
2:55Finding the constants and integrating
3:15Example 2: a repeated factor with a distinct factor
9:15Example 3: factorising the cubic denominator first
10:01Solving for the constants
13:25Integrating to the final answer

Lesson notes

This lesson covers integration of rational functions using partial fractions. We work through three examples: distinct linear factors, a repeated factor combined with a distinct factor, and a case where the denominator must be factorised first.

Example 1: distinct linear factors

We want to evaluate

I=1x29dx=1(x+3)(x3)dx.I = \int \frac{1}{x^2 - 9}\,dx = \int \frac{1}{(x+3)(x-3)}\,dx.

Write the integrand as a sum of partial fractions:

1(x+3)(x3)=Ax+3+Bx3.\frac{1}{(x+3)(x-3)} = \frac{A}{x+3} + \frac{B}{x-3}.

Taking the common denominator and cancelling it gives

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

Find BB. Put x=3x = 3:   1=B(6)\;1 = B(6), so B=16B = \tfrac{1}{6}.

Find AA. Put x=3x = -3:   1=A(6)\;1 = A(-6), so A=16A = -\tfrac{1}{6}.

Therefore

I=16dxx+3+16dxx3=16lnx+3+16lnx3+C.I = -\tfrac{1}{6}\int \frac{dx}{x+3} + \tfrac{1}{6}\int \frac{dx}{x-3} = -\tfrac{1}{6}\ln|x+3| + \tfrac{1}{6}\ln|x-3| + C.

Combining the logarithms,

I=16lnx3x+3+C.I = \tfrac{1}{6}\ln\left|\frac{x-3}{x+3}\right| + C.

Example 2: a repeated factor with a distinct factor

Next we evaluate

I=x(x1)2(x+2)dx.I = \int \frac{x}{(x-1)^2(x+2)}\,dx.

A repeated factor needs two terms, so we set up

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

Clearing denominators gives

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

Find BB. Put x=1x = 1:   1=B(3)\;1 = B(3), so B=13B = \tfrac{1}{3}.

Find CC. Put x=2x = -2:   2=C(3)2=9C\;-2 = C(-3)^2 = 9C, so C=29C = -\tfrac{2}{9}.

Find AA. Compare the coefficients of x2x^2. On the right, x2x^2 comes from A(x1)(x+2)A(x-1)(x+2) and C(x1)2C(x-1)^2, giving A+C=0A + C = 0. Hence A=C=29A = -C = \tfrac{2}{9}.

So

x(x1)2(x+2)=2/9x1+1/3(x1)22/9x+2.\frac{x}{(x-1)^2(x+2)} = \frac{2/9}{x-1} + \frac{1/3}{(x-1)^2} - \frac{2/9}{x+2}.

Integrating term by term, and using dx(x1)2=1x1\int \frac{dx}{(x-1)^2} = -\frac{1}{x-1},

I=29lnx113(x1)29lnx+2+C.I = \tfrac{2}{9}\ln|x-1| - \frac{1}{3(x-1)} - \tfrac{2}{9}\ln|x+2| + C.

Combining the logarithms,

I=29lnx1x+213(x1)+C.I = \tfrac{2}{9}\ln\left|\frac{x-1}{x+2}\right| - \frac{1}{3(x-1)} + C.

Example 3: factorising the cubic denominator first

Finally we evaluate

I=3x+5x3x2x+1dx.I = \int \frac{3x+5}{x^3 - x^2 - x + 1}\,dx.

Factorise the denominator by grouping:

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

So we need

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

Clearing denominators,

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

Find CC. Put x=1x = 1:   8=C(2)\;8 = C(2), so C=4C = 4.

Find AA. Put x=1x = -1:   2=A(2)2=4A\;2 = A(-2)^2 = 4A, so A=12A = \tfrac{1}{2}.

Find BB. Compare constant terms: 5=AB+C=12B+45 = A - B + C = \tfrac{1}{2} - B + 4, so B=12B = -\tfrac{1}{2}.

Therefore

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

Integrating,

I=12lnx+112lnx14x1+C,I = \tfrac{1}{2}\ln|x+1| - \tfrac{1}{2}\ln|x-1| - \frac{4}{x-1} + C,

which combines to

I=12lnx+1x14x1+C.I = \tfrac{1}{2}\ln\left|\frac{x+1}{x-1}\right| - \frac{4}{x-1} + C.

Key takeaways

  • Split a rational function into partial fractions, one term per factor, with a repeated factor (xa)2(x-a)^2 contributing both a 1xa\frac{1}{x-a} and a 1(xa)2\frac{1}{(x-a)^2} term.
  • Find the constants quickly by substituting values that zero out factors, then compare coefficients for any remaining unknowns.
  • Use dxxa=lnxa\int \frac{dx}{x-a} = \ln|x-a| and dx(xa)2=1xa\int \frac{dx}{(x-a)^2} = -\frac{1}{x-a}, and combine logarithms at the end.