y=ln⁡xxy = \dfrac{\ln x}{x}

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

y=ln⁡xxy = \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 x→0+x \to 0^{+} the numerator tends to −∞-\infty and the denominator to 0+0^{+}, so y→−∞y \to -\infty; as x→∞x \to \infty we get y→0+y \to 0^{+}. The maximum value is 1e\dfrac{1}{e}, so the range is y≤1ey \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 ln⁡x=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′=1−ln⁡xx2y' = \frac{1 - \ln x}{x^2}

The denominator is positive, so the sign comes from 1−ln⁡x1 - \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′′=2ln⁡x−3x3y'' = \dfrac{2\ln x - 3}{x^3}. The denominator is positive, so the sign is that of 2ln⁡x−32\ln x - 3, which changes at x=e3/2≈4.482x = e^{3/2} \approx 4.482. That single inflection point, where the curve turns from concave down to concave up, has value 32e−3/2≈0.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 x≠ex \neq e we have ln⁡xx<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 πe≈22.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 e≤a<be \leq a < b.

Relation to nn\sqrt[n]{n}

Since x1/x=e(ln⁡x)/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/e≈1.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=ln⁡xt = \ln x gives a tidy result.

∫ln⁡xx dx=(ln⁡x)22+C\int \frac{\ln x}{x}\,dx = \frac{(\ln x)^2}{2} + C