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

Exercise 7.2 · Q14: ∫dxx(log⁡x)m\int\frac{dx}{x(\log x)^m}⁠, m≠1m \ne 1

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function

1x (log⁡x)m,x>0, m≠1.\frac{1}{x\,(\log x)^m}, \qquad x > 0,\ m \ne 1.
Exam answer

Let I=∫dxx(log⁡x)mI = \displaystyle\int\frac{dx}{x(\log x)^m}⁠.

Put log⁡x=t\log x = t⁠. Then dxx=dt\frac{dx}{x} = dt⁠.

I=∫t−m dt=t−m+1−m+1+CI = \int t^{-m}\,dt = \frac{t^{-m + 1}}{-m + 1} + C

∴ I=(log⁡x)1−m1−m+C\therefore\ I = \dfrac{(\log x)^{1 - m}}{1 - m} + C (m≠1)(m \ne 1)⁠.

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

The one idea this problem is built on

The integrand contains log⁡x\log x and its derivative 1x\frac{1}{x}⁠. Whenever a function and its derivative appear together like this, put t=log⁡xt = \log x⁠. Then dxx\frac{dx}{x} becomes exactly dtdt⁠, and the whole integral collapses to the power ∫t−m dt\int t^{-m}\,dt⁠, which the power formula handles as long as the exponent −m-m is not −1-1⁠, that is, as long as m≠1m \ne 1⁠.

Given, to find, and the plan
Given
The function 1x(log⁡x)m\dfrac{1}{x(\log x)^m} with x>0x > 0 and a constant m≠1m \ne 1⁠. Here log⁡\log is the natural logarithm (base ee⁠), as everywhere in this chapter.
To find
∫dxx(log⁡x)m\displaystyle\int \frac{dx}{x(\log x)^m}⁠, the family of all antiderivatives.
Plan
(1) Spot log⁡x\log x and its derivative 1x\frac1x⁠. (2) Substitute t=log⁡xt = \log x⁠, dt=dxxdt = \frac{dx}{x}⁠. (3) Integrate t−mt^{-m} by the power formula. (4) Return to xx⁠. (5) Differentiate the answer back to check it, and say where it is valid.

Basics you need

1Substitution is the chain rule run backwards

If t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx⁠, and ∫f(g(x)) g′(x) dx=∫f(t) dt\int f(g(x))\,g'(x)\,dx = \int f(t)\,dt⁠. It works when the derivative g′(x)g'(x) of the inner function sits in the integrand as a factor. Basics: substitution

2The derivative of log⁡x\log x

ddx(log⁡x)=1x\frac{d}{dx}(\log x) = \frac{1}{x} for x>0x > 0 (Theorem 5, Section 5.4). Basics: logarithms and 1/x

3The power formula

∫tn dt=tn+1n+1+C\int t^n\,dt = \dfrac{t^{n+1}}{n+1} + C for every n≠−1n \ne -1 (standard formula (i), Section 7.2). The case n=−1n = -1 is different: ∫dtt=log⁡∣t∣+C\int \frac{dt}{t} = \log|t| + C⁠. Basics: powers and the power rule

4Checking an integral

An answer F(x)+CF(x) + C is right exactly when F′(x)F'(x) equals the integrand (Property (I), Section 7.2.1). Basics: integration undoes differentiation

