Home  18.013A  Chapter 13 


This method, as just noted, consists of iterating the process of setting the linear approximation of $f$ to 0 to improve guesses at the solution to $f=0$ .
The linear approximation to $f(x)$ at argument ${x}_{0}$ which we will call $fL{x}_{0}(x)$ can be described by the equation
if we set $fL{x}_{0}(x)=0$ , and solve for $x$ , we obtain
and so we obtain ${x}_{1}={x}_{0}\frac{f({x}_{0})}{f\text{'}({x}_{0})}$ , and in general can define
In the applet that follows you can enter a standard function, choose the number (nb points) of iterations that can be shown, adjust ${x}_{0}$ with the second slider, and look at each iteration with the first slider. You will see the function and the effects of the iterations.
You will notice that with this method you may arrive at a nearby 0, or a far away one, depending a bit on luck.
In the old days the tedium of performing the steps of finding the ${x}_{j}$ 's was so formidable that it could not be safely inflicted on students.
Now, with a spreadsheet, we can set this up and do it with even a messy function $f$ , in approximately a minute.
To do so put your initial guess, ${x}_{0}$ in one box say a2, put "= f(a2)" in b2, and "= f '(a2)" in c2. Then put "= a2b2/c2" in a3 and copy a3, b2 and c2 down as far as you like. (Of course you have to spell out what $f$ and $f\text{'}$ are in doing this.)
That's all there is to it.
If column b goes to zero, the entries in column a will have converged to an answer.
If you want to change your initial guess you need only enter something else in a2; to solve a different equation you need only change b2 and c2 and copy them down.
This raises some interesting questions; namely, can we say anything about when this method will work and when it will not?
First you should realize that many functions have more than one argument for which their values are 0. Thus you may not get the solution you want.
Also, if the function $f$ has no zero, like ${x}^{2}+1$ , you will never get anywhere.
Here is another problem: if your initial guess, ${x}_{0}$ (or any subsequent ${x}_{j}$ ) is near a critical point of $f$ (at which $f\text{'}=0$ ) the quantity $\frac{f}{f\text{'}}$ may become huge at that argument, and you may be led to looking at arguments very far from what you are looking for.
And if $f$ is implicitly defined you may find that some new guess ${x}_{j}$ in which $f$ is not even defined, and the iteration will dead end.
Can we say anything positive about the use of the method?
Yes! If $f$ goes from negative to positive at the true solution $x$ , and $f\text{'}$ is increasing between $x$ and your guess ${x}_{0}$ , which is greater than $x$ , then the method will always converge. Similar statements hold when $f$ goes from positive to negative, and under many other circumstances.
Why is this?
If $f\text{'}$ is increasing, then the tangent line to $f$ at ${x}_{0}$ will go under the $f$ curve at between $x$ and ${x}_{0}$ , so that the linear approximation, whose curve it is, will hit zero between $x$ and ${x}_{0}$ , and the same thing will be true in each iteration. Thus the $x$ 's will march off toward the true solution without hope of escape and will eventually get there.
Another virtue of the method is that as one gets closer to the solution, the differentiable function will tend to look more and more like its linear approximation between the current guess and the true solution. Thus the method tends to converge very rapidly once that current guess is near a solution.
Exercises:
Set up a spread sheet to apply it to the following functions:
13.1 $\mathrm{exp}(x)27$
13.2 $\mathrm{sin}(x)0.1$
13.3 ${x}^{2}$
13.4 $\mathrm{tan}x$
13.5 ${x}^{1/3}$
13.6 ${x}^{1/3}1$
