I'm trying to find the function which allows me to find lambda if:
$$y = 1-e^{-\lambda x}\,.$$
I tried doing this by:
\begin{eqnarray} y-1 &=& -e^{-\lambda x}\\ e^{-\lambda x} &=& -(y-1)\\ -\lambda x &=& \ln(-(y-1))\\ -\lambda &=& (\ln(-(y-1))) / x\\ \lambda &=& -(\ln(-(y-1))) / x \end{eqnarray}
But to my knowledge this doesn't work if $y-1$ is positive.
Have I done this algebra correctly?