A Review of Bracketing Methods For Finding Zeros of Nonlinear Functions
A Review of Bracketing Methods For Finding Zeros of Nonlinear Functions
3, 137 - 146
HIKARI Ltd, www.m-hikari.com
https://doi.org/10.12988/ams.2018.811
Copyright
c 2018 Somkid Intep. This article is distributed under the Creative Commons
Attribution License, which permits unrestricted use, distribution, and reproduction in any
medium, provided the original work is properly cited.
Abstract
This paper presents a review of recent bracketing methods for solving
a root of nonlinear equations. The performance of algorithms is verified
by the iteration numbers and the function evaluation numbers on a
number of test examples.
1 Introduction
Many scientific and engineering problems are described as nonlinear equations,
f (x) = 0. It is not easy to find the roots of equations evolving nonlinearity
using analytic methods. In general, the appropriate methods solving the non-
linear equation f (x) = 0 are iterative methods. They are divided into two
groups: open methods and bracketing methods.
The open methods are relied on formulas requiring a single initial guess
point or two initial guess points that do not necessarily bracket a real root.
They may sometimes diverge from the root as the iteration progresses. Some
of the known open methods are Secant method, Newton-Raphson method, and
Muller’s method.
The bracketing methods require two initial guess points, a and b, that
bracket or contain the root. The function also has the different parity at these
138 Somkid Intep
two initial guesses i.e. f (a)f (b) < 0. The width of the bracket is reduced as
the iteration progresses until the approximate solution to a desired accuracy
is reached. By following this procedure, a root of f is certainly found. Some
of the known bracketing methods are Bisection method, Regula Falsi method
(or False Position), and Improved or modified Regula Falsi method.
In this article we will focus only on the bracketing methods.
2 Bracketing Methods
In the rest of the text, let f be a real and continuous function on an interval
[a, b], and f (a) and f (b) have different parity i.e. f (a)f (b) < 0. Therefore,
there is at least one real root r in the interval [a, b] of the equation f (x) = 0.
method, called BRFC, by using combination of the Bisection and Regula Falsi
with the quadratic polynomial interpolation based on one endpoint, midpoint
and Regula Falsi point.
3 Bracketing Algorithms
In this section, some of bracketing algorithms based on good results judging
in relevant literatures are provided for finding a zero of a nonlinear function f
which is a real and continuous function on an initial interval [a, b]. The function
also satisfies the condition such that f (a)f (b) < 0, thus there is at least one
zero, r, of f . The maximum number of iterations, Nmax , and tolerance, , are
given for all following algorithms.
1. [Initialization] n = 0, an = a, bn = b.
an f (bn )−bn f (an )
2. [Regula Falsi Iteration] cn = f (bn )−f (an )
.
3. [Convergence Test]
If f (an )f (cn ) < 0 then set k = | αf (cn )
bn −cn
|, compute xn = (1+k)an f (bn )−bn f (an )
(1+k)f (bn )−f (an )
5. [Newton-like Iteration]
q(xn ) = f (xn )−2f (xn −f2f(x2 (x
n ))+f (xn −2f (xn ))
n)
− f (xn )−2f (xn −f (xn ))+f (xn −2f (xn ))
2f (xn )f (xn −f (xn −f (xn )))
.
(bn −an )|f (xn )|
w n = xn − 2[q(xn )f 2 (xn )+f (xn )−f (cn )]
.
6. fp = f (xp ).
7. [New endpoints of the interval]
If fa fp < 0 then xb = xp , fb = fp
If fa fc > 0 then xa = xc , fa = fc
else xa = xp , fa = fp
If fb fc > 0 then xb = xc , fb = fc .
8. [Switching mechanism between Bisection and Regula Falsi]
If |fa − fb | > 10|xa − xb | or |fa − fb | < 0.1|xa − xb | then
xa +xb
Bisecton: xc = 2
xa fb −xb fa
else Regula Falsi: xc = fb −fa
.
9. fc = f (xc ).
10. If n > Nmax then stop algorithm.
11. If n > 1 and |x0p − xp | < then the zero is xp and stop algorithm.
12. If fp = 0 then the zero is xp and stop algorithm.
13. n = n + 1, x0p = xp and repeat step 4 until convergence is achieved.
A review of bracketing methods 143
4. If xs = xc then set xs = xb .
9. If f (xp ) = 0 or |xp − xs | < then print zero x∗ , f (x∗ ) and stop algorithm.
11. For i = 1 to 4 do
4 Numerical Examples
In general, researchers support their algorithm performances by the number
of iterations or the number of function evaluations. The less number of itera-
tions it takes, the more effectively the algorithm performs. Moreover, the less
number of evaluations it takes, the faster calculation time we get. Then if the
algorithm has both advantages, it is generally considered as a very good one.
In this section, we compare the performance of the algorithms that were pre-
sented in the previous section. In all algorithms, we take = 1 = 2 = 10−13 as
the tolerance. Nonlinear functions with their initial interval and approximate
zeros are shown in Table 1.
Table 2 shows comparison of the iteration numbers among BS, RF, IRF,
AC, RBP and BRFC. The numbers of function evaluations are also presented
144 Somkid Intep
in the table. It can be seen from the iteration numbers that the RBP and
BRFC methods, which are combination of Regula Falsi and Bisection with
second order polynomial interpolation technique, are very effective. The IRF
method is also considered as a quite good method for finding zeros for all
functions except the function f5 . It suffers due to the concavity of f5 in a
certain search intervals. This suffering also occur in the classical Regula Falsi
method. However, the BS method has the biggest number of iterations in most
cases. On the other hand, if we consider the number of function evaluations,
the RBP method is the best one as it takes less number of function evaluations
in most cases. For instance, the RBP method takes13 function evaluations for
test function f7 while the BRFC method takes 14 and the others are even
more.
5 Conclusion
The aim of this paper is to present a review of recent bracketing methods for
finding a zero of nonlinear functions. Several algorithms have been developed
from time to time. Some bracketing algorithms are chosen to present and test
numerically with some functions in order to indicate their performances. Based
on the numerical results, the RBP, which has both less number of iterations
and less number of function evaluations, is considered as the best method.
However, this method is quite complicated. It would be better if there is
anyone have simpler structure with more or less number of iterations.
References
[1] J. Chen, New modified regula falsi method for nonlinear equations, Ap-
plied Mathematics and Computation, 184 (2007), 965 - 971.
https://doi.org/10.1016/j.amc.2006.05.203
[2] M. Dowell and P. Jarratt, A modified regula falsi method for computing
the root of an equation, BIT, 11 (1971), 168 - 174.
https://doi.org/10.1007/bf01934364
[3] R.G. Gottlieb and B.F. Thompson, Bisected direct quadratic regula falsi,
Applied Mathematical Science, 4 (2010), 709 - 718.
[4] M.A. Hafiz, A new combined bracketing method for solving nonlinear
equations, Journal of Mathematical and Computational Science, 3 (2013),
87 - 93.
[5] N.A.D. Ide, A new algorithm for solving nonlinear equations by using
least square method, Mathematics and Computer Science, 1 (2016), 44 -
47.
[6] J. Naghipoor, S.A. Ahmadian and A.R. Soheili, An improved regula falsi
method for finding simple zeros of nonlinear equations, Applied Mathe-
matics Sciences, 2 (2008), 381 - 386.
[7] A. Neamvonk, A modified regula falsi method for solving root of nonlinear
equations, Asian Journal of Applied Sciences, 3 (2015), 776 - 778.
[9] P.K. Parida and D.K. Gupta, An improved regula-falsi method for enclos-
ing simple zeros of nonlinear equations, Applied Mathematics and Compu-
tation, 177 (2006), 769 - 776. https://doi.org/10.1016/j.amc.2005.11.034
[10] P.K. Parida and D.K. Gupta, A cubic convergent iterative method for
enclosing simple roots of nonlinear equations, Applied Mathematics and
Computation, 187 (2007), 1544 - 1551.
https://doi.org/10.1016/j.amc.2006.09.071
[12] S. Shaw and B. Mukhopadhyay, An improved regula falsi method for find-
ing simple roots of nonlinear equations, Applied Mathematics and Compu-
tation, 254 (2015), 370 - 374. https://doi.org/10.1016/j.amc.2014.12.041
[16] X. Wu, Z. Shen and J. Xia, An improved regula falsi method with
quadratic convergence of both diameter and point for enclosing simple
zeros of nonlinear equations, Applied Mathematics and Computation, 144
(2003), 381 - 388. https://doi.org/10.1016/S0096-3003(02)00414-9