Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Miscellaneous · Q1: f(x)=log⁡xxf(x)=\frac{\log x}{x} has its maximum at x=ex=e

Miscellaneous ExerciseMaxima and minima · Miscellaneous Exercise
The question

Show that the function given by f(x)=log⁡xxf(x) = \dfrac{\log x}{x} has maximum at x=ex = e⁠.

Exam answer

Here f(x)=log⁡xxf(x) = \frac{\log x}{x}⁠, x>0x > 0⁠. By the quotient rule,

f′(x)=1x⋅x−log⁡xx2=1−log⁡xx2f'(x) = \frac{\frac1x\cdot x - \log x}{x^2} = \frac{1 - \log x}{x^2}

f′(x)=0⇒log⁡x=1⇒x=ef'(x) = 0 \Rightarrow \log x = 1 \Rightarrow x = e⁠.

For 0<x<e0 < x < e⁠, log⁡x<1\log x < 1⁠, so f′(x)>0f'(x) > 0⁠; for x>ex > e⁠, log⁡x>1\log x > 1⁠, so f′(x)<0f'(x) < 0⁠. So ff increases up to x=ex = e and decreases after it.

∴ f\therefore\ f has its maximum at x=ex = e⁠, and the maximum value is f(e)=1ef(e) = \dfrac1e⁠. Hence proved.

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

The one idea this problem is built on

If a function rises all the way up to a point and falls all the way after it, then its value at that point is the largest value it ever takes. So we find where f′f' changes from positive to negative, and we check the sign of f′f' on the whole domain, not just near the point. That turns "a local maximum" into "the maximum".

Given, to show, and the plan
Given
f(x)=log⁡xxf(x) = \dfrac{\log x}{x}⁠, where, as in Chapter 5, log⁡x\log x means the natural logarithm (base ee⁠).
To show
ff has its maximum value at x=ex = e⁠.
Plan
(1) Find the domain. (2) Differentiate with the quotient rule. (3) Solve f′(x)=0f'(x) = 0⁠. (4) Find the sign of f′f' on each side. (5) Use Theorem 1 to show f(e)>f(x)f(e) > f(x) for every other xx in the domain. (6) Confirm with the second derivative test. (7) Compute the maximum value.

Basics you need

1The natural logarithm

log⁡x\log x is defined only for x>0x > 0⁠; log⁡1=0\log 1 = 0⁠, log⁡e=1\log e = 1⁠; and log⁡\log is strictly increasing, so log⁡x<1  ⟺  x<e\log x < 1 \iff x < e⁠. Its derivative is ddxlog⁡x=1x\frac{d}{dx}\log x = \frac{1}{x} (Theorem 5 (2), Section 5.4).

2Quotient rule

(uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2} wherever v≠0v \ne 0 (Section 5.3, rule (3)).

3Theorem 1, Section 6.3

If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b)⁠, then f′>0f' > 0 on (a,b)(a, b) makes ff increasing on [a,b][a, b]⁠, and f′<0f' < 0 makes it decreasing. The Mean Value step in the book's proof, f(x2)−f(x1)=f′(c)(x2−x1)f(x_2) - f(x_1) = f'(c)(x_2 - x_1)⁠, even gives strict inequalities. Lesson: increasing and decreasing functions

4Maximum value and the second derivative test

Definition 3, Section 6.4: ff has its maximum value on I at cc when f(c)≥f(x)f(c) \ge f(x) for every xx in I. Theorem 4 (second derivative test): f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0 make cc a point of local maxima. Lesson: derivative tests

5Sign of a product or quotient

A quotient with a positive denominator has the sign of its numerator. Basics: sign of a product

