Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.5 · Q15: ∫dxx4−1\int\frac{dx}{x^4 - 1}

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function

1x4−1.\frac{1}{x^4 - 1}.
Exam answer

Let I=∫dxx4−1I = \displaystyle\int\frac{dx}{x^4 - 1}⁠.

Here x4−1=(x2−1)(x2+1)x^4 - 1 = (x^2 - 1)(x^2 + 1)⁠. Put x2=yx^2 = y for the split only:

1(y−1)(y+1)=Ay−1+By+1\frac{1}{(y - 1)(y + 1)} = \frac{A}{y - 1} + \frac{B}{y + 1} ⇒ 1=A(y+1)+B(y−1)\Rightarrow\ 1 = A(y + 1) + B(y - 1)

Putting y=1y = 1⁠: A=12A = \frac12⁠. Putting y=−1y = -1⁠: B=−12B = -\frac12⁠.

∴ I=12∫dxx2−1−12∫dxx2+1\therefore\ I = \frac12\int\frac{dx}{x^2 - 1} - \frac12\int\frac{dx}{x^2 + 1}

Using ∫dxx2−a2\displaystyle\int\frac{dx}{x^2 - a^2} =12alog⁡∣x−ax+a∣+C= \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + C⁠,

I=12⋅12log⁡∣x−1x+1∣−12tan⁡−1x+C\begin{aligned} I &= \frac12\cdot\frac12\log\left|\frac{x - 1}{x + 1}\right| \\ &\quad - \frac12\tan^{-1}x + C \end{aligned}

∴ I=14log⁡∣x−1x+1∣\therefore\ I = \dfrac14\log\left|\dfrac{x - 1}{x + 1}\right| −12tan⁡−1x+C- \dfrac12\tan^{-1}x + C⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Factor the denominator: x4−1=(x2−1)(x2+1)x^4 - 1 = (x^2 - 1)(x^2 + 1)⁠. Both factors involve only x2x^2⁠, so, exactly as in Example 14, we may think of x2x^2 as a single quantity yy and split 1(y−1)(y+1)\frac{1}{(y - 1)(y + 1)} into two simple fractions. That leaves 1x2−1\frac{1}{x^2 - 1} (a logarithm) and 1x2+1\frac{1}{x^2 + 1} (an inverse tangent).

Given, to find, and the plan
Given
The integrand 1x4−1\frac{1}{x^4 - 1}⁠, defined for x≠1,−1x \ne 1, -1 (the only real solutions of x4=1x^4 = 1⁠).
To find
∫dxx4−1\int\frac{dx}{x^4 - 1}⁠.
Plan
(1) Factor x4−1x^4 - 1⁠. (2) Split with y=x2y = x^2⁠. (3) Integrate 1x2−1\frac{1}{x^2 - 1} and 1x2+1\frac{1}{x^2 + 1} by Section 7.4. (4) Cross-check with the full decomposition. (5) Differentiate back.

Basics you need

1Difference of squares

p2−q2=(p−q)(p+q)p^2 - q^2 = (p - q)(p + q)⁠; so x4−1=(x2−1)(x2+1)x^4 - 1 = (x^2 - 1)(x^2 + 1) and x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1)⁠. Basics: splitting fractions

2Table 7.2, row 1

1(y−a)(y−b)=Ay−a+By−b\frac{1}{(y - a)(y - b)} = \frac{A}{y - a} + \frac{B}{y - b} for a≠ba \ne b⁠. Lesson: partial fractions

3Two special integrals (Section 7.4)

Formula (1): ∫dxx2−a2=12alog⁡∣x−ax+a∣+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + C⁠. Formula (3): ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠. Lesson: integrals of particular functions

