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

Miscellaneous · Q23: ∫x2+1 [log⁡(x2+1)−2log⁡x]x4 dx\int\frac{\sqrt{x^2+1}\,[\log(x^2+1)-2\log x]}{x^4}\,dx

Miscellaneous ExerciseSubstitution t = 1 + 1/x², then parts with log t · Miscellaneous Exercise
The question

Integrate the function:

x2+1 [log⁡(x2+1)−2log⁡x]x4\frac{\sqrt{x^2+1}\,\left[\log(x^2+1) - 2\log x\right]}{x^4}
Exam answer

Let II be the given integral. For x>0x > 0⁠,

log⁡(x2+1)−2log⁡x=log⁡x2+1x2=log⁡(1+1x2)\begin{aligned} &\log(x^2 + 1) - 2\log x \\ &= \log\frac{x^2 + 1}{x^2} = \log\left(1 + \frac{1}{x^2}\right) \end{aligned} x2+1x4=x1+1x2x4=1x31+1x2\begin{aligned} \frac{\sqrt{x^2 + 1}}{x^4} &= \frac{x\sqrt{1 + \frac{1}{x^2}}}{x^4} \\ &= \frac{1}{x^3}\sqrt{1 + \frac{1}{x^2}} \end{aligned} ∴ I=∫1+1x2×log⁡(1+1x2)dxx3\begin{aligned} \therefore\ I &= \int\sqrt{1 + \frac{1}{x^2}} \\ &\quad\times\log\left(1 + \frac{1}{x^2}\right)\frac{dx}{x^3} \end{aligned}

Put 1+1x2=t1 + \frac{1}{x^2} = t⁠. Then −2x3 dx=dt-\frac{2}{x^3}\,dx = dt⁠, so dxx3=−12 dt\frac{dx}{x^3} = -\frac12\,dt⁠.

I=−12∫t1/2log⁡t dtI = -\frac12\int t^{1/2}\log t\,dt

Taking log⁡t\log t as the first function and t1/2t^{1/2} as the second, by parts:

I=−12[23t3/2log⁡t−∫1t⋅23t3/2 dt]=−13t3/2log⁡t+13∫t1/2 dt=−13t3/2log⁡t+29t3/2+C=−13t3/2[log⁡t−23]+C\begin{aligned} I &= -\frac12\bigg[\frac23t^{3/2}\log t \\ &\qquad - \int\frac1t\cdot\frac23t^{3/2}\,dt\bigg] \\ &= -\frac13t^{3/2}\log t + \frac13\int t^{1/2}\,dt \\ &= -\frac13t^{3/2}\log t + \frac29t^{3/2} + C \\ &= -\frac13t^{3/2}\left[\log t - \frac23\right] + C \end{aligned}

∴ I=−13(1+1x2)3/2\therefore\ I = -\dfrac13\left(1 + \dfrac{1}{x^2}\right)^{3/2} ×[log⁡(1+1x2)−23]\times\left[\log\left(1 + \dfrac{1}{x^2}\right) - \dfrac23\right] +C+ C⁠.

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

The one idea this problem is built on

Everything in this function is secretly a function of the single quantity 1+1x21 + \frac{1}{x^2}⁠: the bracket is log⁡x2+1x2\log\frac{x^2+1}{x^2}⁠, and x2+1x4=1x31+1x2\frac{\sqrt{x^2+1}}{x^4} = \frac{1}{x^3}\sqrt{1 + \frac{1}{x^2}}⁠. The leftover 1x3\frac{1}{x^3} is (up to −12-\frac12⁠) the derivative of 1+1x21 + \frac{1}{x^2}⁠. So t=1+1x2t = 1 + \frac{1}{x^2} reduces the problem to ∫tlog⁡t dt\int\sqrt t\log t\,dt⁠, which yields to integration by parts.

Given, to find, and the plan
Given
f(x)=x2+1 [log⁡(x2+1)−2log⁡x]x4f(x) = \frac{\sqrt{x^2+1}\,[\log(x^2+1) - 2\log x]}{x^4}⁠. Because of log⁡x\log x⁠, it is defined only for x>0x > 0⁠.
To find
∫f(x) dx\displaystyle\int f(x)\,dx⁠.
Plan
(1) Combine the logarithms. (2) Rewrite the root over x4x^4⁠. (3) Substitute t=1+1x2t = 1 + \frac{1}{x^2}⁠. (4) Integrate tlog⁡t\sqrt t\log t by parts. (5) Return to xx⁠. (6) Differentiate back and compare with the key.

Basics you need

1Laws of logarithms

For x>0x > 0⁠: 2log⁡x=log⁡x22\log x = \log x^2 and log⁡A−log⁡B=log⁡AB\log A - \log B = \log\frac{A}{B}⁠. Basics: logarithms and 1/x

2Substitution (Section 7.3.1)

t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dx⁠. Basics: substitution

3Integration by parts (Section 7.6)

