Chapter 02
Medium

Root-Finding Algorithms

00 · Symbol Glossary

$x^{*}$x star — a root

A number satisfying f(x∗)=0f(x^{*})=0. The algorithms of this chapter build a sequence meant to converge to some x∗x^{*}. A root is simple when ff is differentiable there and f′(x∗)≠0f'(x^{*})\neq 0.

$[a_n,b_n]$Bracket — an interval known to contain a root

A closed interval on which a continuous ff changes sign, so the intermediate-value theorem supplies at least one root inside. Bisection replaces the bracket by one of its halves and never lets the sign change escape.

$x=g(x)$Fixed-point form of an equation

A rewriting of f(x)=0f(x)=0 as "the number equals its own image under gg." The associated iteration is the map xn+1=g(xn)x_{n+1}=g(x_n). Different rewritings of the same equation are different maps.

$L$L — a Lipschitz constant

A number such that ∣g(x)−g(y)∣≤L∣x−y∣|g(x)-g(y)|\le L|x-y| for all x,yx,y in the interval under study. When L<1L<1, gg is a contraction: it pulls points closer together by at least the factor LL.

$x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)}$Newton update

The next guess is the place where the tangent line to y=f(x)y=f(x) at xnx_n crosses the horizontal axis. Calculus 05 drew that tangent. This chapter studies the speed of the resulting sequence, and the ways the step can fail.

$p,\ C$Order of convergence and its asymptotic constant

The error en=xn−x∗e_n=x_n-x^{*} has order p≥1p\ge 1 with asymptotic constant CC when ∣en+1∣/∣en∣p→C|e_{n+1}|/|e_n|^{p}\to C with 0<C<∞0<C<\infty. Order 11 is linear convergence and then requires C<1C<1. Order 22 is quadratic convergence.

$|f(x_n)|$Residual — the function value at the current guess

How far f(xn)f(x_n) still sits from 00. A small residual is one of three stopping tests in this chapter. It measures the equation, which is a different number from the distance ∣xn−x∗∣|x_n-x^{*}|.

$m$m — multiplicity of a root

The positive integer such that f(x)=(x−x∗)mh(x)f(x)=(x-x^{*})^{m}h(x) with hh continuous and h(x∗)≠0h(x^{*})\neq 0. Simple roots have m=1m=1. For m≥2m\ge 2 the Newton map converges more slowly, at linear rate (m−1)/m(m-1)/m for a pure power.


01 · Solving a Continuous Equation

The problem of this chapter is: given a continuous real function ff, find a number x∗x^{*} with

f(x∗)=0f(x^{*})=0

Polynomials of degree four or less have radical formulas, and a few transcendental equations can be rearranged by hand. Most equations that arise from a derivative set to zero, from a balance of two smooth quantities, or from matching a model to a number, do not. The useful substitute for a closed form is a sequence x0,x1,x2,…x_0,x_1,x_2,\ldots together with a theorem that says what the sequence converges to, how fast, and from which starting values.

Every method below is an iterative map. A rule TT produces the next object from the previous one: a new number xn+1=T(xn)x_{n+1}=T(x_n), or a new bracket from an old bracket. The mathematical questions are always the same. Does the sequence stay defined? Does it converge? Is the limit a root? How small is ∣xn−x∗∣|x_n-x^{*}| after nn steps, and which hypotheses does that bound use?

Existence is settled before any map is chosen. The intermediate-value theorem says that if ff is continuous on a closed bounded interval [a,b][a,b] and f(a)f(a) and f(b)f(b) have opposite signs, then at least one root lies in (a,b)(a,b). That sign condition is written f(a)f(b)<0f(a)f(b)<0. Continuity is part of the hypothesis. On [−1,1][-1,1], the jump that equals −1-1 for x<0x<0 and 11 for x≥0x\ge 0 changes sign and never hits 00.

Definition — Simple Root

Suppose ff is differentiable at x∗x^{*}. The root x∗x^{*} is simple when f(x∗)=0f(x^{*})=0 and f′(x∗)≠0f'(x^{*})\neq 0. It has multiplicity m≥2m\ge 2 when ff can be factored as f(x)=(x−x∗)mh(x)f(x)=(x-x^{*})^{m}h(x) with hh continuous at x∗x^{*} and h(x∗)≠0h(x^{*})\neq 0. A simple root crosses or touches the axis with nonzero slope. A multiple root has a horizontal tangent.

Plain language: a simple root is a meeting with the axis that still has a tilt. Just to one side the graph is positive and just to the other it is negative, because the slope at the meeting is not zero. A multiple root is a flatter meeting: the graph touches the axis with a horizontal tangent, and the sign need not change at all.


02 · Bisection and a Guaranteed Bracket

Bisection turns the intermediate-value theorem into a sequence of brackets whose lengths form a geometric sequence.

Definition — Bisection

Let ff be continuous on [a,b][a,b] with f(a)f(b)<0f(a)f(b)<0. Set a0=aa_0=a and b0=bb_0=b. Given a bracket [an,bn][a_n,b_n] on which ff changes sign, let cn=(an+bn)/2c_n=(a_n+b_n)/2 be its midpoint.

  • If f(cn)=0f(c_n)=0, then cnc_n is a root and the construction stops.
  • If f(an)f(cn)<0f(a_n)f(c_n)<0, the next bracket is [an,cn][a_n,c_n].
  • Otherwise f(cn)f(bn)<0f(c_n)f(b_n)<0, and the next bracket is [cn,bn][c_n,b_n].

Plain language: start with an interval whose ends give opposite signs, so a root is trapped inside. Cut the interval in half, keep the half whose ends still give opposite signs, and throw the other half away. The trapped root stays inside, and the interval that holds it is half as long.

Compare: halving a bracket

Bisection is repeatedly halving a bracket that still holds the root. The midpoint is a sign test, not the answer. Whichever half still changes sign becomes the next bracket, and the root cannot slip out of it.

Proof — The brackets shrink to a root

The endpoints stay ordered, an≤bna_n\le b_n, and the length is exactly

bn−an=b−a2nb_n-a_n=\frac{b-a}{2^{n}}

Each step replaces one endpoint by the midpoint, so (an)(a_n) is increasing and bounded above, and (bn)(b_n) is decreasing and bounded below. A monotone bounded sequence of real numbers converges. The two limits agree, because the gap between ana_n and bnb_n tends to 00. Call the common limit LL. Then LL lies in every bracket.

While the construction has not already stopped on an exact root, f(an)f(bn)<0f(a_n)f(b_n)<0. Continuity sends f(an)f(a_n) and f(bn)f(b_n) both to f(L)f(L), so the products tend to f(L)2f(L)^{2}. The limit of negative numbers is at most 00, and a square that is at most 00 is 00. Hence f(L)=0f(L)=0.

