]>
Home | 18.013A | Chapter 13 |
||
|
This method, as just noted, consists of iterating the process of setting the linear approximation of to 0 to improve guesses at the solution to .
The linear approximation to at argument which we will call can be described by the equation
if we set , and solve for , we obtain
and so we obtain , 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 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 '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 , in approximately a minute.
To do so put your initial guess, in one box say a2, put "= f(a2)" in b2, and "= f '(a2)" in c2. Then put "= a2-b2/c2" in a3 and copy a3, b2 and c2 down as far as you like. (Of course you have to spell out what and 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 has no zero, like , you will never get anywhere.
Here is another problem: if your initial guess, (or any subsequent ) is near a critical point of (at which ) the quantity 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 is implicitly defined you may find that some new guess in which is not even defined, and the iteration will dead end.
Can we say anything positive about the use of the method?
Yes! If goes from negative to positive at the true solution , and is increasing between and your guess , which is greater than , then the method will always converge. Similar statements hold when goes from positive to negative, and under many other circumstances.
Why is this?
If is increasing, then the tangent line to at will go under the curve at between and , so that the linear approximation, whose curve it is, will hit zero between and , and the same thing will be true in each iteration. Thus the '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
13.2
13.3
13.4
13.5
13.6
|