Lesson

Regula falsi: proofs and convexity

The method of regula falsi: the chord, the proof that it stays inside the bracket, and a convex function where one end stays in place and the method converges, and a proof that it converges to the root, without convexity, when the root is unique.

Last updated:


On the page about the intermediate value theorem and bisection we solved the monthly-payments equation f(r)=∑t=16220(1+r)t−1200=0f(r)=\sum_{t=1}^{6}\frac{220}{(1+r)^{t}}-1200=0 on the bracket [0,0.05][0,0.05] by bisection, and proved that bisection cannot fail.
Here we also use the size of ff⁠, and prove what this gives and what it costs.

Regula falsi: use the values, not only the signs

Bisection throws away information: in the table of bisection, at c=0.0375c=0.0375 the value −37.28-37.28 is far from zero, at c=0.028125c=0.028125 it is −0.7759-0.7759⁠, very close.
Another candidate, besides the midpoint, is where the chord, the straight line through (a,f(a))(a,f(a)) and (b,f(b))(b,f(b))⁠, crosses zero.

Work it out: at which point cc does the chord cross zero?
Write the equation of the line through the two points, and substitute y=0y=0⁠.

Solution

The slope of the chord is m=f(b)−f(a)b−am=\dfrac{f(b)-f(a)}{b-a}⁠, and its equation is y=f(a)+m (x−a)y=f(a)+m\,(x-a)⁠.
At the point x=cx=c we have y=0y=0⁠:

0=f(a)+m (c−a)c=a−f(a)m=a−f(a) (b−a)f(b)−f(a)\begin{aligned} 0&=f(a)+m\,(c-a)\\ c&=a-\frac{f(a)}{m}=a-\frac{f(a)\,(b-a)}{f(b)-f(a)} \end{aligned}

A common denominator gives one fraction:

c=a (f(b)−f(a))−f(a) (b−a)f(b)−f(a)=a f(b)−b f(a)f(b)−f(a)\begin{aligned} c&=\frac{a\,\bigl(f(b)-f(a)\bigr)-f(a)\,(b-a)}{f(b)-f(a)}\\ &=\frac{a\,f(b)-b\,f(a)}{f(b)-f(a)} \end{aligned}

The denominator is not 0, because in a bracket whose ends are not roots f(a)f(a) and f(b)f(b) have opposite signs.

Where the formula for cc comes from, step by step, in a short video of mine (in Hebrew):

The point where the chord crosses zero is

c=a f(b)−b f(a)f(b)−f(a)c=\frac{a\,f(b)-b\,f(a)}{f(b)-f(a)}

This is regula falsi (Latin for “rule of the false position”).
Keep the side where the sign changes, as before. What it adds:
it uses how big ff is, so when ff is close to a straight line, as the present value of payments nearly is, the chord lands very near the root.
Its cost: the bracket no longer halves, and one end can stay stuck.

Check yourself: what is the first point cc of regula falsi for f(x)=x2−2f(x)=x^2-2 on [1,2][1,2]⁠?
Which part of the bracket is kept?

Solution

f(1)=−1f(1)=-1 and f(2)=2f(2)=2⁠, so

c=1⋅2−2⋅(−1)2−(−1)=43≈1.333c=\frac{1\cdot2-2\cdot(-1)}{2-(-1)}=\frac43\approx1.333

f ⁣(43)=169−2=−29<0f\!\left(\tfrac43\right)=\tfrac{16}{9}-2=-\tfrac29<0⁠, so the sign changes between 43\tfrac43 and 2, and the bracket [43,2]\left[\tfrac43,2\right] is kept.
Bisection would have tested 1.51.5⁠.

The column f(c)f(c) has the same meaning as on the first page:
negative means that a debt remains, so the rate cc is too high.
The last column is the ratio of two consecutive steps, ∣cn−cn−1∣∣cn−1−cn−2∣\dfrac{\lvert c_n-c_{n-1}\rvert}{\lvert c_{n-1}-c_{n-2}\rvert}⁠; it needs three points, so its first three rows are empty (row 0 is the starting bracket [a0,b0]=[a,b][a_0,b_0]=[a,b] and row nn shows cnc_n⁠, f(cn)f(c_n) and the new bracket [an,bn][a_n,b_n]⁠).

