Module

for

The Bisection Method

     

Background. The bisection method is one of the bracketing methods for finding roots of equations.
Implementation.  Given a function f(x) and an interval which might contain a root, perform a predetermined number of iterations using the bisection method.
Limitations.  Investigate the result of applying the bisection method over an interval where there is a discontinuity.  Apply the bisection method for a function using an interval where there are distinct roots.  Apply the bisection method over a "large" interval.  

 

Theorem (Bisection Theorem). Assume that  [Graphics:Images/BisectionMod_gr_1.gif] and that there exists a number [Graphics:Images/BisectionMod_gr_2.gif] such that [Graphics:Images/BisectionMod_gr_3.gif].  
If  [Graphics:Images/BisectionMod_gr_4.gif] have opposite signs, and [Graphics:Images/BisectionMod_gr_5.gif] represents the sequence of midpoints generated by the bisection process, then

        [Graphics:Images/BisectionMod_gr_6.gif]   for   [Graphics:Images/BisectionMod_gr_7.gif],

and the sequence [Graphics:Images/BisectionMod_gr_8.gif] converges to the zero  [Graphics:Images/BisectionMod_gr_9.gif].  

That is,      [Graphics:Images/BisectionMod_gr_10.gif].  

Proof  Bisection Method  Bisection Method  

 

Computer Programs  Bisection Method  Bisection Method  

 

Mathematica Subroutine (Bisection Method).

[Graphics:Images/BisectionMod_gr_11.gif]

Example 1.  Find all the real solutions to the cubic equation  [Graphics:Images/BisectionMod_gr_12.gif].  
Solution 1.

 

Example 2.  Use the cubic equation  [Graphics:Images/BisectionMod_gr_476.gif]  in Example 1 and perform the following call to the bisection method.

Bisection[0,1,30];

Solution 2.

 

Reduce the volume of printout.

After you have debugged you program and it is working properly, delete the unnecessary print statements.

 

Concise Program for the Bisection Method

[Graphics:Images/BisectionMod_gr_640.gif]

Now test the example to see if it still works. Use the last case in Example 1 given above and compare with the previous results.

[Graphics:Images/BisectionMod_gr_641.gif]

[Graphics:Images/BisectionMod_gr_642.gif]
[Graphics:Images/BisectionMod_gr_643.gif]
[Graphics:Images/BisectionMod_gr_644.gif]

Reducing the Computational Load for the Bisection Method

 

The following program uses fewer computations in the bisection method and is the traditional way to do it.  Can you determine how many fewer functional evaluations are used ?

[Graphics:Images/BisectionMod_gr_645.gif]

Various Scenarios and Animations for the Bisection Method.

[Graphics:Images/BisectionMod_gr_646.gif]

Example 3.  Convergence  Find the solution to the cubic equation  [Graphics:Images/BisectionMod_gr_647.gif].  Use the starting interval  [Graphics:Images/BisectionMod_gr_648.gif].  
Solution 3.

 

Example 4.  Not a root located  Find the solution to the equation  [Graphics:Images/BisectionMod_gr_813.gif].  Use the starting interval  [Graphics:Images/BisectionMod_gr_814.gif].  
Solution 4.

 

Animations (Bisection Method  Bisection Method).  Internet hyperlinks to animations.  

 

Old Lab Project (Bisection Method  Bisection Method).  Internet hyperlinks to an old lab project.  

 

Research Experience for Undergraduates

Bisection Method Bisection Method  Internet hyperlinks to web sites and a bibliography of articles.  

 

Download this Mathematica Notebook The Bisection Method

 

Return to Numerical Methods - Numerical Analysis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004