Regula-falsi method:
x
2
¼ x
1
fðx
1
Þðx
1
x
0
Þ
fðx
1
Þfðx
0
Þ
: (5:12)
The algorithm for the regula-falsi root-finding process is as follows.
(1) Select an interval [x
0
, x
1
] that brackets the root, i.e. f(x
0
)·f(x
1
)<0.
(2) Calculate the next estimate x
2
of the root within the interval using Equation (5.12).
This estimate is the point of intersection of the secant line joining the endpoints of
the interval with the x-axis. Now, unless x
2
is precisely the root, i.e. unless f(x
2
)=0,
the root must lie either in the interval [x
0
, x
2
]orin[x
2
, x
1
].
(3) To determine which interval contains the root, f(x
2
) is calculated and then compared
with f(x
0
) and f(x
1
).
(a) If f(x
0
)·f(x
2
) < 0, then the root is located in the interval [x
0
, x
2
], and x
1
is
replaced with the value of x
2
, i.e. x
1
= x
2
.
(b) If f(x
0
)·f(x
2
) > 0, the root lies within [ x
2
, x
1
], and x
0
is set equal to x
2
.
(4) Steps (2)–(3) are repeated until the algorithm ha s converged upon a solution. The
criteria for attaining convergence may be either or both
(a) x
new
x
old
jj
5
TolðxÞ;
(b) jf ðx
new
Þj
5
TolðfðxÞÞ.
This method usually converges to a solution faster than the bisection method.
However, in situations where the function has significant curvature with conca vity
near the root, one of the endpoints stays fixed throughout the numerical procedure,
while the other endpoint inches towards the ro ot. The shifting of only one endpoint
while the other remains stagnant slows convergence and many iterations may be
required to reach a solution within toler able error. However, the solution is guar-
anteed to converge as subsequent root estimates move closer and closer to the actual
root.
5.4 Fixed-point iteration
The fixed-point iterative method of root-finding involves the least amount of calcu-
lation steps and variable overhead per iteration in comparison to other methods, and
is hence the easiest to program. It is an open interval method and requires only one
initial guess value in proximity of the root to begin the iterative pro cess. If f(x) is the
function whose zeros we seek, then this method can be applied to solve for one or
more roots of the function, if f (x) is continuous in proximity of the root(s). We
express f(x)asf(x)=g(x)–x, where g(x) is another function of x that is continuous
within the interval between the root x* and the initial guess value of the root supplied
to the iterative procedure. The equ ation we wish to solve is fxðÞ¼0; and this is
equivalent to
x ¼ gxðÞ: (5:13)
That value of x for which Equation (5.13) holds is a root x*offðxÞ and is called a
fixed point of the function gxðÞ: In geometric terms, a fixed point is located at the
point of intersection of the curve y ¼ gxðÞwith the straight line y = x.
To begin the iterative method for locating a fixed point of g (x), simply substitute
the initial root estimate x
0
into the right-hand side of Equation (5.13). Evaluating
320
Root-finding techniques for nonlinear equations