Bisection Method
Summary
Bisection finds a root of a continuous function on a bracket
Prerequisites
- Bolzano's Theorem
- Ability to evaluate
Problem Type
Solve
Method Definition
Given continuous
Assumptions / Requirements
-
continuous on -
- The method may return any root if several lie in the bracket
Algorithm
- Input
with . - For
:-
- If
or , return - If
then , else
-
- Stop with failure if the iteration budget is exceeded
Formula / Iteration Rule
for some root
Convergence
Linear (interval length halves each step). Convergence is guaranteed under the assumptions above.
Error / Accuracy
Stopping options:
- Absolute interval:
- Residual:
Iteration count to guarantee half-width
Worked Example
Use
With
First steps:
|
|
|
|
|
|
new interval |
|---|---|---|---|---|---|
| 1 | 2 | 3 | 2.5 | 4.875 |
|
| 2 | 2 | 2.5 | 2.25 | 1.546875 |
|
| 3 | 2 | 2.25 | 2.125 | 0.18164… |
|
The unique real root is near
Pseudocode
function bisection(f, a, b, tol, max_iter):
require f(a)*f(b) < 0
for k = 1 to max_iter:
c = (a + b) / 2
if abs(f(c)) < tol or (b - a)/2 < tol:
return c
if f(a)*f(c) < 0:
b = c
else:
a = c
return (a + b) / 2 # not converged
Common Failure Modes
- Invalid bracket (no sign change)
- Multiple roots in
(any one may be returned) - Extremely flat
near the root (residual criterion may mislead)
Visual Explanation
The interval-halving invariant is shown in Bisection convergence (Manim).
Connections
- False Position Method keeps a bracket but uses a secant intercept
- Newton-Raphson Method is faster locally but not globally guaranteed
- Root Finding
References
Burden & Faires, Numerical Analysis, bisection method; NIST DLMF Ch. 3, https://dlmf.nist.gov/3 ↩︎ ↩︎