Comparative Study of Numerical Methods For Solving Non-Linear Equations Using Manual Computation
Comparative Study of Numerical Methods For Solving Non-Linear Equations Using Manual Computation
Comparative Study of Numerical Methods For Solving Non-Linear Equations Using Manual Computation
Email address:
Received: June 30, 2019; Accepted: December 25, 2019; Published: January 8, 2020
Abstract: This paper aims at comparing the performance in relation to the rate of convergence of five numerical methods
namely, the Bisection method, Newton Raphson method, Regula Falsi method, Secant method, and Fixed Point Iteration
method. A manual computational algorithm is developed for each of the methods and each one of them is employed to solve a
root - finding problem manually with the help of an TI - inspire instrument. The outcome of the computations showed that all
methods converged to an exact root of 1.56155, however the Bisection method converged at the 14th iteration, Fixed Point
Iterative Method converged at 7th iteration, Secant method converged at the 5th iteration and Regula Falsi and Newton
Raphson methods converged at the 2nd iteration, suggesting that Newton Raphson and Regula Falsi methods are more efficient
in computing the roots of a nonlinear quadratic equation.
Keywords: Numerical Methods, Convergence, Root, Iteration, Manual Computation, Nonlinear Equations
purpose of the study is to compare the number of iterations less than a certain threshold. Hence the relative error formula
needed by a given numerical method to reach a solution and is given by
100
the rate of convergence of the methods. In order to achieve
the aim of this study, manual computational algorithms for (3)
each of the methods are used to find the root of a function.
A similar research conducted compared four iterative 2.1.3. Using Taylor Series
methods for solving non-linear equations that assist to Newton Raphson method can also be derived from Taylor
present a better performing method [9]. MATLAB results Series. This method has proven to be more useful in
were delivered to check the appropriateness of the best computations which has to do with error analysis since
method. With the help of the approximate error graph, the Taylor Series gives an easier approach to evaluation of
Newton’s method was the most robust for solving the approximation error.
nonlinear equation. Besides, Newton’s method gave a lesser When given a function , its updated value in Taylor
number of iterations compared to the others and it showed Series form is written as follows
less processing time. f( ) ≈ f( )+ ( − ) (4)
the point of intersection of the curve with the x−axis in figure
2. Numerical Methods 1, shows that the function = 0, hence equation (3)
2.1. Background of Newton Raphson Method becomes
, , ,…,
(https://images.app.goo.gl/sUAwJLCWzCj8NTN18). 2.1.5. Convergence of Newton Raphson Method
,
Assuming that is a sequence of
'
(1)
lim )
$% | | (
(2)
The method ensures that each iterative solution is updated for some p and some non-zero constant K, the numerical
at every point. method has an order of convergence p and K defines the
asymptotic error constant. The value of p is directly
2.1.2. Termination Condition for Newton Raphson Method
Discarding * and the higher power of n, we get
The iterative process of Newton Raphson method is proportional to the rate of convergence.
terminated at the point when approximate relative error is
Mathematics Letters 2019; 5(4): 41-46 43
| − '| ≤ |< − =|
the function ( ) can be differentiated twice, and δ is a root
In the case of Newton Raphson method, we assume that
+' =
f(xn) and expanding (' + ) and (' + ) ) using
of the function. Substituting into the function Hence the Bisection method has a convergence rate of
with |b − a| as the asymptotic convergence constant, that K =
Taylor’s series about the point δ where f(δ) = 0 we get
1
|b − a|.
/ (') + (') + ⋯ 1
= − 2
(') + (') + ⋯
2.3. Background of Regular Falsi Method
1
Regula Falsi method is based on the rational of similar
/ + (') + ⋯ 1
= − 2
triangles. Its main novelty is that it can be used to compute
(') + (') + ⋯
both zeros and extrema through a single interpolation
formula generalized [7]. This method is based on the
= + 3( * )
(2)
assumption that the graph of y = f(n) in the small interval [an,
(2)
bn] can be represented by the chord joining (an, f(an)) and (bn,
lim = lim
|4 | 6 (2)6
f(bn)). This implies that at the point x = xn = an + hn, at which
→% |4 |5 →% | (2)|
the chord meets the x - axis, we obtain two intervals [an, xn]
and [xn, bn], one of which must contain the root α, depending
If xn → δ as n → ∞. Hence for the root δ, Newton Raphson upon the condition f(an) f(xn) < 0 and f(xn)f(bn) < 0.
method has second order - quadratic convergence and an The general Regula Falsi method recurrence relation is
6 (2)6 given by:
| (2)|
=< − (< − = )
asymptotic error constant of . This means that the
| ( |
6 ( ) | (8 )|6
square of the previous error n is proportional to the (8)
subsequent error .
2.3.1. Algorithm for Regula Falsi Method
2.2. Background of Bisection Method
Step 1: Find point an and bn such that an < bn and f(an)f(bn)
The concept of Bisection method is based on Bolzano’s < 0.
theorem on continuity. Given a function f(x) = 0 such that its Step 2: Take the interval [an, bn] and determine the next
7 =
and (xn, f(xn)), for n = 1, 2,...
8
Step 2: Compute the midpoint of a and b such that
From the error equation
Step 3: Find f(a)f(xm) if f(a)f(xm) < 0, then a = a; b = xm =)
if f(a)f(xm) > 0, then a = xm; b = b
where
Step 4: Find 7 =
8
if f(a)f(xm) = 0 then the root of the function = xm
44 Isaac Azure et al.: Comparative Study of Numerical Methods for Solving Non-linear
Equations Using Manual Computation
)
6 2 6
| 2 |
equation (10) above, we obtain
4 4 ? 2 4
And = ' is independent of K. Hence we can write 2 4 2 4 ?
Where ) )
about the point δ, where f(δ) = 0 we obtain
45
is the asymptotic error constant.
4 4 ? /4 2 2 ⋯1
Therefore, the Regula Falsi Method has a linear rate of 5
4 4 ? 2 5 5
@4 4 ? A 2 ⋯
5
convergence (Hassan, 2016).
1 (')
2.4. Background of Secant Method
B + E
2 1 (')
(') + ⋯ C1 + ( + ) + ⋯D
2 (')
One critical challenge Newton Raphson method is faced
with, which serves as a de-motivation for its usage is the fact
that the derivative of the function given must always be
and this can be written as
=)
found before proceeding to find the root of the function. In
some cases, there are functions where finding their (12)
derivatives is either extremely difficult (if not impossible) or
)=
time consuming [4]. The only way to avoid such problems is where the higher order of n is discarded and the error constant
(2)
(2)
to approximate the derivative by knowing the values of the . With the definition of convergence in mind, we
function at point and the previous approximation. Hence
knowing f(xn) and f(xn−1), the derivative of f(xn) which is want a relation which is in the form:
=F
can be approximated as: G
≈
(13)
?
?
(9) where D and j are to be computed. If can be written as
in equation (13), then we can equally write
=F
G
Substituting equation (8) above into the general Newton
Raphson equation (6), we will get (14)
≈ ?
?
(10) and
=F ⁄G ⁄G
Therefore the Secant method can be expressed as: (15)
) ( )
where
= )F
G ( I
I
? (16)
?
Comparing the powers of n in both sides of equation (16),
2.4.1. Algorithm for Secant Method wec get
J =1+
Step 1: Write the equation in the form f(x) = 0
G
Step 2: Test for values of x using the function f(x) to obtain
the interval (xn, xn−1) in which the real root lies.
Step 3: Compute f(xn) and f(xn−1) which can be expressed as
Step 4: Substitute result of step 3 into
j2 − j − 1 = 0 (17)
2=
Step 5: Substitute result from step 4 into
' + into
In the case of the Secant method, lets assume that δ is the The Fixed Point Iteration Method is another root - finding
root of the function f(x) = 0. Substituting numerical method used to approximate solutions the equation
Mathematics Letters 2019; 5(4): 41-46 45
f(x) = 0. To start with, we rewrite the above function in the sequence defined by
= U( − 1)
form x = φ(x), this way any solution of the function f(x) = 0
with a fixed point φ can also be considered as a solution of x
= φ(x). Hence the general recursive iterative process for converges to the unique fixed point x in [a, b].
Fixed Point Iteration Method is given by
xn+1 = φ(x), n = 0, 1, 2,... (18) 3. Results and Discussion
2.5.1. Algorithm for Fixed Point Iteration Method The solution of the equation + − 4 = 0 using
∈ R=, <S
To find the fixed point of φ in an interval [a, b], given the Bisection method, Newton Raphson method, Regula Falsi
equation x = φ(x) with an initial guess method, Secant method and Fixed Point Iteration method is
X YX Z(YX ) Z (YX ) [X = − YX = YX + [X
Z(YX )
Z (YX ) \
0 1.5 -0.25 4 0.00625 1.5625
1 1.5625 0.003906 4.125 -0.000947 1.56155
2 1.56155 -0.000012 4.1231 0.000003 1.56155
Table 1, shows output results of equation (19) when Newton Raphson method is used. The method converged to an exact
solution of 1.56155 after the 2nd iteration.
Table 2 indicates results obtained when the Bisection method is used to solve the nonlinear equation (19). It gave a final
output exact root of 1.56156 but converged after the 14th iteration.
Table 3 shows results after Regula Falsi method was used to find the root of equation (19). It converged to the solution
1.56155 just as Newton Raphson method. The method converged after the 2nd iteration.
46 Isaac Azure et al.: Comparative Study of Numerical Methods for Solving Non-linear
Equations Using Manual Computation
X YX \ YX Z YX \ Z YX [X YX \ YX [X Z YX \
1 1.5 1.6 -0.25 0.16 0.022222 1.57778 0.06717
2 1.6 1.57778 0.16 0.06717 0.016078 1.4951 -0.269576
3 1.57778 1.4951 0.006717 -0.269576 -0.066188 1.56129 -0.001084
4 1.4951 1.56129 -0.269576 -0.001085 0.000267 1.56156 0.00003
5 1.56129 1.56156 -0.001084 0.00003 0.000007 1.56155 -0.000012
6 1.56156 1.56155 0.000003 -0.000012 -0.000003 1.56155 -0.000012