Lesson

The rate of convergence: a weak bound and a strong ratio

How many digits a method gains per step: the error, linear convergence in a weak sense (bisection) and in a strong sense (regula falsi with a fixed end), the order of convergence, and a proof that the ratio of convergence is 1 − f′(r)/f[a, r].

Last updated:


On the two previous pages we ran two methods on the same equation:
bisection and regula falsi. Here we define exactly what “fast” means, and measure it for both methods, in two senses:
weak and strong.

Weak and strong: the English terms Q-linear and R-linear

“Weak” and “strong” are this course’s words; the English literature uses two other names, and each is a different statement about the errors ene_n⁠.

  • R-linear (R for “root”): the errors are bounded by a sequence that itself converges linearly, ∣en∣≤C ρ n|e_n|\le C\,\rho^{\,n} with 0<ρ<10<\rho<1⁠. This is our weak sense. Bisection has it with ρ=12\rho=\tfrac12⁠, although a single error may rise from one step to the next.
  • Q-linear (Q for “quotient”): the ratio of consecutive errors stays below a constant smaller than 11⁠, ∣en+1∣∣en∣≤ρ<1\dfrac{|e_{n+1}|}{|e_n|}\le\rho<1 for all large nn⁠. Our strong sense is a special case: the ratio has a limit ρ\rho in (0,1)(0,1)⁠. Then from some step on the errors really fall at every step.

Q-linear implies R-linear, and not the other way round: bisection is the counterexample.
The two terms are not “weak” and “strong” in any other sense:
the phrase “weak convergence” in functional analysis is an unrelated notion.
For more, see the rate of convergence on Wikipedia.

The error and digits per step

Write rr for the root and xnx_n for the approximation after nn steps (in bisection xn=cnx_n=c_n⁠, in regula falsi the new point); the error is en=xn−re_n=x_n-r⁠.
A decimal digit is a factor of 10, so a method that multiplies the error by ρ\rho at every step gains −log⁡10ρ-\log_{10}\rho correct digits per step.

The weak sense: bisection

In bisection the error itself need not fall at every step: in the table of bisection c4c_4 is closer to the root than c5c_5⁠.
Bisection gives no guarantee that the ratio ∣en+1∣∣en∣\dfrac{|e_{n+1}|}{|e_n|} converges; what always holds is the bound ∣en∣≤εn=b−a2 n|e_n|\le\varepsilon_n=\dfrac{b-a}{2^{\,n}} (we proved it), a sequence that halves at every step and bounds the error.
This is linear convergence in a weak sense: the error is bounded by a sequence that converges linearly, with ratio ρ=12\rho=\tfrac12⁠.
The weak sense uses only the bound; the strong sense below needs a limit of the ratio of the errors.

Calculate: How many digits does the bound εn\varepsilon_n gain per step?
How many steps does it take to gain one digit?

Solution

−log⁡1012≈0.301-\log_{10}\tfrac12\approx0.301 digits per step. One digit (a factor of 10) takes about 3.3 steps:
210=10242^{10}=1024⁠, so ten steps are about three digits. This holds for the bound; at a particular step the real error may fall less, or more.

The strong sense: regula falsi with a fixed end

In regula falsi, when one end stays fixed (for example for a convex or concave ff⁠) and ff is differentiable at the root, the ratio itself settles (we prove this below):

lim⁡n→∞∣en+1∣∣en∣=ρ,0<ρ<1\lim_{n\to\infty}\frac{|e_{n+1}|}{|e_n|}=\rho,\qquad 0<\rho<1

This is linear convergence in a strong sense with ratio ρ\rho⁠:
each step multiplies the error by about ρ\rho⁠.

Why is it called linear and not constant, when the ratio is constant?
The ratio is constant, but the error is not: it falls. From ∣en+1∣≈ρ ∣en∣|e_{n+1}|\approx\rho\,|e_n| we get ∣en∣≈∣e0∣ ρ n|e_n|\approx|e_0|\,\rho^{\,n}⁠, so

