A Combinatorial Approach To Decide Initial Root Va
A Combinatorial Approach To Decide Initial Root Va
1
School of Engineering, Asia Pacific University of Technology and Innovation,
Bukit Jalil, Kuala Lumpur, Malaysia; E-mail: [email protected]
2
School of Computing, Asia Pacific University of Technology and Innovation,
Bukit Jalil, Kuala Lumpur, Malaysia; E-mail: [email protected]
3
Department of Mathematics, T. B. M. L. College, Porayar, Tamil Nadu State, India
E-mail: [email protected]
Abstract. This study aims at developing the real root of an algebraic or a transcendental
equation based on non-linear model and a combinatorial numerical approach for solving
nonlinear equations. The introduction of Bisection, False-Position and Newton–Raphson
methods to identify the real positive root of an equation which is provided here. The rate of
convergence is fastest in Newton–Raphson method due to the quadratic convergence compared
with the other two iterative methods. We have applied here the three iterative methods in solving
nonlinear equations in MATLAB environment and compared the outcomes of results as well as
geometrically also. Finally, an illustrative algebraic example is discussed, and the MATLAB
outputs are provided to check the validity of the new approach.
1. Introduction
We can find the roots of an algebraic or transcendental equation by using 3 iterative methods in
Numerical methods namely Bisection, False position and Newton–Raphson method. Applications in
engineering is to determining the root value of t in Fourier analysis of the instantaneous value of a
waveform, the value of t in damped oscillation of a system and determining the value of t in motion of
a particle in an electrostatic field which is represented as y = f(t). This area of research has been studied
by many researchers. Claudio Gutierrez et al studied about Complexity of the bisection method in 2007.
Saba Akram et al [7] wrote a research paper about Newton Raphson Method which is all-inclusive to
solve the non-square and non-linear problems. The study also compared the rate of performance, rate of
convergence of Bisection method, root findings of the Newton method and False Position method. Later
a Comparative Study of Bisection, Newton-Raphson and False Position Methods of Root- Finding
Problems were done by Ehiwario, J.C [5]. In a more recent review, Ali Ebrahimnejad et al [2] proposed
a revisit of numerical approach for solving linear fractional programming problem in a fuzzy
environment. Extensive studies have been done and many methods of solving nonlinear equations are
also available in the literature [1,3,4,6,7]. In this paper we consider nonlinear equations and operational
methodologies for solving the problem are provided. We have applied here three iterative methods in
solving nonlinear equations and compared the outcomes with the help of results attained and their
MATLAB outputs.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
The paper is organized as follows. In section 2, the preliminaries are briefly introduced and the
perception of nonlinear equations with essential definitions and notions with iterative methods are
explained. An application of these results and their MATLAB outputs are specified by numerical
illustration in section 3 and some concluding remarks are given in section 4.
2. Preliminaries
2.3 Root
A real number which satisfies the real root of the equation f x( ) =0 if and only if f ( ) =0.
Let f(x) be a continuous function in [a, b]. Let f a( ) 0 and f b( ) 0then f x( ) =0 will have atleast one
3. Iterative methods
There are three iterative methods (repetitive methods) are going to discuss and the corresponding figure
are explained as below: They are:
3.1. Bisection Method or Bolzano Iterative method
3.2. False Position Method or Regula-Falsi method
3.3. Newton-Raphson Method or Method of Tangents
2
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
3.1. The Bisection method (or) The Bolzano method (or) Interval Halving method
Consider the equation f x( ) =0 . Assume the value a and b so that f a( ) 0 and f b( ) 0or vice versa.
There is a change of sign between a and b so that the root lies between a and b. Let a < b then
+b
a find x1 = and f x( ) 01 = . Therefore x1 is the root of f x( )
=0 otherwise: 2
+b
(i) f x( ) 01 , the root lies between x1 and b. x2 = x1 and find f x( )2 and so on (or)
2
(ii) f x( ) 01 , the root lies between a and x1. x2 = a + x1 and find f x( )2 and so on. Proceeding in 2
this way until the last two consecutive roots are correct up to the desired accuracy equal, stop the
iterations. This method is known as the Bisection or Bolzano method.
For example, identify the real positive root of an algebraic equation f x( )= + − =x3x2 1 0 . The
MATLAB output results are depicted in table 3.1.1. and corresponding graph is shown in figure 3.1.2.
Table 3.1.1.
Bisection Method
a(ve) b Sign of
Iteration (+ve) c=(a+b)/2 f(c) f(c)
-
1 0 1 0.5 0.625 negative
-
2 0.5 1 0.75 0.016 negative
3 0.75 1 0.875 0.436 positive
4 0.75 0.875 0.813 0.197 positive
5 0.75 0.813 0.781 0.087 positive
6 0.75 0.781 0.766 0.035 positive
7 0.75 0.766 0.758 0.009 positive
8 0.75 0.758 0.754 0.003 negative
9 0.754 0.758 0.756 0.003 positive
10 0.754 0.756 0.755 0 positive
3
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
Figure 3.1.2
Consider the equation f x( ) =0 . Assume the value a and b so that f a( ) 0 and f b( ) 0or vice versa.
There is a change of sign between a and b so that the root lies between a and b. The graph of
y = f x( ) crosses x-axis and y = 0. The equation of the tangent line joining between two points A and
B is: =
y− =y0m x( − x0), where m is the slope of tangent line.m dydx (x y0 0, )
− f a(
y− f a( )= f b( )
)
(x−a) , b−a
x
The first approximation to the root is x = 1 and in x- axis y = 0
−0 f a( )= f
b( )− f a( )(x1 −a) b−a
−a)
= −x1 a (b f a( )
f b( )− f a( )
f b( )− f a( )
4
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
If f x( ) 01 then x1is b and f x( )1 is f b( ) . Proceeding like this we will get the root x2 , x3 and so on.
Finally we will see that the two successive roots are equal to up to the desired accuracy then stop the
iterations. This method is called the method of false position. The procedure is geometrically depicted
in figure
B[b,f(b
x=d
x=c
x=a
x=b
Figure 3.2.1.
For example, identify the real positive root of an algebraic equation f x( )= + − =x3x2 1 0 . The
MATLAB output results are depicted in table 3.2.1. and corresponding graph are as shown in figure
3.2.1
Regula-Falsi Method
a(ve)
Iteration b(+ve) f(a) f(b) c f(c)
-
1 0 1 -1 1 0.5 0.625
- -
2 0.5 1 0.625 1 0.692 0.189
- -
3 0.692 1 0.189 1 0.741 0.043
- -
4 0.741 1 0.043 1 0.752 0.009
- -
5 0.752 1 0.009 1 0.754 0.002
-
6 0.754 1 0.002 1 0.755 0
5
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
Figure 3.2.1
3.3 The Newton-Raphson method (or) The method of Tangents:
Consider the equation f x( ) =0 . Draw the tangent to the curve and it meets at point P to the curve and
(x
Since ( n+1,
0)
)lies in equation (1), we get
−0 f x( )n = f1( )(xn xn+1−xn) + f x( n) ,n =
6
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
This is known as the Newton-Raphson method. Taking the initial root value choose from the root lies
between a and b in [a, b]. Substituting the root value in the formula consecutively we will get the root
which is equal to the desired accuracy.
The rate of convergence is faster in Newton-Raphson method compare with the other two methods.
The condition for convergence of Newton-Raphson method is similar to the iteration method
y y
A[x0,f(x0)]
B[x1,f(x1)]
X
O x
X Roo
'
( x) 1
fx( )
xn +1 = xn − ' n = ( xn )
f ( xn )
= −1 [ f '(x)]2
f x f( ). ''(x)
1
= − +1 [ f '(x)]2
7
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
f x f( ) '' ( )x f ' ( )x 2
Table 3.3.1
Newton-Raphson Method
Iteration x x(n+1)
1 0.5 0.857
2 0.857 0.764
3 0.764 0.755
4 0.755 0.755
For example, identify the real positive root of an algebraic equation f x( )= + − =x3x2 1 0 . The
MATLAB output results are depicted in table 3.3.1. and the corresponding graph are shown in figure
3.3.2.
f x( )= + − =x3 x2 1
( ) 6x = +x 2 The rate of
8
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
convergence is: f x f( )
'' ( )x f ' ( )x 2
We can decide any value from [0, 1] must satisfy the relation.
Suppose we decide the initial root value as x0 = 0.500 f (0.5) f '' (0.5) f ' (0.5) 2
( 0.625)(5)− 1.75 2
−3.125 3.063
We are deciding the initial root value from Regula-Falsi method as x0 = 0.500
The critical speed of oscillation of a loaded beam is denoted by x are given by the equation f
x( )= + − =x3 x2 1 0 .
Identify the real root of critical speed of oscillation of a loaded beam given in an algebraic equation
f x( )= + − =x3 x2 1 0 , correct to 3 decimal places writing MATLAB code:
(a) the Bisection method,
(b) the Regula-Falsi method, and
(c) the Newton-Raphson method, taking the initial root value from Regula-Falsi method,
9
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
(d) Identify with reason which method converges fastest. Compare the results with other two methods in table
and project these values in graph.
end
% Plot the results figure('Color','White')
plot(1:i-1,x(1:i-1),'*-b') hold on
10
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
11
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
8 0.754
9 0.756
10 0.755
11 0.755
The following MATLAB Figure shows the convergence of the three methods and the number of
iterations to be taken to obtain the root. It can be seen that the error of the Bisection method are
frustrated along the iteration. While the errors of the Regula-Falsi and Newton Raphson method
decrease when the number of iteration increases. The result shows that the Bisection method presents
the biggest number of iterations and time in all cases. However, the Regula Falsi method have fairly
similar results whereas the Newton Raphson method have the smallest number of iterations and have
the smallest time in most cases.
Figure 4.2.1
From the figure 4.2.1, we see that the Newton-Raphson method is the fastest in the rate of
convergence. Comparing Newton Raphson with Bisection method 2.5 times faster and with
RegulaFalsi method 1.5 times faster.
Conclusion
In this work, we have presented the three iterative methods in solving non-linear equations in
MATLAB environment. The MATLAB outputs of the optimal solutions are also provided to check the
effectiveness of the proposed method and compared the outcomes. The solution methodology offered
here will be useful for many real life problems in engineering. This research work can be extended to
solve non-linear equations in fuzzy environment in the future.
12
International conference on computer vision and machine learning IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1228 (2019) 012063 doi:10.1088/1742-6596/1228/1/012063
References
[1] Abdulaziz G. Ahmad, Comparative Study of Bisection and Newton-Rhapson Methods of RootFinding
Problems, international Journal of Mathematics Trends and Technology,19 (2015) 121-129.
[2] Ali Ebrahim nejad et al, A revisit of numerical approach for solving linear fractional programming
problem in a fuzzy environment, Applied Mathematical Modelling 57 (2018) 459–47.
[3] Ching-Long Su et al, A two-stage algorithm integrating genetic algorithm and modified Newton method
for neural network training in engineering systems, Expert Systems with Applications 38 (2011) 12189–
12194.
[4] Claudio Gutierrez et al, Complexity of the bisection method, Theoretical Computer Science 382 (2007)
131–138.
[5] Ehiwario, J.C., Aghamie, S.O, Comparative Study of Bisection, Newton-Raphson and Secant Methods
of Root- Finding Problems, IOSR Journal of Engineering 04 (2014) 01-07.
[6] Khalid Ali Hussein et al., Parallel Hybrid Algorithm of Bisection and Newton-Raphson Methods to Find
Non-Linear Equations Roots, IOSR Journal of Mathematics 11(2015) 32-36.
[7] Saba Akram et al, Newton Raphson Method, International Journal of Scientific & Engineering Research,
6(2015) 1748-1752.
13