Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.7 · Q4: Second derivative of log⁡x\log x

Exercise 5.7Second order derivative · Section 5.7
The question

Find the second order derivatives of the functions given in Exercises 1 to 10.

4. log⁡x\log x

Exam answer

Let y=log⁡xy = \log x (x>0x > 0⁠). Then

dydx=1x=x−1\frac{dy}{dx} = \frac1x = x^{-1}

∴ d2ydx2=−x−2=−1x2\therefore\ \dfrac{d^2y}{dx^2} = -x^{-2} = -\dfrac{1}{x^2}

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

The one idea this problem is built on

The first derivative of log⁡x\log x is 1x\frac{1}{x}⁠, which is the power x−1x^{-1}⁠. Writing it as a power lets the ordinary power rule finish the job:

ddxx−1=−1⋅x−2=−1x2.\frac{d}{dx}x^{-1} = -1\cdot x^{-2} = -\frac{1}{x^2}.

Everything happens on the domain of log⁡x\log x⁠, which is x>0x \gt 0⁠.

Given, to find, and the plan
Given
y=log⁡xy = \log x (natural logarithm, base ee⁠, as everywhere in this book), defined for x>0x \gt 0⁠.
To find
d2ydx2\dfrac{d^2y}{dx^2}⁠.
Plan
(1) State the domain. (2) dydx=1x\frac{dy}{dx} = \frac1x from Theorem 5. (3) Rewrite 1x=x−1\frac1x = x^{-1} and use the power rule. (4) Read the sign of the answer on the graph.

Basics you need

1Logarithm: domain and derivative

log⁡x\log x is defined only for x>0x \gt 0 (Section 5.4), and ddxlog⁡x=1x\frac{d}{dx}\log x = \frac{1}{x} for x>0x \gt 0 (Theorem 5(2), Section 5.4). Basics: exponentials and logarithms

2Power rule for negative powers

ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} (Table 5.3) also holds for negative whole numbers nn⁠, wherever x≠0x \ne 0⁠. With n=−1n = -1⁠: ddxx−1=−x−2\frac{d}{dx}x^{-1} = -x^{-2}⁠. Basics: derivative rules

3Second order derivative (Section 5.7)

d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠. Lesson: second order derivative

Solution

  1. Name the function and its domain

    Let y=log⁡xy = \log x⁠. The logarithm is defined only for positive numbers, so we work on x>0x \gt 0⁠. Both derivatives below exist at every x>0x \gt 0⁠.

    log⁡x\log x is the power to which ee must be raised to give xx⁠. Since et>0e^t \gt 0 for every tt⁠, only positive xx can be reached, so log⁡0\log 0 and log⁡(−2)\log(-2) do not exist. A derivative can only be taken where the function exists.
    Section 5.4: log⁡x\log x is defined for x>0x \gt 0⁠. Basics: exponentials and logarithms
  2. First derivative: Theorem 5

    dydx=ddx(log⁡x)=1x,x>0.\frac{dy}{dx} = \frac{d}{dx}(\log x) = \frac{1}{x}, \qquad x \gt 0.
    This is one of the two standard results of Section 5.4 (Theorem 5(2)); the book states it without proof.
    ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠. Lesson: exponential and logarithmic functions
  3. Second derivative: power rule with n=−1n = -1

    Write 1x\frac{1}{x} as a power, then differentiate:

    d2ydx2=ddx(x−1)=(−1) x−1−1=−x−2=−1x2.\begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}\left(x^{-1}\right) = (-1)\,x^{-1-1} \\ &= -x^{-2} = -\frac{1}{x^2}. \end{aligned}

    So d2ydx2=−1x2\dfrac{d^2y}{dx^2} = -\dfrac{1}{x^2} for x>0x \gt 0⁠.

    The power rule is stated for powers xnx^n⁠, so rewriting the fraction as x−1x^{-1} puts it in that form. The power −1-1 comes down as a factor and the new power is −1−1=−2-1 - 1 = -2⁠. (The quotient rule gives the same: 0⋅x−1⋅1x2=−1x2\frac{0\cdot x - 1\cdot 1}{x^2} = -\frac{1}{x^2}⁠.)
    Power rule (Table 5.3); x−2=1x2x^{-2} = \frac{1}{x^2}⁠. Basics: derivative rules
  4. Read the sign: the slope keeps falling

    For every x>0x \gt 0⁠, x2>0x^2 \gt 0⁠, so d2ydx2=−1x2<0\frac{d^2y}{dx^2} = -\frac{1}{x^2} \lt 0⁠. A negative second derivative means the slope dydx=1x\frac{dy}{dx} = \frac1x decreases as xx increases: it is 2 at x=12x = \frac12⁠, 1 at x=1x = 1 and 13\frac13 at x=3x = 3⁠. The graph of log⁡x\log x keeps rising but ever more slowly, so it bends downward.

    x y 1 2 3 4 5 1 −1 −2 slope 2 slope 1 slope 1/3 y = log x
    y=log⁡xy = \log x (one unit = 90 px on both axes). The tangent slopes 1x\frac1x at x=12,1,3x = \frac12, 1, 3 are 2,1,132, 1, \frac13⁠: the slope falls as xx grows, which is exactly what y′′=−1x2<0y'' = -\frac{1}{x^2} \lt 0 says.
    The second derivative is the rate of change of the slope. Seeing it on the graph makes the minus sign in the answer believable rather than just a result of algebra.
