jack: (Default)
[personal profile] jack
One of Gerald Duck's question was: Which is greater, pi^e or e^pi? I happened to be doing something related yesterday, and was sufficiently amused to continue here.

Spoilers

SNAPE KILLS DUMBLEDORE! Just kidding.

e^pi is greater for any value of pi.

The other question was, "Given a set of n positive integers which sum to 100, what is their maximum product?"

If you relax the constraint on being integers, and there being an integer number of them, and assume they are all the same, you get "Observe that (100/n)^n is low at n=1 and n=100. Where is the maximum?" and differentiating by n (with product and chain rule and letting n=e^logn), you find, unsurprisingly, the answer is always e.

Of course, for the problem with integers, it suggests a sum of 3s is correct, but it's easier to prove it by showing any change makes it smaller.

But it incidentally solves Gerald Duck's problem -- e^x is inherently a maximum :)

Date: 2007-07-23 03:14 pm (UTC)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
I think the derivation goes like this:

Raise both e^pi and pi^e to the power 1/(pi*e). This is monotonic in the positive reals, so it doesn't affect which of them is greater. But now the question becomes, is e^(1/e) greater or less than pi^(1/pi)? And the nice thing about the question in that form is that we've turned it into a function of one variable which we can investigate using the usual calculus tools: differentiating x^(1/x) gives (if I haven't made a mistake) x^(1/x-2)*(1-log(x)), which is positive for x < e, negative for x > e, and zero at x = e itself. Thus, it has a unique global maximum at x=e, and hence e^(1/e) > pi^(1/pi), and therefore we can raise that to the power e*pi and find the answer to the original question is that e^pi > pi^e. And, as Jack says, this proof demonstrates that the key thing is that one of the numbers is e; pi is arbitrary and could have been any other number you like.

Date: 2007-07-23 04:08 pm (UTC)
From: [identity profile] cartesiandaemon.livejournal.com
Thank you for filling in! Yes, that's a good summary.

Mair -- sorry for filling my journal with incomprehensible wittering :)

Active Recent Entries