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

Exercise 7.5 · Q6: ∫1−x2x(1−2x) dx\int\frac{1-x^2}{x(1-2x)}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

1−x2x(1−2x)\frac{1-x^2}{x(1-2x)}
Exam answer

Let I=∫1−x2x(1−2x) dxI = \displaystyle\int\frac{1 - x^2}{x(1 - 2x)}\,dx⁠.

The fraction is improper. Dividing 1−x21 - x^2 by x−2x2x - 2x^2⁠:

1−x2x(1−2x)=12+2−x2x(1−2x)\frac{1 - x^2}{x(1 - 2x)} = \frac12 + \frac{2 - x}{2x(1 - 2x)}

Let

2−xx(1−2x)=Ax+B1−2x\frac{2 - x}{x(1 - 2x)} = \frac{A}{x} + \frac{B}{1 - 2x} ⇒ 2−x=A(1−2x)+Bx\Rightarrow\ 2 - x = A(1 - 2x) + Bx

Putting x=0x = 0⁠: A=2A = 2⁠. Putting x=12x = \frac12⁠: 32=B2\frac32 = \frac B2⁠, so B=3B = 3⁠.

∴ 1−x2x(1−2x)=12+1x+32(1−2x)\begin{aligned} \therefore\ \frac{1 - x^2}{x(1 - 2x)} &= \frac12 + \frac1x \\ &\quad + \frac{3}{2(1 - 2x)} \end{aligned}

[Using ∫dx1−2x\displaystyle\int\frac{dx}{1 - 2x} =−12log⁡∣1−2x∣+C= -\frac12\log|1 - 2x| + C]

I=∫12 dx+∫dxx+32∫dx1−2x=x2+log⁡∣x∣+32(−12log⁡∣1−2x∣)+C\begin{aligned} I &= \int\frac12\,dx + \int\frac{dx}{x} \\ &\quad + \frac32\int\frac{dx}{1 - 2x} \\ &= \frac x2 + \log|x| \\ &\quad + \frac32\left(-\frac12\log|1 - 2x|\right) + C \end{aligned}

∴ I=x2+log⁡∣x∣−34log⁡∣1−2x∣\therefore\ I = \dfrac x2 + \log|x| - \dfrac34\log|1 - 2x| +C+ C⁠.

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

The one idea this problem is built on

Numerator and denominator both have degree 2, so the fraction is improper. Divide first: it becomes a constant plus a proper fraction (Section 7.5). Only the proper part is split into partial fractions, here Ax+B1−2x\frac{A}{x} + \frac{B}{1-2x}⁠.

Given, to find, and the plan
Given
f(x)=1−x2x(1−2x)f(x) = \frac{1-x^2}{x(1-2x)}⁠, defined for every real xx except x=0x = 0 and x=12x = \frac12⁠.
To find
∫1−x2x(1−2x) dx\displaystyle\int\frac{1-x^2}{x(1-2x)}\,dx⁠.
Plan
(1) See that the fraction is improper. (2) Divide to get a constant plus a proper fraction. (3) Split the proper fraction (Table 7.2, row 1) and find the constants. (4) Integrate, with a substitution for 11−2x\frac{1}{1-2x}⁠. (5) Differentiate back.

Basics you need

1Improper fractions are divided first

If the degree of PP is at least the degree of QQ⁠, then P(x)Q(x)=T(x)+P1(x)Q(x)\frac{P(x)}{Q(x)} = T(x) + \frac{P_1(x)}{Q(x)} with TT a polynomial and P1Q\frac{P_1}{Q} proper (Section 7.5). Basics: splitting fractions

2Table 7.2, row 1

Two different linear factors: px+q(x−a)(x−b)=Ax−a+Bx−b\frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}⁠. A factor like 1−2x1 - 2x works the same way: B1−2x\frac{B}{1-2x}⁠. Lesson: partial fractions

3Logarithm 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 (substitute t=mx+ct = mx + c⁠, dt=m dxdt = m\,dx⁠, then standard formula (xii)). Basics: substitution