Plain language: the two endpoints march toward each other, the gap between them is cut in half at every step, and they meet at one number. The signs stayed opposite the whole way, so that meeting point has to be a root.

The nested brackets pick out one root of ff on the original interval. If ff has several roots in [a,b][a,b], the signs at the midpoints decide which one remains. The midpoint cnc_n and the root LL are both inside [an,bn][a_n,b_n], so

∣cn−L∣≤bn−an2=b−a2n+1|c_n-L|\le \frac{b_n-a_n}{2}=\frac{b-a}{2^{n+1}}

This is an upper bound that holds at every step, with no extra hypothesis on f′f'. To force the bound under a prescribed tolerance ε>0\varepsilon>0, choose nn so that (b−a)/2n+1<ε(b-a)/2^{n+1}<\varepsilon, that is

n>log⁡2 ⁣(b−aε)−1n>\log_2\!\left(\frac{b-a}{\varepsilon}\right)-1

That integer is known before the first midpoint is computed. The hypotheses are the continuity of ff and one sign change, both checkable at the start.

Definition — Linear Convergence of a Bound

A positive sequence (En)(E_n) converges linearly with rate r∈(0,1)r\in(0,1) when En+1=r EnE_{n+1}=r\,E_n for every nn, or more generally when En+1/En→rE_{n+1}/E_n\to r. The bisection bound En=(b−a)/2n+1E_n=(b-a)/2^{n+1} has rate 1/21/2: each step buys exactly one factor of two, which is about 0.300.30 extra decimal digits.

Plain language: a bound converges linearly when each new allowance is a fixed fraction of the previous one. For bisection that fraction is one half. The guarantee gets steadily tighter — about three tenths of a new decimal digit each step — and the count of steps is known before any midpoint is computed.

Section 04 measures the error en=xn−x∗e_n=x_n-x^{*} itself. For bisection that ratio need not tend to 1/21/2: the root can sit anywhere inside the current bracket, so a midpoint can land almost on it and the next midpoint can miss by nearly the whole half-length. The quantity that is guaranteed to halve is the bound.

Example — Three bisection steps for $x^2-2$ on $[1,2]$

Here f(x)=x2−2f(x)=x^2-2, f(1)=−1f(1)=-1, and f(2)=2f(2)=2. The length starts at 11.

c0=32, f ⁣(32)=14>0,c1=54, f ⁣(54)=−716<0,c2=118, f ⁣(118)=−764<0c_0=\frac32,\ f\!\left(\frac32\right)=\frac14>0,\quad c_1=\frac54,\ f\!\left(\frac54\right)=-\frac{7}{16}<0,\quad c_2=\frac{11}{8},\ f\!\left(\frac{11}{8}\right)=-\frac{7}{64}<0

The signs send the bracket through [1, 3/2][1,\ 3/2], then [5/4, 3/2][5/4,\ 3/2], and then [11/8, 3/2][11/8,\ 3/2], of length 1/81/8. The bound of this section gives ∣c2−2∣≤1/8|c_2-\sqrt{2}|\le 1/8. The actual gap is about 0.0390.039, which sits inside the bound, as a bound requires. The same formula ∣cn−2∣≤2−(n+1)|c_n-\sqrt{2}|\le 2^{-(n+1)} drops below 10−310^{-3} at n=9n=9: the bound is then 1/10241/1024, and 1/5121/512 is still too large.

❌ Starting bisection on an interval that does not change sign

Take f(x)=x2f(x)=x^2 on [−1,1][-1,1]. A root sits at 00, and f(−1)f(1)=1>0f(-1)f(1)=1>0. Every midpoint test is looking for a sign change that the bracket does not contain in its endpoint values. The procedure as stated never begins.

Why it breaks: the intermediate-value theorem was used in the form "opposite signs, hence a root." The converse is false. A continuous function can touch zero and stay non-negative, and a bracket can hide two roots, or a double root, behind endpoints of equal sign. Squaring a simple factor produces exactly this touch.

Consequence: bisection is a method for a bracket you already hold, not a search of the whole line. Producing the first sign change is a separate step. If ff does not change sign on any interval you are willing to try, this chapter's guarantee is silent, and a multiple root is a typical reason.


03 · Fixed-Point Iteration and Contractions

Suppose a root of ff is rewritten as a number that gg leaves fixed.

Definition — Fixed Point and the Iteration

A fixed point of gg is a number x∗x^{*} with x∗=g(x∗)x^{*}=g(x^{*}). Fixed-point iteration from a start x0x_0 is the sequence

xn+1=g(xn)x_{n+1}=g(x_n)

If the sequence converges to LL and gg is continuous at LL, then L=g(L)L=g(L). Continuity lets the limit pass inside gg: the limit of g(xn)g(x_n) is g(L)g(L), and it is also the limit of xn+1x_{n+1}, which is LL.

Plain language: a fixed point is a number that gg leaves where it is. Iteration feeds each output straight back in as the next input. If the numbers settle and gg does not jump at the settling point, that point is a fixed point: the output of the limit and the limit of the outputs are the same number.

A fixed point is where the graph of gg crosses the diagonal y=xy=x. Convergence belongs to the chosen gg. One equation has many rewritings.

Example — Three maps for one quadratic

The positive root of x2−x−1=0x^2-x-1=0 is φ=(1+5)/2≈1.618\varphi=(1+\sqrt{5})/2\approx 1.618, and φ\varphi satisfies φ2=φ+1\varphi^2=\varphi+1. Three continuous rearrangements are

g1(x)=1+1x,g3(x)=x+1,g2(x)=x2−1g_1(x)=1+\frac{1}{x},\qquad g_3(x)=\sqrt{x+1},\qquad g_2(x)=x^2-1

each defined near φ\varphi, with the square root the non-negative one. Differentiating and using φ2=φ+1\varphi^2=\varphi+1 gives

∣g1′(φ)∣=3−52≈0.382,∣g3′(φ)∣=5−14≈0.309,∣g2′(φ)∣=1+5≈3.236|g_1'(\varphi)|=\frac{3-\sqrt{5}}{2}\approx 0.382,\qquad |g_3'(\varphi)|=\frac{\sqrt{5}-1}{4}\approx 0.309,\qquad |g_2'(\varphi)|=1+\sqrt{5}\approx 3.236

The first two derivatives are strictly smaller than 11 in absolute value. The third is strictly larger than 11. Starting at 1.61.6, the map g1g_1 produces 1.6251.625, then 1.615381.61538, then 1.619051.61905, walking toward φ\varphi. The map g2g_2 produces 1.561.56, 1.4341.434, 1.0551.055, 0.1130.113, −0.987-0.987, and then values alternating near 00 and −1-1. Both maps were built from the same equation. Only the first stays with the root.

Definition — Lipschitz Condition and Contraction

A function gg on an interval II satisfies a Lipschitz condition with constant LL when

