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

Miscellaneous · Q1: ∫dxx−x3\int\frac{dx}{x-x^3}

Miscellaneous ExerciseIntegration by partial fractions · Miscellaneous Exercise on Chapter 7
The question

Integrate the functions in Exercises 1 to 23.

1. 1x−x3\dfrac{1}{x-x^3}

Exam answer

Let I=∫dxx−x3I = \displaystyle\int\frac{dx}{x - x^3}⁠. Here x−x3=x(1−x)(1+x)x - x^3 = x(1 - x)(1 + x)⁠.

Let

1x(1−x)(1+x)=Ax+B1−x+C1+x\begin{aligned} &\frac{1}{x(1 - x)(1 + x)} \\ &= \frac{A}{x} + \frac{B}{1 - x} + \frac{C}{1 + x} \end{aligned} ⇒ 1=A(1−x)(1+x)+Bx(1+x)+Cx(1−x)\begin{aligned} \Rightarrow\ 1 &= A(1 - x)(1 + x) \\ &\quad + Bx(1 + x) + Cx(1 - x) \end{aligned}

Putting x=0x = 0⁠: A=1A = 1⁠. Putting x=1x = 1⁠: 2B=12B = 1⁠, so B=12B = \frac12⁠. Putting x=−1x = -1⁠: −2C=1-2C = 1⁠, so C=−12C = -\frac12⁠.

∴ I=∫dxx+12∫dx1−x−12∫dx1+x=log⁡∣x∣−12log⁡∣1−x∣−12log⁡∣1+x∣+c=12log⁡x2−12log⁡∣1−x2∣+c\begin{aligned} \therefore\ I &= \int\frac{dx}{x} + \frac12\int\frac{dx}{1 - x} \\ &\quad - \frac12\int\frac{dx}{1 + x} \\ &= \log|x| - \frac12\log|1 - x| \\ &\quad - \frac12\log|1 + x| + c \\ &= \frac12\log x^2 - \frac12\log|1 - x^2| + c \end{aligned}

∴ I=12log⁡∣x21−x2∣+c\therefore\ I = \dfrac12\log\left|\dfrac{x^2}{1 - x^2}\right| + c⁠.

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

The one idea this problem is built on

This is a proper rational function (the top has degree 0, the bottom degree 3), and its denominator factorises into three different linear factors: x−x3=x(1−x)(1+x)x - x^3 = x(1-x)(1+x)⁠. That is exactly the situation of Table 7.2, row 3, so partial fractions turn it into three simple fractions, each of which integrates to a logarithm.

Given, to find, and the plan
Given
f(x)=1x−x3f(x) = \dfrac{1}{x-x^3}⁠, defined wherever x−x3≠0x - x^3 \ne 0⁠, that is for x≠0,1,−1x \ne 0, 1, -1⁠.
To find
∫dxx−x3\displaystyle\int\frac{dx}{x-x^3}⁠.
Plan
(1) Choose the method and factorise. (2) Write the partial fraction form. (3) Find the constants. (4) Integrate each piece. (5) Combine the logarithms into the key's form. (6) Differentiate back.

Basics you need

1Partial fractions, Table 7.2 row 3

A proper fraction over three different linear factors splits as Ax−a+Bx−b+Cx−c\frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}⁠, with constants found by putting in the roots or by comparing coefficients. Lesson: partial fractions

2Logarithm of a linear expression

For m≠0m \ne 0⁠: ∫dxmx+c=1mlog⁡∣mx+c∣+C\int\frac{dx}{mx+c} = \frac1m\log|mx+c| + C⁠. This is the substitution t=mx+ct = mx + c followed by standard formula (xii). Basics: logarithms and 1/x

3Laws of logarithms

log⁡p+log⁡q=log⁡pq\log p + \log q = \log pq⁠, log⁡p−log⁡q=log⁡pq\log p - \log q = \log\frac pq and klog⁡p=log⁡pkk\log p = \log p^k for positive p,qp, q⁠. With absolute values, ∣p∣ ∣q∣=∣pq∣|p|\,|q| = |pq|⁠. Basics: logarithms and 1/x

