I've got the following equation:
$\lambda + e^{-\lambda} = 3$
$3 - \lambda = \frac{1}{e^{\lambda}}$
$\frac{1}{3-\lambda} = e^{\lambda}$
Now, I take the natural log of both sides:
$ln(\frac{1}{3-\lambda}) = \lambda$
$ln(1) - ln(3-\lambda) = \lambda$
Since $ln(1)$ is zero,
$-ln(3 - \lambda) = \lambda$
I get to this part of the equation and I feel stuck and that I cannot simplify and solve for lambda even more. Could someone help me? Obviously I can use a graphing calculator to find the solution (2.9475309 I believe being one of them), but I would like to learn how to solve this by hand as well. Thank you in advance.
This is an example of equation, for which we know there is an explicit solution in terms of well-known Lambert $\operatorname{W}$ function.
\begin{align} x + \exp(-x)&= 3 \tag{1}\label{1} ,\\ x\exp(x) + 1&= 3\exp(x) ,\\ x\exp(x)-3\exp(x)&=-1 ,\\ (x-3)\exp(x)&=-1 ,\\ (x-3)\exp(x-3+3)&=-1 ,\\ (x-3)\exp(x-3)\exp(3)&=-1 ,\\ (x-3)\exp(x-3)&=-\exp(-3) . \end{align}
The last expression is ready to apply the Lambert $\operatorname{W}$ function:
\begin{align} \operatorname{W}((x-3)\exp(x-3))&=\operatorname{W}(-\exp(-3)) ,\\ x-3&=\operatorname{W}(-\exp(-3)) ,\\ x&=3+\operatorname{W}(-\exp(-3)) \tag{2}\label{2} . \end{align}
Equation \eqref{2} provides a general solution in terms of Lambert $\operatorname{W}$ function, and since we are interested in real solutions, we need to check the argument of $\operatorname{W}$.
In this case it is $-\exp(-3)$, which is between $-\exp(-1)$ and $0$. This condition guarantees that there are two real solutions, corresponding to so-called branches of the Lambert $\operatorname{W}$ function, which has special names $\operatorname{W_{0}}$ and $\operatorname{W_{-1}}$:
\begin{align} x_0&=3+\operatorname{W_{0}}(-\exp(-3)) \approx \phantom{-}2.94753090254 ,\\ x_{-1}&=3+\operatorname{W_{-1}}(-\exp(-3)) \approx -1.50524149579 . \end{align}