AP Calculus AB and BC

Derivative of (ln x)/x: Answer, Proof, Mistakes

The derivative of (ln x)/x is (1 - ln x)/x^2, valid for x > 0. In prime notation, if f(x) = (ln x)/x then f'(x) = (1 - ln x)/x^2. The quotient rule gives (x times 1/x minus ln x times 1) over x^2, and the first product collapses to 1.

ddx[ln⁡xx]=1−ln⁡xx2\frac{d}{dx}\left[\frac{\ln x}{x}\right] = \frac{1-\ln x}{x^2}

How to differentiate ln x over x

Take u=ln⁡xu = \ln x on top and v=xv = x underneath, then apply the quotient rule u′v−uv′v2\frac{u'v-uv'}{v^2} with u′=1xu' = \frac{1}{x} and v′=1v' = 1.

ddx(ln⁡xx)=1x⋅x−ln⁡x⋅1x2=1−ln⁡xx2\frac{d}{dx}\left(\frac{\ln x}{x}\right) = \frac{\frac{1}{x}\cdot x-\ln x\cdot 1}{x^{2}} = \frac{1-\ln x}{x^{2}}

The product 1x⋅x\frac{1}{x}\cdot x simplifies to 11, which is why such a short answer falls out. The domain is x>0x>0, inherited from ln⁡x\ln x.

Rewriting as a product gives the same result and is often faster under time pressure.

ddx(x−1ln⁡x)=−x−2ln⁡x+x−1⋅1x=1−ln⁡xx2\frac{d}{dx}\left(x^{-1}\ln x\right) = -x^{-2}\ln x+x^{-1}\cdot\frac{1}{x} = \frac{1-\ln x}{x^{2}}

Why the derivative is zero at x = e

On the domain x>0x>0 the denominator x2x^{2} is positive, so the sign of f′f' is the sign of 1−ln⁡x1-\ln x. That is positive for 0<x<e0<x<e and negative for x>ex>e.

f′(e)=1−ln⁡ee2=0,f(e)=1ef'(e) = \frac{1-\ln e}{e^{2}} = 0, \qquad f(e) = \frac{1}{e}

So ln⁡xx\frac{\ln x}{x} climbs to a single maximum height of 1e\frac{1}{e} at x=ex=e and decreases forever after. One classic consequence: ln⁡ππ<ln⁡ee\frac{\ln \pi}{\pi}<\frac{\ln e}{e}, which rearranges to πe<eπ\pi^{e}<e^{\pi}.

Common mistakes with the derivative of (ln x)/x

  • Differentiating the top and the bottom separately, so the answer comes out as 1x\frac{1}{x} over 11, that is 1x\frac{1}{x}. The quotient rule is not term by term.
  • Reversing the numerator and writing ln⁡x−1x2\frac{\ln x-1}{x^{2}}, which is the negative of the correct answer. The critical point is still x=ex=e, but every increasing and decreasing interval flips, so the maximum gets misread as a minimum.
  • Squaring the wrong thing: the denominator is x2x^{2}, the square of v=xv = x, not xx itself.
  • Ignoring the domain and describing behavior for x≤0x\le 0, where ln⁡x\ln x does not exist.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of ln⁡xx\frac{\ln x}{x}?

It is 1−ln⁡xx2\frac{1-\ln x}{x^{2}} for x>0x>0, from the quotient rule with u=ln⁡xu = \ln x and v=xv = x.

Why is the derivative zero at x=ex = e?

Because ln⁡e=1\ln e = 1 makes the numerator 1−ln⁡x1-\ln x vanish. That point is the maximum of ln⁡xx\frac{\ln x}{x}, with value 1e\frac{1}{e}.

Can the product rule give the same answer?

Yes. Write the function as x−1ln⁡xx^{-1}\ln x and the product rule gives −x−2ln⁡x+x−2-x^{-2}\ln x+x^{-2}, which is 1−ln⁡xx2\frac{1-\ln x}{x^{2}}.