Solving f(x) = 0 by number
Type a function and a bracket and watch bisection, false position, the secant method and Newton's method chase the same root. See how many steps each one needs, how close it lands and where it gets stuck.
Type f(x) with x as the variable. The worked example is the cubic Newton used to introduce his method. Saved on this device only.
Loading Numerical Root-Finding Comparator. If nothing appears, turn on JavaScript.
Enrichment · STEM ExplorationsOpen to everyone · no sign-in
Bisection is slow but certain: given a sign change it always closes in on a root and halves the error every step. Newton's method and the secant method are much faster near a root, but they can wander off or hit a flat spot when the start is poor. False position sits between them.
Each method stops when its estimate moves by less than the tolerance. That is not the same as the true error, which is why the table also shows f at the root and the distance from a reference root found by bisection to 1e-13. A function with a double root, such as (x-1)^2, gives no sign change, so a bracket cannot be used.
The worked examples are invented for illustration. What you type is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.