Bisection Method
Bisection Method
Bisection Method
The method
The method is applicable for numerically
solving the equation f(x) = 0 for the real
variable x, where f is a continuous function
defined on an interval [a, b] and where f(a)
and f(b) have opposite signs. In this case a
and b are said to bracket a root since, by
the intermediate value theorem, the
continuous function f must have at least
one root in the interval (a, b).
Iteration tasks
Algorithm
N ← 1
While N ≤ NMAX # limit
iterations to prevent
infinite loop
c ← (a + b)/2 # new
midpoint
If f(c) = 0 or (b – a)/2
< TOL then # solution found
Output(c)
Stop
EndIf
N ← N + 1 # increment
step counter
If sign(f(c)) =
sign(f(a)) then a ← c else
b ← c # new interval
EndWhile
Output("Method failed.") #
max number of steps
exceeded
. Because is negative, is
replaced with for the next
iteration to ensure that and
have opposite signs. As this continues, the
interval between and will become
increasingly smaller, converging on the
root of the function. See this happen in the
table below.
Iteration
1 1 2 1.5 −0.125
Analysis
The method is guaranteed to converge to
a root of f if f is a continuous function on
the interval [a, b] and f(a) and f(b) have
opposite signs. The absolute error is
halved at each step so the method
converges linearly, which is comparatively
slow.
Specifically, if c1 = a+b
2 is the midpoint of
the initial interval, and cn is the midpoint of
the interval in the nth step, then the
difference between cn and a solution c is
bounded by[8]
where
Therefore, the linear convergence is
expressed by
See also
Binary search algorithm
Lehmer–Schur algorithm, generalization
of the bisection method in the complex
plane
Nested intervals
References
1. Burden & Faires 1985, p. 31
2. "Archived copy" . Archived from the
original on 2013-05-19. Retrieved
2013-11-07.
3. Burden & Faires 1985, p. 28
4. "Dichotomy method - Encyclopedia of
Mathematics" .
www.encyclopediaofmath.org.
Retrieved 2015-12-21.
5. If the function has the same sign at
the endpoints of an interval, the
endpoints may or may not bracket
roots of the function.
6. Burden & Faires 1985, p. 28 for section
7. Burden & Faires 1985, p. 29. This
version recomputes the function
values at each iteration rather than
carrying them to the next iterations.
8. Burden & Faires 1985, p. 31, Theorem
2.1
Burden, Richard L.; Faires, J. Douglas
(1985), "2.1 The Bisection Algorithm",
Numerical Analysis (3rd ed.), PWS
Publishers, ISBN 0-87150-857-5
Further reading
Corliss, George (1977), "Which root does
the bisection algorithm find?", SIAM
Review, 19 (2): 325–327,
doi:10.1137/1019044 , ISSN 1095-7200
Kaw, Autar; Kalu, Egwu (2008),
Numerical Methods with Applications
(1st ed.), archived from the original on
2009-04-13
External links