I have the following nonlinear equation which I want to solve (the answer is about 2.205):
$r=e^{-r}/0.05$
I'd like to understand why the equation above will only converge (using iteration) if I put it in the following form:
$r=-\ln(r*0.05)$
I'm in an engineering program and I've noticed other equations which involve logs where iteration works to find an answer. I think I can use iteration when the equation involves logs, but I'd like to be sure.
To be clear, when I refer to iteration I mean:
- Making a guess for the value of r.
- Subbing into the RHS and computing.
- Use the found value and sub into the RHS again.
- Continue until value converges.


You can think of your method of iteration as follows. Imagine that you're plotting the RHS and the LHS as two separate functions, $f(r) = r$ and $g(r) = e^{-r} / 0.05$. The solution for $r = e^{-r}/0.05$, graphically, is all values of $r$ where $f$ and $g$ intersect on a plot with $r$ on the $x$-axis.
The iteration process then looks something like this:
Once you transform the equation, you end up with an iteration process that looks like this:
As you can see, the rate at which the equation is changing plays a big role in whether it converges or not. In general, if a function $f(r)$ changes at some rate $f'(r)$, then $\ln(f(r))$ changes much more slowly at $\frac{d}{dr}\ln(f(r)) = \frac{1}{f(r)} \cdot f'(r)$.
If you want a much more reliable, but still relatively each method to implement, consider using Newton's Method
EDIT: Here's how to solve the non-linear equation using Newton's method.
For Newton's, you want an equation of the form $f(r) = 0$. Here, we have $f(r) = e^{-r}/0.05 - r$, which implies that $f'(r) = -e^{-r}/0.05 - 1$. Given some initial guess $r_0$, the next guess in the iteration is gotten by: $$ r_{i + 1} = r_i - \frac{f(r_i)}{f'(r_i)} $$ Using Newton's method, here's what my iterations look like: \begin{array}{c | c} i & r_i\\ \hline 0 & 1 \\ 1 & 1.7607 \\ 2 & 2.1387 \\ 3 & 2.2035 \\ 4 & 2.2050 \\ 5 & 2.2050 \\ \end{array}