next up previous
Next: Newton's Method Up: Approximating Roots of Equations Previous: Approximating Roots of Equations

The Method of Bisection

In the method of bisection, we approximate a solution of the equation f(x) = 0, where f(x) is a continuous function, by means of a successive reduction of intervals that contain the solution.

Let f(x) be a continuous function, and let tex2html_wrap_inline358 and tex2html_wrap_inline360 be in the domain of f(x), where tex2html_wrap_inline364, such that tex2html_wrap_inline366, tex2html_wrap_inline368, and tex2html_wrap_inline370 and tex2html_wrap_inline372 have opposite signs. Then, as we have seen, there is some tex2html_wrap_inline298 between tex2html_wrap_inline358 and tex2html_wrap_inline360 such that tex2html_wrap_inline300. There may be several such values, but let us assume that tex2html_wrap_inline298 is unique in this respect. Without any previous knowledge of f(x), we can make no conclusions about the location of tex2html_wrap_inline298 with respect to tex2html_wrap_inline358 and tex2html_wrap_inline360, other than the fact that tex2html_wrap_inline298 lies in the interval tex2html_wrap_inline394. If we choose some point tex2html_wrap_inline396 between tex2html_wrap_inline358 and tex2html_wrap_inline360, then this solution tex2html_wrap_inline298 must lie either in the interval tex2html_wrap_inline404, or in the interval tex2html_wrap_inline406. We can determine which interval by considering the value of tex2html_wrap_inline408. If tex2html_wrap_inline410, then our solution is tex2html_wrap_inline412, and no additional work must be done to find tex2html_wrap_inline298. However, if tex2html_wrap_inline416, then our solution tex2html_wrap_inline298 will lie in the interval whose endpoints yield opposite signs when evaluated by f(x). Thus tex2html_wrap_inline298 lies in tex2html_wrap_inline404 if tex2html_wrap_inline370 and tex2html_wrap_inline408 have opposite signs, and tex2html_wrap_inline298 lies in tex2html_wrap_inline406 if tex2html_wrap_inline372 and tex2html_wrap_inline408 have opposite signs. Since tex2html_wrap_inline298 is the unique solution to f(x) = 0 on tex2html_wrap_inline394, then only one of the two intervals will be such that f(x) yields opposite signs when evaluated at the endpoints. We have now found a subinterval of tex2html_wrap_inline394 which contains tex2html_wrap_inline298 --let us denote it as tex2html_wrap_inline450. We then proceed in the same manner with this subinterval, tex2html_wrap_inline450, to enclose tex2html_wrap_inline298 on a smaller subinterval, tex2html_wrap_inline456. We continue this until we find a subinterval tex2html_wrap_inline458, containing tex2html_wrap_inline298, such that every point in the subinterval lies within a given distance of tex2html_wrap_inline298. To maximize the effectiveness of the choice of tex2html_wrap_inline464 for each i, tex2html_wrap_inline468, since we have no previous knowledge of f(x), we take tex2html_wrap_inline464 to be the midpoint of the interval tex2html_wrap_inline474,

displaymath476

thus bisecting tex2html_wrap_inline474 into two smaller subintervals.

Example 1 Let us employ the method of bisection to approximate the positive solution of the equation

displaymath480

Here we can actually solve our equation to obtain the solutions tex2html_wrap_inline482, the value that we seek to approximate being tex2html_wrap_inline484, to ten decimal places. For this problem our function tex2html_wrap_inline486, which is continuous over the set of all real numbers. To apply the bisection method, we need initial upper and lower bounds for the solution. Note that f(1) = -1 and f(2) = 2, which implies that we can take tex2html_wrap_inline492 and tex2html_wrap_inline494 as our initial bounds. The following table illustrates the rate of convergence of the bisection method for the positive solution of the equation tex2html_wrap_inline496 with the initial bounds on the solution being tex2html_wrap_inline492 and tex2html_wrap_inline494.

displaymath502

Choosing tex2html_wrap_inline504 as our final approximation, we see that it took more than thirty steps in order to obtain an approximation to the solution that is accurate to nine decimal places. tex2html_wrap_inline506

Let us now consider the issue of how many times we must apply the method of bisection until we have reduced our interval tex2html_wrap_inline394 to one in which our approximation lies within a given distance tex2html_wrap_inline510 of the solution tex2html_wrap_inline298.

