Root Finding: Bisection, Newton, Secant
What you are seeing: a function and the iterates of three classical root finders. Bisection halves the bracket each step (always convergent if changes sign on the bracket). Newton uses tangent lines (quadratic convergence near a simple root, but can diverge with bad initial guesses). Secant uses chord slopes (superlinear, golden-ratio order).
x0 / left1.00
x1 / right2.50
function
method
root:0iters:0
WHAT TO TRY
- Switch methods on the same function: bisection halves the bracket every step (slow but sure), Newton rides the tangent (fast but can fly off), secant approximates the tangent from two points.
- Give Newton a bad starting point: the tangent can overshoot, oscillate, or diverge, the price of its speed when it fails to converge.
- Count iterations to a tolerance: Newton roughly doubles the correct digits each step while bisection adds a fixed fraction of one, the gap between quadratic and linear convergence.