With a logarithm times a power, the logarithm is the first function (Remark (iii), Section 7.6). Lesson: integration by parts

Solution

  1. Combine the logarithms

    For x>0x > 0⁠:

    log⁡(x2+1)−2log⁡x=log⁡(x2+1)−log⁡x2=log⁡x2+1x2=log⁡(1+1x2).\begin{aligned}\log(x^2+1) - 2\log x &= \log(x^2+1) - \log x^2\\ &= \log\frac{x^2+1}{x^2} = \log\left(1 + \frac{1}{x^2}\right).\end{aligned}
    The rule 2log⁡x=log⁡x22\log x = \log x^2 needs x>0x > 0⁠, which is exactly the domain. Combining the two logarithms into one shows the quantity 1+1x21 + \frac{1}{x^2} for the first time.
  2. Rewrite x2+1x4\frac{\sqrt{x^2+1}}{x^4}

    For x>0x > 0⁠,

    x2+1=x2(1+1x2)=x1+1x2,\sqrt{x^2+1} = \sqrt{x^2\left(1 + \frac{1}{x^2}\right)} = x\sqrt{1 + \frac{1}{x^2}} ,

    so

    x2+1x4=1x31+1x2.\frac{\sqrt{x^2+1}}{x^4} = \frac{1}{x^3}\sqrt{1 + \frac{1}{x^2}} .

    Hence

    f(x)=1x31+1x2  log⁡(1+1x2).f(x) = \frac{1}{x^3}\sqrt{1 + \frac{1}{x^2}}\;\log\left(1 + \frac{1}{x^2}\right).
    x2=∣x∣=x\sqrt{x^2} = |x| = x because x>0x > 0⁠. Taking the factor xx out of the root makes the same quantity 1+1x21 + \frac{1}{x^2} appear under the root as in the logarithm.
  3. Choose the substitution t=1+1x2t = 1 + \frac{1}{x^2}

    t=1+x−2,dt=−2x−3 dx,dxx3=−dt2.t = 1 + x^{-2} ,\qquad dt = -2x^{-3}\,dx ,\qquad \frac{dx}{x^3} = -\frac{dt}{2} .

    For x>0x > 0⁠, t>1t > 1⁠, and the integral becomes

    ∫f(x) dx=−12∫t log⁡t dt.\int f(x)\,dx = -\frac12\int\sqrt t\,\log t\,dt .
    Both the root and the logarithm are functions of 1+1x21 + \frac{1}{x^2}⁠, and the remaining factor 1x3 dx\frac{1}{x^3}\,dx is a constant multiple of its differential. That is precisely when substitution works. Note t>1>0t > 1 > 0⁠, so t\sqrt t and log⁡t\log t are defined.
  4. Integrate tlog⁡t\sqrt t\log t by parts

    First function log⁡t\log t (derivative 1t\frac1t⁠), second function t1/2t^{1/2} (integral 23t3/2\frac23t^{3/2}⁠):

    ∫t1/2log⁡t dt=23t3/2log⁡t−∫1t⋅23t3/2 dt=23t3/2log⁡t−23∫t1/2 dt=23t3/2log⁡t−49t3/2.\begin{aligned}\int t^{1/2}\log t\,dt &= \frac23t^{3/2}\log t - \int\frac1t\cdot\frac23t^{3/2}\,dt\\ &= \frac23t^{3/2}\log t - \frac23\int t^{1/2}\,dt\\ &= \frac23t^{3/2}\log t - \frac49t^{3/2} .\end{aligned}

    Multiplying by −12-\frac12⁠:

    −12∫tlog⁡t dt=−13t3/2log⁡t+29t3/2+C=−13t3/2[log⁡t−23]+C.\begin{aligned}-\frac12\int\sqrt t\log t\,dt &= -\frac13t^{3/2}\log t + \frac29t^{3/2} + C\\ &= -\frac13t^{3/2}\left[\log t - \frac23\right] + C .\end{aligned}
    We cannot integrate log⁡t\log t directly but can differentiate it, so it is the first function (logarithm before algebraic, Remark (iii)). Its derivative 1t\frac1t lowers the power, and 1t⋅t3/2=t1/2\frac1t\cdot t^{3/2} = t^{1/2} is easy to integrate.
    Section 7.6; standard formula (i), Section 7.2. Lesson: integration by parts
  5. Return to xx

    ∫f(x) dx=−13(1+1x2)3/2×[log⁡(1+1x2)−23]+C.\begin{aligned}\int f(x)\,dx &= -\frac13\left(1 + \frac{1}{x^2}\right)^{3/2}\\ &\quad\times\left[\log\left(1 + \frac{1}{x^2}\right) - \frac23\right] + C .\end{aligned}
    Replace tt by 1+1x21 + \frac{1}{x^2}⁠. This is valid for every x>0x > 0⁠.
  6. Check: differentiate the answer

    Write the answer as F=−13t3/2(log⁡t−23)F = -\frac13t^{3/2}\left(\log t - \frac23\right) with t=1+x−2t = 1 + x^{-2}⁠. By the product rule in tt⁠,

    dFdt=−13[32t1/2(log⁡t−23)+t3/2⋅1t]=−13[32t1/2log⁡t−t1/2+t1/2]=−12t log⁡t.\begin{aligned}\frac{dF}{dt} &= -\frac13\left[\frac32t^{1/2}\left(\log t - \frac23\right) + t^{3/2}\cdot\frac1t\right]\\ &= -\frac13\left[\frac32t^{1/2}\log t - t^{1/2} + t^{1/2}\right]\\ &= -\frac12\sqrt t\,\log t .\end{aligned}

    Then, by the chain rule with dtdx=−2x3\frac{dt}{dx} = -\frac{2}{x^3}⁠,

    dFdx=−12tlog⁡t⋅(−2x3)=t log⁡tx3=f(x) ✓\frac{dF}{dx} = -\frac12\sqrt t\log t\cdot\left(-\frac{2}{x^3}\right) = \frac{\sqrt t\,\log t}{x^3} = f(x)\ \checkmark
    The last equality is Steps 1 and 2 read backwards. The −23-\frac23 inside the bracket is exactly what cancels the extra t1/2t^{1/2} produced by differentiating log⁡t\log t⁠.
  7. Compare with the textbook's answer

    The key gives −13(1+1x2)3/2-\frac13\left(1 + \frac{1}{x^2}\right)^{3/2} times [log⁡(1+1x2)−23]\left[\log\left(1 + \frac{1}{x^2}\right) - \frac23\right]⁠, plus CC⁠: exactly our answer.

    The key does not state the domain; it is x>0x > 0⁠, forced by log⁡x\log x in the question.