log⁡∣en∣≈log⁡∣e0∣+nlog⁡ρ\log|e_n|\approx\log|e_0|+n\log\rho

is a linear function of nn⁠: a straight line on a semi-logarithmic graph, with slope log⁡ρ\log\rho⁠.
The number of correct digits grows by the constant −log⁡10ρ-\log_{10}\rho per step, that is, linearly in nn⁠.
In quadratic convergence (see the order of convergence below) the number of digits is doubled at each step, a much faster growth.

Calculate: In the table of regula falsi on the monthly payments (on its page) r≈0.02793055r\approx0.02793055⁠.
Compute e2e_2⁠, e3e_3 and e4e_4 and the ratios ∣e3∣∣e2∣\dfrac{|e_3|}{|e_2|} and ∣e4∣∣e3∣\dfrac{|e_4|}{|e_3|}⁠.
How many digits are gained per step?

Solution

x1≈0.0295061x_1\approx0.0295061 (e1≈+1.576×10−3e_1\approx+1.576\times10^{-3}⁠; a positive error means that the approximation is above the root), x2≈0.0280422x_2\approx0.0280422⁠, so e2≈0.02804218−0.02793055=+1.116×10−4e_2\approx0.02804218-0.02793055=+1.116\times10^{-4}⁠, and then e3≈7.9×10−6e_3\approx7.9\times10^{-6}⁠, e4≈5.6×10−7e_4\approx5.6\times10^{-7} and e5≈4.0×10−8e_5\approx4.0\times10^{-8}⁠.
The ratios are ∣e3∣∣e2∣≈0.0708\dfrac{|e_3|}{|e_2|}\approx0.0708 and ∣e4∣∣e3∣≈0.0708\dfrac{|e_4|}{|e_3|}\approx0.0708 (the error falls about 14-fold at each step), so ρ≈0.0708\rho\approx0.0708 and −log⁡100.0708≈1.15-\log_{10}0.0708\approx1.15 digits per step, 3.8 times the bound of bisection.
In four steps, from e1e_1 to e5e_5⁠, the error falls by a factor of about 4×1044\times10^{4}⁠, about 4.64.6 digits (4×1.154\times1.15⁠).
For comparison, with ρ=12\rho=\tfrac12 (bisection) a step gains 0.300.30 digits and ten steps about 3 digits; with ρ=0.1\rho=0.1 a whole digit is gained at every step.

Functionρ\rhoDigits per step
Bisection, the bound (weak sense)0.50.50.3010.301
Regula falsi, the monthly payments0.07080.07081.151.15
Regula falsi, the loan of the practice0.05430.05431.261.26
Regula falsi, x10−1x^{10}-1 on [0,1.3][0,1.3]0.76540.76540.120.12

The table raises the question of what decides ρ\rho⁠: below we prove a formula that computes it.

The order of convergence

The order of convergence is the number q≥1q\ge1 for which the ratio ∣en+1∣∣en∣q\dfrac{|e_{n+1}|}{|e_n|^{q}} tends to a number C>0C>0 (when q=1q=1 we also require C<1C<1⁠: linear convergence, with C=ρC=\rho⁠).
Order 2 means ∣en+1∣≈C en2|e_{n+1}|\approx C\,e_n^{2}⁠: an error of 10−k10^{-k} is followed by about 10−2k10^{-2k}⁠, so the number of correct digits roughly doubles at each step.
Three sequences of errors for comparison, without any method:
en=1ne_n=\dfrac1n (the ratio tends to 1, slower than linear), en=2−ne_n=2^{-n} (linear, ρ=12\rho=\tfrac12⁠) and en=10−2ne_n=10^{-2^n} (quadratic: en+1=en 2e_{n+1}=e_n^{\,2}⁠, and the digits double at each step).
The two methods of this lecture are linear; methods in which the number of correct digits doubles at each step belong to the methods of unit 2 that come later.

