Solutions to $x+e^x=k$

117 Views Asked by At

So I am trying to solve $x+e^x=k$ and here is what I have done:

$$x+e^x=k$$ $$e^{x+e^x}=e^k$$ $$e^xe^{e^x}=e^k$$ Now, if we use the lambert W function which has the identity such that if $y=xe^x$ then $x=W(y)$ $$e^x=W(e^k)$$ $$x=\ln(W(e^k))$$ However, when I looked it up on WolframAlpha, they gave the answer $x=k-W(e^k)$

Did I do something wrong here?

1

There are 1 best solutions below

0
On BEST ANSWER

I would like to remind you that

$$z = W(z)e^{W(z)}$$

defines $W(z)$.

$$k - W(e^k) = \log(W(e^k))$$

$$e^ke^{ - W(e^k)} = W(e^k)$$

$$e^{k} = W(e^k)e^{ W(e^k)}$$

$$e^k = e^k$$

In other words, you have just discovered that: $$\log({W(z)}) = \log(z) - W(z).$$