Courses / Mathematics I
Scientific Programming

Root Finding

Mathematics I 340 words Free to read

Solving Equations Numerically

Most equations f(x)=0f(x) = 0 cannot be solved by algebra — there is no formula for the roots of a general polynomial of degree 5 or higher, let alone equations mixing polynomials, exponentials, and trig. Root-finding algorithms locate the solutions numerically, to any desired accuracy, by iterating.

Bisection is the simplest and most robust. It relies on the Intermediate Value Theorem (Unit 5): 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, so it is guaranteed to converge (given an initial sign change) but only linearly — steady, if slow.

Newton's method is far faster. From a current guess xnx_n, it follows the tangent line to the curve down to where it crosses zero, giving the next guess: xn+1=xnf(xn)f(xn).x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}. This is the linear approximation of Unit 5 turned into an iteration. Near a root, Newton's method converges quadratically — the number of correct digits roughly doubles each step, astonishingly fast.

But Newton's speed comes with fragility, the crucial trade-off:

Bisection is slow but safe; Newton's is fast but needs a good start and a well-behaved function. In practice, hybrid methods combine them — bisect to get close, then switch to Newton for speed — capturing the best of both.

Common pitfall: assuming Newton's method always converges to a root. It converges quadratically only when started near the root and where ff' is well-behaved; from a poor starting guess it can diverge, cycle, or blow up (especially if f(xn)=0f'(x_n) = 0, dividing by zero). Bisection, by contrast, is guaranteed to converge given a sign change — the safety Newton's method trades away for speed.

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
Start Mathematics I free

Scientific Programming