Compute. Three sequences of errors, without any method, are defined by A:
en=1n+1e_n=\dfrac1{n+1}⁠, B: en=0.3 ne_n=0.3^{\,n} and C: e1=0.1e_1=0.1⁠, en+1=0.5 en 2e_{n+1}=0.5\,e_n^{\,2}⁠; the table gives their first three terms.
For each sequence compute ∣en+1∣∣en∣\dfrac{|e_{n+1}|}{|e_n|} and ∣en+1∣∣en∣2\dfrac{|e_{n+1}|}{|e_n|^{2}}⁠, from the table, and decide its order (or that it is slower than linear); the rule of each sequence shows how its ratios continue.

nnsequence Asequence Bsequence C
10.50.30.1
20.33330.090.005
30.250.0270.0000125
Solution

Sequence A: the ratios ∣en+1∣∣en∣\dfrac{|e_{n+1}|}{|e_n|} are 0.6670.667 and 0.750.75 and keep growing toward 1 (the sequence is 1n+1\dfrac1{n+1}⁠):
slower than linear. Sequence B: both ratios are 0.30.3⁠, so it is linear with ρ=0.3\rho=0.3 (a gain of −log⁡100.3≈0.52-\log_{10}0.3\approx0.52 digits per step).
Sequence C: ∣en+1∣∣en∣\dfrac{|e_{n+1}|}{|e_n|} is 0.050.05 and 0.00250.0025 and falls to 0, while ∣en+1∣∣en∣2=0.5\dfrac{|e_{n+1}|}{|e_n|^{2}}=0.5 both times:
order q=2q=2 with C=0.5C=0.5⁠.

Proof: why the ratio is what it is, and the derivative at the root

The ratio of regula falsi depends on the shape of ff⁠. We compute it when the function is convex, the fixed end is aa⁠, the moving end is bnb_n⁠, and en=bn−re_n=b_n-r (with b0=bb_0=b⁠, and for n≥1n\ge1 the moving end is the new point of iteration nn⁠: bn=cn=xnb_n=c_n=x_n⁠).

We use the divided difference, the slope of the chord through two points of the graph:

f[x,y]=f(x)−f(y)x−yf[x,y]=\frac{f(x)-f(y)}{x-y}

For example, for f(x)=x2f(x)=x^2 we get f[1,3]=9−13−1=4f[1,3]=\dfrac{9-1}{3-1}=4⁠. The derivative is its limit:
ff is differentiable at x0x_0 when f[x0,y]f[x_0,y] approaches a number f′(x0)f'(x_0) as y→x0y\to x_0⁠.
Applying the same idea to the slopes gives the second-order form f[x,y,z]=f[x,y]−f[y,z]x−zf[x,y,z]=\dfrac{f[x,y]-f[y,z]}{x-z}⁠:
it measures how much the slope changes from one chord to the next (for x2x^2 it is always 11⁠, and it is never negative for a convex function, positive for a strictly convex one).

Work it out: The chord through the ends is L(x)=f(a)+f[a,b] (x−a)L(x)=f(a)+f[a,b]\,(x-a)⁠. Show that f(x)−L(x)=f[a,b,x] (x−a) (x−b)f(x)-L(x)=f[a,b,x]\,(x-a)\,(x-b)⁠.

Solution

L(b)=f(b)L(b)=f(b)⁠, so f(x)−L(x)=f(x)−f(b)−f[a,b] (x−b)=(x−b)(f[b,x]−f[a,b])f(x)-L(x)=f(x)-f(b)-f[a,b]\,(x-b)=(x-b)\bigl(f[b,x]-f[a,b]\bigr)⁠. By definition f[a,b,x]=f[a,b]−f[b,x]a−xf[a,b,x]=\dfrac{f[a,b]-f[b,x]}{a-x}⁠, so f[b,x]−f[a,b]=(x−a) f[a,b,x]f[b,x]-f[a,b]=(x-a)\,f[a,b,x]⁠, and the formula follows.

