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

Exercise 7.2 · Q10: ∫dxx−x\int \frac{dx}{x-\sqrt{x}}

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function:

1x−x\frac{1}{x-\sqrt{x}}
Exam answer

Let I=∫dxx−xI = \displaystyle\int\frac{dx}{x - \sqrt x}⁠.

I=∫dxx(x−1)I = \int\frac{dx}{\sqrt x\left(\sqrt x - 1\right)}

Put x−1=t\sqrt x - 1 = t⁠. Then dx2x=dt\frac{dx}{2\sqrt x} = dt⁠.

∴ I=∫2 dtt=2log⁡∣t∣+C\therefore\ I = \int\frac{2\,dt}{t} = 2\log|t| + C

∴ I=2log⁡∣x−1∣+C\therefore\ I = 2\log\left|\sqrt x - 1\right| + C⁠.

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

The one idea this problem is built on

Since x=x⋅xx = \sqrt x\cdot\sqrt x⁠, the denominator factors as x (x−1)\sqrt x\,(\sqrt x - 1)⁠. The piece 1x\frac{1}{\sqrt x} is (twice) the derivative of x−1\sqrt x - 1⁠. So t=x−1t = \sqrt x - 1 turns the integral into 2∫dtt=2log⁡∣t∣2\int\frac{dt}{t} = 2\log|t|⁠.

Given, to find, and the plan
Given
f(x)=1x−xf(x) = \dfrac{1}{x - \sqrt x}⁠. It needs x≥0x \ge 0 (for x\sqrt x⁠) and x−x≠0x - \sqrt x \ne 0⁠. Since x−x=x(x−1)x - \sqrt x = \sqrt x(\sqrt x - 1)⁠, the denominator vanishes at x=0x = 0 and x=1x = 1⁠. So ff is defined for x>0x > 0⁠, x≠1x \ne 1⁠: on the two intervals (0,1)(0, 1) and (1,∞)(1, \infty)⁠.
To find
∫dxx−x\displaystyle\int\frac{dx}{x - \sqrt x}⁠.
Plan
(1) Factor the denominator. (2) Substitute t=x−1t = \sqrt x - 1⁠. (3) Integrate 1t\frac1t⁠. (4) Return to xx⁠. (5) Differentiate to check.

Basics you need

1The square root as a power

x=x1/2\sqrt x = x^{1/2}⁠, so ddxx=12x−1/2=12x\frac{d}{dx}\sqrt x = \frac12 x^{-1/2} = \frac{1}{2\sqrt x} for x>0x > 0⁠. Basics: powers of x

2Substitution

Put t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dx (Section 7.3.1; Example 5(iii) uses t=xt = \sqrt x in the same way). Basics: substitution

3The integral of 1/t1/t

∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠, t≠0t \ne 0 (standard formula (xii), Section 7.2). Basics: logarithms and 1/x

