Proofs: Ridders' method
These are the human proofs of Ridders' method, at full length.
Ridders' method keeps the bracket, at least halves it in every pass, and ends full
This proof shows: correctness, termination, global-convergence.
Write for the bracket at the start of a pass, with , , , and assume (otherwise line L3 returns an exact root). The arithmetic is exact except where floating point is mentioned.
Claim 1: the Ridders point is in the bracket
Since , , so and . Hence .
Claim 2: the Ridders point lies in the half with the sign change
Suppose , so and . If , the sign change is in , and , so . If , the sign change is in , and , so . The case is the same with all signs reversed.
Claim 3: the bracket is kept and at least halves
Let be the half, or , whose ends have opposite signs; by Claim 2, . If the program returns an exact root. Otherwise, in line L7:
- If and have opposite signs, the new bracket is the interval between and , which lies in and has a sign change.
- Otherwise has the sign of , so it has the sign opposite to the far end of , that is the end of other than . If that end is , the test holds and the new bracket is . If that end is , then has the sign of , the first two tests fail, and the new bracket is .
In all cases the new bracket has a sign change and lies inside , so its width is at most .
Claim 4: termination, the certificate and convergence
Each pass returns or increases , so the loop ends. By Claim 3, after passes the width is at most , so with line L8 stops after at most passes, with at most two evaluations per pass and two at the start. When line L8 stops, and , so by the intermediate value theorem a root lies in , within of the midpoint returned.
If the loop never stops, the nested brackets shrink to a point , and with gives by continuity, so .
In floating point, Claims 1 to 3 hold for the computed values as long as the computed signs of are used consistently, because line L5 clamps into and line L7 only compares signs; but the halving in Claim 3 rests on Claim 2, whose sign argument uses the computed , , and holds for them. When and are adjacent numbers, is not strictly between them and line L3 stops.
Claim 5: exactness for an exponential times a line
If , choose : then is linear, so the values at , , are collinear and the positive root of is . The false position point of a linear function is its zero, so .
What is not proved
No rate of convergence is proved here. The quadratic rate claimed by Ridders and the one-sided behaviour of the examples are observations.