May Myint Thwe
May Myint Thwe
Abstract
Microsoft Excel is a very simple system to use and it is a widely used spreadsheet
application. A spreadsheet can be used to resolve problems that are iterative, recursive, or
tabular in conceptual format in the problem-solving procedure. It can also be used to
make complex analysis on data without having to study programming. This paper
describes a method to execute spreadsheet computations for root finding methods. The
common root-finding methods are Newton-Raphson, Secant and Bisection methods, etc.,
and root finding problem is a problem of finding a root of the equation f(x)=0, where f(x)
is a function of x. Additionally, this work shows how Microsoft Excel can be used to make a
comparative study between Newton-Raphson method, Secant method and Bisection
method with the least number of iterations when applied to resolve a single variable
nonlinear equation.
Key words: Microsoft Excel, Numerical methods, Convergence, Roots, Algorithm.
1. Introduction
Microsoft Excel is the influential software to use and it is the most commonly used
spreadsheet. Its usage seems to be at the increase by the accessibility of the program in almost
all personal computers. Moreover, Microsoft Excel can be used effectively by all branches of
science and engineering. The program has been used in solving several mathematical problems
in many different ways.[8] One of the most related computational problems is the root finding
problem which arises in a wide variety of practical applications in Physics, Chemistry,
Engineering, etc.[4] By the nature of the program, numerical methods for root finding problems
can be made much easier to be implemented.[8] Root finding problem is a problem of finding a
root of the equation f(x)=0 and different methods such as Newton-Raphson, Secant, Bisection
methods etc., converge to the root at different rates.[4] This paper aims at comparing the
performance in relation to the rate of convergence of three root finding methods: Newton-
Raphson method, Secant method, and the Bisection method. Moreover, this study is to compare
the number of iterations needed by a given numerical method to reach a solution and the rate of
convergence of the methods.
In this work, manual computational algorithms for each of the methods are used to find
the root of a function in order to reach the aim of this study. Furthermore, this paper illustrates
how excel can be used to make comparative study of three well-known root finding methods for
Professor, Dr, Head of the Department of Computer Studies, Yadanabon University
Yadanabon University Research Journal 2022, Vol.12, No.2 361
solving non-linear equations.[1] Therefore, this system is at comparing the rate of performance
with the least number of iterations of Newton-Raphson, Secant and Bisection as methods of root-
finding with MS excel.
The Secant formula for solving non-linear equations can be expressed as; [6]
(xk −xk−1 )
xk+1 = xk − f(xk )
f(xk )−f(xk−1 )
So, Newton iteration takes about two functions evaluation per iteration. For Secant method, it
only requires the evaluation of f(x). For Bisection method, there is a continuous function f(x)=0
on a closed interval [x1, x2], i.e., f(x1)f(x2) < 0 , then, the function f(x)=0 has at least a root or zero
in the interval [x1, x2].
Table 1 shows the iteration data obtained for Newton-Raphson method with the aid of
Microsoft Excel. It was observed in Table 1 that using the Newton-Raphson method, the function,
f(x)= 3x + sin x-ex = 0 converges to 0.360422 after the 3rd iteration with error 0.000000.
Table 2. Root of f(x) = 3x + sin x - ex Using Secant Method with MS Excel.
366 Yadanabon University Research Journal 2022, Vol.12, No.2
Table 2 shows the iteration data obtained for Secant method with the aid of MS Excel. It
was observed in Table 2 that using the Secant method, f(x)= 3x + sin x-ex = 0 converges to
0.360422 after the 5th iteration with error 0.000000.
Table 3 shows the iteration data obtained for Bisection method with the aid of MS Excel. It was
observed in Table 3 that using the Bisection method, the function, f(x)= 3x+sin x-ex = 0 converges
to 0.360422 after the 21st iteration with error 0.000000.
Yadanabon University Research Journal 2022, Vol.12, No.2 367
As shown in Table 4, comparing the Newton-Raphson method and the Secant method,
Newton's method converges faster than Secant method. It can also be seen that the Bisection
method always converges on the root, but the rate of convergence is very slow. Again, comparing
the Secant method and the Bisection method, Secant method converges faster than Bisection
method.
0.600000
0.500000
0.400000
0.300000
0.200000
Newton-Raphson
Secant
0.100000
Bisection
0.000000
0 5 10 15 20
Figure 4. Comparison of the results of the three numerical methods
Figure 4 is shown comparing the results of the three methods under investigation. The
368 Yadanabon University Research Journal 2022, Vol.12, No.2
rates of convergence of the methods can be seen in the order: Bisection method > Secant
method > Newton-Raphson method in term of convergence. Therefore, the Newton-Raphson
method is the fastest method for converging on a single root of a function and it is the most
widely used method.
4. Conclusion
This paper intends to compare the performance in relation to the rate of convergence of
three numerical methods namely, the Bisection method, Newton Raphson method, and Secant
method. Furthermore, the basic objective of this system is to get the faster calculation time and
better performance of the MS Excel application for root finding methods. Manual calculation is
time consuming and prone to error, though it is important in understanding the procedure. The
advantage of using MS Excel is that it consumes less time to find the root and the familiar GUI of
Excel and the easy-to-use interface of Excel can provide the calculations as a very powerful and
useful tool. From the results obtained in the computations with the help of Microsoft excel,
Newton-Raphson method converges faster to the solution of the function compared to the other
methods. Moreover, this can be seen in the number of iterations taken by each of the methods to
converge to the solution. Therefore, it is clear that Newton-Raphson method is the best of the
three methods employed in solving nonlinear equations and this method converges faster to the
exact solution than other methods at each step of the iterations.
Acknowledgments
First of all, I wish to express my sincere thanks to Dr Tint Moe Thuzar (Rector), Dr U Khin Myo
(Pro-Rector), Dr Myint Myint Oo (Pro-Rector), and Dr Khin Maw Maw Soe (Pro-Rector), Yadanabon
University, for their kind permissions for the submission of this research paper. Finally, I would like to
express my sincere gratitude to Dr Pho Kaung, Rector(Retired), University of Yangon, for his enthusiastic
guidance and various suggestions.
References
1. Azure I., Aloliga G., Doabil L., ISSN: 2575-503X, Ghana, (2019), Comparative Study of Numerical Methods
for Solving Non-linear Equations Using Manual Computation.
2. Curtis F. Gerald, Patrick O. Wheatley, California Polytechnic State University, (2004), Applied Numerical
Analysis.
3. Djamila H., Faculty of Engineering, Universiti Malaysia Sabah, ICoAIMS, (2017), Excel spreadsheet in
teaching numerical methods.
4. Ehiwario, J.C., Aghamie, S.O., Department of Mathematics, College of Education, Agbor, Delta State.,
ISSN (e): 2250-3021, ISSN (p): 2278-8719 Vol. 04, Issue 04, (2014), Comparative Study of Bisection,
Newton-Raphson and Secant Methods of Root- Finding Problems.
Yadanabon University Research Journal 2022, Vol.12, No.2 369
5. Fuhrer C., Sopasakis A., FMN050, (2014), Newton-Raphson Method, Regula Falsi Method, Secant
Method, Fixed Point Method.
6. Jinadu, Adeleke O., Federal University of Agriculture, Abeokuta, (2014), Comparison of Newton, Secant
and Fixed-Point Iteration Methods in the Solution of Non-linear Equations.
7. Joe D. Hoffman, Department of Mechanical Engineering, Purdue University, West Lafayette, Indiana,
(2001), Numerical Methods for Engineer and Scientists.
M. El-Gebeily, B. Yushau, ISSN 1551-3440, Vol. 4, no.1, (2007), Numerical ethods with MS Excel.