After n - 1 applications of the bisection method, we reduce the interval tex2html_wrap_inline394 to the tex2html_wrap_inline518 subinterval tex2html_wrap_inline458. Note that in bisecting the tex2html_wrap_inline522 subinterval tex2html_wrap_inline524, we obtain some subinterval tex2html_wrap_inline474 whose width is 1/2 of the width of the previous subinterval. Thus the intervals are being reduced at a linear rate of 1/2, with

displaymath532

By induction, we see that this implies that the tex2html_wrap_inline518 subinterval tex2html_wrap_inline458 has width

displaymath538

The midpoint, tex2html_wrap_inline540, of the tex2html_wrap_inline518 subinterval is a distance of tex2html_wrap_inline544 away from either endpoint of the subinterval, and so it must lie at most tex2html_wrap_inline544 units away from the solution tex2html_wrap_inline298. Therefore

displaymath550

The implications here are that, since tex2html_wrap_inline552, in order to gain an additional three decimal places of accuracy using the bisection method, one must make about ten additional iterations. Thus we see that the bisection method converges slowly, at a linear rate, although it does converge. For n to be such that tex2html_wrap_inline540 is within tex2html_wrap_inline510 of tex2html_wrap_inline298, we need

  equation36

Thus if we take

displaymath562

then (1) will be satisfied and we will find an approximation tex2html_wrap_inline540 that is within tex2html_wrap_inline510 of tex2html_wrap_inline298 if

  equation42

However, it is not necessary to know n beforehand in order to be able to determine when to terminate a bisection procedure. It is sufficient to continue the bisection method until n is found such that

displaymath574

Since tex2html_wrap_inline298 must lie between tex2html_wrap_inline578 and tex2html_wrap_inline580, it must also lie within tex2html_wrap_inline510 of either tex2html_wrap_inline578 or tex2html_wrap_inline580.

Example 2 In Example 1 we employed the bisection method to approximate the positive solution of tex2html_wrap_inline496 to nine decimal places of accuracy. Thus we found tex2html_wrap_inline540 such that

  equation48

Here our original interval was [1,2], implying tex2html_wrap_inline492 and tex2html_wrap_inline494, and tex2html_wrap_inline598. Therefore, by (2), we know that tex2html_wrap_inline540 will satisfy (3) for any value of n such that

displaymath604

Since n must be an integer, we see that we need no more than 31 iterations to give us an approximation that is within tex2html_wrap_inline608 of the solution. Note that the magnitude of the error in the tex2html_wrap_inline610 approximation is given by

displaymath612

whereas the magnitude of the error in the tex2html_wrap_inline614 approximation is

displaymath616

Thus, for this example, the estimate that we would need at most 31 iterations in order to approximate the solution to within tex2html_wrap_inline598 turned out to be exact. tex2html_wrap_inline506

Example 3 In this example we shall use the bisection method to approximate the values of x for which

  equation69

Since a significant amount of work is involved for each decimal place of accuracy, we shall limit our approximation to three places of accuracy.

Note that the natural logarithm function, tex2html_wrap_inline624, is increasing over all of its domain tex2html_wrap_inline626. Thus, for x > e, the natural logarithm function satisfies tex2html_wrap_inline630. Since tex2html_wrap_inline632 for all x, this implies that (4) can hold only for values of x in the interval (0,e]. The function tex2html_wrap_inline640 is decreasing in this interval, and since tex2html_wrap_inline624 is increasing over this interval, we see that there is at most one value of x for which (4) holds. Let us denote tex2html_wrap_inline646. Then any solution of (4) is also a solution of f(x) = 0. Note that tex2html_wrap_inline650, whereas tex2html_wrap_inline652. Thus we see that f(x) = 0 has a unique solution on [1,e]. Therefore, taking tex2html_wrap_inline492, tex2html_wrap_inline660, and tex2html_wrap_inline662 for each n, we obtain the following values

displaymath666

To three decimal places, tex2html_wrap_inline668. Therefore the approximate value of x that satisfies (4) is x = 1.303. tex2html_wrap_inline506

The method of bisection will always produce an approximation of a root of a continuous function f(x) provided one can find values a and b, in the domain of f(x), such that f(a) < 0 and f(b) > 0. However, as we have seen, the major drawback of this method is that it converges rather slowly. Because of this, the method of bisection is commonly utilized for the purpose of reducing the size of the interval on which a root of a given function is known to exist, and then an alternative method of root approximation is utilized to bring the approximation to within the desired amount of accuracy.


next up previous
Next: Newton's Method Up: Approximating Roots of Equations Previous: Approximating Roots of Equations