- 29,558
- 21,361
I noticed the following question generated quite a lot of interest on the Internet. Which is larger ##e^{\pi}## or ##\pi^e##?
Most (if not all) solutions focus on this as a problem for these specific numbers. And, in fact, the same question was then asked for other specific pairs of numbers. Moreover, most of the solutions seemed to be quite complicated. So, I thought I would post my solution here.
First, since the natural log is an increasing function, we have for any ##a, b > 0##:
$$a^b > b^a \Leftrightarrow b\ln(a) > a\ln(b) \Leftrightarrow \frac{\ln(a)}a > \frac{\ln(b)}b$$We look at the function ##f(x) = \frac{\ln(x)}x## and note that:
$$f'(x) = \frac 1 {x^2}(1 - \ln(x))$$We see that the function is increasing for ##x < e##, has a maximum at ##x=e##, and is decreasing for ##x > e##. In particular, we can see that:
If ##e \le a < b##, then ##a^b > b^a##. (That answers the question for ##e## and ##\pi##)
If ##a < b \le e##, then ##a^b < b^a##.
Most (if not all) solutions focus on this as a problem for these specific numbers. And, in fact, the same question was then asked for other specific pairs of numbers. Moreover, most of the solutions seemed to be quite complicated. So, I thought I would post my solution here.
First, since the natural log is an increasing function, we have for any ##a, b > 0##:
$$a^b > b^a \Leftrightarrow b\ln(a) > a\ln(b) \Leftrightarrow \frac{\ln(a)}a > \frac{\ln(b)}b$$We look at the function ##f(x) = \frac{\ln(x)}x## and note that:
$$f'(x) = \frac 1 {x^2}(1 - \ln(x))$$We see that the function is increasing for ##x < e##, has a maximum at ##x=e##, and is decreasing for ##x > e##. In particular, we can see that:
If ##e \le a < b##, then ##a^b > b^a##. (That answers the question for ##e## and ##\pi##)
If ##a < b \le e##, then ##a^b < b^a##.