Maths WorkshopMaths problems with full solutions
Exercise 755Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL1Added 2 Nov 2026

Which is larger, e^π or π^e?

#optimisation#inequalities#logarithm

Statement

  1. Study the variations of h(x)=ln⁡xxh(x)=\dfrac{\ln x}x on (0,+∞)(0,+\infty).
  2. Deduce that x1/x≤e1/ex^{1/x}\le e^{1/e} for all x>0x>0.
  3. Which is larger, eπe^\pi or πe\pi^e? Give a proof without a calculator.
Hint

Compare h(π)h(\pi) with h(e)h(e) and take care that taking logarithms preserves inequalities.

Show solutionHide solution

Solution

1. h′(x)=1−ln⁡xx2h'(x)=\dfrac{1-\ln x}{x^2}, positive on (0,e)(0,e) and negative on (e,+∞)(e,+\infty). So hh increases up to x=ex=e and then decreases, with maximum h(e)=1eh(e)=\frac1e.

2. For all x>0x>0, ln⁡ ⁣(x1/x)=h(x)≤1e=ln⁡ ⁣(e1/e)\ln\!\left(x^{1/x}\right)=h(x)\le\frac1e=\ln\!\left(e^{1/e}\right). Since exp⁡\exp is increasing, x1/x≤e1/ex^{1/x}\le e^{1/e}, with equality only at x=ex=e.

3. Since π>e\pi>e and hh is strictly decreasing on [e,+∞)[e,+\infty), h(π)<h(e)h(\pi)<h(e), that is
ln⁡ππ<1e  ⟺  eln⁡π<π  ⟺  ln⁡(πe)<ln⁡(eπ).\frac{\ln\pi}\pi<\frac1e\iff e\ln\pi<\pi\iff\ln\left(\pi^e\right)<\ln\left(e^\pi\right).
Therefore πe<eπ\pi^e<e^\pi.

Numerically. πe≈22.46\pi^e\approx22.46 while eπ≈23.14e^\pi\approx23.14: they are close, but the order is clear.

Remark. The same reasoning shows that ab>baa^b>b^a whenever e≤a<be\le a<b. For example 34=81>43=643^4=81>4^3=64.