Professional Documents
Culture Documents
Bisection Method
It is one of the root-finding methods available. It is simple and guaranteed to converge, but may be slow
in finding a root. Other names of the method are internal halving method, binary search, and dichotomy
method.
The method starts with choosing a boundary [a,b] wherein the function is defined over the interval and
f(a) and f(b) are opposite in sign. The condition guarantees that there must be at least one root between
the set boundary. Then, the difference between the boundaries is decreased until an acceptable
difference is met. The decrease in difference of interval is achieved by halving the previous difference.
For example, let c = (a+b)/2 and then replacing one of the boundaries (a or b) with c. To determine
which boundary is to be replaced, f(c) should have opposite sign with f(a or b). If f(c) = 0 then, c is a root
and the process stops. In the figure above, c will replace a and the halving of the interval continues. The
algorithm, presented in a flowchart, is found in the latter pages.
Algorithm
Start
Define f(x)=Ax5+Bx4+Cx3+Dx2+Ex+F
+
=
2 A
Is (bk Yes
Input ak = , bk =
ak )< root= ck
Set
No B
No
Is
Yes Is Yes
f(ak)f(bk)=0 root= ak
f(ak)=0
No B End
No
Yes Is Obtain ck and
f(ak)f(bk)>0 f(ck)
No Is
A aK = ck; bk = bk f(ak)f(ck)<0
Yes
A aK = ak; bk = ck
Franz Loui Rosario Numerical Methods GEM 602
Example
A macro-enabled excel root-finding through bisection method worksheet was made. This worksheet can
find roots for the f(x)=Ax5+Bx4+Cx3+Dx2+Ex+F=0.
Below are screenclips of the worksheet finding roots for the f(x) = x4-2x3-13x2+14x+24. The roots are -3,-
1,2 and 4.
Franz Loui Rosario Numerical Methods GEM 602