nncnc_nf(cn)f(c_n)ana_nbnb_n∣cn−cn−1∣∣cn−1−cn−2∣\dfrac{\lvert c_n-c_{n-1}\rvert}{\lvert c_{n-1}-c_{n-2}\rvert}
0––00.05–
10.02950611−6.26500.02950611–
20.02804218−0.445500.02804218–
30.02793845−0.0315600.027938450.0709
40.02793111−0.00223500.027931110.0708
50.02793059−0.000158300.027930590.0708
60.02793055−0.0000112100.027930550.0708

The step ratio can be computed without knowing the root, since only the points themselves are needed; here it is about 0.0710.071⁠, so the error shrinks about 14-fold per step.
What the ratio tells us about the error is in the step-ratio section of the rate-of-convergence page.

The explorer below runs both methods side by side; switch between them and watch the chord land closer to the root.

The explorer needs JavaScript. The tables below show the first steps of both methods on the monthly payments.

Proof: regula falsi stays inside the bracket

Work it out: In a bracket whose ends are not roots f(a)f(a) and f(b)f(b) have opposite signs.
Write the point c=a−f(a) (b−a)f(b)−f(a)c=a-\dfrac{f(a)\,(b-a)}{f(b)-f(a)} as a+t (b−a)a+t\,(b-a)⁠, and find tt in terms of ∣f(a)∣|f(a)| and ∣f(b)∣|f(b)|⁠.

Solution

t=−f(a)f(b)−f(a)t=\dfrac{-f(a)}{f(b)-f(a)}⁠. Two facts follow from the signs, each in the two possible cases.
If f(a)>0>f(b)f(a)>0>f(b)⁠, then

f(b)−f(a)=−∣f(b)∣−∣f(a)∣<0,−f(a)<0f(b)-f(a)=-|f(b)|-|f(a)|<0,\qquad -f(a)<0

and if f(a)<0<f(b)f(a)<0<f(b)⁠, then

f(b)−f(a)=∣f(b)∣+∣f(a)∣>0,−f(a)>0f(b)-f(a)=|f(b)|+|f(a)|>0,\qquad -f(a)>0

In both cases (1) ∣f(b)−f(a)∣=∣f(a)∣+∣f(b)∣|f(b)-f(a)|=|f(a)|+|f(b)| (subtracting a number of the opposite sign adds the absolute values), and (2) −f(a)-f(a) and f(b)−f(a)f(b)-f(a) have the same sign, so the quotient is positive and equals the quotient of the absolute values:

t=∣f(a)∣∣f(a)∣+∣f(b)∣∈(0,1)t=\frac{|f(a)|}{|f(a)|+|f(b)|}\in(0,1)

It is less than 1 because ∣f(b)∣>0|f(b)|>0 (the signs are strictly opposite, so f(b)≠0f(b)\neq0⁠), which makes the denominator larger than the numerator.
The point is a weighted average of the ends, where the weight of each end is the value of ∣f∣|f| at the other end:

c=∣f(b)∣ a+∣f(a)∣ b∣f(a)∣+∣f(b)∣c=\frac{|f(b)|\,a+|f(a)|\,b}{|f(a)|+|f(b)|}
The chord from (0, 120) to (0.05, -83.35) crosses zero at c = 0.0295, which is 59 percent of the way from a to b. Below it, a lever with a weight of 83.35 at a and a weight of 120 at b balances at the same point c: the point is closer to the end with the smaller value of |f|.