Solution

  1. The fraction is improper

    The numerator 1−x21 - x^2 has degree 2. The denominator x(1−2x)=x−2x2x(1-2x) = x - 2x^2 also has degree 2. Since the numerator's degree is not less than the denominator's, the fraction is improper.

    Table 7.2 only lists forms for proper fractions. Splitting an improper fraction straight into Ax+B1−2x\frac{A}{x} + \frac{B}{1-2x} would fail, because that sum is always proper and cannot equal an improper fraction.
    Section 7.5 (improper rational functions). Lesson: partial fractions
  2. Divide: a constant plus a proper fraction

    Write both in descending powers: 1−x2=−x2+11 - x^2 = -x^2 + 1 and x(1−2x)=−2x2+xx(1-2x) = -2x^2 + x⁠. The leading terms give the quotient −x2−2x2=12\frac{-x^2}{-2x^2} = \frac12⁠. Subtract 12(−2x2+x)=−x2+x2\frac12(-2x^2 + x) = -x^2 + \frac x2⁠:

    (−x2+1)−(−x2+x2)=1−x2=2−x2.(-x^2 + 1) - \left(-x^2 + \tfrac x2\right) = 1 - \tfrac x2 = \tfrac{2-x}{2}.

    So 1−x2=12 x(1−2x)+2−x21 - x^2 = \frac12\,x(1-2x) + \frac{2-x}{2}⁠, and dividing by x(1−2x)x(1-2x)⁠:

    1−x2x(1−2x)=12+2−x2x(1−2x).(1)\frac{1-x^2}{x(1-2x)} = \frac12 + \frac{2-x}{2x(1-2x)}. \qquad (1)
    The remainder 2−x2\frac{2-x}{2} has degree 1, less than 2, so the leftover fraction is proper. Check: 12(x−2x2)+1−x2=1−x2\frac12(x - 2x^2) + 1 - \frac x2 = 1 - x^2⁠. ✓
    Long division of polynomials, Section 7.5. Basics: splitting fractions
  3. Write the form for the proper part

    Leave the factor 12\frac12 aside and split

    2−xx(1−2x)=Ax+B1−2x.(2)\frac{2-x}{x(1-2x)} = \frac{A}{x} + \frac{B}{1-2x}. \qquad (2)

    Multiply by x(1−2x)x(1-2x)⁠:

    2−x=A(1−2x)+Bx.(3)2 - x = A(1-2x) + Bx. \qquad (3)
    xx and 1−2x1 - 2x are different linear factors, so row 1 of Table 7.2 applies. (3) holds for every x≠0,12x \ne 0, \frac12⁠, hence, being a polynomial identity, for every real xx⁠.
    Table 7.2, row 1; Remark after Example 11, Section 7.5.
  4. Find AA and BB

    x=0x = 0 (root of xx⁠): 2=A(1)+02 = A(1) + 0⁠, so A=2A = 2⁠.

    x=12x = \frac12 (root of 1−2x1 - 2x⁠): 2−12=0+B22 - \frac12 = 0 + \frac B2⁠, so 32=B2\frac32 = \frac B2 and B=3B = 3⁠.

    Confirm by coefficients: the right side of (3) is (−2A+B)x+A(-2A + B)x + A⁠:

    coefficient of x:−2A+B=−4+3=−1,constant term:A=2.\begin{aligned} \text{coefficient of } x:&\quad -2A + B = -4 + 3 = -1, \\ \text{constant term}:&\quad A = 2. \end{aligned}
    These match the left side −x+2-x + 2⁠. Putting in x=12x = \frac12 is allowed because (3) is a polynomial identity.
  5. Assemble the integrand

    From (2), 2−xx(1−2x)=2x+31−2x\frac{2-x}{x(1-2x)} = \frac2x + \frac{3}{1-2x}⁠. Put this into (1) and multiply by 12\frac12⁠:

    1−x2x(1−2x)=12+1x+32(1−2x).\frac{1-x^2}{x(1-2x)} = \frac12 + \frac1x + \frac{3}{2(1-2x)}.
    Half of 2x\frac2x is 1x\frac1x⁠, and half of 31−2x\frac{3}{1-2x} is 32(1−2x)\frac{3}{2(1-2x)}⁠.
  6. Integrate term by term

    For the last term substitute t=1−2xt = 1 - 2x⁠, dt=−2 dxdt = -2\,dx⁠, so dx=−dt2dx = -\frac{dt}{2}⁠:

    ∫dx1−2x=−12∫dtt=−12log⁡∣1−2x∣+C.\int\frac{dx}{1-2x} = -\frac12\int\frac{dt}{t} = -\frac12\log|1-2x| + C.

    Hence

    ∫f(x) dx=∫12 dx+∫dxx+32∫dx1−2x=x2+log⁡∣x∣+32(−12log⁡∣1−2x∣)+C=x2+log⁡∣x∣−34log⁡∣1−2x∣+C.\begin{aligned} \int f(x)\,dx &= \int\tfrac12\,dx + \int\frac{dx}{x} \\ &\quad + \frac32\int\frac{dx}{1-2x} \\ &= \frac x2 + \log|x| \\ &\quad + \frac32\left(-\frac12\log|1-2x|\right) + C \\ &= \frac x2 + \log|x| - \frac34\log|1-2x| + C. \end{aligned}
    The coefficient of xx in 1−2x1 - 2x is −2-2⁠, so the logarithm picks up a factor −12-\frac12⁠. Forgetting this factor (or its minus sign) is the usual error here.
    Substitution, Section 7.3.1; standard formulae (i) and (xii), Section 7.2. Basics: substitution
  7. Check: differentiate the answer

    By the chain rule, ddxlog⁡∣1−2x∣=−21−2x\frac{d}{dx}\log|1-2x| = \frac{-2}{1-2x}⁠. So

    ddx(x2+log⁡∣x∣−34log⁡∣1−2x∣)=12+1x+32(1−2x)=x(1−2x)+2(1−2x)+3x2x(1−2x)=2−2x22x(1−2x)=1−x2x(1−2x). ✓\begin{aligned} &\frac{d}{dx}\Big(\frac x2 + \log|x| - \frac34\log|1-2x|\Big) \\ &= \frac12 + \frac1x + \frac{3}{2(1-2x)} \\ &= \frac{x(1-2x) + 2(1-2x) + 3x}{2x(1-2x)} \\ &= \frac{2 - 2x^2}{2x(1-2x)} = \frac{1-x^2}{x(1-2x)}. \ \checkmark \end{aligned}
    The numerator is x−2x2+2−4x+3x=2−2x2x - 2x^2 + 2 - 4x + 3x = 2 - 2x^2⁠. Cancelling the 2 gives the integrand. Valid on each interval avoiding 00 and 12\frac12⁠.