Solution

  1. Factor the denominator

    x4−1=(x2)2−12=(x2−1)(x2+1).x^4 - 1 = (x^2)^2 - 1^2 = (x^2 - 1)(x^2 + 1).

    Further, x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1)⁠, while x2+1x^2 + 1 has no real roots (discriminant −4<0-4 < 0⁠) and cannot be factorised.

    Partial fractions start from the factors of the denominator. The difference of squares is used twice. The integrand is proper (degree 0 over degree 4), so no division is needed.
  2. Split using y=x2y = x^2 (as in Example 14)

    With y=x2y = x^2 the integrand is 1(y−1)(y+1)\frac{1}{(y - 1)(y + 1)}⁠. Write

    1(y−1)(y+1)=Ay−1+By+1,\frac{1}{(y - 1)(y + 1)} = \frac{A}{y - 1} + \frac{B}{y + 1},

    so 1=A(y+1)+B(y−1)1 = A(y + 1) + B(y - 1)⁠. Put y=1y = 1⁠: 1=2A1 = 2A⁠, A=12A = \frac12⁠. Put y=−1y = -1⁠: 1=−2B1 = -2B⁠, B=−12B = -\frac12⁠. Hence

    1x4−1=12⋅1x2−1−12⋅1x2+1.\frac{1}{x^4 - 1} = \frac12\cdot\frac{1}{x^2 - 1} - \frac12\cdot\frac{1}{x^2 + 1}.
    This is only an algebraic identity: yy stands for x2x^2 while we find the constants, and is replaced by x2x^2 at once. As the book remarks after Example 14, the substitution is made only for the partial fraction part, not for the integration (we still integrate with respect to xx⁠). The cleared identity in yy holds for all yy⁠, so substituting y=±1y = \pm 1 is allowed.
    Table 7.2, row 1; Example 14. Lesson: partial fractions
  3. Integrate the two pieces

    Section 7.4, formula (1) with a=1a = 1⁠, and formula (3) with a=1a = 1⁠:

    ∫dxx2−1=12log⁡∣x−1x+1∣+C1,∫dxx2+1=tan⁡−1x+C2.\begin{aligned} \int\frac{dx}{x^2 - 1} &= \frac12\log\left|\frac{x - 1}{x + 1}\right| + C_1, \\ \int\frac{dx}{x^2 + 1} &= \tan^{-1}x + C_2. \end{aligned}

    Therefore

    ∫dxx4−1=14log⁡∣x−1x+1∣−12tan⁡−1x+C.\begin{aligned} \int\frac{dx}{x^4 - 1} &= \frac14\log\left|\frac{x - 1}{x + 1}\right| \\ &\quad - \frac12\tan^{-1}x + C. \end{aligned}
    Multiply each standard result by its constant ±12\pm\frac12⁠: 12⋅12=14\frac12\cdot\frac12 = \frac14 in front of the logarithm, and −12-\frac12 in front of the inverse tangent. The constants combine into one CC⁠.
    Section 7.4, formulae (1) and (3); Property (IV), constant multiples. Lesson: integrals of particular functions
  4. Cross-check with the full decomposition

    Using all three factors (Table 7.2 style, with Cx+DCx + D over the quadratic):

    1(x−1)(x+1)(x2+1)=Ax−1+Bx+1+Cx+Dx2+1.\frac{1}{(x - 1)(x + 1)(x^2 + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1} + \frac{Cx + D}{x^2 + 1}.

    Clearing denominators,

    1=A(x+1)(x2+1)+B(x−1)(x2+1)+(Cx+D)(x2−1).\begin{aligned} 1 &= A(x + 1)(x^2 + 1) + B(x - 1)(x^2 + 1) \\ &\quad + (Cx + D)(x^2 - 1). \end{aligned}

    Put x=1x = 1⁠: 1=4A1 = 4A⁠, A=14A = \frac14⁠. Put x=−1x = -1⁠: 1=−4B1 = -4B⁠, B=−14B = -\frac14⁠. Coefficient of x3x^3⁠: A+B+C=0A + B + C = 0⁠, so C=0C = 0⁠. Constant term: A−B−D=1A - B - D = 1⁠, so D=12−1=−12D = \frac12 - 1 = -\frac12⁠. Hence

    1x4−1=14(x−1)−14(x+1)−12(x2+1),\frac{1}{x^4 - 1} = \frac{1}{4(x - 1)} - \frac{1}{4(x + 1)} - \frac{1}{2(x^2 + 1)},

    which integrates to 14log⁡∣x−1∣−14log⁡∣x+1∣−12tan⁡−1x+C\frac14\log|x - 1| - \frac14\log|x + 1| - \frac12\tan^{-1}x + C⁠: the same answer.

    Table 7.2 lists the pattern "one linear factor times one quadratic"; with two linear factors and one quadratic the same principle applies (a constant over each linear factor, Cx+DCx + D over the quadratic). Getting the same result two ways is a strong check on the constants.
  5. Check: differentiate the answer

    ddx(14log⁡∣x−1∣−14log⁡∣x+1∣−12tan⁡−1x)=14(x−1)−14(x+1)−12(1+x2)=24(x2−1)−12(x2+1)=12⋅(x2+1)−(x2−1)(x2−1)(x2+1)=1x4−1. ✓\begin{aligned} &\frac{d}{dx}\Big(\tfrac14\log|x - 1| - \tfrac14\log|x + 1| - \tfrac12\tan^{-1}x\Big) \\ &= \frac{1}{4(x - 1)} - \frac{1}{4(x + 1)} - \frac{1}{2(1 + x^2)} \\ &= \frac{2}{4(x^2 - 1)} - \frac{1}{2(x^2 + 1)} \\ &= \frac12\cdot\frac{(x^2 + 1) - (x^2 - 1)}{(x^2 - 1)(x^2 + 1)} \\ &= \frac{1}{x^4 - 1}. \ \checkmark \end{aligned}

    Valid for every x≠±1x \ne \pm 1⁠.

    1x−1−1x+1=(x+1)−(x−1)x2−1=2x2−1\frac{1}{x - 1} - \frac{1}{x + 1} = \frac{(x + 1) - (x - 1)}{x^2 - 1} = \frac{2}{x^2 - 1}⁠; then the two fractions over x2∓1x^2 \mp 1 combine, and (x2+1)−(x2−1)=2(x^2 + 1) - (x^2 - 1) = 2 cancels the 12\frac12⁠.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫dxx4−1=14log⁡∣x−1x+1∣−12tan⁡−1x+C,\int\frac{dx}{x^4 - 1} = \frac14\log\left|\frac{x - 1}{x + 1}\right| - \frac12\tan^{-1}x + C,

for x≠±1x \ne \pm 1⁠. (Textbook answer: 14log⁡∣x−1x+1∣−12tan⁡−1x+C\frac14\log\left|\frac{x - 1}{x + 1}\right| - \frac12\tan^{-1}x + C⁠, the same.)

Check it with numbers

Decomposition at x=2x = 2⁠: 116−1=115\frac{1}{16 - 1} = \frac{1}{15} and 12⋅13−12⋅15=115\frac12\cdot\frac13 - \frac12\cdot\frac15 = \frac{1}{15} (both ≈0.0666667\approx 0.0666667⁠). ✓

Definite integral from 2 to 3 (continuous there): F(3)−F(2)F(3) - F(2) =14log⁡32−12(tan⁡−13−tan⁡−12)= \frac14\log\frac32 - \frac12(\tan^{-1}3 - \tan^{-1}2) ≈0.0304177\approx 0.0304177⁠. A numerical integration over [2,3][2, 3] gives 0.03041770.0304177 too. ✓

Common mistakes
  1. Factorising x4−1x^4 - 1 as (x2−1)2(x^2 - 1)^2⁠. (x2−1)2=x4−2x2+1(x^2 - 1)^2 = x^4 - 2x^2 + 1⁠. The correct factorisation is (x2−1)(x2+1)(x^2 - 1)(x^2 + 1)⁠.
  2. Integrating with respect to yy after putting y=x2y = x^2⁠. The yy is only a device for the algebra; dxdx is not dydy⁠.
  3. Signs in formula (1). ∫dxx2−1=12log⁡∣x−1x+1∣\int\frac{dx}{x^2 - 1} = \frac12\log\left|\frac{x - 1}{x + 1}\right|⁠, with x−1x - 1 on top.
What to take away
  1. When every factor is a function of x2x^2⁠, split in terms of y=x2y = x^2 first (Example 14).
  2. 1x2−a2\frac{1}{x^2 - a^2} and 1x2+a2\frac{1}{x^2 + a^2} are standard forms of Section 7.4.
  3. A second decomposition (or differentiating back) catches errors in the constants.

Every fact used, and where it comes from

FactUsed inSource
p2−q2=(p−q)(p+q)p^2 - q^2 = (p - q)(p + q)Step 1Algebra (Basics: splitting fractions)
Ay−a+By−b\frac{A}{y - a} + \frac{B}{y - b}⁠; split in y=x2y = x^2Step 2Table 7.2, row 1; Example 14, Section 7.5
∫dxx2−a2=12alog⁡∣x−ax+a∣+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + CStep 3Section 7.4, formula (1)
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + CStep 3Section 7.4, formula (3)
Constant multiple and sum rulesStep 3Properties (III), (IV), Section 7.2.1
Constant over each linear factor, Cx+DCx + D over the quadraticStep 4Section 7.5, Table 7.2 (rows 1 and 5)
Derivative of an antiderivative is the integrandStep 5Property (I), Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →