← Back to all lessons
Class 12Calculus13:49Published 18 Sept 2024

Integration by Partial Fractions (Exercise 7.5, Part 2)

More Class 12 integration problems from Exercise 7.5, solved with partial fractions, including cases where you must divide first and a neat shortcut for integrals like one over x times x to the n plus one.

This lesson continues Exercise 7.5 on integrating rational functions by partial fractions. It works through cases where the numerator and denominator have the same degree, so you divide first and then split the proper remainder into partial fractions. It also shows an alternative route for one integral without partial fractions, and a general technique for integrals of the form one over x times a power of x plus or minus one.

What you'll learn

  • How to divide first when the top and bottom of a fraction have the same degree, then integrate the leftover proper fraction
  • Splitting a proper rational function into partial fractions and finding the unknown constants by substituting convenient values
  • A shortcut for integrals like one over x times x to the power n plus one, by multiplying top and bottom by a power of x and substituting

Lesson chapters

0:00Question 6: dividing before integrating
1:44Partial fractions and the final answer
3:42Question 7: another same-degree case
6:39Solving the same integral without partial fractions
9:21General form: one over x times x to the n plus one
11:57Worked case with x to the fourth minus one

Lesson notes

This lesson continues Exercise 7.5, integrating rational functions by partial fractions. Several of these integrals have a numerator whose degree equals the denominator's, so the first step is polynomial division, and then the proper remainder is split into partial fractions. The lesson also shows one integral solved without partial fractions, and a general shortcut for a special family of integrals.

Question 6: divide first

We want

1x2x(12x)dx.\int \frac{1 - x^2}{x(1 - 2x)}\, dx.

The numerator and denominator both have degree two, so we divide first. Writing the denominator as 2x2+x-2x^2 + x and dividing gives quotient 12\tfrac{1}{2} and a proper remainder:

1x2x(12x)=12+12x1x(12x).\frac{1 - x^2}{x(1 - 2x)} = \frac{1}{2} + \frac{\tfrac{1}{2}x - 1}{x(1 - 2x)}.

So

I=12dx+12x1x(12x)dx=12x+I2.I = \int \frac{1}{2}\, dx + \int \frac{\tfrac{1}{2}x - 1}{x(1 - 2x)}\, dx = \frac{1}{2}x + I_2.

Partial fractions for the remainder

Let

12x1x(12x)=Ax+B12x,\frac{\tfrac{1}{2}x - 1}{x(1 - 2x)} = \frac{A}{x} + \frac{B}{1 - 2x},

so 12x1=A(12x)+Bx\tfrac{1}{2}x - 1 = A(1 - 2x) + Bx.

At x=0x = 0: 1=A-1 = A, so A=1A = -1.

At x=12x = \tfrac{1}{2}: 141=B12\tfrac{1}{4} - 1 = B \cdot \tfrac{1}{2}, so 34=12B-\tfrac{3}{4} = \tfrac{1}{2}B and B=32B = -\tfrac{3}{2}.

Therefore

I2=1xdx+3212xdx=logx+34log12x,I_2 = \int \frac{-1}{x}\, dx + \int \frac{-\tfrac{3}{2}}{1 - 2x}\, dx = -\log|x| + \frac{3}{4}\log|1 - 2x|,

where the 34\tfrac{3}{4} comes from 32-\tfrac{3}{2} divided by the 2-2 from the derivative of 12x1 - 2x.

Putting it together,

I=12xlogx+34log12x+C.I = \frac{1}{2}x - \log|x| + \frac{3}{4}\log|1 - 2x| + C.

Question 7: another same-degree case

We want

x2+x+1x21dx.\int \frac{x^2 + x + 1}{x^2 - 1}\, dx.

Again the degrees match, so divide. Writing the denominator as x2+0x1x^2 + 0x - 1 and dividing gives quotient 11 and remainder x+2x + 2:

x2+x+1x21=1+x+2x21.\frac{x^2 + x + 1}{x^2 - 1} = 1 + \frac{x + 2}{x^2 - 1}.

So I=x+I2I = x + I_2, where

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

Partial fractions

Let

x+2(x+1)(x1)=Ax+1+Bx1,\frac{x + 2}{(x + 1)(x - 1)} = \frac{A}{x + 1} + \frac{B}{x - 1},

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