Result

For y=log⁡xy = \log x⁠, x>0x \gt 0⁠:

dydx=1x,d2ydx2=−1x2.\frac{dy}{dx} = \frac{1}{x}, \qquad \frac{d^2y}{dx^2} = -\frac{1}{x^2}.

(Textbook answer: −1x2-\dfrac{1}{x^2}⁠.)

Check it with numbers

At x=2x = 2⁠: the formula gives y′′=−14=−0.25y'' = -\frac{1}{4} = -0.25⁠. With h=0.001h = 0.001⁠, log⁡2.001≈0.6936471\log 2.001 \approx 0.6936471⁠, log⁡2≈0.6931472\log 2 \approx 0.6931472⁠, log⁡1.999≈0.6926471\log 1.999 \approx 0.6926471⁠, and

log⁡2.001−2log⁡2+log⁡1.9990.000001≈−0.2500000.\begin{aligned} &\frac{\log 2.001 - 2\log 2 + \log 1.999}{0.000001} \\ &\approx -0.2500000. \end{aligned}

The first difference log⁡2.001−log⁡1.9990.002\frac{\log 2.001 - \log 1.999}{0.002} is about 0.5000000=120.5000000 = \frac12⁠. ✓

Common mistakes
  1. ddx1x=1x2\frac{d}{dx}\frac1x = \frac{1}{x^2}⁠: the sign is lost. The power −1-1 comes down as a factor, so the answer is negative.
  2. ddxx−1=−x0\frac{d}{dx}x^{-1} = -x^{0}⁠: the power drops by one, from −1-1 to −2-2⁠, not up to 00⁠.
  3. Forgetting the domain. The answer is only meaningful for x>0x \gt 0⁠, where log⁡x\log x exists.
What to take away
  1. Rewrite 1xk\frac1{x^k} as x−kx^{-k} and use the power rule.
  2. log⁡x\log x has y′=1x>0y' = \frac1x \gt 0 and y′′=−1x2<0y'' = -\frac{1}{x^2} \lt 0⁠: always increasing, always bending downward.

Every fact used, and where it comes from

FactUsed inSource
log⁡x\log x is defined for x>0x \gt 0Step 1Section 5.4 (Basics: exponentials and logarithms)
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac{1}{x}Step 2Theorem 5(2), Section 5.4 (Lesson: exponential and logarithmic functions)
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}⁠, here n=−1n = -1Step 3Table 5.3, Section 5.3
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 3Section 5.7 (Lesson: second order derivative)
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 →