∣g(x)−g(y)∣≤L ∣x−y∣for all x,y∈I|g(x)-g(y)|\le L\,|x-y|\qquad\text{for all }x,y\in I

If L<1L<1, then gg is a contraction on II. If gg is differentiable on II and ∣g′(x)∣≤L|g'(x)|\le L for every x∈Ix\in I, the mean-value theorem supplies the Lipschitz condition: g(x)−g(y)=g′(ξ)(x−y)g(x)-g(y)=g'(\xi)(x-y) for some ξ\xi between xx and yy, so the absolute value is at most L∣x−y∣L|x-y|.

Plain language: a Lipschitz condition caps how far apart the outputs of gg can be. They stretch by at most a fixed factor LL times the gap between the inputs. When L<1L<1, gg is a contraction: every pair of points on the interval is pulled strictly closer, and the same factor works everywhere on that interval.

Compare: a map that pulls points closer

A contraction is a map that always pulls points closer. The distance between g(x)g(x) and g(y)g(y) is at most LL times the distance between xx and yy, with L<1L<1. Continuity only keeps nearby points nearby. A contraction shortens every gap by one uniform factor.

Proof — Banach Fixed-Point Theorem on a Closed Interval

Let gg send a closed bounded interval [a,b][a,b] into itself, and let gg be a contraction on [a,b][a,b] with constant L<1L<1.

The image condition keeps every iterate inside [a,b][a,b]: if x0∈[a,b]x_0\in[a,b], then x1=g(x0)∈[a,b]x_1=g(x_0)\in[a,b], and so on. The contraction turns one step into the next,

∣xk+1−xk∣=∣g(xk)−g(xk−1)∣≤L ∣xk−xk−1∣≤Lk∣x1−x0∣|x_{k+1}-x_k|=|g(x_k)-g(x_{k-1})|\le L\,|x_k-x_{k-1}|\le L^{k}|x_1-x_0|

For m>nm>n, the telescope from xnx_n to xmx_m is a piece of a geometric series:

∣xm−xn∣≤(Ln+Ln+1+⋯+Lm−1) ∣x1−x0∣≤Ln1−L ∣x1−x0∣|x_m-x_n|\le \big(L^{n}+L^{n+1}+\cdots+L^{m-1}\big)\,|x_1-x_0|\le \frac{L^{n}}{1-L}\,|x_1-x_0|

The right-hand side tends to 00 as n→∞n\to\infty, uniformly in mm. A sequence of real numbers whose gaps from index nn onward are dominated by a convergent geometric series converges to some limit x∗x^{*}. The limit lies in [a,b][a,b] because the interval is closed. Lipschitz continuity gives ∣g(xn)−g(x∗)∣≤L∣xn−x∗∣→0|g(x_n)-g(x^{*})|\le L|x_n-x^{*}|\to 0, so g(xn)→g(x∗)g(x_n)\to g(x^{*}). The left side is xn+1x_{n+1}, whose limit is x∗x^{*}. Therefore x∗=g(x∗)x^{*}=g(x^{*}). If y=g(y)y=g(y) as well, then ∣x∗−y∣=∣g(x∗)−g(y)∣≤L∣x∗−y∣|x^{*}-y|=|g(x^{*})-g(y)|\le L|x^{*}-y|, so (1−L)∣x∗−y∣≤0(1-L)|x^{*}-y|\le 0 and y=x∗y=x^{*}.

The same geometric estimate yields the rate. By induction ∣xn−x∗∣≤Ln∣x0−x∗∣|x_n-x^{*}|\le L^{n}|x_0-x^{*}|, and the latest step controls the unknown gap:

∣x∗−xn+1∣≤L1−L ∣xn+1−xn∣|x^{*}-x_{n+1}|\le \frac{L}{1-L}\,|x_{n+1}-x_n|

Plain language: if a contraction sends a closed interval into itself, repeated application is squeezed toward a single point inside that interval, and that point is the only number the map leaves fixed. The latest step already reports the remaining gap: it is at most L/(1−L)L/(1-L) times the size of that step.

For g1(x)=1+1/xg_1(x)=1+1/x on I=[3/2, 2]I=[3/2,\ 2] both hypotheses hold. The map is decreasing from g1(3/2)=5/3g_1(3/2)=5/3 to g1(2)=3/2g_1(2)=3/2, so the image [3/2, 5/3][3/2,\ 5/3] sits inside II, and ∣g1′(x)∣=1/x2≤4/9|g_1'(x)|=1/x^2\le 4/9 on II. The theorem supplies a unique fixed point in II, namely φ\varphi, and a geometric rate (4/9)n(4/9)^n.

Local attraction from the derivative at the fixed point

Suppose g′g' is continuous, g(x∗)=x∗g(x^{*})=x^{*}, and ∣g′(x∗)∣<1|g'(x^{*})|<1. Choose LL with ∣g′(x∗)∣<L<1|g'(x^{*})|<L<1. Continuity of g′g' gives a small closed interval II about x∗x^{*} on which ∣g′∣≤L|g'|\le L. On that interval ∣g(x)−x∗∣=∣g(x)−g(x∗)∣≤L∣x−x∗∣|g(x)-x^{*}|=|g(x)-g(x^{*})|\le L|x-x^{*}|, so gg sends II into itself. The Banach theorem on II says that every start in II converges to x∗x^{*}. If instead ∣g′(x∗)∣>1|g'(x^{*})|>1, no such L<1L<1 exists on any neighborhood, and starts other than x∗x^{*} itself are pushed away at the first step: the mean-value theorem gives ∣x1−x∗∣≈∣g′(x∗)∣ ∣x0−x∗∣>∣x0−x∗∣|x_1-x^{*}|\approx |g'(x^{*})|\,|x_0-x^{*}|>|x_0-x^{*}|. The borderline ∣g′(x∗)∣=1|g'(x^{*})|=1 is not covered by either conclusion.

❌ Cycling where the derivative at the fixed point has absolute value one

The map g(x)=2/xg(x)=2/x has fixed point 2\sqrt{2}, because x=2/xx=2/x is x2=2x^2=2 for x>0x>0. From the start x0=1x_0=1 the iteration is 2, 1, 2, 1, …2,\ 1,\ 2,\ 1,\ \ldots and never approaches 2\sqrt{2}.

Why it breaks: g′(x)=−2/x2g'(x)=-2/x^2 and ∣g′(2)∣=1|g'(\sqrt{2})|=1, so the strict contraction test fails at the root itself. On the interval [1,2][1,2] the map does send the interval to itself, but the best Lipschitz constant is 22, from ∣g′(1)∣=2|g'(1)|=2. The Banach hypothesis L<1L<1 is false, and the iteration has a second orbit, the two-cycle, that the fixed-point theorem says nothing to prevent.

Consequence: algebra can exhibit a fixed point while the iteration diverges, cycles, or converges to a different fixed point of the same gg. The derivative, or a Lipschitz constant on a stated interval, is the part of the work that decides which.