Put x=rx=r and f(r)=0f(r)=0⁠: −L(r)=f[a,b,r] (r−a) (r−b)-L(r)=f[a,b,r]\,(r-a)\,(r-b)⁠. The new point cc satisfies L(c)=0L(c)=0⁠, so L(r)=L(r)−L(c)=f[a,b] (r−c)L(r)=L(r)-L(c)=f[a,b]\,(r-c)⁠.
Hence, with b=bnb=b_n and c=bn+1c=b_{n+1}⁠,

en+1=c−r=f[a,bn,r]f[a,bn] (a−r) ene_{n+1}=c-r=\frac{f[a,b_n,r]}{f[a,b_n]}\,(a-r)\,e_n The graph of the monthly-payments function f(r) on the interval from 0 to 0.05, falling from 120 to the root at 0.027931 and on to -83.35. The chord from the fixed end (0, 120) to the root has slope -4296. The tangent at the root has slope -3992. The ratio rho is one minus the tangent slope divided by the chord slope, about 0.071.

The two slopes of the formula, for the monthly payments (the figure is computed from the function itself):
the chord from the fixed end a=0a=0 to the root has slope f[a,r]≈−4296f[a,r]\approx-4296⁠, the tangent at the root has slope f′(r)≈−3992f'(r)\approx-3992⁠, and their ratio gives ρ=1−−3992−4296≈0.071\rho=1-\dfrac{-3992}{-4296}\approx0.071⁠.
The last step of the proof shows why this is the limit of the ratio of the errors.

Since lim⁡n→∞bn=r\lim_{n\to\infty}b_n=r⁠, we have lim⁡n→∞f[a,bn]=f[a,r]\lim_{n\to\infty}f[a,b_n]=f[a,r] and lim⁡n→∞f[bn,r]=f′(r)\lim_{n\to\infty}f[b_n,r]=f'(r) (this is the definition of the derivative, and here we need that ff is differentiable at rr⁠), so lim⁡n→∞f[a,bn,r]=f[a,r]−f′(r)a−r\lim_{n\to\infty}f[a,b_n,r]=\dfrac{f[a,r]-f'(r)}{a-r}⁠.
Substituting:

lim⁡n→∞en+1en=ρ=f[a,r]−f′(r)f[a,r]=1−f′(r)f[a,r]\lim_{n\to\infty}\frac{e_{n+1}}{e_n}=\rho=\frac{f[a,r]-f'(r)}{f[a,r]}=1-\frac{f'(r)}{f[a,r]}

The ratio is a quotient of two slopes: the tangent at the root, and the chord from the fixed end to the root.
For a convex function they have the same sign and ∣f′(r)∣≤∣f[a,r]∣\bigl|f'(r)\bigr|\le\bigl|f[a,r]\bigr| (the slopes of a convex function grow from left to right), so 0≤ρ<10\le\rho<1 when f′(r)≠0f'(r)\ne0⁠.

The derivation does not use which side of the root aa is on:
aa is the fixed end, left or right. The formula needs three conditions:

  1. from some step on, the end aa does not move;
  2. ff is differentiable at rr (the limit step above uses it);
  3. f(a)≠0f(a)\ne0⁠.

Convexity guarantees the first condition and 0≤ρ<10\le\rho<1⁠. The value ρ=0\rho=0 occurs when ff is linear:
the first chord point is then already the root, and the strong sense above (which needs ρ>0\rho>0⁠) does not apply.

What if ff is not differentiable at rr?

Without differentiability the ratio is governed by the one-sided derivative, on the side of the moving end.

Calculate for the monthly payments, where f(r)f(r) is the value of the six payments at the monthly rate rr minus 1200:
f(0)=120f(0)=120⁠, r≈0.0279305r\approx0.0279305 and the slope at the root is about −3992-3992⁠. What is ρ\rho⁠?
And at the fixed end d=1.3d=1.3 of x10−1x^{10}-1⁠, where f′(1)=10f'(1)=10⁠?

Solution