Solution

  1. Factor the denominator

    For x>0x > 0⁠, x=(x)2x = \left(\sqrt x\right)^2⁠, so

    x−x=x(x−1),1x−x=1x−1⋅1x.\begin{aligned} x - \sqrt x &= \sqrt x\left(\sqrt x - 1\right), \\ \frac{1}{x - \sqrt x} &= \frac{1}{\sqrt x - 1}\cdot\frac{1}{\sqrt x}. \end{aligned}
    Factoring reveals a function of x−1\sqrt x - 1 multiplied by 1x\frac{1}{\sqrt x}⁠. The second factor is, up to the constant 22⁠, the derivative of x−1\sqrt x - 1⁠. That is the substitution pattern.
  2. Substitute t=x−1t = \sqrt x - 1

    t=x−1,dt=12x dx,dxx=2 dt.\begin{aligned} t &= \sqrt x - 1, \\ dt &= \frac{1}{2\sqrt x}\,dx, \\ \frac{dx}{\sqrt x} &= 2\,dt. \end{aligned}

    Therefore

    ∫1x−1⋅dxx=∫1t⋅2 dt=2∫dtt.\int\frac{1}{\sqrt x - 1}\cdot\frac{dx}{\sqrt x} = \int\frac{1}{t}\cdot 2\,dt = 2\int\frac{dt}{t}.
    We solve dt=dx2xdt = \frac{dx}{2\sqrt x} for the combination dxx\frac{dx}{\sqrt x} that is in the integrand. On the domain, x≠1x \ne 1 means x≠1\sqrt x \ne 1⁠, so t≠0t \ne 0 and 1t\frac1t is defined.
    Substitution, Section 7.3.1; ddxx=12x\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x}⁠. Lesson: integration by substitution
  3. Integrate in tt

    2∫dtt=2log⁡∣t∣+C.2\int\frac{dt}{t} = 2\log|t| + C.
    Standard formula (xii). The absolute value is essential: for 0<x<10 < x < 1⁠, x<1\sqrt x < 1 and tt is negative.
    Standard formula (xii), Section 7.2.
  4. Return to xx

    2log⁡∣t∣+C=2log⁡∣x−1∣+C.2\log|t| + C = 2\log\left|\sqrt x - 1\right| + C.
    Replace tt by x−1\sqrt x - 1⁠. The form holds on both intervals (0,1)(0, 1) and (1,∞)(1, \infty)⁠.
  5. Check: differentiate the answer

    Chain rule with inner u=x−1u = \sqrt x - 1 (u′=12xu' = \frac{1}{2\sqrt x}⁠) and outer 2log⁡∣u∣2\log|u| (derivative 2u\frac2u⁠):

    ddx 2log⁡∣x−1∣=2x−1⋅12x=1x(x−1)=1x−x.\begin{aligned} \frac{d}{dx}\,2\log\left|\sqrt x - 1\right| &= \frac{2}{\sqrt x - 1}\cdot\frac{1}{2\sqrt x} \\ &= \frac{1}{\sqrt x\left(\sqrt x - 1\right)} \\ &= \frac{1}{x - \sqrt x}. \end{aligned}

    We are back at the integrand, on both intervals of the domain.

    The derivative of log⁡∣u∣\log|u| is 1u\frac1u whether uu is positive (x>1x > 1⁠) or negative (0<x<10 < x < 1⁠), so this single computation checks the answer on both intervals (Property (I), Section 7.2.1).
    ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2; chain rule, Chapter 5, Theorem 4. Basics: integration undoes differentiation
Result

For x>0x > 0⁠, x≠1x \ne 1⁠,

∫dxx−x=2log⁡∣x−1∣+C.\int\frac{dx}{x - \sqrt x} = 2\log\left|\sqrt x - 1\right| + C.

(Textbook answer: 2log⁡∣x−1∣+C2\log|\sqrt x - 1| + C⁠.) The constant may differ on (0,1)(0, 1) and on (1,∞)(1, \infty)⁠, since the integrand is undefined at x=1x = 1⁠.

Check it with numbers

Let F(x)=2log⁡∣x−1∣F(x) = 2\log|\sqrt x - 1|⁠. At x=4x = 4 the integrand is 14−2=0.5\frac{1}{4 - 2} = 0.5⁠. With h=0.0001h = 0.0001⁠:

F(4.0001)≈0.0000499991,F(3.9999)≈−0.0000500009,F(4.0001)−F(3.9999)0.0002≈0.500000.\begin{aligned} F(4.0001) &\approx 0.0000499991, \\ F(3.9999) &\approx -0.0000500009, \\ \frac{F(4.0001)-F(3.9999)}{0.0002} &\approx 0.500000. \end{aligned}

The slope of FF equals the integrand. (Here F(4)=2log⁡1=0F(4) = 2\log 1 = 0⁠, which is why the two values are so close to 0.)

Common mistakes
  1. Splitting the fraction. 1x−x\frac{1}{x - \sqrt x} is not 1x−1x\frac1x - \frac{1}{\sqrt x}⁠.
  2. Losing the factor 2. dxx=2 dt\frac{dx}{\sqrt x} = 2\,dt⁠, because dt=dx2xdt = \frac{dx}{2\sqrt x}⁠.
  3. Writing log⁡(x−1)\log(\sqrt x - 1) without bars. That is undefined for 0<x<10 < x < 1⁠, where the integrand does exist.
What to take away
  1. Treat x\sqrt x as a unit: x=(x)2x = (\sqrt x)^2 lets you factor expressions in xx and x\sqrt x⁠.
  2. A factor 1x\frac{1}{\sqrt x} is a sign that a substitution in x\sqrt x will work, since d(x)=dx2xd(\sqrt x) = \frac{dx}{2\sqrt x}⁠.

Every fact used, and where it comes from

FactUsed inSource
x=(x)2x = (\sqrt x)^2 for x≥0x \ge 0Step 1Definition of the square root
ddxx=12x\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x}⁠, x>0x > 0Steps 2, 5Chapter 5, Table 5.3 (n=12n = \frac12⁠); Example 5(iii)
SubstitutionStep 2Section 7.3.1 (Lesson: substitution)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 3Standard formula (xii), Section 7.2
Chain ruleStep 5Chapter 5, Theorem 4
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 →