Numerical methods like bisection and Newton's method that find roots a computer can compute step by step.
IntuitionIntuition: zooming in near a root
Suppose you are hunting for a root r of an equation f(x)=0, but there is no algebraic formula that produces r exactly. A numerical method builds a sequence of guesses x0,x1,x2,… that gets closer and closer to r at every step, much like repeatedly zooming a graph of f toward the point where it crosses the horizontal axis lets you read off more and more correct decimal digits. The three methods below differ only in how cleverly they turn the current guess xn into the next, better guess xn+1.
A secant line through two nearby points on a curve rotating to become the tangent line as the step size shrinks to zero, illustrating the geometric idea behind Newton's method.
Drag the secant line's step size h toward zero and watch it settle onto the tangent line at x0 with slope f′(x0): this is exactly the tangent line that Newton's method follows downhill to its next guess x1=x0−f′(x0)f(x0), instead of the cruder secant slope hf(x0+h)−f(x0).
UndergraduateDefinition: three root-finding methods
Definition: Bisection method
If a continuous function f satisfies f(a)f(b)<0 on an interval [a,b], the Intermediate Value Theorem guarantees a root inside. Bisection halves this interval at every step: compute the midpoint c=2a+b, evaluate f(c), then keep whichever half still has a sign change and repeat.
∣xn−r∣≤2n+1b−a
Here ∣xn−r∣≤2n+1b−a bounds how far the n-th midpoint xn can be from the true root r: since the interval width L=b−a halves at every single step, the worst-case error is cut in half too, so after only n=4 steps the uncertainty shrinks to L/32. This guaranteed, predictable shrink rate is the whole appeal of bisection — it never fails to converge, though it is slow.
Definition: Newton's method
Newton's method replaces the curve near xn by its tangent line y=f(xn)+f′(xn)(x−xn) and takes the next guess xn+1 to be where that tangent line crosses zero, giving the iteration xn+1=xn−f′(xn)f(xn). It needs the derivative f′ at every step but converges far faster than bisection when it works.
xn+1=xn−f′(xn)f(xn)
A third viewpoint unifies both: rewrite the equation as a fixed-point problem x=g(x) for some function g, so that a root of f becomes a fixed point of g, and iterate xn+1=g(xn) starting from any x0. Both bisection and Newton's method are special cases of this idea with different choices of g.
Let f be continuous on [a,b] with f(a)f(b)<0. Then the bisection method produces midpoints xn=2an+bn with xn→r for some root r in [a,b], and the error after n steps satisfies ∣xn−r∣≤2n+1b−a.
Why is it true?
Every step traps the root inside a shrinking box, and a box that shrinks to a point with a root always inside it must shrink onto the root itself.
Proof
Step 1 (the invariant). Set a0=a, b0=b. At step n, we maintain the invariant that f(an)f(bn)<0, i.e. the root is trapped somewhere in [an,bn]. This holds initially by hypothesis. Given [an,bn], compute the midpoint xn=2an+bn and evaluate f(xn): if it has the opposite sign to f(an) set an+1=an,bn+1=xn, otherwise set an+1=xn,bn+1=bn (if f(xn)=0 exactly, xn is the root and the process stops). Either way f(an+1)f(bn+1)<0 again, so the invariant is preserved by induction.
Step 2 (shrinking width). By construction each new interval is exactly half the previous one, so bn−an=2nb−a for every n≥0. Since the root r lies in [an,bn] at every step (by Step 1), and the midpoint xn also lies in [an,bn], both are within the same interval of width 2nb−a of each other, so ∣xn−r∣≤2nb−a already holds; a slightly sharper count (measuring from the midpoint to either endpoint) gives the stated bound ∣xn−r∣≤2n+1b−a.
Step 3 (convergence). Since 2n+1b−a→0 as n→∞, the squeeze from Step 2 forces xn→r. No continuity of f beyond the initial sign condition is even needed for this part — only for guaranteeing a root existed inside [a,b] to begin with, which is the Intermediate Value Theorem applied at step 0.
Suppose f is twice continuously differentiable near a root r with f′(r)=0. Then there is a neighborhood of r such that, if the Newton iteration starts inside it, the iterates converge to r and satisfy ∣xn+1−r∣≤C∣xn−r∣2 for a constant C=2min∣f′∣max∣f′′∣ (the maximum and minimum taken over that neighborhood).
Why is it true?
The tangent line is such a good approximation to a smooth curve that the error it makes is proportional to the square of the distance already traveled, so each correct digit roughly doubles the number of correct digits at the next step.
Proof
Step 1 (Taylor expand around the current guess). Since f is twice differentiable, Taylor's theorem with the Lagrange remainder gives f(r)=f(xn)+f′(xn)(r−xn)+21f′′(ξn)(r−xn)2 for some ξn between xn and r. This is exact, not an approximation, because the remainder term carries the full second-order error.
Step 2 (substitute the root condition). Since f(r)=0, the left side vanishes, leaving 0=f(xn)+f′(xn)(r−xn)+21f′′(ξn)(r−xn)2. Dividing through by f′(xn) (nonzero near r since f′(r)=0 and f′ is continuous) isolates r−xn: 0=f′(xn)f(xn)+(r−xn)+2f′(xn)f′′(ξn)(r−xn)2.
Step 3 (recognize the Newton step). Rearranging, r−(xn−f′(xn)f(xn))=−2f′(xn)f′′(ξn)(r−xn)2. The left-hand parenthesis is exactly the Newton update xn+1, so with en=xn−r this reads r−xn+1=−2f′(xn)f′′(ξn)en2, i.e. en+1=−2f′(xn)f′′(ξn)en2.
Step 4 (bound the constant). Taking absolute values and bounding ∣f′′(ξn)∣ and 1/∣f′(xn)∣ by their extreme values max∣f′′∣ and 1/min∣f′∣ on the neighborhood gives ∣xn+1−r∣≤C∣xn−r∣2 with C=2min∣f′∣max∣f′′∣. Once C∣x0−r∣<1, this recursion forces ∣xn−r∣ to shrink to 0, proving convergence, and the squaring in ∣xn+1−r∣≤C∣xn−r∣2 is exactly the quadratic rate.
Let g:[a,b]→[a,b] be continuously differentiable with ∣g′(x)∣≤L<1 for all x∈[a,b]. Then g has a unique fixed point r in [a,b], and for every starting point x0∈[a,b] the iteration xn+1=g(xn) converges to r with ∣xn−r∣≤Ln∣x0−r∣.
Why is it true?
A slope smaller than one in absolute value means every application of g squeezes points closer together, so no matter where you start, repeated squeezing must collapse the whole interval onto a single point.
Proof
Step 1 (existence via the intermediate value theorem). Let h(x)=g(x)−x. Since g(a)∈[a,b] we have g(a)≥a so h(a)≥0, and similarly g(b)≤b gives h(b)≤0. Since h is continuous, the Intermediate Value Theorem gives some r with h(r)=0, i.e. g(r)=r: a fixed point exists.
Step 2 (uniqueness via the mean value theorem). Suppose r1,r2∈[a,b] are both fixed points with r1=r2. The Mean Value Theorem gives some c between them with g(r1)−g(r2)=g′(c)(r1−r2); since g(r1)=r1 and g(r2)=r2, this reads r1−r2=g′(c)(r1−r2), so ∣r1−r2∣=∣g′(c)∣∣r1−r2∣≤L∣r1−r2∣. Since L<1 and ∣r1−r2∣>0, this is a contradiction, so r1=r2.
Step 3 (contraction at every step). For any xn∈[a,b], apply the Mean Value Theorem to g(xn)−g(r): there is some cn between xn and r with g(xn)−g(r)=g′(cn)(xn−r). Since g(r)=r and xn+1=g(xn), the left side is xn+1−r, so ∣xn+1−r∣=∣g′(cn)∣∣xn−r∣≤L∣xn−r∣.
Step 4 (iterate the contraction). Applying Step 3 repeatedly from n=0 gives ∣x1−r∣≤L∣x0−r∣, then ∣x2−r∣≤L∣x1−r∣≤L2∣x0−r∣, and inductively ∣xn−r∣≤Ln∣x0−r∣ for every n. Since 0≤L<1, the right side tends to 0 as n→∞, proving xn→r.
UndergraduateReal-World Applications and Worked Examples
Root-finding is the hidden engine behind countless calculations that have no closed-form answer. Engineers use Newton's method to solve nonlinear systems in structural and circuit design; finance uses it to back out an unknown interest rate from a bond price or an implied volatility from an option price; computer graphics uses it to intersect rays with implicit surfaces; and every scientific calculator computes 2 or a cube root by running a few steps of Newton's method internally. Bisection, being foolproof, is the fallback used inside root-finding libraries whenever Newton's method risks diverging.
Example: Bisection for a cubic equation with no algebraic root formula
A mechanical system's equilibrium position satisfies x3−x−2=0. Using the interval [1,2] (where f(1)=−2<0 and f(2)=4>0), perform two bisection steps and report the resulting midpoint x2.
Solution
Step 1: compute the first midpoint. x0=21+2=1.5, and f(1.5)=1.53−1.5−2=−0.125<0, so the root lies in [1.5,2] since f changes sign there (f(1.5)<0, f(2)>0).
Step 2: compute the second midpoint. x1=21.5+2=1.75, and f(1.75)=1.753−1.75−2=1.609375>0, so the root lies in [1.5,1.75].
Step 3: compute x2. x2=21.5+1.75=1.625.
Step 4: interpret. After only two steps the search interval has shrunk from width 1 to width 0.25, and x2=1.625 is already within 0.125 of the true root r≈1.5214, consistent with the error bound ∣x2−r∣≤232−1=0.125 from the bisection theorem.
Example: Newton's method computing a square root by hand
Before calculators, engineers computed square roots this way: to find 5, apply Newton's method to f(x)=x2−5 starting from x0=2, and compute x1 and x2.
Solution
Step 1: set up the iteration. Here f(x)=x2−5 and f′(x)=2x, so the Newton update is xn+1=xn−2xnxn2−5.
Step 2: compute x1. With x0=2: x1=2−2⋅222−5=2−4−1=2.25.
Step 3: compute x2. With x1=2.25: x2=2.25−2⋅2.252.252−5=2.25−4.50.0625≈2.236111.
Step 4: interpret. The true value is 5≈2.236068, so x2 is already correct to four decimal places after just two steps — the number of correct digits roughly doubled from x1 to x2, the signature of quadratic convergence proved above.
Starting bisection on [a,b]=[0,1] and performing n=5 iterations, what is the guaranteed bound on ∣x5−r∣?
Which formula correctly gives one step of Newton's method?
A bond trader uses Newton's method to solve a nonlinear pricing equation P(y)=0 for the yield y, starting from a guess y0. Which situation is most likely to make the iteration fail to converge?
For the fixed-point iteration xn+1=g(xn) on [a,b] to be guaranteed to converge to a fixed point for any starting x0∈[a,b], which condition is required?