y=lnxxy = \dfrac{\ln x}{x}

Graph of the Function y=lnxxy = \dfrac{\ln x}{x}

y=lnxxy = \dfrac{\ln x}{x} is a logarithm divided by a linear function. The numerator grows only slowly, so the denominator eventually overtakes it and the whole expression returns to 00. The maximum reached along the way captures something essential about the number ee.

Domain and range

The domain is x>0x > 0. As x0+x \to 0^{+} the numerator tends to -\infty and the denominator to 0+0^{+}, so yy \to -\infty; as xx \to \infty we get y0+y \to 0^{+}. The maximum value is 1e\dfrac{1}{e}, so the range is y1ey \leq \dfrac{1}{e}.

Asymptotes and intercept

The yy-axis is a vertical asymptote and the xx-axis a horizontal one, though on the right the curve approaches it from above. Since lnx=0\ln x = 0 at x=1x = 1, the xx-intercept is (1,0)(1, 0); the function is negative on 0<x<10 < x < 1 and positive for x>1x > 1.

Monotonicity and extrema

The quotient rule gives the derivative.

y=1lnxx2y' = \frac{1 - \ln x}{x^2}

The denominator is positive, so the sign comes from 1lnx1 - \ln x: positive for x<ex < e and negative for x>ex > e. The function therefore has a maximum, both local and global, at x=ex = e, of value 1e\dfrac{1}{e}. The maximum point is (e,1e)(2.718,0.368)\left( e, \dfrac{1}{e} \right) \approx (2.718, 0.368).

Concavity and inflection

The second derivative is y=2lnx3x3y'' = \dfrac{2\ln x - 3}{x^3}. The denominator is positive, so the sign is that of 2lnx32\ln x - 3, which changes at x=e3/24.482x = e^{3/2} \approx 4.482. That single inflection point, where the curve turns from concave down to concave up, has value 32e3/20.335\dfrac{3}{2}e^{-3/2} \approx 0.335.

Comparing eπe^{\pi} and πe\pi^{e}

Because the maximum sits at x=ex = e, a famous comparison follows. For xex \neq e we have lnxx<1e\dfrac{\ln x}{x} < \dfrac{1}{e}, and taking x=πx = \pi gives the following chain.

lnππ<1eelnπ<ππe<eπ\begin{align*} \frac{\ln \pi}{\pi} &< \frac{1}{e} \\ e \ln \pi &< \pi \\ \pi^{e} &< e^{\pi} \end{align*}

Numerically πe22.459\pi^{e} \approx 22.459 and eπ23.141e^{\pi} \approx 23.141. The same argument shows that ab>baa^{b} > b^{a} whenever ea<be \leq a < b.

Relation to nn\sqrt[n]{n}

Since x1/x=e(lnx)/xx^{1/x} = e^{(\ln x)/x}, the maximum point of this function is also the maximum point of x1/xx^{1/x}, which is e1/e1.445e^{1/e} \approx 1.445 at x=ex = e.

nnnn\sqrt[n]{n}
221.4141.414
331.4421.442
441.4141.414
10101.2591.259

Among the integers the closest to ee is 33, so the sequence nn\sqrt[n]{n} peaks at n=3n = 3. As the graph settles toward 00, the sequence tends to 11.

Integral

Substituting t=lnxt = \ln x gives a tidy result.

lnxxdx=(lnx)22+C\int \frac{\ln x}{x}\,dx = \frac{(\ln x)^2}{2} + C