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

Miscellaneous · Q7: Differentiate (log⁡x)log⁡x(\log x)^{\log x} for x>1x>1

Miscellaneous ExerciseLogarithmic differentiation · Miscellaneous Exercise
The question

Differentiate w.r.t. xx the function

(log⁡x)log⁡x,x>1.(\log x)^{\log x}, \quad x > 1.
Exam answer

Let y=(log⁡x)log⁡xy = (\log x)^{\log x}⁠, x>1x \gt 1⁠, so log⁡x>0\log x \gt 0⁠.

Taking log on both sides,

log⁡y=log⁡x⋅log⁡(log⁡x)\log y = \log x\cdot\log(\log x)

Differentiating both sides w.r.t. xx (product rule),

1ydydx=1xlog⁡(log⁡x)+log⁡x⋅1log⁡x⋅1x=1x+log⁡(log⁡x)x\begin{aligned} \frac1y\frac{dy}{dx} &= \frac1x\log(\log x) \\ &\quad + \log x\cdot\frac{1}{\log x}\cdot\frac1x \\ &= \frac1x + \frac{\log(\log x)}{x} \end{aligned}

∴ dydx=(log⁡x)log⁡x[1x+log⁡(log⁡x)x]\therefore\ \dfrac{dy}{dx} = (\log x)^{\log x}\Big[\dfrac1x + \dfrac{\log(\log x)}{x}\Big] (x>1)(x \gt 1)

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

The one idea this problem is built on

The same expression log⁡x\log x is both the base and the exponent, so neither the power rule nor the rule for axa^x applies. Take logarithms: log⁡y=log⁡x⋅log⁡(log⁡x)\log y = \log x\cdot\log(\log x)⁠, a product. The condition x>1x > 1 is exactly what makes the base log⁡x\log x positive, so that its logarithm exists.

Given, to find, and the plan
Given
y=(log⁡x)log⁡xy = (\log x)^{\log x} for x>1x > 1⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
(1) Check the base is positive. (2) Take logarithms. (3) Differentiate both sides (chain rule on the left, product and chain rules on the right). (4) Multiply by yy⁠.

Basics you need

1The log function

log⁡\log (base ee⁠) is defined for positive numbers, is increasing, and log⁡1=0\log 1 = 0 (Section 5.4). So log⁡x>0\log x > 0 exactly when x>1x > 1⁠. Basics: exponentials and logarithms

2log⁡pn=nlog⁡p\log p^n = n\log p

For p>0p > 0 and any real nn (Section 5.4).

3Derivatives of log⁡\log

ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Theorem 5). By the chain rule, ddxlog⁡(log⁡x)=1log⁡x⋅1x\frac{d}{dx}\log(\log x) = \frac{1}{\log x}\cdot\frac1x (Exercise 5.4, Q8). Basics: derivative rules

4Logarithmic differentiation

For y=[u(x)]v(x)y = [u(x)]^{v(x)} with u(x)>0u(x) > 0⁠: take logs, differentiate, multiply by yy (Section 5.5). Lesson: logarithmic differentiation

