I ran across the following predicament in the course of solving a calculus problem. I'm embarrassed to admit I'm not sure how to proceed in order to solve for $x$.
$$e^x=6-x$$
I've tried taking the logarithm of each side yielding $x=\ln(6-x)$ where $x<6$. But this still leaves me in a position where I have trouble isolating $x$. Any help would be appreciated. Thanks!
The good news is it's not you-- it's the problem. You can't isolate the variable. The bad news is you can't isolate the variable.
But note $e^x$ is increasing. And $x-6$ is decreasing. So (in this case at least) the graphs cross and there will be exactly one $x$ where it is true.
So good news: You know there is one solution. Bad news: there is no algebraic way to express it.
But there are a lot of functions we can not express algebraically so we make up a function as a list of values to describe it. Example $\sin x$ is "the $y$ value of a point on a unit circle that has an interior angle of $x$". There's no way to algebraically solve that but we know it makes sense.
Likewise we know that for any $x$ there is a unique $y$ so that $ye^y = x$. We can't solve that algebraically but we know that $ye^y$ is increasing and has negative infinity and positive infinity as limits so we know $ye^y$ goes through every point exactly once so there is a unique $y$ so that $ye^y = x$.
So call this function the Lambert function $W(x)=y \iff ye^y = x$.
With this function in our arsenal:
We wont to get $\text{something about x}e^{\text{something about x}}= k$ so
$\text{something about x} = W(k)$. and then we can undo $\text{something about x}$.
$e^x = 6-x$
$\frac {e^x}{6-x} = 1$
$\frac 1{e^{-x}(6-x)} = 1$
$e^{-x}(6-x) = 1$
$e^{6-x-6}(6-x) = 1$
$e^{-6}*(6-x)e^{6-x}= 1$
$(6-x)e^{6-x} = e^{6}$
$6-x = W(e^{6})$
$x = 6-W(e^{-6})$
....
So $W(e^{6})$ is the value $y$ where $ye^y = e^{6}$ which we can only approximate. We can't solve algebraically.