Which is greater, $e^{\pi}$ or $\pi^e$?

703 Views Asked by At

I'm familiar with a simple method of demonstrating that $e^\pi$ is greater:

$f(x) = \ln|x|/x$

$f'(x) = (1 - (\ln|x|))/(x^2)$ so f's max is at $(e, 1/e)$ so $1/e > \ln(\pi)/\pi$ and $e^{\pi} > \pi^e$

My question is simply, how does one come up with this "$\ln|x|/x$" function?

I've tried working backwards, but there doesn't seem any real clear way of coming up with this magic function that gives such an elegant solution to this problem.

2

There are 2 best solutions below

2
On BEST ANSWER

Take logarithms.

$$e^\pi > \pi^e \Rightarrow \pi \log{e} > e\log{\pi} \Rightarrow \frac{\log e}{e} > \frac{\log \pi}{\pi }$$

This motivates us to consider the extrema of the function $f(x) = \frac{\log{x}}{x}$.

1
On

$e^\pi > \pi^e \iff e^{1/e} > \pi^{1/\pi}$

So the function you are actually considering is $x^{1/x}$.

$x^{1/x} = e^{\ln x/x} $