For the monthly payments f[0,r]=0−1200.0279305≈−4296.4f[0,r]=\dfrac{0-120}{0.0279305}\approx-4296.4⁠, so ρ=1−−3992.1−4296.4≈0.0708\rho=1-\dfrac{-3992.1}{-4296.4}\approx0.0708⁠, the ratio measured in the table (14.1 times smaller at each step).
For x10−1x^{10}-1 the slope from the fixed end is f[1.3,1]=1.310−10.3≈42.6f[1.3,1]=\dfrac{1.3^{10}-1}{0.3}\approx42.6⁠, so ρ=1−1042.6≈0.765\rho=1-\dfrac{10}{42.6}\approx0.765⁠, and the error falls only 1.3 times per step (0.12 digits).
The more the curve bends, the steeper the slope from the far end compared with the tangent at the root, and the ratio approaches 1:
for x20−1x^{20}-1 it is already 0.9680.968⁠.

A full tutorial on regula falsi, and a short video on running it step by step with the CALC function of a scientific calculator:

The same step on the calculator emulator is practised in the practice session, by hand with a table.

Base-10 logarithm of the error against the step number. The bisection bound falls by 0.30 per step. Regula falsi falls by 1.15 per step on the monthly payments, by 0.77 on x squared minus 2, and by only 0.12 on x to the tenth minus 1.

In the figure we see the base-10 logarithm of the size of the error against the step:
for each method a straight line whose slope log⁡10ρ\log_{10}\rho is negative.
The number of digits gained per step is minus the slope, −log⁡10ρ-\log_{10}\rho⁠:
0.30 for the bound of bisection, 1.15 on the monthly payments, 0.77 on x2−2x^2-2 and only 0.12 on x10−1x^{10}-1⁠.
The example with a fixed end is a ρ\rho close to 1.

What we can check without knowing the root: the step ratio

We cannot compute the error without knowing rr⁠, but we can compute the step dn=∣xn−xn−1∣d_n=|x_n-x_{n-1}|⁠, and the ratio of the steps dndn−1\dfrac{d_n}{d_{n-1}}⁠.
When the error falls by a factor ρ\rho at every step and the points approach the root from one side, dn=∣en−1∣−∣en∣=(1−ρ) ∣en−1∣d_n=\lvert e_{n-1}\rvert-\lvert e_n\rvert=(1-\rho)\,\lvert e_{n-1}\rvert and ∣en∣=ρ ∣en−1∣\lvert e_n\rvert=\rho\,\lvert e_{n-1}\rvert⁠, so the ratio of the steps is also ρ\rho and the size of the error is

∣en∣ ≈ dn ρ1−ρ\lvert e_n\rvert\ \approx\ d_n\,\frac{\rho}{1-\rho}

(the sign of ene_n is the side from which the points approach: negative from the left, as in x10−1x^{10}-1⁠).

When ρ\rho is small, the error is much smaller than the last step.
When ρ\rho is near 1 it is much larger: at ρ=0.9\rho=0.9 nine times, at ρ=0.99\rho=0.99 ninety-nine times.
For x10−1x^{10}-1 the ratio of the steps is 0.76540.7654⁠, and the error is 0.76541−0.7654≈3.3\dfrac{0.7654}{1-0.7654}\approx3.3 times the last step:
stopping on a small step stops far from the root. A ratio near 1 is a signal to switch to another method, bisection or regula falsi with a correction (for example the Illinois variant from the regula falsi page).
The explorer shows the column “step ratio” for every method except bisection.

Summary: the rate of convergence

MethodSenseRatioWhat decides it
Bisectionweak: the bound εn\varepsilon_n12\tfrac12the width of the bracket halves
Regula falsi, convex functionstrong: the ratio converges1−f′(r)f[a,r]1-\dfrac{f'(r)}{f[a,r]}the tangent at the root against the chord from the fixed end

Continue learning

The next step is the practice session for the three lectures:
a table by hand, the usual mistakes, transfer questions, including the computation of ρ\rho⁠, and a Python implementation.
Newton–Raphson and the secant method shows methods that gain more digits per step.