![]() |
||||||||||||||||||||||||
|
![]()
|
Solution of Nonlinear Equations1. Bisection Method TutorialThe method for finding roots that will be discussed here is the
bisection method. We illustrate this method by considering the
above-mentioned polynomial
Note that p(0)=-17 and p(2)=373. Therefore, since To close in on r, we now evaluate p at the midpoint of (0, 2) which is 1. p(1)=-20. Now we see that r must actually lie in the interval (1, 2) since p switches signs from negative to positive as x ranges from 1 to 2. So we have reduced the interval under consideration from (0, 2) to (1, 2). We have cut the length of our interval in half, or bisected it. We look next at the midpoint of (1, 2), namely 1.5.
Note that after these iterations are performed, we see that
1.2578125 < r < 1.259765625 .
Hence, we have been able to find r accurate to the hundredths place. One question that should be raised is the following: Does this method always converge to a root? The answer is yes, provided the function under consideration is continuous and we begin with two values a and b such that p(a)<0 and p(b)>0. (The Intermediate Value Theorem guarantees that a root exists under these conditions.) To close this section, I note that this algorithm is easily implemented via a computer program. One loop is all that is needed. 2. Newton's MethodWe come now to a second method of approximating roots of functions known as
Newton's method. We need to assume that f is a differentiable
function in some interval We first look at a "pictorial" view of how Newton's method works. Consider Figure 1.
Figure 1
We see a portion of the graph of f along with the root r and an
additional point
Figure 2
We then draw the tangent line to the curve of f through
Figure 3
Note that in Figure 3,
Figure 4
Now we consider this method algebraically. Referring back to Figure 3 we see that the slope of the line through the points (x1 , 0) and (x0 , f(x0 )) is equal to
Moreover, the slope also equals f'(x0 ) since this line is tangent to the curve of f. Hence,
which yields
or
Iterating this yields the general term
This iterative technique is the crux of Newton's method and can be easily applied via a computer program. Example: Consider p(x) = x7 + 9x5 - 13x - 17 once again. We have seen from the bisection method that one root of p lies in the interval (1, 2). Using x0 = 1 as our seed value, we can generate the following table via Newton's method.
Note that after 6 iterations of Newton's method, the root r can be approximated as
r = 1.258092657 , accurate to 6 decimal places. The secant method is similar to the Newton's Method, but is different in that the derivative f' is approximatedby using two consecutive iterative values of f. By using an approximation for the derivative f'(xo) as
There have been
|
|||||||||||||||||||||||
|
Added to the Web: January 10, 2000. Last updated: January 14, 2000. Web page design by Dan Solarek. |
http://cset.sp.utoledo.edu/eet2980/ |