Bisection Method Calculator

Find roots of continuous functions using the bisection (interval halving) method.

Function f(x) = 0

Bisection Algorithm

1. Check f(a) and f(b) have opposite signs

2. Compute midpoint c = (a + b) / 2

3. If f(c) ≈ 0 or interval small, done

4. If f(a)·f(c) < 0: b = c, else a = c

5. Repeat from step 2

Properties

Guaranteed convergence (if conditions met)

Linear convergence: error halves each step

After n iterations: error ≤ (b-a)/2^n

Root Found

x = 1.5214233398

f(x) = 2.5935e-4

Iterations
14
Final Error Bound
6.1035e-5

Iteration History

nabmidf(mid)
01.0000002.0000001.500000-1.250e-1
11.5000002.0000001.7500001.609e+0
21.5000001.7500001.6250006.660e-1
31.5000001.6250001.5625002.522e-1
41.5000001.5625001.5312505.911e-2
51.5000001.5312501.515625-3.405e-2
61.5156251.5312501.5234381.225e-2
71.5156251.5234381.519531-1.097e-2
81.5195311.5234381.5214846.222e-4
91.5195311.5214841.520508-5.179e-3
101.5205081.5214841.520996-2.279e-3
111.5209961.5214841.521240-8.289e-4
121.5212401.5214841.521362-1.034e-4
131.5213621.5214841.5214232.594e-4

Error Analysis

Iteration 0:error ≤ 5.0000e-1
Iteration 1:error ≤ 2.5000e-1
Iteration 2:error ≤ 1.2500e-1
Iteration 3:error ≤ 6.2500e-2
Iteration 4:error ≤ 3.1250e-2
Iteration 5:error ≤ 1.5625e-2
Iteration 6:error ≤ 7.8125e-3
Iteration 7:error ≤ 3.9063e-3
Iteration 8:error ≤ 1.9531e-3
Iteration 9:error ≤ 9.7656e-4

Error halves with each iteration (linear convergence)