Courses / Mathematics I
Scientific Programming

Root Finding

Mathematics I 211 words Free to read

Numerical Root-Finding & Bisection

Most equations f(x)=0f(x) = 0 defy algebra—there is no general formula for degree-5 polynomials, let alone mixtures of exponentials and trig. Root-finding algorithms locate solutions numerically to any desired accuracy by iterating.

Bisection is the simplest and most robust method. It relies on the Intermediate Value Theorem: if a continuous ff has opposite signs at aa and bb, a root lies between them.

Bisection repeatedly halves the interval, keeping the half where the sign change persists. Each step halves the error, guaranteeing convergence (given an initial sign change) with linear speed.

Newton's Method & Trade-offs

Newton's method uses the tangent line from a guess xnx_n to find the next zero:

xn+1=xnf(xn)f(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}

Near a root, Newton's converges quadratically: correct digits roughly double each step.

FeatureBisectionNewton's Method
SpeedSlow (linear)Fast (quadratic)
ReliabilityGuaranteed convergenceCan diverge or cycle
RequirementsInitial sign changeDerivative ff' & close start

Common pitfall: Assuming Newton's method always converges. It fails if f(xn)=0f'(x_n) = 0 (division by zero) or from poor starts. Hybrid methods use bisection for safety, then Newton's for speed.

The tangent rides down fast, then a different f refuses to land

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

11practice questions
2interactive scenes

Scientific Programming