Result

For x>0x > 0⁠:

∫x2+1 [log⁡(x2+1)−2log⁡x]x4 dx=−13(1+1x2)3/2×[log⁡(1+1x2)−23]+C\begin{aligned}&\int\frac{\sqrt{x^2+1}\,[\log(x^2+1) - 2\log x]}{x^4}\,dx\\ &= -\frac13\left(1 + \frac{1}{x^2}\right)^{3/2}\\ &\quad\times\left[\log\left(1 + \frac{1}{x^2}\right) - \frac23\right] + C\end{aligned}

(Textbook answer: −13(1+1x2)3/2-\frac13\left(1 + \frac{1}{x^2}\right)^{3/2} times [log⁡(1+1x2)−23]\left[\log\left(1 + \frac{1}{x^2}\right) - \frac23\right]⁠, plus CC⁠; the same as ours.)

Check it with numbers

The rewrite at x=1x = 1⁠: the original is 2 (log⁡2−0)1=2log⁡2\frac{\sqrt2\,(\log 2 - 0)}{1} = \sqrt2\log 2⁠, and 112 log⁡2\frac{1}{1}\sqrt{2}\,\log 2 is the same.

Area from 1 to 2: with FF our answer, F(2)−F(1)≈0.2315802003F(2) - F(1) \approx 0.2315802003⁠. Numerical integration of the original integrand from 1 to 2 also gives 0.23158020030.2315802003⁠.

Common mistakes
  1. Expanding instead of combining. Keeping log⁡(x2+1)\log(x^2+1) and 2log⁡x2\log x apart hides the substitution; combine them into log⁡(1+1x2)\log\left(1 + \frac{1}{x^2}\right)⁠.
  2. Taking x2x^2 out of the root as x2x^2⁠. x2=x\sqrt{x^2} = x (for x>0x > 0⁠), so only one power of xx comes out.
  3. Losing the factor −12-\frac12⁠. dt=−2x3 dxdt = -\frac{2}{x^3}\,dx⁠, so dxx3=−dt2\frac{dx}{x^3} = -\frac{dt}{2}⁠; without it the answer is off by a factor −2-2⁠.
What to take away
  1. Look for one quantity that everything depends on; here 1+1x21 + \frac{1}{x^2}⁠, with dxx3\frac{dx}{x^3} as its differential.
  2. By parts with log⁡t\log t first, for n≠−1n \ne -1⁠: ∫tnlog⁡t dt=tn+1n+1log⁡t−tn+1(n+1)2+C.\int t^n\log t\,dt = \frac{t^{n+1}}{n+1}\log t - \frac{t^{n+1}}{(n+1)^2} + C .

Every fact used, and where it comes from

FactUsed inSource
Laws of logarithms (for x>0x > 0⁠)Step 1Chapter 5, logarithmic functions (Basics)
x2=x\sqrt{x^2} = x for x>0x > 0Step 2Algebra
Integration by substitutionStep 3Section 7.3.1 (Lesson: substitution)
Integration by parts; logarithm as the first functionStep 4Section 7.6, Remark (iii) (Lesson: integration by parts)
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + CStep 4Standard formula (i), Section 7.2
Product and chain rulesStep 6Chapter 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 →