In the monthly-payments table the first step has a=0a=0 with f(a)=120f(a)=120 and b=0.05b=0.05 with f(b)≈−83.35f(b)\approx-83.35⁠, so t=120120+83.35≈0.59t=\dfrac{120}{120+83.35}\approx0.59 and c≈0.0295c\approx0.0295⁠:
nearer the end where ∣f∣|f| is smaller. An everyday image is a lever with two weights:
put the weight ∣f(b)∣|f(b)| at aa and the weight ∣f(a)∣|f(a)| at bb⁠, and the point cc is where it balances, the centre of mass, nearer the heavier end, bb⁠, which carries the larger weight ∣f(a)∣=120|f(a)|=120 because ∣f(b)∣|f(b)| is the smaller value.

In a bracket whose two values are not zero, 0<t<10<t<1⁠, so a<c<ba<c<b strictly.
If f(c)=0f(c)=0 we have found a root; otherwise we keep the side where the sign changes, exactly as in Claim 1 of bisection, and the bracket stays a bracket.
So regula falsi, too, always keeps a root inside its bracket; that the points converge to it we prove below for a convex function.
The bracket no longer halves: cc replaces the end where ff has the same sign as f(c)f(c)⁠, and the other end may stay.

Proof: when the function is convex, one end stays in place

A function is convex on an interval when each of its chords lies above the graph or on it (for example x2x^2⁠, x10x^{10} on a positive interval, and the monthly-payments function: a sum of convex functions is convex (add the chord inequalities of the terms), and each 220(1+r)t\dfrac{220}{(1+r)^t} is convex: its second derivative 220 t(t+1)(1+r)t+2\dfrac{220\,t(t+1)}{(1+r)^{t+2}} is positive).
The figure shows the graph of x2−2x^2-2 and the chord through the ends (1,−1)(1,-1) and (2,2)(2,2)⁠.

The convex graph of x squared minus 2 on the interval from 1 to 2 and the chord between its ends, above the graph. The zero of the chord, c1, is to the left of the root, where the function is negative. The next chord starts at the right end 2 and lands closer.
Convex and concave: a picture

The definition above says the chords of a convex function lie above its graph:
the graph is a bowl opening upward, like x2x^2⁠. Turn the inequality around and the function is concave:
every chord lies below the graph (or on it), and the graph is an arch, like −x2-x^2⁠.
A function ff is concave exactly when −f-f is convex.

The graph of x squared on the interval from minus 1 to 2, a bowl opening upward, with the chord between its two end points above the graph. The graph of minus x squared on the interval from minus 1 to 2, an arch opening downward, with the chord between its two end points below the graph.

In formulas, convex means f((1−λ) x+λ y)≤(1−λ) f(x)+λ f(y)f\big((1-\lambda)\,x+\lambda\,y\big)\le(1-\lambda)\,f(x)+\lambda\,f(y) for all x,yx,y in the interval and every 0≤λ≤10\le\lambda\le1⁠:
the left side is the graph above the point between xx and yy⁠, the right side is the chord above that same point.
Some books say “concave up” for convex and “concave down” for concave; the chord test above gives the same answer whichever names a book uses.

Claim 4. Let ff be continuous on the closed interval [a,b][a,b] and convex there, with f(a)>0>f(b)f(a)>0>f(b)⁠.
Then in every iteration n≥1n\ge1 of regula falsi either cnc_n is a root (and we are done), or f(cn)<0f(c_n)<0⁠, the left end does not move (an=aa_n=a⁠), and the right end moves strictly to the left (bn=cn<bn−1b_n=c_n<b_{n-1}⁠).
In short: f(c)≤0f(c)\le0 at every step, and the end where ff is positive never moves.

Proof by induction on nn⁠. Let P(n)P(n) be the statement: an=aa_n=a and f(bn)<0f(b_n)<0 (where [a0,b0]=[a,b][a_0,b_0]=[a,b]⁠).

Base (n=0n=0⁠). [a0,b0]=[a,b][a_0,b_0]=[a,b] and, by assumption, f(a)>0>f(b)=f(b0)f(a)>0>f(b)=f(b_0)⁠. So P(0)P(0) holds.

Hypothesis. P(n)P(n) holds for some n≥0n\ge0⁠: an=aa_n=a and f(bn)<0f(b_n)<0⁠.

