Which is larger: or ?
Need a hint?
Take logarithms and study f(x) = ln x / x. Where is it decreasing?
≈ 23.14 is larger than ≈ 22.46, because ln x / x decreases for x > e.
How to work it out
Both numbers are positive and ln is increasing, so comparing with is the same as comparing their logarithms: and . We want to know whether . Divide by the positive number :
(1)Both sides are values of one function, , at the points and . So the question is whether . Differentiate with the quotient rule:
(2)The denominator is positive, so the sign of is the sign of . It is positive while , zero at , that is , and negative after that:
(3)So rises up to and falls from there on: its highest point is . You can see it on the graph. Since , the point lies on the falling part, so
(4)Multiply both sides by and use : , which says . Since ln is increasing, undo it:
(5)Check with numbers: and , a gap of about 0.68. The two values of differ by only 0.0034, which is why the graph needs a zoom to show it. (The same function explains why : the points 2 and 4 have the same height on the curve.)
LaTeX source of the formulas on this page
\[ e^{\pi}>\pi^{e} \]
\[ e^\pi>\pi^e\iff\frac{\ln e}{e}>\frac{\ln\pi}{\pi} \]
\[ f'(x)=\frac{\frac1x\cdot x-\ln x\cdot1}{x^2}=\frac{1-\ln x}{x^2} \]
\[ f'(x)>0\ (0<x<e),\qquad f'(e)=0,\qquad f'(x)<0\ (x>e) \]
\[ f(\pi)<f(e)\ \Longleftrightarrow\ \frac{\ln\pi}{\pi}<\frac{\ln e}{e} \]
\[ \pi^e<e^\pi \]The numbers behind the comparison
| Quantity | Value |
|---|---|
| ln e / e = f(e) | 0.367879 |
| ln π / π = f(π) | 0.364379 |
| f(e) − f(π) | 0.003501 |
| 23.1407 | |
| 22.4592 | |
| − | 0.6815 |
Questions
What is the answer to: Which is larger: or ??
≈ 23.14 is larger than ≈ 22.46, because ln x / x decreases for x > e.
What is the key idea?
Compare ln x / x at e and at π: that function is decreasing past e.
Is there a hint?
Take logarithms and study f(x) = ln x / x. Where is it decreasing?