Solution

  1. The domain is x>0x > 0

    log⁡x\log x exists only for x>0x > 0⁠, and then the denominator xx is not zero either. So the domain of ff is the interval

    (0,∞).(0, \infty).

    On it, ff is a quotient of two differentiable functions with a non-zero denominator, so ff is continuous and differentiable at every point.

    "Maximum" always means "maximum on some set". Here the only sensible set is the whole domain, so we must know what it is. Negative xx and x=0x = 0 are simply not available.
    Natural logarithm: defined for positive numbers only (Basic 1).
  2. Differentiate with the quotient rule

    Take u=log⁡xu = \log x and v=xv = x⁠, so u′=1xu' = \frac1x and v′=1v' = 1⁠:

    f′(x)=u′v−uv′v2=1x⋅x−log⁡x⋅1x2=1−log⁡xx2.\begin{aligned} f'(x) &= \frac{u'v - uv'}{v^2} \\ &= \frac{\frac1x \cdot x - \log x \cdot 1}{x^2} \\ &= \frac{1 - \log x}{x^2}. \end{aligned}
    1x⋅x=1\frac1x \cdot x = 1 for every x≠0x \ne 0⁠, which is what makes the numerator so simple. The quotient rule is allowed because v=x≠0v = x \ne 0 on the domain.
    Quotient rule (Basic 2) and ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Basic 1).
  3. The only critical point is x=ex = e

    f′(x)=0  ⟺  1−log⁡x=0  ⟺  log⁡x=1  ⟺  x=e.\begin{aligned} f'(x) = 0 &\iff 1 - \log x = 0 \\ &\iff \log x = 1 \\ &\iff x = e. \end{aligned}

    Since ff is differentiable at every point of its domain, there are no critical points of the other kind, so x=ex = e is the only critical point.

    A fraction is zero exactly when its numerator is zero (the denominator x2x^2 is positive here). log⁡x=1\log x = 1 has the single solution x=ex = e⁠, because log⁡e=1\log e = 1 and log⁡\log is one-one. By Theorem 2, Section 6.4, a maximum inside the domain can only occur at a critical point, so x=ex = e is the only candidate.
    Critical point: f′(c)=0f'(c) = 0 or ff not differentiable at cc (Note after Theorem 2, Section 6.4). Lesson: maxima and minima
  4. Sign of f′f'⁠: positive before ee⁠, negative after

    The denominator x2x^2 is positive, so f′(x)f'(x) has the sign of 1−log⁡x1 - \log x⁠:

    • for 0<x<e0 < x < e⁠: log⁡x<log⁡e=1\log x < \log e = 1⁠, so 1−log⁡x>01 - \log x > 0 and f′(x)>0f'(x) > 0⁠;
    • for x>ex > e⁠: log⁡x>1\log x > 1⁠, so f′(x)<0f'(x) < 0⁠.

    Test points: f′(1)=1−01=1>0f'(1) = \frac{1 - 0}{1} = 1 > 0 and f′(e2)=1−2e4=−1e4<0f'(e^2) = \frac{1 - 2}{e^4} = -\frac{1}{e^4} < 0⁠.

    x 0 e 1 − log x + − 0 x² + + f′(x) + − 0 f increasing decreasing
    Sign chart on the domain (0,∞)(0, \infty)⁠, not to scale (the open circle at 0 marks that 0 is not in the domain): f′f' changes from ++ to −- at x=ex = e⁠.
    Comparing log⁡x\log x with 1 is the same as comparing xx with ee⁠, because log⁡\log is strictly increasing. So the sign question reduces to "is xx less than or greater than ee⁠?".
    Positive denominator keeps the sign of the numerator (Basic 5). Basics: sign of a product
  5. f(e)f(e) beats every other value on the whole domain

    Left of ee⁠. Take any xx with 0<x<e0 < x < e⁠. ff is continuous on [x,e][x, e] and f′>0f' > 0 on (x,e)(x, e)⁠, so by Theorem 1 (with the strict inequality from its proof)

    f(x)<f(e).f(x) < f(e).

    Right of ee⁠. Take any x>ex > e⁠. ff is continuous on [e,x][e, x] and f′<0f' < 0 on (e,x)(e, x)⁠, so ff is decreasing there and

    f(e)>f(x).f(e) > f(x).

    Together: f(e)>f(x)f(e) > f(x) for every x≠ex \ne e in (0,∞)(0, \infty)⁠. By Definition 3, Section 6.4, ff has its maximum value on its domain at x=ex = e, and at no other point.

    x y 1 2 4 5 6 7 8 9 −2 −1 (e, 1/e) ≈ (2.718, 0.368) e (1, 0) y = (log x)/x rises on (0, e], falls on [e, ∞)
    The graph of y=log⁡xxy = \frac{\log x}{x} (horizontal and vertical scales differ). It climbs steeply, crosses the xx-axis at x=1x = 1⁠, peaks at (e,1e)\left(e, \frac1e\right) and then sinks slowly towards 0 without reaching it.
    Knowing only that x=ex = e is a local maximum would say that f(e)f(e) beats the values near ee⁠. The question says "maximum", and the sign of f′f' on the whole domain is what lets us compare f(e)f(e) with values far away, such as f(0.01)f(0.01) or f(1000)f(1000)⁠.
    Theorem 1, Section 6.3 (Basic 3); Definition 3, Section 6.4 (Basic 4). Lesson: absolute extrema
  6. Cross-check with the second derivative test

    Differentiate f′(x)=1−log⁡xx2f'(x) = \frac{1 - \log x}{x^2} by the quotient rule, with u=1−log⁡xu = 1 - \log x⁠, u′=−1xu' = -\frac1x⁠, v=x2v = x^2⁠, v′=2xv' = 2x⁠:

    f′′(x)=−1x⋅x2−(1−log⁡x)⋅2xx4=−x−2x+2xlog⁡xx4=2log⁡x−3x3.\begin{aligned} f''(x) &= \frac{-\frac1x \cdot x^2 - (1 - \log x)\cdot 2x}{x^4} \\ &= \frac{-x - 2x + 2x\log x}{x^4} \\ &= \frac{2\log x - 3}{x^3}. \end{aligned}

    At x=ex = e⁠: f′′(e)=2−3e3=−1e3<0f''(e) = \frac{2 - 3}{e^3} = -\frac{1}{e^3} < 0⁠. With f′(e)=0f'(e) = 0⁠, Theorem 4 (i) says x=ex = e is a point of local maxima, which agrees with Step 5.

    This test is quick but local: it only describes ff near ee⁠. It confirms Step 5 but could not replace it. In the last line we divided top and bottom by xx⁠, which is allowed because x>0x > 0⁠.
    Second derivative test, Theorem 4, Section 6.4 (Basic 4). Lesson: derivative tests
  7. The maximum value is 1e\frac1e

    f(e)=log⁡ee=1e≈0.3679.f(e) = \frac{\log e}{e} = \frac{1}{e} \approx 0.3679.
    The question only asks where the maximum is, but stating the value completes the picture and lets us test the claim with numbers.