Solution

  1. Choose the method and factorise the denominator

    Take out the common factor xx⁠, then use the difference of squares 1−x2=(1−x)(1+x)1 - x^2 = (1-x)(1+x)⁠:

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

    So the integrand is 1x(1−x)(1+x)\dfrac{1}{x(1-x)(1+x)}⁠. It is defined for x≠0,1,−1x \ne 0, 1, -1⁠.

    No standard formula fits 1x−x3\frac{1}{x-x^3} directly, and the substitution t=x−x3t = x - x^3 does not work, because the numerator is not a multiple of the derivative of the denominator, which is 1−3x21 - 3x^2⁠. But it is a rational function with a numerator of lower degree than the denominator (proper), and the denominator breaks into different linear factors. For that case the method of Section 7.5 always works.
    Proper rational functions and Table 7.2, Section 7.5. Basics: splitting fractions
  2. Write the partial fraction form

    With three different linear factors, Table 7.2 row 3 gives

    1x(1−x)(1+x)=Ax+B1−x+C1+x.\frac{1}{x(1-x)(1+x)} = \frac{A}{x} + \frac{B}{1-x} + \frac{C}{1+x}.

    Multiply both sides by x(1−x)(1+x)x(1-x)(1+x)⁠:

    1=A(1−x)(1+x)+Bx(1+x)+Cx(1−x).(1)\begin{aligned} 1 &= A(1-x)(1+x) + Bx(1+x) \\ &\quad + Cx(1-x). \qquad (1) \end{aligned}
    The factor 1−x1 - x is −(x−1)-(x - 1)⁠, so B1−x\frac{B}{1-x} is the same kind of term as −Bx−1\frac{-B}{x-1}⁠; keeping the factor as 1−x1 - x just saves a sign. Equation (1) holds for every xx other than 0,±10, \pm1⁠; both sides are polynomials, so it is a polynomial identity and holds for all real xx⁠, including the roots we use next.
    Table 7.2, row 3, Section 7.5. Lesson: partial fractions
  3. Find AA⁠, BB and CC by putting in the roots

    x=0x = 0⁠: 1=A(1)(1)1 = A(1)(1)⁠, so A=1A = 1⁠.

    x=1x = 1⁠: 1=B(1)(2)1 = B(1)(2)⁠, so B=12B = \frac12⁠.

    x=−1x = -1⁠: 1=C(−1)(2)=−2C1 = C(-1)(2) = -2C⁠, so C=−12C = -\frac12⁠.

    Hence

    1x−x3=1x+12(1−x)−12(1+x).\frac{1}{x-x^3} = \frac1x + \frac{1}{2(1-x)} - \frac{1}{2(1+x)}.
    Each root makes two of the three products in (1) vanish, leaving one equation in one unknown. Confirm by comparing coefficients: the right side of (1) is (−A+B−C)x2+(B+C)x+A(-A + B - C)x^2 + (B + C)x + A⁠. With our values: −1+12+12=0-1 + \frac12 + \frac12 = 0⁠, 12−12=0\frac12 - \frac12 = 0 and A=1A = 1⁠, which matches the left side 0x2+0x+10x^2 + 0x + 1⁠.
    A polynomial identity may be evaluated at any xx⁠; equal polynomials have equal coefficients. Basics: splitting fractions
  4. Integrate each piece

    For the middle term use t=1−xt = 1 - x⁠, dt=−dxdt = -dx⁠; for the last, t=1+xt = 1 + x⁠, dt=dxdt = dx⁠:

    ∫dx1−x=−log⁡∣1−x∣,∫dx1+x=log⁡∣1+x∣.\int\frac{dx}{1-x} = -\log|1-x|, \qquad \int\frac{dx}{1+x} = \log|1+x|.

    So

    ∫dxx−x3=∫dxx+12∫dx1−x−12∫dx1+x=log⁡∣x∣−12log⁡∣1−x∣−12log⁡∣1+x∣+C.\begin{aligned} \int\frac{dx}{x-x^3} &= \int\frac{dx}{x} + \frac12\int\frac{dx}{1-x} \\ &\quad - \frac12\int\frac{dx}{1+x} \\ &= \log|x| - \frac12\log|1-x| \\ &\quad - \frac12\log|1+x| + C. \end{aligned}
    The integral of a sum is the sum of the integrals, and constants come outside (properties (III) and (IV)). The coefficient of xx in 1−x1 - x is −1-1⁠, so that logarithm picks up a minus sign: this is the step where sign slips happen.
    Standard formula (xii), Section 7.2; substitution, Section 7.3.1. Basics: substitution
  5. Combine the logarithms into the key's form

    Since ∣1−x∣ ∣1+x∣=∣1−x2∣|1-x|\,|1+x| = |1-x^2|⁠, the last two terms combine:

    −12(log⁡∣1−x∣+log⁡∣1+x∣)=−12log⁡∣1−x2∣.-\tfrac12\big(\log|1-x| + \log|1+x|\big) = -\tfrac12\log|1-x^2|.

    Also log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2⁠. Therefore

    ∫dxx−x3=12log⁡x2−12log⁡∣1−x2∣+C=12log⁡∣x21−x2∣+C.\begin{aligned} \int\frac{dx}{x-x^3} &= \frac12\log x^2 - \frac12\log|1-x^2| + C \\ &= \frac12\log\left|\frac{x^2}{1-x^2}\right| + C. \end{aligned}
    This is exactly the textbook's form, so the two answers are identical (the difference is 0, not just a constant). Each law of logarithms here is applied to positive numbers ∣x∣|x|⁠, ∣1−x∣|1-x|⁠, ∣1+x∣|1+x|⁠, which is why the absolute values are kept until the end.
    log⁡p+log⁡q=log⁡pq\log p + \log q = \log pq⁠, klog⁡p=log⁡pkk\log p = \log p^k for p,q>0p, q > 0 (Basic 3).
  6. Check: differentiate the answer

    Use ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u} with u=xu = x and u=1−x2u = 1 - x^2⁠:

    ddx(log⁡∣x∣−12log⁡∣1−x2∣)=1x−12⋅−2x1−x2=1x+x1−x2=(1−x2)+x2x(1−x2)=1x−x3. ✓\begin{aligned} &\frac{d}{dx}\Big(\log|x| - \tfrac12\log|1-x^2|\Big) \\ &= \frac1x - \frac12\cdot\frac{-2x}{1-x^2} = \frac1x + \frac{x}{1-x^2} \\ &= \frac{(1-x^2) + x^2}{x(1-x^2)} = \frac{1}{x-x^3}. \ \checkmark \end{aligned}
    The derivative returns the integrand, so the answer is right. The check is valid on each of the four intervals x<−1x < -1⁠, −1<x<0-1 < x < 0⁠, 0<x<10 < x < 1⁠, x>1x > 1⁠; on each one the constant CC may be different.
    Chain rule and ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}⁠, Chapter 5. Basics: integration undoes differentiation