Solution

  1. Spot a function together with its derivative

    Write the integrand as a product:

    1x(log⁡x)m=(log⁡x)−m⋅1x.\frac{1}{x(\log x)^m} = (\log x)^{-m}\cdot\frac{1}{x}.

    The factor 1x\frac1x is the derivative of log⁡x\log x⁠, and the rest is a function (a power) of log⁡x\log x⁠.

    This is the pattern f(g(x)) g′(x)f(g(x))\,g'(x) with inner function g(x)=log⁡xg(x) = \log x and outer function f(t)=t−mf(t) = t^{-m}⁠. Seeing that pattern is the whole skill in substitution: the derivative of the inner function must be present (up to a constant factor) so that it can be absorbed into dtdt⁠.
    1am=a−m\frac{1}{a^m} = a^{-m} for a≠0a \ne 0 (laws of indices). Basics: powers
  2. Substitute t=log⁡xt = \log x

    Let t=log⁡xt = \log x⁠. Differentiating, dtdx=1x\frac{dt}{dx} = \frac1x⁠, so

    dt=dxx.dt = \frac{dx}{x}.

    Replace log⁡x\log x by tt and dxx\frac{dx}{x} by dtdt⁠:

    ∫(log⁡x)−m dxx=∫t−m dt.\int (\log x)^{-m}\,\frac{dx}{x} = \int t^{-m}\,dt.
    Every piece of the old integral has been replaced: there is no xx left, which is the sign that the substitution is complete. The substitution is legitimate because x>0x > 0⁠, so log⁡x\log x is defined and differentiable there (Section 7.3.1, change of variable).
    Section 7.3.1: ∫f(x) dx\int f(x)\,dx can be changed into an integral in tt by a substitution, with dxdx rewritten through the derivative. Lesson: integration by substitution
  3. Integrate the power of tt

    Use the power formula with n=−mn = -m⁠. It needs n≠−1n \ne -1⁠, that is, −m≠−1-m \ne -1⁠, that is, m≠1m \ne 1⁠, which the question gives us:

    ∫t−m dt=t−m+1−m+1+C=t1−m1−m+C.\begin{aligned} \int t^{-m}\,dt &= \frac{t^{-m+1}}{-m+1} + C \\ &= \frac{t^{1-m}}{1-m} + C. \end{aligned}
    This is why the question says m≠1m \ne 1⁠. For m=1m = 1 the formula would divide by 1−m=01 - m = 0⁠, and the integral is really ∫dtt=log⁡∣t∣+C=log⁡∣log⁡x∣+C\int\frac{dt}{t} = \log|t| + C = \log|\log x| + C⁠, a different kind of answer (that is Question 3's pattern).
    Standard formula (i), Section 7.2: ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C⁠, n≠−1n \ne -1⁠. Basics: the power rule
  4. Return to xx

    Put back t=log⁡xt = \log x⁠:

    ∫dxx(log⁡x)m=(log⁡x)1−m1−m+C.\int \frac{dx}{x(\log x)^m} = \frac{(\log x)^{1-m}}{1-m} + C.
    The question is about a function of xx⁠, so the answer must be in xx⁠. Leaving tt in the answer is a common slip.
  5. Check: differentiate the answer back

    Let F(x)=(log⁡x)1−m1−mF(x) = \dfrac{(\log x)^{1-m}}{1-m}⁠. By the chain rule (outer: the power u1−mu^{1-m}⁠; inner: u=log⁡xu = \log x⁠):

    F′(x)=(1−m)(log⁡x)−m1−m⋅1x=(log⁡x)−m⋅1x=1x(log⁡x)m.\begin{aligned} F'(x) &= \frac{(1-m)(\log x)^{-m}}{1-m}\cdot\frac{1}{x} \\ &= (\log x)^{-m}\cdot\frac{1}{x} \\ &= \frac{1}{x(\log x)^m}. \end{aligned}

    This is the integrand, so the answer is correct.

    The factor 1−m1 - m brought down by the power rule cancels the 1−m1 - m we divided by. That cancellation is exactly what the integration step was designed to produce.
    Chain rule, Theorem 4, Section 5.3.1; dduuk=k uk−1\frac{d}{du}u^k = k\,u^{k-1}⁠. Basics: integration undoes differentiation
  6. Where the answer is valid

    The integrand needs x>0x > 0 (for log⁡x\log x⁠), and the power (log⁡x)m(\log x)^m must make sense and be nonzero:

    • For every m≠1m \ne 1⁠, the answer is valid for x>1x > 1⁠, where log⁡x>0\log x > 0⁠, so any real power of log⁡x\log x is defined.
    • When mm is an integer, negative values of log⁡x\log x are also allowed, so the answer also holds on 0<x<10 < x < 1⁠. (For m=2,3,…m = 2, 3, \dots the point x=1x = 1 is excluded, since log⁡1=0\log 1 = 0 is in a denominator; for m=0,−1,−2,…m = 0, -1, -2, \dots there is no such denominator and the answer holds for every x>0x > 0⁠.)
    • For a fraction such as m=12m = \frac12⁠, (log⁡x)1/2(\log x)^{1/2} needs log⁡x≥0\log x \ge 0⁠, so only x>1x > 1 works.
    The book states only x>0x > 0⁠, following its Note in Section 7.2 that intervals are normally not mentioned. A careful answer adds that real powers of a negative number are not always defined. Where the domain falls into two pieces, (0,1)(0,1) and (1,∞)(1,\infty)⁠, the constant CC may even be chosen differently on each piece.
Result ∫dxx(log⁡x)m=(log⁡x)1−m1−m+C,m≠1,\int \frac{dx}{x(\log x)^m} = \frac{(\log x)^{1-m}}{1-m} + C, \qquad m \ne 1,

valid for x>1x > 1 for every m≠1m \ne 1 (and also for 0<x<10 < x < 1 when mm is an integer). (Textbook answer: (log⁡x)1−m1−m+C\dfrac{(\log x)^{1-m}}{1-m} + C⁠.)

Check it with numbers

Take m=3m = 3⁠, so F(x)=(log⁡x)−2−2=−12(log⁡x)2F(x) = \dfrac{(\log x)^{-2}}{-2} = -\dfrac{1}{2(\log x)^2}⁠, and look near x=2x = 2 with h=0.001h = 0.001⁠:

  • F(2.001)≈−1.0391850975F(2.001) \approx -1.0391850975 and F(1.999)≈−1.0421878832F(1.999) \approx -1.0421878832⁠.
  • Slope estimate: F(2.001)−F(1.999)0.002\dfrac{F(2.001) - F(1.999)}{0.002} ≈1.501393\approx 1.501393⁠.
  • Integrand at x=2x = 2⁠: 12(log⁡2)3≈1.501390\dfrac{1}{2(\log 2)^3} \approx 1.501390⁠.

The two agree to five significant figures (the small gap is the error of the difference quotient), so F′F' really is the integrand.

Common mistakes
  1. Forgetting the condition m≠1m \ne 1⁠. The power formula fails for exponent −1-1⁠; for m=1m = 1 the answer is log⁡∣log⁡x∣+C\log|\log x| + C⁠.
  2. Writing t−m+1−m+1\frac{t^{-m+1}}{-m+1} and then dropping the sign. −m+1-m + 1 and 1−m1 - m are the same number; m−1m - 1 is its negative.
  3. Treating (log⁡x)m(\log x)^m as log⁡(xm)\log(x^m)⁠. They are different: log⁡(xm)=mlog⁡x\log(x^m) = m\log x⁠, while (log⁡x)m(\log x)^m is a power of the logarithm.
  4. Leaving the answer in tt⁠. Always substitute back t=log⁡xt = \log x⁠.
What to take away
  1. log⁡x\log x together with dxx\frac{dx}{x} is a signal for t=log⁡xt = \log x (or t=1+log⁡xt = 1 + \log x⁠, which has the same differential). The same idea does Questions 2, 3 and 35.
  2. After substitution, check which standard formula applies, and check its condition (here n≠−1n \ne -1⁠).
  3. General form: ∫g(x)n g′(x) dx=g(x)n+1n+1+C\int g(x)^{n}\,g'(x)\,dx = \frac{g(x)^{n+1}}{n+1} + C for n≠−1n \ne -1⁠.

Every fact used, and where it comes from

FactUsed inSource
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠, x>0x > 0Steps 1, 2, 5Theorem 5, Section 5.4; formula (xii), Section 7.2
Change of variable (substitution)Step 2Section 7.3.1 (Lesson: integration by substitution)
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C⁠, n≠−1n \ne -1Step 3Standard formula (i), Section 7.2
∫dtt=log⁡∣t∣+C\int \frac{dt}{t} = \log|t| + CStep 3 (case m=1m = 1⁠)Standard formula (xii), Section 7.2
Chain rule; dduuk=k uk−1\frac{d}{du}u^k = k\,u^{k-1}Step 5Theorem 4, Section 5.3.1
Differentiation undoes integrationStep 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 →