Solution

  1. The base is positive

    Let y=(log⁡x)log⁡xy = (\log x)^{\log x}⁠. Since log⁡\log is increasing and log⁡1=0\log 1 = 0⁠,

    x>1  ⟹  log⁡x>0.x > 1 \implies \log x > 0.

    So the base is a positive number, yy is a positive real number, and log⁡y\log y and log⁡(log⁡x)\log(\log x) are both defined.

    A variable real power needs a positive base, and logarithmic differentiation takes the logarithm of the base. For 0<x≤10 < x \le 1 the base log⁡x\log x would be zero or negative, which is why the question insists on x>1x > 1⁠.
    Properties (1), (3), (4) of the log function, Section 5.4. Basics: exponentials and logarithms
  2. Take logarithms

    log⁡y=log⁡[(log⁡x)log⁡x]=log⁡x⋅log⁡(log⁡x).\begin{aligned} \log y &= \log\left[(\log x)^{\log x}\right] \\ &= \log x\cdot\log(\log x). \end{aligned}
    The rule log⁡pn=nlog⁡p\log p^n = n\log p with p=log⁡xp = \log x and n=log⁡xn = \log x brings the exponent down. Now we have a product of log⁡x\log x and log⁡(log⁡x)\log(\log x)⁠.
    log⁡bpn=nlog⁡bp\log_b p^n = n\log_b p⁠, Section 5.4.
  3. Differentiate the left side

    ddx(log⁡y)=1y⋅dydx.\frac{d}{dx}(\log y) = \frac1y\cdot\frac{dy}{dx}.
    Outer function log⁡\log⁠, inner function yy⁠. The chain rule gives 1y\frac1y times the inner derivative dydx\frac{dy}{dx}⁠.
    Chain rule, Theorem 4, Section 5.3.1; Theorem 5. Lesson: chain rule
  4. Differentiate the right side by the product rule

    First factor log⁡x\log x⁠, with derivative 1x\frac1x⁠. Second factor log⁡(log⁡x)\log(\log x)⁠: outer log⁡\log⁠, inner log⁡x\log x⁠, so its derivative is 1log⁡x⋅1x\frac{1}{\log x}\cdot\frac1x⁠. The product rule gives

    ddx[log⁡x⋅log⁡(log⁡x)]=1xlog⁡(log⁡x)+log⁡x⋅1xlog⁡x=log⁡(log⁡x)x+1x.\begin{aligned} &\frac{d}{dx}\left[\log x\cdot\log(\log x)\right] \\ &= \frac1x\log(\log x) + \log x\cdot\frac{1}{x\log x} \\ &= \frac{\log(\log x)}{x} + \frac1x. \end{aligned}
    In the second term log⁡x\log x cancels: it is not zero because x>1x > 1⁠. This cancellation is what produces the neat "+1x+\frac1x".
    Product rule (2), Section 5.3; ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠, Theorem 5. Basics: derivative rules
  5. Multiply by yy

    Equating Steps 3 and 4 and multiplying by y=(log⁡x)log⁡xy = (\log x)^{\log x}⁠:

    dydx=(log⁡x)log⁡x×[1x+log⁡(log⁡x)x].\begin{aligned} \frac{dy}{dx} = {}&(\log x)^{\log x} \\ &\times\left[\frac{1}{x} + \frac{\log(\log x)}{x}\right]. \end{aligned}

    Equivalently, dydx=(log⁡x)log⁡x(1+log⁡(log⁡x))x\dfrac{dy}{dx} = \dfrac{(\log x)^{\log x}\left(1 + \log(\log x)\right)}{x}⁠.

    The answer must be in terms of xx⁠, so we substitute yy back. The second form just takes out the common factor 1x\frac1x⁠.
    Logarithmic differentiation, Section 5.5 (compare Example 29). Lesson: logarithmic differentiation
Result

For x>1x > 1⁠,

dydx=(log⁡x)log⁡x×[1x+log⁡(log⁡x)x].\begin{aligned} \frac{dy}{dx} = {}&(\log x)^{\log x} \\ &\times\left[\frac{1}{x} + \frac{\log(\log x)}{x}\right]. \end{aligned}

(Textbook answer: (log⁡x)log⁡x[1x+log⁡(log⁡x)x](\log x)^{\log x}\left[\frac1x + \frac{\log(\log x)}{x}\right]⁠, x>1x > 1⁠, the same.)

Check it with numbers

Take x=e2≈7.3890561x = e^2 \approx 7.3890561⁠, so log⁡x=2\log x = 2 and y=22=4y = 2^2 = 4⁠. With log⁡2≈0.6931472\log 2 \approx 0.6931472⁠, the formula gives

4(1+0.6931472)7.3890561≈0.9165702.\frac{4(1 + 0.6931472)}{7.3890561} \approx 0.9165702.

Difference quotient with h=0.0001h = 0.0001⁠: y(e2+h)≈4.00009166y(e^2 + h) \approx 4.00009166 and y(e2−h)≈3.99990834y(e^2 - h) \approx 3.99990834⁠, so the quotient is about 0.91657020.9165702⁠. ✓

Common mistakes
  1. Using the power rule: log⁡x⋅(log⁡x)log⁡x−1⋅1x\log x\cdot(\log x)^{\log x - 1}\cdot\frac1x treats the exponent as a constant and misses the log⁡(log⁡x)\log(\log x) term.
  2. Differentiating log⁡(log⁡x)\log(\log x) as 1log⁡x\frac{1}{\log x}, forgetting the inner derivative 1x\frac1x⁠.
  3. Ignoring x>1x > 1⁠. Without it the base log⁡x\log x can be zero or negative and the logarithm in Step 2 does not exist.
What to take away
  1. For y=uvy = u^v with both varying: dydx=uv[v′log⁡u+v u′u]\frac{dy}{dx} = u^v\left[v'\log u + \frac{v\,u'}{u}\right]⁠, valid where u>0u > 0⁠.
  2. The domain condition in the question usually tells you exactly where the base is positive.

Every fact used, and where it comes from

FactUsed inSource
log⁡\log is increasing, log⁡1=0\log 1 = 0⁠, defined on positive numbersStep 1Section 5.4, properties of the log function
log⁡pn=nlog⁡p\log p^n = n\log pStep 2Section 5.4 (stated there for every real nn⁠, without proof)
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1xSteps 3, 4Theorem 5, Section 5.4
Chain rule; product ruleSteps 3, 4Theorem 4, Section 5.3.1; rule (2), Section 5.3 (Lesson: chain rule)
Logarithmic differentiationSteps 2–5Section 5.5, Example 29 (Lesson: logarithmic differentiation)
AnswerResultAnswers, Miscellaneous Exercise on Chapter 5, Q7
Numerical valuesCheckRecomputed in the site's verification script
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 →