Step (from nn to n+1n+1⁠). Iteration n+1n+1 starts from the bracket [a,bn][a,b_n]⁠, where f(a)>0>f(bn)f(a)>0>f(b_n)⁠.
Its point cn+1c_{n+1} is the zero of the line LL through (a,f(a))(a,f(a)) and (bn,f(bn))(b_n,f(b_n))⁠, and it lies strictly between aa and bnb_n (by the previous proof).
ff is convex on [a,bn][a,b_n]⁠, a part of the interval [a,b][a,b] where it is convex, so its graph lies below this chord:

f(cn+1)≤L(cn+1)=0f(c_{n+1})\le L(c_{n+1})=0

If f(cn+1)=0f(c_{n+1})=0 we found a root. Otherwise f(cn+1)<0f(c_{n+1})<0⁠, so f(a) f(cn+1)<0f(a)\,f(c_{n+1})<0 and the rule keeps [a,cn+1][a,c_{n+1}]⁠:
an+1=aa_{n+1}=a⁠, bn+1=cn+1<bnb_{n+1}=c_{n+1}<b_n and f(bn+1)<0f(b_{n+1})<0⁠. This is P(n+1)P(n+1)⁠.

Conclusion. By induction P(n)P(n) holds for every n≥0n\ge0 (as long as no root was found):
aa never moves, every new point has f(cn)<0f(c_n)<0⁠, and bn+1<bnb_{n+1}<b_n for every n≥0n\ge0⁠, that is, b0>b1>b2>⋯b_0>b_1>b_2>\cdots decreases strictly.

The other cases. If f(a)<0<f(b)f(a)<0<f(b) (as for x2−2x^2-2 on [1,2][1,2]⁠), the same proof works with the ends exchanged:
P(n)P(n) becomes ”bn=bb_n=b and f(an)<0f(a_n)<0”, the chord is above the graph, so again f(c)≤0f(c)\le0⁠, the rule keeps [cn+1,b][c_{n+1},b]⁠, and the end where ff is positive, bb⁠, never moves while ana_n increases strictly.
If ff is concave, apply the claim, or its mirror case above, to −f-f⁠:
it is convex, has the same roots, and regula falsi produces the same points cc for it (the zero of the chord does not depend on the sign of ff⁠).
Hence f(c)≥0f(c)\ge0 at every step, the end where ff is negative never moves, and the other end approaches the root from one side only.

Work it out: Why is there only one root in the bracket? (Hint: suppose r1<r2r_1<r_2 are both roots, and write r2r_2 as a point between r1r_1 and bb⁠.)

Solution

r2=(1−λ) r1+λ br_2=(1-\lambda)\,r_1+\lambda\,b with 0<λ≤10<\lambda\le1⁠. By convexity f(r2)≤(1−λ) f(r1)+λ f(b)=λ f(b)<0f(r_2)\le(1-\lambda)\,f(r_1)+\lambda\,f(b)=\lambda\,f(b)<0⁠, contradicting f(r2)=0f(r_2)=0⁠.
So ff has exactly one root rr in [a,b][a,b] (it exists by the intermediate value theorem, since ff is continuous), it is positive to its left (since f(a)>0f(a)>0⁠) and negative to its right.

