The zero theorem does not say where the zero is, only that it exists. The bisection algorithm finds it by successive approximations, halving the interval at each step.
In brief — Procedure
- Start from with .
- Compute the midpoint and the sign of .
- If : the zero is in , set . Otherwise it is in , set .
- Repeat from step 2 until (the desired precision).
At each step the interval halves: after steps the error is .
Example — Bisection applied to
Let . Let us look for a zero.
; . Opposite signs: there is a zero in .
Step 1 2 3 4 5 After 5 steps the zero is in , with error . Approximate value: .
The strength of bisection is its robustness: it requires only being able to evaluate and recognise its sign, and it always converges (provided one starts from a change of sign). The price is its slowness: it gains about one decimal digit every iterations.
Links
Topics: Continuita
Concepts: Algoritmo di bisezione · Teorema degli zeri
Skills: Stimare · Usare formule