Result

For x≠0,1,−1x \ne 0, 1, -1⁠:

∫dxx−x3=log⁡∣x∣−12log⁡∣1−x2∣+C=12log⁡∣x21−x2∣+C.\begin{aligned} \int\frac{dx}{x-x^3} &= \log|x| - \frac12\log|1-x^2| + C \\ &= \frac12\log\left|\frac{x^2}{1-x^2}\right| + C. \end{aligned}

(Textbook answer: 12log⁡∣x21−x2∣+C\frac12\log\left|\frac{x^2}{1-x^2}\right| + C⁠, the same.)

Check it with numbers

Decomposition at x=2x = 2⁠: the integrand is 12−8=−16\frac{1}{2-8} = -\frac16⁠, and the three pieces give 12+12(−1)−12(3)\frac12 + \frac{1}{2(-1)} - \frac{1}{2(3)}⁠, that is 12−12−16=−16\frac12 - \frac12 - \frac16 = -\frac16⁠. ✓

Area check on [2,3][2, 3]⁠, where the integrand is continuous: with FF our answer,

F(3)−F(2)=12log⁡98−12log⁡43=12log⁡2732≈−0.0849495.\begin{aligned} F(3) - F(2) &= \tfrac12\log\tfrac98 - \tfrac12\log\tfrac43 \\ &= \tfrac12\log\tfrac{27}{32} \approx -0.0849495. \end{aligned}

Numerical integration from 2 to 3 also gives −0.0849495-0.0849495⁠. It is negative because x−x3<0x - x^3 < 0 for x>1x > 1⁠.

Common mistakes
  1. Factorising wrongly, for example x−x3=x(x−1)(x+1)x - x^3 = x(x-1)(x+1)⁠. That product is x3−xx^3 - x⁠, the negative of the denominator, so every sign in the answer flips.
  2. ∫dx1−x=log⁡∣1−x∣\int\frac{dx}{1-x} = \log|1-x|⁠. The inner derivative is −1-1⁠, so it is −log⁡∣1−x∣-\log|1-x|⁠.
  3. Dropping the absolute values and writing log⁡x21−x2\log\frac{x^2}{1-x^2}⁠. For ∣x∣>1|x| > 1 the fraction is negative and its logarithm is not defined.
What to take away
  1. When a rational integrand is proper and the denominator factorises into different linear factors, partial fractions are the method of choice.
  2. The roots of the factors give the constants in one line each; comparing coefficients is a free check.
  3. Combining logarithms at the end often turns your answer into the book's compact form; keep the absolute values while doing it.

Every fact used, and where it comes from

FactUsed inSource
1−x2=(1−x)(1+x)1 - x^2 = (1-x)(1+x)Step 1Algebra (difference of squares)
Form Ax−a+Bx−b+Cx−c\frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}Step 2Table 7.2, row 3, Section 7.5
A polynomial identity can be evaluated at any xxStep 3Algebra (Basics)
Integral of a sum; constants outsideStep 4Properties (III), (IV), Section 7.2.1
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 4Standard formula (xii), Section 7.2
Substitution t=1∓xt = 1 \mp xStep 4Section 7.3.1
Laws of logarithmsStep 5Algebra (Basics)
Chain rule, derivative of log⁡∣u∣\log|u|Step 6Chapter 5
All decimalsCheckRecomputed in the site's verification script
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 →