Convergence. Write b0=bb_0=b⁠; at iteration n≥1n\ge1 the new point is cn=bnc_n=b_n (here f(cn)≤0f(c_n)\le0⁠, so the right end moves to it).
For every n≥0n\ge0⁠, f(bn)≤0f(b_n)\le0 (f(b0)=f(b)<0f(b_0)=f(b)<0⁠, and for n≥1n\ge1 bn=cnb_n=c_n with f(cn)≤0f(c_n)\le0 by Claim 4), so bn≥rb_n\ge r (ff is positive on [a,r)[a,r)⁠: it is positive at aa⁠, continuous, and has no root other than rr⁠); and bn+1<bnb_{n+1}<b_n (the new point is inside the bracket, by the previous proof), so bn+1<bnb_{n+1}<b_n for every n≥0n\ge0⁠, that is, b0>b1>b2>⋯b_0>b_1>b_2>\cdots⁠:
the numbers bnb_n decrease and are bounded below by rr⁠, and therefore the limit L=lim⁡n→∞bnL=\lim_{n\to\infty}b_n exists (a bounded monotone sequence converges) and L≥rL\ge r⁠.
The formula bn+1=a f(bn)−bn f(a)f(bn)−f(a)b_{n+1}=\dfrac{a\,f(b_n)-b_n\,f(a)}{f(b_n)-f(a)} gives in the limit (here we use that ff is continuous on the closed interval: convexity alone allows a jump at an end), after multiplying by the denominator (not 0, because f(bn)≤0<f(a)f(b_n)\le0<f(a)⁠):

L(f(L)−f(a))=a f(L)−L f(a)⟹(L−a) f(L)=0L\bigl(f(L)-f(a)\bigr)=a\,f(L)-L\,f(a)\quad\Longrightarrow\quad (L-a)\,f(L)=0

L≥r>aL\ge r>a⁠, so f(L)=0f(L)=0 and L=rL=r⁠: regula falsi on a convex function converges to the root (convergence without convexity is proved below).
When f(a)<0<f(b)f(a)<0<f(b) (as for x2−2x^2-2 on [1,2][1,2]⁠) the roles are exchanged:
the end bb stays and the end aa rises toward the root.
A concave function is handled through −f-f⁠, as in Claim 4:
the theorem holds for it, f(c)≥0f(c)\ge0 at every step, the end where ff is negative stays, and the other end moves monotonically to the root.

Proof: convergence without convexity

The proof above needed a convex function. Here is what holds for every continuous function with a bracket.
Write [an,bn][a_n,b_n] for the bracket after iteration nn⁠, with [a0,b0]=[a,b][a_0,b_0]=[a,b]⁠.
If some cnc_n is a root, the method has found it and stops; so we assume that no cnc_n is a root, and then f(an) f(bn)<0f(a_n)\,f(b_n)<0 at every step.

Claim 5. Let ff be continuous on [a,b][a,b] with f(a) f(b)<0f(a)\,f(b)<0⁠. Then:

  1. The numbers ana_n do not decrease and the numbers bnb_n do not increase, so the limits α=lim⁡n→∞an\alpha=\lim_{n\to\infty}a_n and β=lim⁡n→∞bn\beta=\lim_{n\to\infty}b_n exist, and α≤β\alpha\le\beta⁠.
  2. f(α) f(β)=0f(\alpha)\,f(\beta)=0⁠: at least one of α\alpha and β\beta is a root.
  3. Every limit point of the points cnc_n is a root of ff (a limit point is a number that some of the points approach: the limit of cn1,cn2,cn3,…c_{n_1},c_{n_2},c_{n_3},\ldots for some n1<n2<n3<⋯n_1<n_2<n_3<\cdots⁠).
  4. cnc_n converges to a root, unless α<β\alpha<\beta and both are roots. In particular, if ff has only one root rr in [a,b][a,b] (for example when ff is convex or concave), then lim⁡n→∞cn=r\lim_{n\to\infty}c_n=r⁠.

Step 1 (the ends are monotone). The new point cnc_n lies strictly between an−1a_{n-1} and bn−1b_{n-1} (the proof that regula falsi stays inside the bracket), and the new bracket is [an−1,cn][a_{n-1},c_n] or [cn,bn−1][c_n,b_{n-1}]⁠.
Hence an−1≤an<bn≤bn−1a_{n-1}\le a_n<b_n\le b_{n-1} for every n≥1n\ge1⁠: the numbers ana_n do not decrease and are bounded above by b0b_0⁠, and the numbers bnb_n do not increase and are bounded below by a0a_0⁠.
By the reminder from calculus both limits exist, and α≤β\alpha\le\beta because an<bna_n<b_n⁠.
Also, cnc_n is an end of the new bracket: cn=anc_n=a_n or cn=bnc_n=b_n⁠.

