Bisection method
The most robust method: halve the interval bracketing the root and keep the half where the sign changes. Explicit error bound and guaranteed convergence.
The idea: bracket the root
Bisection algorithm
Compute the midpoint of the current interval.
If , the root is in the left half: the new interval is . Otherwise it is in . (If , the exact root has been found.)
Repeat until the interval length (or ) drops below the tolerance. The approximation is the last midpoint.
Error bound and speed
Each iteration gains one bit of precision (halves the error), which amounts to one decimal digit every iterations. It is slow compared with Newton, but it requires no derivatives, only continuity and a sign change, and it does not diverge. Use it to locate the root and hand a reliable initial estimate to a fast method.