I know that $x e^x = e$ means $x = 1$, but how do you solve for it?
-
2What have you tried? Can you rule out some ranges for $x$? Have you tried playing with logarithms (the natural thing to do)? – Alex B. Nov 28 '10 at 08:38
-
6@Raskolnikov: the problem is to show that x = 1 is the only (say, real) solution. I do not think "duh" is a constructive comment. – Qiaochu Yuan Nov 28 '10 at 17:00
-
So guys, correct me if I am wrong: In many ways we can prove that x = 1, but given "xexp(x) = e", it is impossible to solve for x, that is, write x = {some formula} = ... = 1. – Nov 28 '10 at 21:30
-
@Perfecto: essentially, yes. – Qiaochu Yuan Nov 29 '10 at 00:44
-
Are we going to debate the term "closed form" again? – J. M. ain't a mathematician Nov 29 '10 at 01:03
-
You have to use a new function, the Lambert W function. Try it in Maple, Mathematica or Wolfram Alpha. – max_zorn Oct 09 '18 at 02:43
-
Try $xe^x=e=1e^1\implies x=1$ by comparing parts of the equation? – Тyma Gaidash Dec 29 '22 at 23:37
4 Answers
If you want to prove the proposition that if $x e^x = e$ then $x = 1$, one way to do it is to just show that (1) $x = 1$ is indeed a solution of $x e^x = e$ by plugging the value in, and that (2) $x = 1$ is the only solution, for which you can argue that $x e^x$ is an increasing function on $x \ge 0$, and the equation clearly has no solution for $x < 0$.
If that makes it sounds like you have to know the answer beforehand before you can solve for it, well, that's not far from the truth. In general, if the right-hand side is an arbitrary real number $y$ instead of $e$, then you cannot solve $x e^x = y$ for $x$ in terms of elementary functions. One in fact defines the Lambert W function as precisely the solution of this equation.
-
11 is the only real solution, yes, but remember that the Lambert function is multivalued like the logarithm. (For those with Mathematica:
N[ProductLog[Range[-5, 5], E]]
and thenChop[E - % Exp[%]]
) – J. M. ain't a mathematician Nov 28 '10 at 12:44 -
So guys, correct me if I am wrong: In many ways we can prove that x = 1, but given "xexp(x) = e", it is impossible to solve for x, that is, derive and write x = {some formula} = ... = 1. – Nov 28 '10 at 21:33
-
1@Perfecto: Not "impossible"; the reason the Lambert function was constructed so that it becomes possible! – J. M. ain't a mathematician Nov 28 '10 at 22:49
Another way is thinking of this as asking where do the graphs of the functions given by $f(x) = e^{x-1}$ and $g(x) = \frac{1}{x}$ intersect. This is because $$ xe^{x} = e \Leftrightarrow e^{x-1} = \frac{1}{x} \quad \text{for $x \neq 0$}$$ Then the answer you have would correspond to the only intersection point $(1, 1)$. So if you have no idea of where to start you could just draw the corresponding graphs and that could give you an idea of what is happening.
Then the graphs maybe would suggest to you the following line of reasoning. If $0 < x < 1$ then $$ \frac{1}{x} > 1 \quad \text{but} \quad e^{x-1} < e^{0} = 1$$ so their graphs can't meet in the interval $]0, 1[$. Then if $x > 1$ we have $$\frac{1}{x} < 1 \quad \text{but} \quad e^{x-1} > e^{0} = 1$$ so again there's no intersection point in the interval $]1, \infty[$.
This rules out all the possible solutions apart from $x = 1$ which you already knew and which could be guessed by looking at the graphs.

- 15,124
-
If someone knows how to include pictures in an answer I'd like to know. – Adrián Barquero Nov 28 '10 at 16:29
-
án: Clicking one of the buttons in the top portion of the "Edit" box (fifth button from the left) should bring up a box for uploading pictures. – J. M. ain't a mathematician Nov 28 '10 at 16:33
-
With logarithms.
Firstly $x>0$, Then :
$xe^{x}=e \Rightarrow \ln (xe^{x})=\ln e \Rightarrow \ln x + x = 1 $.
So:
If $x>1$ then $ \ln x >0$, thus $\ln x +x > 1+0 =1$ (contradiction)
If $x<1$ then $ \ln x < 0$, thus $\ln x +x < 1+0 =1$ (contradiction)
Thus $x=1$

- 2,271
Assuming that we are only looking for real solutions,
$$xe^x = e.$$
Note that $e^x$ is always positive and so no solution for this equation is possible for $x<0$ or $x=0$. As x increases, both x and $e^x$ are strictly increasing. Therefore, there is only one value for which $xe^x = e$. We already know that solution to be $x=1$.

- 2,028