Bisection

Bisection is the division of a given curve, figure, or interval into two equal parts (halves).

A simple bisection procedure for iteratively converging on a solution which is known to lie inside some interval [a,b] proceeds by evaluating the function in question at the midpoint of the original interval x=(a+b)/2 and testing to see in which of the subintervals [a,(a+b)/2] or [(a+b)/2,b] the solution lies. The procedure is then repeated with the new interval as often as needed to locate the solution to the desired accuracy.

Let a_n and b_n be the endpoints at the nth iteration (with a_1=a and b_1=b) and let r_n be the nth approximate solution. Then the number of iterations required to obtain an error smaller than epsilon is found by noting that

 b_n-a_n=(b-a)/(2^(n-1))
(1)

and that r_n is defined by

 r_n=1/2(a_n+b_n).
(2)

In order for the error to be smaller than epsilon,

 |r_n-r|<=1/2(b_n-a_n)=2^(-n)(b-a)<epsilon.
(3)

Taking the natural logarithm of both sides then gives

 -nln2<lnepsilon-ln(b-a),
(4)

so

 n>(ln(b-a)-lnepsilon)/(ln2).
(5)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.