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[lnxx]=1lnxx2\frac{d}{dx}\left[\frac{\ln x}{x}\right] = \frac{1-\ln x}{x^2}

How to differentiate ln x over x

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

ddx(lnxx)=1xxlnx1x2=1lnxx2\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 1xx\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 lnx\ln x.

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

ddx(x1lnx)=x2lnx+x11x=1lnxx2\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 ff' is the sign of 1lnx1-\ln x. That is positive for 0<x<e0<x<e and negative for x>ex>e.

f(e)=1lnee2=0,f(e)=1ef'(e) = \frac{1-\ln e}{e^{2}} = 0, \qquad f(e) = \frac{1}{e}

So lnxx\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ππ<lnee\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 lnx1x2\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 x0x\le 0, where lnx\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 lnxx\frac{\ln x}{x}?

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

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

Because lne=1\ln e = 1 makes the numerator 1lnx1-\ln x vanish. That point is the maximum of lnxx\frac{\ln x}{x}, with value 1e\frac{1}{e}.

Can the product rule give the same answer?

Yes. Write the function as x1lnxx^{-1}\ln x and the product rule gives x2lnx+x2-x^{-2}\ln x+x^{-2}, which is 1lnxx2\frac{1-\ln x}{x^{2}}.