I am trying to get the inverse (solve for x) of an equation with the form:
y(x) = a * (1 - e^ (-x/b) - (x/b) * e^ (-x/b))
x(y) = ?
Through some research, I learned that the inverse of x*e^x is a Lambert function. However, when I use Wolfram|Alpha to perform the inverse, the solution does not reproduce the results of the original equation.
WA returns many conditional solutions depending on values of a, b, and the range of y values. In addition, there are different branches of the Lambert function (Wn). When I use the branch n = -1, the solution is close, but not very good near the initial values.
- When I plot the solution using the main branch of W (n=0), the solution gives negative values.
- When I plot the real parts of the -1 branch, the solution is close in the middle and final values, but it is not fit well near the initial values.
Any thoughts?