One more identity is worth having before Newton's method, because Newton is a fixed-point map with a special derivative. If g′g' is continuous at a fixed point and the iteration converges to it, then

xn+1−x∗xn−x∗=g′(ξn)→g′(x∗)\frac{x_{n+1}-x^{*}}{x_n-x^{*}}=g'(\xi_n)\to g'(x^{*})

for some ξn\xi_n between xnx_n and x∗x^{*}, by the mean-value theorem. Whenever g′(x∗)≠0g'(x^{*})\neq 0, the errors form a linear sequence with rate ∣g′(x∗)∣|g'(x^{*})|. Whenever g′(x∗)=0g'(x^{*})=0, that rate is 00: the error shrinks faster than every linear rate. Newton's method is built so that this second case happens at a simple root.


04 · Order of Convergence

Definition — Order and Asymptotic Constant

Let en=xn−x∗e_n=x_n-x^{*} and suppose en≠0e_n\neq 0 for every nn, with en→0e_n\to 0. The convergence has order p≥1p\ge 1 and asymptotic constant CC when

lim⁡n→∞∣en+1∣∣en∣p=Cfor some C with 0<C<∞\lim_{n\to\infty}\frac{|e_{n+1}|}{|e_n|^{p}}=C\qquad\text{for some }C\text{ with }0<C<\infty

Order 11 is linear convergence, and it describes a sequence that actually tends to zero only when C<1C<1. Order 22 is quadratic convergence. The convergence is superlinear when ∣en+1∣/∣en∣→0|e_{n+1}|/|e_n|\to 0, which holds for every order p>1p>1.

Plain language: the order is a report on how the error shrinks each step. Order 11 multiplies the error by roughly the same factor CC every time, and the error actually tends to zero only when that factor is smaller than 11. Order 22 squares the error, up to the constant CC, so once the miss is a small fraction the number of correct digits roughly doubles.

Compare: how the error shrinks

Order of convergence describes how the error shrinks each step. Linear convergence trims a fixed share of whatever error remains. Quadratic convergence replaces the error by something on the scale of its square: a miss of a thousandth can become a miss of about a millionth. The asymptotic constant CC is the multiplier in front of that shrinkage once the guesses are close.

Linear convergence multiplies the error by about the same factor CC each step, so the number of correct digits grows by a fixed amount. Quadratic convergence squares the error, up to CC, and once the error is below 11 that roughly doubles the number of correct digits. The fixed-point identity of Section 03 is the order statement for a map with g′(x∗)≠0g'(x^{*})\neq 0: the order is 11 and C=∣g′(x∗)∣C=|g'(x^{*})|. If g′(x∗)=0g'(x^{*})=0 and g′′g'' is continuous, one more term of Taylor's theorem raises the order. Then g(x)=g(x∗)+g′(x∗)(x−x∗)+12g′′(ξ)(x−x∗)2g(x)=g(x^{*})+g'(x^{*})(x-x^{*})+\frac12 g''(\xi)(x-x^{*})^2, so en+1=12g′′(ξn) en2e_{n+1}=\frac12 g''(\xi_n)\,e_n^2 and

∣en+1∣∣en∣2→12 ∣g′′(x∗)∣\frac{|e_{n+1}|}{|e_n|^{2}}\to \frac12\,|g''(x^{*})|

provided the limit on the right is positive. The order is then exactly 22. If that second derivative also vanishes, the order is higher still. Newton's method is the systematic way to choose a gg whose first derivative vanishes at the root.


05 · Newton's Method and Quadratic Convergence

Calculus 05 already drew the picture. The tangent line to y=f(x)y=f(x) at a guess xnx_n is y=f(xn)+f′(xn)(x−xn)y=f(x_n)+f'(x_n)(x-x_n). Setting y=0y=0 and solving for xx produces the next guess, provided the tangent is not horizontal.

Definition — Newton's Method

For ff differentiable and f′(xn)≠0f'(x_n)\neq 0,

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

Equivalently, xn+1=g(xn)x_{n+1}=g(x_n) with the Newton map g(x)=x−f(x)/f′(x)g(x)=x-f(x)/f'(x), defined wherever f′(x)≠0f'(x)\neq 0.

Plain language: at the current guess, draw the line that grazes the graph, and follow that line until it hits the horizontal axis. The hitting point is the next guess. In numbers, that is the current guess minus the height f(xn)f(x_n) divided by the slope f′(xn)f'(x_n).

Compare: follow the tangent to the axis

Newton's method follows the tangent until it hits the axis. For one step the curve is replaced by the straight line that matches its height and its slope at xnx_n. Where that line meets y=0y=0 is xn+1x_{n+1}. A horizontal tangent never meets the axis, so the step has nowhere to land.

The derivative of this particular gg explains the speed. Where f′f' is differentiable and nonzero,

g′(x)=f(x) f′′(x)(f′(x))2g'(x)=\frac{f(x)\,f''(x)}{\big(f'(x)\big)^{2}}

At a simple root the factor f(x∗)f(x^{*}) is zero and the denominator is not, so g′(x∗)=0g'(x^{*})=0. Section 04 then predicts quadratic convergence as soon as g′′g'' is continuous near x∗x^{*}, which for this gg follows from ff being three times continuously differentiable, or by the direct Taylor argument below, which needs only two continuous derivatives.

Proof — Quadratic Error for a Simple Root

Assume f(x∗)=0f(x^{*})=0, f′(x∗)≠0f'(x^{*})\neq 0, and f′′f'' continuous on a neighborhood of x∗x^{*}. Taylor expansion with remainder, centered at a current guess xnx_n near x∗x^{*}, gives a point ξn\xi_n between xnx_n and x∗x^{*} such that

0=f(x∗)=f(xn)+f′(xn)(x∗−xn)+12f′′(ξn)(x∗−xn)20=f(x^{*})=f(x_n)+f'(x_n)(x^{*}-x_n)+\frac12 f''(\xi_n)(x^{*}-x_n)^{2}

For xnx_n near x∗x^{*}, continuity of f′f' and f′(x∗)≠0f'(x^{*})\neq 0 keep f′(xn)≠0f'(x_n)\neq 0. Dividing by f′(xn)f'(x_n) and rearranging gives