At x=1x = 1: 3=2B3 = 2B, so B=32B = \tfrac{3}{2}.

At x=1x = -1: 1=2A1 = -2A, so A=12A = -\tfrac{1}{2}.

Therefore

I2=12logx+1+32logx1,I_2 = -\frac{1}{2}\log|x + 1| + \frac{3}{2}\log|x - 1|,

and

I=x12logx+1+32logx1+C.I = x - \frac{1}{2}\log|x + 1| + \frac{3}{2}\log|x - 1| + C.

The same integral without partial fractions

The remainder integral can also be done by splitting it:

I2=xx21dx+2x21dx.I_2 = \int \frac{x}{x^2 - 1}\, dx + \int \frac{2}{x^2 - 1}\, dx.

First piece. Put x21=tx^2 - 1 = t, so 2xdx=dt2x\, dx = dt and xdx=12dtx\, dx = \tfrac{1}{2}\, dt:

xx21dx=12dtt=12logx21.\int \frac{x}{x^2 - 1}\, dx = \frac{1}{2}\int \frac{dt}{t} = \frac{1}{2}\log|x^2 - 1|.

Second piece. Using 1x2a2dx=12alogxax+a\displaystyle\int \frac{1}{x^2 - a^2}\, dx = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| with a=1a = 1:

2x21dx=logx1x+1.\int \frac{2}{x^2 - 1}\, dx = \log\left|\frac{x - 1}{x + 1}\right|.

The two forms of the answer agree.

A general shortcut

Consider

1x(xn+1)dx.\int \frac{1}{x(x^n + 1)}\, dx.

Multiply the top and bottom by xn1x^{n-1}:

I=xn1xn(xn+1)dx.I = \int \frac{x^{n-1}}{x^n(x^n + 1)}\, dx.

Put xn=tx^n = t, so nxn1dx=dtn x^{n-1}\, dx = dt and xn1dx=1ndtx^{n-1}\, dx = \tfrac{1}{n}\, dt:

I=1ndtt(t+1).I = \frac{1}{n}\int \frac{dt}{t(t + 1)}.

By partial fractions 1t(t+1)=1t1t+1\dfrac{1}{t(t + 1)} = \dfrac{1}{t} - \dfrac{1}{t + 1}, so

I=1n(logtlogt+1)=1nlogtt+1.I = \frac{1}{n}\big(\log|t| - \log|t + 1|\big) = \frac{1}{n}\log\left|\frac{t}{t + 1}\right|.

Resubstituting t=xnt = x^n,

I=1nlogxnxn+1+C.I = \frac{1}{n}\log\left|\frac{x^n}{x^n + 1}\right| + C.

Worked case with x41x^4 - 1

For

1x(x41)dx,\int \frac{1}{x(x^4 - 1)}\, dx,

multiply top and bottom by x3x^3:

I=x3x4(x41)dx.I = \int \frac{x^3}{x^4(x^4 - 1)}\, dx.

Put x4=tx^4 = t, so 4x3dx=dt4x^3\, dx = dt and x3dx=14dtx^3\, dx = \tfrac{1}{4}\, dt:

I=14dtt(t1).I = \frac{1}{4}\int \frac{dt}{t(t - 1)}.

Here 1t(t1)=1t+1t1\dfrac{1}{t(t - 1)} = -\dfrac{1}{t} + \dfrac{1}{t - 1}, so

I=14(logt+logt1)=14logt1t.I = \frac{1}{4}\big(-\log|t| + \log|t - 1|\big) = \frac{1}{4}\log\left|\frac{t - 1}{t}\right|.

Resubstituting t=x4t = x^4,

I=14logx41x4+C.I = \frac{1}{4}\log\left|\frac{x^4 - 1}{x^4}\right| + C.

Key takeaways

  • When the numerator and denominator have the same degree, divide first, then apply partial fractions to the proper remainder.
  • Find partial fraction constants quickly by substituting the values of xx that zero out each factor.
  • For 1x(xn±1)dx\displaystyle\int \frac{1}{x(x^n \pm 1)}\, dx, multiply top and bottom by xn1x^{n-1} and substitute t=xnt = x^n to reduce it to a simple partial fraction in tt.