Not to mention that this problem makes more sense as a complex variables problem and the answer seems to assume real.
Here is a related question: which is bigger, e^Pi or Pi^e?
Answer is interesting: max x^y s.t. x*y=constant, and x=e no matter what the constant.