Result

For x≠0,12x \ne 0, \frac12⁠:

∫1−x2x(1−2x) dx=x2+log⁡∣x∣−34log⁡∣1−2x∣+C.\begin{aligned} &\int\frac{1-x^2}{x(1-2x)}\,dx \\ &= \frac x2 + \log|x| - \frac34\log|1-2x| + C. \end{aligned}

(Textbook answer: x2+log⁡∣x∣−34log⁡∣1−2x∣+C\frac x2 + \log|x| - \frac34\log|1-2x| + C⁠.)

Check it with numbers

Decomposition at x=2x = 2⁠: the integrand is 1−42(1−4)=12\frac{1-4}{2(1-4)} = \frac12⁠, and 12+12+32(−3)=1−12=12\frac12 + \frac12 + \frac{3}{2(-3)} = 1 - \frac12 = \frac12⁠.

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

F(2)−F(1)=(1+log⁡2−34log⁡3)−12=12+log⁡2−34log⁡3≈0.3691880.\begin{aligned} F(2) - F(1) &= \big(1 + \log 2 - \tfrac34\log 3\big) - \tfrac12 \\ &= \tfrac12 + \log 2 - \tfrac34\log 3 \approx 0.3691880. \end{aligned}

Numerical integration from 1 to 2 also gives 0.36918800.3691880⁠.

Common mistakes
  1. Splitting without dividing. Ax+B1−2x\frac{A}{x} + \frac{B}{1-2x} is always proper, so it cannot equal this improper fraction; the constant 12\frac12 would be lost.
  2. ∫dx1−2x=log⁡∣1−2x∣\int\frac{dx}{1-2x} = \log|1-2x|⁠. The inner derivative is −2-2⁠, so the answer is −12log⁡∣1−2x∣-\frac12\log|1-2x|⁠.
  3. Forgetting the 12\frac12 in front of the proper part when assembling the integrand in Step 5.
What to take away
  1. Always compare degrees first; if improper, divide.
  2. ∫dxmx+c=1mlog⁡∣mx+c∣+C\int\frac{dx}{mx+c} = \frac1m\log|mx+c| + C⁠; keep the sign of mm⁠.
  3. A factor like 1−2x1 - 2x is handled exactly like x−ax - a⁠; its root is x=12x = \frac12⁠.

Every fact used, and where it comes from

FactUsed inSource
Improper fraction = polynomial + proper fractionSteps 1, 2Section 7.5
Form Ax−a+Bx−b\frac{A}{x-a} + \frac{B}{x-b}Step 3Table 7.2, row 1
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Equal polynomials have equal coefficientsStep 4Algebra (Basics)
Integral of a sum; constants outsideStep 6Properties (III), (IV), Section 7.2.1
Substitution t=1−2xt = 1 - 2xStep 6Section 7.3.1
∫xn dx\int x^n\,dx (here n=0n = 0⁠); ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 6Standard formulae (i), (xii), Section 7.2
Chain ruleStep 7Chapter 5
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 →