Result

On its domain (0,∞)(0, \infty)⁠, f′(x)=1−log⁡xx2f'(x) = \dfrac{1 - \log x}{x^2} is positive for x<ex < e and negative for x>ex > e⁠. So ff increases up to x=ex = e and decreases after it, and f(e)>f(x)f(e) > f(x) for every x≠ex \ne e⁠: ff has its maximum at x=ex = e, with maximum value f(e)=1ef(e) = \dfrac1e⁠. (The answer key has no entry for this "show that" question.)

Check it with numbers

f(e)=1e≈0.36788f(e) = \frac1e \approx 0.36788⁠. Nearby and far away, ff is smaller: f(2)=log⁡22≈0.34657f(2) = \frac{\log 2}{2} \approx 0.34657⁠, f(3)=log⁡33≈0.36620f(3) = \frac{\log 3}{3} \approx 0.36620⁠, f(10)≈0.23026f(10) \approx 0.23026⁠, f(0.5)≈−1.38629f(0.5) \approx -1.38629⁠. A nice by-product: f(π)<f(e)f(\pi) < f(e) means log⁡ππ<1e\frac{\log \pi}{\pi} < \frac{1}{e}⁠, that is elog⁡π<πe\log\pi < \pi⁠, so πe<eπ\pi^e < e^\pi⁠. Indeed πe≈22.459\pi^e \approx 22.459 and eπ≈23.141e^\pi \approx 23.141⁠.

Common mistakes
  1. Stopping at f′(e)=0f'(e) = 0⁠. A zero derivative only makes ee a candidate; x3x^3 has f′(0)=0f'(0) = 0 and no maximum there (Remark after Theorem 2).
  2. Using only the second derivative test and calling the result "the maximum". That test is local; the sign of f′f' on the whole domain is what proves the value is the largest.
  3. Forgetting the domain and talking about x≤0x \le 0⁠, where log⁡x\log x does not exist.
  4. Dropping the −- in the quotient rule, which gives 1+log⁡xx2\frac{1 + \log x}{x^2} and the wrong critical point x=1ex = \frac1e⁠.
What to take away
  1. "f′f' positive up to cc⁠, negative after cc⁠, on the whole domain" proves that f(c)f(c) is the greatest value, not just a local one.
  2. When the numerator of f′f' is 1−log⁡x1 - \log x⁠, compare xx with ee⁠: log⁡\log is increasing and log⁡e=1\log e = 1⁠.
  3. The maximum of log⁡xx\frac{\log x}{x} at ee explains why eπ>πee^\pi > \pi^e⁠.

Every fact used, and where it comes from

FactUsed inSource
log⁡x\log x means log⁡ex\log_e x⁠; defined for x>0x > 0⁠; strictly increasing; log⁡e=1\log e = 1Steps 1, 3, 4Section 5.4
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1xSteps 2, 6Theorem 5 (2), Section 5.4
Quotient ruleSteps 2, 6Section 5.3, rule (3)
Critical point; extrema occur only at critical pointsStep 3Theorem 2 and the Note after it, Section 6.4
f′>0f' > 0 (or <0< 0⁠) on (a,b)(a, b) gives increasing (decreasing) on [a,b][a, b]⁠, strictlyStep 5Theorem 1 and its proof, Section 6.3
Maximum value: f(c)≥f(x)f(c) \ge f(x) for all xx in IStep 5Definition 3 (a), Section 6.4 (the inequality sign in this reprint looks like ">>"; it must be "≥\ge", since x=cx = c is allowed)
Second derivative testStep 6Theorem 4 (i), Section 6.4
All decimal valuesStep 7, CheckRecomputed 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 →