en+1=f′′(ξn)2 f′(xn) en2e_{n+1}=\frac{f''(\xi_n)}{2\,f'(x_n)}\,e_n^{2}

On a small enough neighborhood one has ∣f′′∣≤M|f''|\le M and ∣f′∣≥m>0|f'|\ge m>0, so ∣en+1∣≤K∣en∣2|e_{n+1}|\le K|e_n|^{2} with K=M/(2m)K=M/(2m). Choose the neighborhood also small enough that K∣en∣≤1/2K|e_n|\le 1/2 throughout it, and start with x0x_0 inside it. Then ∣en+1∣≤12∣en∣|e_{n+1}|\le \tfrac12 |e_n|, so the iterates stay inside the neighborhood and en→0e_n\to 0. Once the error tends to zero, ξn→x∗\xi_n\to x^{*} and xn→x∗x_n\to x^{*}, and

∣en+1∣∣en∣2→∣f′′(x∗)2 f′(x∗)∣\frac{|e_{n+1}|}{|e_n|^{2}}\to \left|\frac{f''(x^{*})}{2\,f'(x^{*})}\right|

whenever f′′(x∗)≠0f''(x^{*})\neq 0. That limit is the asymptotic constant. If f′′(x∗)f''(x^{*}) happens to vanish, the order is higher than 22 and the same proof still gives convergence.

Plain language: near a simple root the tangent is a faithful stand-in for the graph, and the leftover miss is proportional to the square of the current miss. Each successful step therefore squares the error. The correct digits start to double once the guess is close enough to stay in that neighborhood.

Example — Square root of two, with an exact ratio

Let f(x)=x2−2f(x)=x^2-2, so f′(x)=2xf'(x)=2x and f′′(x)=2f''(x)=2. From x0=1x_0=1,

x1=32,x2=1712,x3=577408x_1=\frac32,\qquad x_2=\frac{17}{12},\qquad x_3=\frac{577}{408}

Because f′′f'' is the constant 22, the error identity is exact: en+1=en2/(2xn)e_{n+1}=e_n^{2}/(2x_n). Thus ∣e1∣/∣e0∣2=1/2|e_1|/|e_0|^{2}=1/2 and ∣e2∣/∣e1∣2=1/3|e_2|/|e_1|^{2}=1/3. With 2≈1.414213562\sqrt{2}\approx 1.414213562 the absolute errors are about 4.14×10−14.14\times 10^{-1}, 8.58×10−28.58\times 10^{-2}, 2.45×10−32.45\times 10^{-3}, and 2.12×10−62.12\times 10^{-6}. The asymptotic constant 1/(22)≈0.35361/(2\sqrt{2})\approx 0.3536 equals ∣f′′(2)/(2f′(2))∣|f''(\sqrt{2})/(2f'(\sqrt{2}))|, and the third ratio 6/17≈0.35296/17\approx 0.3529 has already met it.

❌ A horizontal tangent at a non-root

The update divides by f′(xn)f'(x_n). Calculus 05 recorded f(x)=x3−3xf(x)=x^3-3x at x0=1x_0=1: there f′(1)=0f'(1)=0 and f(1)=−2≠0f(1)=-2\neq 0, so the Newton formula asks for a division by zero.

Why it breaks: the tangent line at x0x_0 is horizontal, and a horizontal line at height −2-2 does not meet the axis. There is no next real iterate. A horizontal tangent at the root itself is the multiple-root case of Section 08: the formula is undefined at x∗x^{*}, and where it is defined the order drops from 22 to 11.

Consequence: before a Newton step is legal, f′(xn)f'(x_n) has to be checked nonzero. A simple root guarantees that only in a neighborhood of x∗x^{*}, not at every guess on the line.

❌ A Newton orbit that cycles and never approaches a root

Let f(x)=x3−2x+2f(x)=x^3-2x+2. Then f′(x)=3x2−2f'(x)=3x^2-2. Starting at x0=0x_0=0,

x1=0−f(0)f′(0)=0−2−2=1,x2=1−f(1)f′(1)=1−11=0x_1=0-\frac{f(0)}{f'(0)}=0-\frac{2}{-2}=1,\qquad x_2=1-\frac{f(1)}{f'(1)}=1-\frac{1}{1}=0

The iteration alternates 0,1,0,1,…0,1,0,1,\ldots forever. Neither value is a root: f(0)=2f(0)=2 and f(1)=1f(1)=1.

Why it breaks: the quadratic-convergence theorem is a statement about starts inside some neighborhood of a simple root. It is silent about a start outside every such neighborhood. Here the Newton map sends 00 to 11 and 11 to 00, a periodic orbit of period 22. Along that orbit f′f' is −2-2 and 11, both nonzero, so every individual step is defined. Defined steps can still form a cycle.

Consequence: a derivative that never vanishes is not a convergence proof. Newton needs a start already close to a simple root, or some other structure that forces the iterates into that neighborhood. When that structure is absent, the sequence may cycle or march to infinity. Bisection, given a genuine bracket, cannot cycle. The price of its guarantee is the linear bound of Section 02.


06 · The Secant Method

Newton's step uses the slope of a tangent. Replacing that slope by the slope of the chord through the two latest guesses removes the need to differentiate ff.

Definition — Secant Method

From two starts x0x_0 and x1x_1 with f(x1)≠f(x0)f(x_1)\neq f(x_0),

xn+1=xn−f(xn) xn−xn−1f(xn)−f(xn−1)x_{n+1}=x_n-f(x_n)\,\frac{x_n-x_{n-1}}{f(x_n)-f(x_{n-1})}

The fraction is the reciprocal of the difference quotient (f(xn)−f(xn−1))/(xn−xn−1)(f(x_n)-f(x_{n-1}))/(x_n-x_{n-1}), which approximates f′(xn)f'(x_n). The formula is the Newton update with that approximation in place of f′(xn)f'(x_n).

Plain language: draw the straight line through the two latest guesses instead of the tangent, and take the place where that chord hits the axis. The slope of the chord stands in for f′(xn)f'(x_n), so the derivative is never required. If the two function values agree, the chord is horizontal and there is no next guess.

If f(xn)=f(xn−1)f(x_n)=f(x_{n-1}), the chord is horizontal and the next guess is undefined. Nothing in the formula forces xn+1x_{n+1} to lie between xn−1x_{n-1} and xnx_n, so the method does not maintain a sign-change bracket.

The order is derived from a two-step error relation. Under the same smoothness used for Newton, a simple root, and starts close enough to it, the chord error satisfies

en+1≈C en en−1,C=f′′(x∗)2 f′(x∗)e_{n+1}\approx C\,e_n\,e_{n-1},\qquad C=\frac{f''(x^{*})}{2\,f'(x^{*})}

The constant is the Newton constant. The product of two successive errors, rather than the square of one, is the footprint of a chord: each new error is proportional to both previous errors. To read an order off this relation, look for pp and K>0K>0 such that ∣en+1∣∼K∣en∣p|e_{n+1}|\sim K|e_n|^{p}. Then ∣en−1∣∼(∣en∣/K)1/p|e_{n-1}|\sim (|e_n|/K)^{1/p}. Substitute into ∣en+1∣≈∣C∣ ∣en∣ ∣en−1∣|e_{n+1}|\approx |C|\,|e_n|\,|e_{n-1}|:

∣en+1∣∣en∣p≈∣C∣ K−1/p ∣en∣1+1/p−p\frac{|e_{n+1}|}{|e_n|^{p}}\approx |C|\,K^{-1/p}\,|e_n|^{1+1/p-p}

The power of ∣en∣|e_n| has to be zero, otherwise the ratio tends to 00 or to ∞\infty and cannot tend to a positive finite limit. Hence p=1+1/pp=1+1/p, so p2−p−1=0p^2-p-1=0 and

p=1+52≈1.618p=\frac{1+\sqrt{5}}{2}\approx 1.618

Under the standard hypotheses — f′′f'' continuous, x∗x^{*} a simple root, and both starts close enough that the denominators stay nonzero — the secant method therefore converges superlinearly, of order equal to the golden ratio, strictly between the linear bound of bisection and the quadratic rate of Newton.

Example — Two secant steps for $x^2-2$

Take x0=1x_0=1, x1=2x_1=2, f(x)=x2−2f(x)=x^2-2, so f(x0)=−1f(x_0)=-1 and f(x1)=2f(x_1)=2. The chord through those two guesses meets the axis at 4/34/3; the next chord, through 22 and 4/34/3, meets it at 7/57/5:

x2=2−23=43,f ⁣(43)=−29,x3=43+115=75x_2=2-\frac23=\frac43,\qquad f\!\left(\frac43\right)=-\frac29,\qquad x_3=\frac43+\frac{1}{15}=\frac75

The errors against 2\sqrt{2} are about 0.0810.081 at x2x_2 and about 0.0140.014 at x3x_3. The drop is faster than halving and slower than the Newton drop from 3/23/2 to 17/1217/12 in Section 05, which is the order 1.6181.618 sitting between 11 and 22.

❌ Expecting a sign-change chord to move both ends of the bracket

Apply the bracket-preserving chord to f(x)=x2−2f(x)=x^2-2 on [1,2][1,2]. The first point is 4/34/3, where ff is negative, so the new bracket is [4/3, 2][4/3,\ 2]. The next point is 7/57/5, where ff is again negative, so the bracket is [7/5, 2][7/5,\ 2]. The right endpoint is still 22.

Why it breaks: f(x)=x2−2f(x)=x^2-2 is strictly convex, so on an interval where it changes sign the chord lies above the graph. The chord's root therefore lies to the left of 2\sqrt{2}, the new function value is negative, and the positive endpoint is never the one replaced. Every later bracket has the form [an, 2][a_n,\ 2] with ana_n increasing toward 2\sqrt{2} and the right end frozen.

Consequence: keeping the bracket restores a guarantee of convergence and gives up the golden-ratio order. With one end frozen, the errors behave linearly. The secant method of the definition above does not freeze an endpoint, and it also does not promise to stay inside [1,2][1,2]. A chord is not a bracket unless the update says so.


07 · When to Stop

Definition — Three Stopping Tests

For a tolerance ε>0\varepsilon>0, and a current pair of iterates,

  • Residual test: ∣f(xn)∣<ε|f(x_n)|<\varepsilon.
  • Absolute step test: ∣xn+1−xn∣<ε|x_{n+1}-x_n|<\varepsilon.
  • Relative step test: ∣xn+1−xn∣≤ε ∣xn+1∣|x_{n+1}-x_n|\le \varepsilon\,|x_{n+1}|, used when xn+1x_{n+1} is bounded away from zero.

Plain language: three different questions can stop the iteration. The residual asks whether the equation is already nearly true. The absolute step asks whether the latest move was tiny on its own. The relative step asks whether that move is tiny compared with the size of the guess. A yes to one of them is not, by itself, a certificate that the guess sits within ε\varepsilon of the root.

The residual asks how nearly the equation holds. The step tests ask how much the map is still moving. For a contraction, the Banach bound of Section 03 converts a step into a root error: ∣x∗−xn+1∣≤L∣xn+1−xn∣/(1−L)|x^{*}-x_{n+1}|\le L|x_{n+1}-x_n|/(1-L). A step smaller than ε\varepsilon does not mean a root error smaller than ε\varepsilon unless L/(1−L)L/(1-L) is taken into account. If L=4/9L=4/9, that factor is 4/54/5, and the step is already a faithful stand-in for the error. If L=0.99L=0.99, the factor is 9999, and a tiny step can hide a large remaining gap.

The residual is converted by the mean-value theorem. If f(x∗)=0f(x^{*})=0 and f′f' exists between xnx_n and x∗x^{*}, then f(xn)=f′(ξ)(xn−x∗)f(x_n)=f'(\xi)(x_n-x^{*}) for some ξ\xi, so

∣xn−x∗∣=∣f(xn)∣∣f′(ξ)∣|x_n-x^{*}|=\frac{|f(x_n)|}{|f'(\xi)|}

A small residual certifies a small root error when ∣f′∣|f'| is bounded below by a comfortable positive number near the root. A flat graph, ∣f′∣|f'| tiny, turns a modest residual into a large uncertainty in xx. A steep graph does the reverse: the residual can still look large when xnx_n is already close to x∗x^{*}.

Example — Residual and error on a flat graph and on a steep one

For f(x)=x3f(x)=x^3 at x=0.1x=0.1, the residual is ∣f(0.1)∣=0.001|f(0.1)|=0.001 and the root error is 0.10.1. The residual is one hundred times smaller than the error. For f(x)=1000(x−1)f(x)=1000(x-1) at x=1.001x=1.001, the residual is 11 and the root error is 0.0010.001. The residual is one thousand times larger than the error. In the first case a residual tolerance of 10−310^{-3} accepts a guess that is still a tenth away from the root. In the second, a residual tolerance of 10−310^{-3} rejects a guess that is already accurate to a thousandth.

Chapter 01 measured rounding by machine epsilon: a computed value of f(xn)f(x_n) agrees with the mathematical value only up to a small multiple of that epsilon, the multiple depending on how ff is built from arithmetic operations. A residual test with ε\varepsilon many times smaller than the rounding error in f(xn)f(x_n) is comparing the iteration with digits the evaluation does not contain. Likewise, once ∣xn+1−xn∣|x_{n+1}-x_n| drops to a few units in the last place of xnx_n, further steps are changes the number system cannot represent. The conditioning relation above says how that rounding enters the root. An error of size about machine epsilon in the value of ff is consistent with an error of size about machine epsilon divided by ∣f′(x∗)∣|f'(x^{*})| in the root. A simple root with a very small derivative is an ill-conditioned root: the iteration can be exactly the Newton map and the computed xnx_n can still be uncertain in digits that the stopping test appears to have settled.

Reading the residual and the step together uses both identities. A residual that shrinks while the step stays large fits a flat graph. A step that shrinks while the residual stays large fits a steep graph, or a stalled orbit such as the two-cycle of Section 05, where the step is eventually 11 and the residual is 11 or 22.


08 · Multiple Roots

Suppose f(x)=(x−x∗)mh(x)f(x)=(x-x^{*})^{m}h(x) with m≥2m\ge 2, hh smooth, and h(x∗)≠0h(x^{*})\neq 0. Then f(x∗)=f′(x∗)=0f(x^{*})=f'(x^{*})=0. The Newton update divides by a derivative that vanishes at the root, so the theorem of Section 05 does not apply. The iteration can still converge. The order drops.

For a pure power f(x)=(x−x∗)mf(x)=(x-x^{*})^{m} and xn≠x∗x_n\neq x^{*},

f(xn)f′(xn)=xn−x∗m\frac{f(x_n)}{f'(x_n)}=\frac{x_n-x^{*}}{m}

so the Newton map simplifies to g(x)=x−(x−x∗)/mg(x)=x-(x-x^{*})/m and g′(x)=(m−1)/mg'(x)=(m-1)/m. The error is exactly linear:

xn+1−x∗=m−1m (xn−x∗)x_{n+1}-x^{*}=\frac{m-1}{m}\,(x_n-x^{*})

The rate (m−1)/m(m-1)/m lies in (0,1)(0,1). A double root has rate 1/21/2, and a triple root has rate 2/32/3. The Newton derivative g′(x∗)g'(x^{*}) equals that rate, so the convergence is linear.

Example — The double root of $(x-1)^2$

Let f(x)=(x−1)2f(x)=(x-1)^2. For xn≠1x_n\neq 1 the update is xn+1=(xn+1)/2x_{n+1}=(x_n+1)/2, so xn+1−1=(xn−1)/2x_{n+1}-1=(x_n-1)/2. From x0=3x_0=3 the iterates are 22, 1.51.5, 1.251.25, 1.1251.125, and the errors are 22, 11, 1/21/2, 1/41/4, 1/81/8. Each error is half the one before it, matching (m−1)/m=1/2(m-1)/m=1/2. At x2=1.5x_2=1.5 the residual is f(1.5)=0.25f(1.5)=0.25, while the root error is 0.50.5. The residual is the square of the error, so it understates the distance to the root, in line with the flat-graph warning of Section 07.

If the multiplicity mm is known, the modified update xn+1=xn−m f(xn)/f′(xn)x_{n+1}=x_n-m\,f(x_n)/f'(x_n) multiplies the correction by mm. On a pure power that modified map hits x∗x^{*} in a single step. For a general factor h(x∗)h(x^{*}) the same multiple restores g′(x∗)=0g'(x^{*})=0 and, with it, quadratic convergence. When mm is unknown, the quotient u=f/f′u=f/f' has a simple root at x∗x^{*} for a pure power, since u(x)=(x−x∗)/mu(x)=(x-x^{*})/m, and Newton's method applied to uu falls back under the theorem of Section 05. Either repair uses extra knowledge or an extra derivative. Neither is free, and both exist because the unmodified rate (m−1)/m(m-1)/m is the generic price of a horizontal tangent at the root.


09 · Exercises

EXERCISE 2.1

Keep the half on which the function values at the endpoints have opposite signs. The midpoint error after nn steps is at most 2−(n+1)2^{-(n+1)} on a bracket of length 11. Compare 2−102^{-10} with 10−310^{-3}.

(a) f(1)=−1f(1)=-1 and f(2)=5f(2)=5. The midpoint 3/23/2 has f(3/2)=27/8−3/2−1=7/8>0f(3/2)=27/8-3/2-1=7/8>0, so the bracket becomes [1, 3/2][1,\ 3/2]. The midpoint 5/45/4 has f(5/4)=125/64−5/4−1=−19/64<0f(5/4)=125/64-5/4-1=-19/64<0, so the bracket becomes [5/4, 3/2][5/4,\ 3/2]. The midpoint 11/811/8 has f(11/8)=1331/512−11/8−1=115/512>0f(11/8)=1331/512-11/8-1=115/512>0, so the bracket becomes [5/4, 11/8]=[1.25, 1.375][5/4,\ 11/8]=[1.25,\ 1.375]. (b) The third midpoint is c2=11/8c_2=11/8, taken from a bracket of length 1/41/4, so ∣c2−x∗∣≤(1/4)/2=1/8|c_2-x^{*}|\le (1/4)/2=1/8. (c) The midpoint bound is 2−(n+1)2^{-(n+1)}. This drops below 10−310^{-3} when n+1≥10n+1\ge 10, since 2−10=1/1024<10−32^{-10}=1/1024<10^{-3} and 2−9=1/512>10−32^{-9}=1/512>10^{-3}. The smallest such nn is 99.

Let f(x)=x3−x−1f(x)=x^3-x-1. Then ff is continuous, f(1)=−1f(1)=-1, and f(2)=5f(2)=5. (a) Carry out three bisection steps from [1,2][1,2], and record the bracket after each step. (b) Bound the distance from the third midpoint to a root. (c) Find the smallest index nn such that the bound on ∣cn−x∗∣|c_n-x^{*}| is below 10−310^{-3}, where c0c_0 is the first midpoint.

EXERCISE 2.2

On [0,1][0,1], cosine is decreasing and positive. A bound on ∣sin⁡x∣|\sin x| is a Lipschitz constant, by the mean-value theorem. The a posteriori factor is L/(1−L)L/(1-L) times the latest step, with L=sin⁡1L=\sin 1.

(a) Cosine decreases on [0,1][0,1], from cos⁡0=1\cos 0=1 to cos⁡1\cos 1. Since 0<cos⁡1<10<\cos 1<1, the image is [cos⁡1, 1]⊆[0,1][\cos 1,\ 1]\subseteq[0,1]. And ∣g′(x)∣=sin⁡x≤sin⁡1<1|g'(x)|=\sin x\le \sin 1<1 on the interval, so ∣g(x)−g(y)∣≤(sin⁡1) ∣x−y∣|g(x)-g(y)|\le (\sin 1)\,|x-y|. (b) The Banach theorem gives a unique fixed point in [0,1][0,1], and every start in the interval converges to it. (c) x1=cos⁡0=1x_1=\cos 0=1 and x2=cos⁡1x_2=\cos 1. The step is ∣1−cos⁡1∣|1-\cos 1|. With L/(1−L)=sin⁡1/(1−sin⁡1)L/(1-L)=\sin 1/(1-\sin 1), the bound is ∣x∗−x2∣≤sin⁡11−sin⁡1 ∣1−cos⁡1∣|x^{*}-x_2|\le \dfrac{\sin 1}{1-\sin 1}\,\lvert 1-\cos 1\rvert.

Let g(x)=cos⁡xg(x)=\cos x on the interval [0,1][0,1], with xx in radians. (a) Show that gg maps the interval into itself and is a contraction with constant L=sin⁡1L=\sin 1. (b) Conclude that the equation x=cos⁡xx=\cos x has a unique solution in [0,1][0,1], and that iteration from any start in the interval converges to it. (c) From x0=0x_0=0, compute x1x_1 and x2x_2, and write the a posteriori bound on ∣x2−x∗∣|x_2-x^{*}|.

EXERCISE 2.3

The Newton correction for x2−2x^2-2 is (x2−2)/(2x)(x^2-2)/(2x). Because f′′f'' is constant, en+1=en2/(2xn)e_{n+1}=e_n^2/(2x_n). The asymptotic constant is ∣f′′(2)/(2f′(2))∣|f''(\sqrt{2})/(2f'(\sqrt{2}))|. The update at 00 divides by f′(0)f'(0).

(a) x1=1−(1−2)/2=3/2x_1=1- (1-2)/2=3/2. Then x2=3/2−((9/4)−2)/3=3/2−(1/4)/3=3/2−1/12=17/12x_2=3/2-( (9/4)-2 )/3=3/2-(1/4)/3=3/2-1/12=17/12. Then x3=17/12−((289/144)−2)/(17/6)=17/12−1/408=577/408x_3=17/12 - ( (289/144)-2 ) / (17/6)=17/12-1/408=577/408. (b) Here en+1=en2/(2xn)e_{n+1}=e_n^2/(2x_n), so ∣e1∣/∣e0∣2=1/2|e_1|/|e_0|^2=1/2 and ∣e2∣/∣e1∣2=1/3|e_2|/|e_1|^2=1/3. The limit constant is 2/(2⋅22)=1/(22)≈0.35362/(2\cdot 2\sqrt{2})=1/(2\sqrt{2})\approx 0.3536. The ratios 1/21/2 and 1/31/3 are the exact finite-nn values 1/(2∣xn∣)1/(2|x_n|), and they approach 1/(22)1/(2\sqrt{2}) as xnx_n approaches 2\sqrt{2}. (c) f′(x)=2xf'(x)=2x, so f′(0)=0f'(0)=0. The Newton update divides by f′(0)f'(0) and is undefined. The tangent to y=x2−2y=x^2-2 at x=0x=0 is the horizontal line y=−2y=-2, which does not meet the axis.

Let f(x)=x2−2f(x)=x^2-2 and x0=1x_0=1. (a) Compute the first three Newton iterates as exact fractions. (b) Show that ∣e1∣/∣e0∣2=1/2|e_1|/|e_0|^2=1/2 and ∣e2∣/∣e1∣2=1/3|e_2|/|e_1|^2=1/3, and compare these with ∣f′′(2)/(2f′(2))∣|f''(\sqrt{2})/(2f'(\sqrt{2}))|. (c) Explain why the iteration is undefined at the start x0=0x_0=0.

EXERCISE 2.4

For f(x)=(x−1)2f(x)=(x-1)^2 and x≠1x\neq 1, the quotient f(x)/f′(x)f(x)/f'(x) equals (x−1)/2(x-1)/2. The modified correction multiplies that quotient by 22. Compare f(x2)f(x_2) with ∣x2−1∣|x_2-1| directly from the halved errors.

(a) f′(x)=2(x−1)f'(x)=2(x-1), so for xn≠1x_n\neq 1 one has f(xn)/f′(xn)=(xn−1)/2f(x_n)/f'(x_n)=(x_n-1)/2 and xn+1=xn−(xn−1)/2=(xn+1)/2x_{n+1}=x_n-(x_n-1)/2=(x_n+1)/2. Hence xn+1−1=(xn−1)/2x_{n+1}-1=(x_n-1)/2. (b) The error is multiplied by 1/21/2 at every step, so ∣en+1∣/∣en∣→1/2|e_{n+1}|/|e_n|\to 1/2. The order is 11 and the asymptotic constant is 1/21/2. (c) From x0=3x_0=3 the next two iterates are x1=2x_1=2 and x2=3/2x_2=3/2. The true error is ∣3/2−1∣=1/2|3/2-1|=1/2, while the residual is f(3/2)=1/4f(3/2)=1/4. The residual is smaller than the root error. A residual test alone would describe this guess as twice as accurate as it is, which is the flat-graph gap of a multiple root: f′(1)=0f'(1)=0. (d) The modified update subtracts 2⋅(x−1)/2=x−12\cdot (x-1)/2=x-1, so it returns x−(x−1)=1x-(x-1)=1 from every x≠1x\neq 1.

Let f(x)=(x−1)2f(x)=(x-1)^2. (a) Show that Newton's method gives xn+1−1=(xn−1)/2x_{n+1}-1=(x_n-1)/2 whenever xn≠1x_n\neq 1. (b) Deduce the order and the asymptotic constant. (c) Starting from x0=3x_0=3, compute ∣f(x2)∣|f(x_2)| and ∣x2−1∣|x_2-1|, and say what the comparison means for a residual test. (d) Show that the modified update x−2f(x)/f′(x)x-2f(x)/f'(x) reaches the root in one step.


10 · Chapter Summary

ObjectWhat the theorem uses
Sign-change bracketContinuous ff with f(a)f(b)<0f(a)f(b)<0; bisection keeps one root and halves the bound
Bisection bound∣cn−x∗∣≤(b−a)/2n+1\lvert c_n-x^{*}\rvert\le (b-a)/2^{n+1}, linear with rate 1/21/2
Fixed-point mapxn+1=g(xn)x_{n+1}=g(x_n); the limit is a fixed point when gg is continuous
Contractiong([a,b])⊆[a,b]g([a,b])\subseteq[a,b] and Lipschitz constant L<1L<1; unique fixed point, geometric rate
Local test∣g′(x∗)∣<1\lvert g'(x^{*})\rvert<1 attracts nearby starts; ∣g′(x∗)∣>1\lvert g'(x^{*})\rvert>1 repels them
Order pp∣en+1∣/∣en∣p→C∈(0,∞)\lvert e_{n+1}\rvert/\lvert e_n\rvert^p\to C\in(0,\infty); linear means p=1p=1 and needs C<1C<1
NewtonTangent step; simple root and continuous f′′f'' give quadratic convergence, constant ∣f′′(x∗)/(2f′(x∗))∣\lvert f''(x^{*})/(2f'(x^{*}))\rvert
SecantChord through the last two guesses; order (1+5)/2(1+\sqrt{5})/2 near a simple root
StoppingResidual, absolute step, relative step; ∣e∣≈∣f(x)∣/∣f′∣\lvert e\rvert\approx \lvert f(x)\rvert/\lvert f'\rvert relates the first to the error
RoundingA residual at the scale of the rounding noise in ff, or a step at the last place of xx, has left exact arithmetic
Multiple rootNewton on (x−x∗)m(x-x^{*})^m is linear with rate (m−1)/m(m-1)/m; the factor mm restores the quadratic case

Next: Chapter 03 — Polynomial Interpolation, which builds the polynomial that matches prescribed values at prescribed nodes, and the error formula that measures how far that polynomial sits from the function it is standing in for.