Step 2 (f(α) f(β)≤0f(\alpha)\,f(\beta)\le0⁠). By continuity, lim⁡n→∞f(an) f(bn)=f(α) f(β)\lim_{n\to\infty}f(a_n)\,f(b_n)=f(\alpha)\,f(\beta)⁠, and a limit of negative numbers is at most 0.

Step 3 (f(α) f(β)<0f(\alpha)\,f(\beta)<0 is impossible). Suppose f(α) f(β)<0f(\alpha)\,f(\beta)<0⁠.
Then α<β\alpha<\beta (if α=β\alpha=\beta the product is f(α)2≥0f(\alpha)^2\ge0⁠) and f(β)−f(α)≠0f(\beta)-f(\alpha)\ne0⁠, since the values have opposite signs.
The zero of the chord through (α,f(α))(\alpha,f(\alpha)) and (β,f(β))(\beta,f(\beta)) is

c∗=α f(β)−β f(α)f(β)−f(α)c^*=\frac{\alpha\,f(\beta)-\beta\,f(\alpha)}{f(\beta)-f(\alpha)}

and it lies strictly between α\alpha and β\beta (a weighted average with positive weights).
The formula for cnc_n is the same expression with an−1,bn−1a_{n-1},b_{n-1} in place of α,β\alpha,\beta⁠; its numerator and denominator are continuous, and the denominator tends to f(β)−f(α)≠0f(\beta)-f(\alpha)\ne0⁠, so lim⁡n→∞cn=c∗\lim_{n\to\infty}c_n=c^*⁠.
But each cnc_n equals ana_n or bnb_n⁠, with lim⁡n→∞an=α\lim_{n\to\infty}a_n=\alpha and lim⁡n→∞bn=β\lim_{n\to\infty}b_n=\beta⁠, so every limit point of cnc_n is α\alpha or β\beta⁠, not c∗c^*⁠:
a contradiction. With Step 2, f(α) f(β)=0f(\alpha)\,f(\beta)=0⁠, which is part 2.

Step 4 (the limit points are roots). By Step 1 every limit point of cnc_n is α\alpha or β\beta⁠.
There are three cases.

  • α=β=:r\alpha=\beta=:r⁠. Then f(r)2=f(α) f(β)=0f(r)^2=f(\alpha)\,f(\beta)=0⁠, so rr is a root, and cnc_n lies between an−1a_{n-1} and bn−1b_{n-1}⁠, so lim⁡n→∞cn=r\lim_{n\to\infty}c_n=r⁠.
  • α<β\alpha<\beta and exactly one of f(α),f(β)f(\alpha),f(\beta) is 0. If f(α)=0≠f(β)f(\alpha)=0\ne f(\beta)⁠, the denominator of cnc_n tends to f(β)≠0f(\beta)\ne0 and lim⁡n→∞cn=α f(β)−β⋅0f(β)−0=α\lim_{n\to\infty}c_n=\dfrac{\alpha\,f(\beta)-\beta\cdot0}{f(\beta)-0}=\alpha⁠, a root. If f(β)=0≠f(α)f(\beta)=0\ne f(\alpha)⁠, in the same way lim⁡n→∞cn=β\lim_{n\to\infty}c_n=\beta⁠, a root.
  • α<β\alpha<\beta and f(α)=f(β)=0f(\alpha)=f(\beta)=0⁠. Both limit points α\alpha and β\beta are roots.

In every case each limit point is a root: this is part 3. In the first two cases cnc_n converges to a root, which is part 4.
If ff has only one root in [a,b][a,b]⁠, the third case cannot occur (it has two roots), so lim⁡n→∞cn=r\lim_{n\to\infty}c_n=r⁠.

Conclusion. For every continuous ff with a bracket, the ends of the bracket converge, at least one limit is a root, and every limit point of the points cnc_n is a root.
When the root in the bracket is unique, cnc_n converges to it, with no assumption of convexity.

