Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.1: Bisection Method

( \newcommand{\kernel}{\mathrm{null}\,}\)

The bisection method is the easiest to numerically implement and almost always works. The main disadvantage is that convergence is slow. If the bisection method results in a computer program that runs too slow, then other faster methods may be chosen; otherwise it is a good choice of method.

We want to construct a sequence x0,x1,x2,... that converges to the root x=r that solves f(x)=0. We choose x0 and x1 such that x0<r<x1. We say that x0 and x1 bracket the root. With f(r)=0, we want f(x0) and f(x1) to be of opposite sign, so that f(x0)f(x1)<0. We then assign x_2 to be the midpoint of x0 and x1, that is x2=(x0+x1)/2, or

x2=x0+x1x02.

The sign of f(x2) can then be determined. The value of x3 is then chosen as either the midpoint of x0 and x2 or as the midpoint of x2 and x1, depending on whether x0 and x2 bracket the root, or x2 and x1 bracket the root. The root, therefore, stays bracketed at all times. The algorithm proceeds in this fashion and is typically stopped when the increment to the left side of the bracket (above, given by (x1x0)/2) is smaller than some required precision. 


This page titled 2.1: Bisection Method is shared under a CC BY 3.0 license and was authored, remixed, and/or curated by Jeffrey R. Chasnov via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?