What we did not prove. When ff has several roots, it may be that α<β\alpha<\beta and both are roots, with both ends moving forever.
Then the argument shows only that every limit point of cnc_n is a root; we do not claim that cnc_n converges, and we do not know whether this case can occur.
The proof also says nothing about the rate, or about one end staying fixed:
for these we used convexity.

Each step shrinks the error about 14-fold (we define and measure the rate in the page on the rate of convergence) and aa stays at 0 while bb moves, as Claim 4 says of a convex function:
in this table that is harmless.

To reach 10−1010^{-10}⁠, regula falsi needs 11 steps on the monthly payments and bisection 40 (in the explorer, with the tolerance set to 10−1010^{-10}⁠); the counts follow the stopping rule of the explorer, εn\varepsilon_n and also δn\delta_n⁠, not the width formula alone.

In the explorer, choose the example “Fixed end: x^10 − 1”: the function x10−1x^{10}-1 on [0,1.3][0,1.3]⁠.
The curve is flat near 0 and steep near the root, and at every step the new point cc falls on the same side of the root.
So the right end stays fixed at 1.3, and the left end advances slowly toward the root (0, 0.094, 0.18, 0.26, and so on):
the method converges, but slowly:

Steps to reach 10−1010^{-10}BisectionRegula falsi
Monthly payments, [0,0.05][0,0.05]4011
x10−1x^{10}-1⁠, [0,1.3][0,1.3]36104
The graph of x to the tenth minus 1 on the interval from 0 to 1.3: flat near 0 and steep near the root at 1. All the chords start at the fixed right end 1.3 and land to the left of the root, so the left end creeps toward the root.

x10−1x^{10}-1 is convex on [0,1.3][0,1.3] and f(1.3)>0f(1.3)>0⁠, so by Claim 4 the right end stays at 1.3 and the left end advances in small steps:
this is exactly what the figure shows. In regula falsi the εn\varepsilon_n of the explorer is ∣cn−cn−1∣|c_n-c_{n-1}|⁠, not a bound on the error:
for x10−1x^{10}-1 the error is several times the last step (how many, we compute in the step-ratio section).

In real libraries regula falsi does not keep an end fixed: the function falsepos of GSL adds a bisection step whenever the chord step shrank the bracket by less than half.
The Roots.jl library also implements variants that reduce the value of ff at the fixed end.
In our computation, on x10−1x^{10}-1 in [0,1.3][0,1.3]⁠, such a change (the Illinois method: when the same end stays in place twice in a row, its value of ff is halved so that the chord moves; we do not teach it here) reaches ∣f∣<10−10|f|<10^{-10} in 14 steps, against 104 for plain regula falsi and 36 for bisection (stopping by ∣f∣|f| alone).

Press Compare all methods to see both error curves. Bisection goes down on average along a straight line on the log scale, a gain of one binary digit per step; regula falsi can be faster or slower, depending on the shape of ff⁠.

Summary: bisection and regula falsi

MethodNeedsGuaranteedSpeedWeakness
Bisectiona bracket (opposite signs) and continuityyesthe bound on the error halves each stepignores the values of ff
Regula falsia bracket and continuitya root stays in the bracket. cnc_n converges to the root when it is unique (proved here), and in general every limit point is a root; the bracket shrinks at every step, but not necessarily to 0 (for a convex ff one end stays fixed)often faster, depends on the shapeone end can stay fixed

In Newton–Raphson and the secant method we use the slope of ff as well, drop the bracket, and gain a great deal of speed at the price of the guarantee:
without a bracket the method may fail to converge.

Continue learning

On the page the rate of convergence we define the rate and measure it for both methods; then comes the practice session for the three lectures:
a table by hand, the usual mistakes, transfer questions and a Python implementation.

Newton–Raphson and the secant method solves an equation in which every evaluation of ff is the pricing of an option, finding the volatility implied by its price, with methods that use the slope.
For a deeper look, the textbook of the course has a chapter on root finding:
Kong, Siauw and Bayen, Python Programming and Numerical Methods.