<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Appl. Math. Stat.</journal-id>
<journal-title>Frontiers in Applied Mathematics and Statistics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Appl. Math. Stat.</abbrev-journal-title>
<issn pub-type="epub">2297-4687</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fams.2024.1360628</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Applied Mathematics and Statistics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Numerical methods for solving second-order initial value problems of ordinary differential equations with Euler and Runge-Kutta fourth-order methods</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Workineh</surname> <given-names>Yenesew</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/2632126/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Mekonnen</surname> <given-names>Habtamu</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2598601/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Belew</surname> <given-names>Basaznew</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/2589961/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
</contrib-group>
<aff><institution>Department of Mathematics, College of Natural and Computational Sciences, Mekdela Amba University</institution>, <addr-line>Tulu Awuliya</addr-line>, <country>Ethiopia</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Andrea Franceschini, University of Padua, Italy</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Pengyu Chen, Northwest Normal University, China</p>
<p>Waleed Mohamed Abd-Elhameed, Jeddah University, Saudi Arabia</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Habtamu Mekonnen <email>habtamumekonnen2012&#x00040;gmail.com</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>22</day>
<month>02</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>10</volume>
<elocation-id>1360628</elocation-id>
<history>
<date date-type="received">
<day>23</day>
<month>12</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>06</day>
<month>02</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2024 Workineh, Mekonnen and Belew.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Workineh, Mekonnen and Belew</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<p>This paper presents two standard numerical methods for solving second order initial value problems for ordinary differential equations (ODEs). The Euler and the Runge-Kutta fourth-order methods are applied without any discretization or restrictive assumptions for solving ODEs. The numerical solutions obtained by the two methods are in good agreement with the exact solutions. The convergence and error analysis which are discussed demonstrate the effectiveness of the methods. The results obtained from the two numerical methods show that the RK4 method is appropriate, consistent, convergent, quite stable, and more accurate than the Euler&#x00027;s method.</p></abstract>
<kwd-group>
<kwd>ordinary differential equation (ODE)</kwd>
<kwd>second order initial value problem (IVP)</kwd>
<kwd>Euler method</kwd>
<kwd>fourth order Runge-Kutta method</kwd>
<kwd>error analysis</kwd>
</kwd-group>
<counts>
<fig-count count="7"/>
<table-count count="4"/>
<equation-count count="15"/>
<ref-count count="19"/>
<page-count count="13"/>
<word-count count="5273"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Numerical Analysis and Scientific Computation</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1 Introduction</title>
<p>Ordinary differential equations (ODEs) are mathematical equations that describe the relationship between a function and its derivatives. They are widely used in various fields of science, engineering and mathematics to model physical, biological, and dynamical systems [<xref ref-type="bibr" rid="B1">1</xref>&#x02013;<xref ref-type="bibr" rid="B5">5</xref>]. Solving ODEs analytically can often be challenging or even impossible for complex differential equations [<xref ref-type="bibr" rid="B6">6</xref>&#x02013;<xref ref-type="bibr" rid="B8">8</xref>]. Therefore, numerical methods play a crucial role in approximating solutions to these equations. The initial value problem (IVP) is a specific type of ODE problem where the values of the unknown function and its derivative(s) are specified at a given initial point. Many researchers developed different methods for solving ordinary differential equations (ODEs) with the initial value problem. Many authors have attempted to solve initial value problems (IVPs) to obtain high accuracy rapidly by using different methods such as the spactral method, the, the Euler&#x00027;s method and Runge Kutta fourth (RK4) order method and some other methods.</p>
<p>Jhnson and Lee explored the application of spectral methods to solve second-order IVP ODEs [<xref ref-type="bibr" rid="B9">9</xref>]. The authors employed Legendre polynomials as basis functions and developed spectral schemes to approximate the solution with high accuracy and rapid convergence rates. The advantages of spectral methods in terms of solution accuracy and numerical examples to validate their approach are discussed. Spectral methods are based on representing the solution as a series of basis functions, such as Legendre polynomials, Fourier series or Chebyshev polynomials [<xref ref-type="bibr" rid="B6">6</xref>, <xref ref-type="bibr" rid="B10">10</xref>, <xref ref-type="bibr" rid="B11">11</xref>]. By discretizing the problem on a set of collocation points, the unknown function can be approximated by a truncated Legendre polynomial series. These methods provide exponential convergence and are particularly effective for smooth or periodic solutions. It is worth noting that spectral methods, such as the Fourier or Chebyshev methods, have their own advantages for solving ODEs. They are typically more accurate, rapid convergence rates and efficient for problems with only smooth and periodic solutions. Euler&#x00027;s method is straightforward to implement and understand, making it a popular choice for beginners in numerical analysis [<xref ref-type="bibr" rid="B5">5</xref>, <xref ref-type="bibr" rid="B11">11</xref>]. It involves only simple arithmetic operations. Euler&#x00027;s method requires fewer computations compared to more complex methods, such as RK4. Hence, it can be computationally more efficient for simple and low-dimensional problems. Since Euler&#x00027;s method only uses information from the previous step to approximate the next step, it can provide a quick estimate of the solution, especially when speed is prioritized over accuracy. RK4 is a higher-order method, which means it provides more accurate approximations compared to Euler&#x00027;s method for a given step size [<xref ref-type="bibr" rid="B6">6</xref>, <xref ref-type="bibr" rid="B11">11</xref>, <xref ref-type="bibr" rid="B12">12</xref>]. It achieves this by using multiple evaluations of the derivative at different points within the step, resulting in a smaller truncation error. RK4 is a versatile method that can handle various types of problem, including those with stiff equations and irregular behavior [<xref ref-type="bibr" rid="B9">9</xref>]. It is widely used and considered to be one of the most accurate and reliable numerical methods for solving ODEs. Compared to Euler&#x00027;s method, RK4 exhibits better stability properties, making it more suitable for problems that require higher accuracy over longer integration intervals [<xref ref-type="bibr" rid="B6">6</xref>, <xref ref-type="bibr" rid="B12">12</xref>]. While there are more advanced and sophisticated numerical methods available, Euler&#x00027;s method and the Runge-Kutta fourth-order method strike a balance between simplicity, efficiency, accuracy, and stability when solving second-order IVPs of ODEs. Euler&#x00027;s method is a basic, easy-to-implement method, while the Runge-Kutta fourth-order method provides higher accuracy, numerical stability, and better control over the solution&#x00027;s accuracy. The choice between these methods depends on the specific problem characteristics, accuracy requirements, available computational resources, and desired trade-offs between accuracy and computational efficiency. Euler&#x00027;s method and Runge-Kutta methods provide a practical and reliable alternative for general second order IVPs of ODEs but spectral methods are accurate and efficient for problems with smooth and periodic solutions. Although extensive research has been conducted on numerical methods for solving first-order IVPs of ODEs, there is a noticeable gap in the literature regarding specialized methods for solving second-order IVPs. Second-order IVPs are more complex due to their involving second derivatives, and applying first-order methods may result in inaccurate solutions or numerical instability. The lack of comprehensive studies on numerical methods tailored for second-order IVPs highlights the need to bridge this gap in the literature. It is crucial to develop and evaluate specialized numerical methods that can reliably and efficiently solve second-order IVPs of ODEs. The aim of this study is to investigate and compare the performance of two widely used numerical methods, namely the Euler method and the Runge-Kutta fourth-order method, in approximating solutions to second-order IVP of ODEs. The study of numerical methods for solving second-order IVP of ODEs with Euler&#x00027;s method and the Runge-Kutta fourth-order method holds significant importance in the field of numerical analysis and scientific computing. Understanding the strengths and limitations of these methods can help researchers, engineers, and scientists select the most appropriate approach for solving ODEs based on specific requirements such as accuracy, efficiency and stability. This knowledge can also aid in optimizing computational algorithms to solve ODEs and providing reliable solutions for real-world problems. In this paper we apply Eulers and fourth order Runge-Kutta method for solving initial value problem of second order ordinary differential equation. A more robust and intricate numerical technique is the Runge-Kutta fourth-order methods. The Runge-Kutta fourth-order (RK4) method generally exhibits better convergence properties compared to Euler&#x00027;s method when solving second-order initial value problems (IVPs) of ordinary differential equations (ODEs). We take an example of a second-order ordinary differential equation to verify our proposed formulation.</p></sec>
<sec id="s2">
<title>2 Problem formulation</title>
<p>In this section, we consider two numerical methods to find approximate solutions of the initial value problem (IVP) of the second-order ordinary differential equation having the following form [<xref ref-type="bibr" rid="B9">9</xref>].</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mo>,</mml:mo><mml:mi>d</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02264;</mml:mo><mml:mi>x</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02264;</mml:mo><mml:mi>e</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>Where <inline-formula><mml:math id="M2"><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:msup><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mfrac></mml:math></inline-formula> , <inline-formula><mml:math id="M3"><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>d</mml:mi><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:math></inline-formula> and <italic>f</italic>(<italic>x, y</italic>(<italic>x</italic>), <italic>y</italic>&#x02032;(<italic>x</italic>)) is the given function and <italic>y</italic>(<italic>x</italic>) is the solution of <xref ref-type="disp-formula" rid="E1">Equation (1)</xref>. To solve the second-order IVP of ODE by using the Euler and Runge-Kutta fourth-order methods, the second-order initial value problems of ODE can be transformed into a system of first-order initial value problems, which allows the use of standard numerical methods that are widely employed. This approach is commonly known as the first-order system approach and it is indeed not new. In the context of the current study focusing on Euler&#x00027;s method and the Runge-Kutta fourth order (RK4) method, the novelty lies in the analysis and comparison of these specific numerical methods for solving the first-order system derived from the original second-order initial value problem. Although the idea of transforming a second-order initial value problem into a system of first-order problems is not innovative, the analysis and comparison of specific numerical methods applied to the derived first-order system can provide new insights and understanding of their effectiveness, accuracy, stability, convergence properties, and computational efficiency.</p>
<p>We can transform <xref ref-type="disp-formula" rid="E1">Equation (1)</xref> into a system of two first-order ODEs that are grouped as</p>
<disp-formula id="E2"><label>(2)</label><mml:math id="M4"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mfrac><mml:mrow><mml:mi>d</mml:mi><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E3"><mml:math id="M5"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mi>d</mml:mi><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mo>&#x02264;</mml:mo><mml:mi>x</mml:mi><mml:mo>&#x02264;</mml:mo><mml:mi>e</mml:mi><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>Thus, instead of solving <xref ref-type="disp-formula" rid="E1">Equation (1)</xref>, we can solve <xref ref-type="disp-formula" rid="E2">Equation (2)</xref></p>
<p>We note that, with <italic>y</italic>&#x02032; &#x0003D; <italic>f</italic>(<italic>x, y, z</italic>) &#x0003D; <italic>z</italic>, <xref ref-type="disp-formula" rid="E2">Equation (2)</xref> represents the second-order initial value problem.</p>
<disp-formula id="E4"><mml:math id="M6"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>:</mml:mo><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<sec>
<title>2.1 Euler method</title>
<p>The Euler method is a simple numerical technique for solving ordinary second-order differential equations. It approximates the solution by taking small steps along the curve defined by the differential equation. It is a basic explicit method for the numerical integration of an ordinary differential equations. Euler proposed his method for initial value problems (IVP) in 1768 [<xref ref-type="bibr" rid="B5">5</xref>, <xref ref-type="bibr" rid="B9">9</xref>, <xref ref-type="bibr" rid="B11">11</xref>]. It is the first numerical method to solve IVP and serves to illustrate the concepts involved in advanced methods. It is important to study this because error analysis is easier to understand.</p>
<p>Now let&#x00027;s consider a general second-order ODE with initial value problem (IVP):</p>
<disp-formula id="E5"><label>(3)</label><mml:math id="M7"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B2;</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>To apply Euler&#x00027;s method, we first transform <xref ref-type="disp-formula" rid="E5">Equation (3)</xref> in to a system of two first order ODEs. Transform <xref ref-type="disp-formula" rid="E5">Equation (3)</xref> to systems of two first order ODE, let <italic>y</italic>&#x02032; &#x0003D; <italic>z</italic> and <italic>z</italic>&#x02032; &#x0003D; <italic>f</italic>(<italic>x, y, z</italic>), then <xref ref-type="disp-formula" rid="E5">Equation (3)</xref> becomes</p>
<disp-formula id="E6"><mml:math id="M8"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>z</mml:mi><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E7"><mml:math id="M9"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>With initial condition, <italic>y</italic>(<italic>d</italic>) &#x0003D; &#x003B1;, <italic>y</italic>&#x02032;(<italic>d</italic>) &#x0003D; &#x003B2; and <italic>z</italic>(<italic>x</italic>) &#x0003D; <italic>y</italic>&#x02032;(<italic>x</italic>).</p>
<p>Now, we can apply the Euler method to this system of first-order ODEs. The Euler method updates the functions <italic>y</italic> and <italic>z</italic> at each step as follows:</p>
<disp-formula id="E8"><mml:math id="M10"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mi>h</mml:mi><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E9"><mml:math id="M11"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>This is the general formula to solve the second-order ODE with IVP using the Euler method.</p>
</sec>
<sec>
<title>2.2 Runge-Kutta fourth order method</title>
<p>This method was devised by two German mathematicians, Runge about 1894 and was extended by Kutta a few years later [<xref ref-type="bibr" rid="B6">6</xref>, <xref ref-type="bibr" rid="B11">11</xref>&#x02013;<xref ref-type="bibr" rid="B13">13</xref>]. The Runge-Kutta method is the most popular because it is quite accurate, stable, and easy to programme. This method is distinguished by its order in the sense that it agrees with Taylor&#x00027;s series solution up to terms of <italic>h</italic><sup><italic>r</italic></sup> where r is the order of the method. It does not require a prior computational analysis of higher derivatives of <italic>y</italic> ( <italic>x</italic>) as in Taylor&#x00027;s series method. The Runge-Kutta fourth-order method (RK4) is widely used for solving second-order initial value problems (IVP) for an ordinary differential equation (ODE). Now let&#x00027;s consider a general second-order ODE with initial value problem (IVP):</p>
<disp-formula id="E10"><label>(4)</label><mml:math id="M12"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>&#x003B2;</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>To apply the Runge-Kutta method, we first transform <xref ref-type="disp-formula" rid="E10">Equation (4)</xref> into a system of two first-order ODEs. Transform <xref ref-type="disp-formula" rid="E10">equation (4)</xref> to systems of two first order ODE, let <italic>y</italic>&#x02032; &#x0003D; <italic>z</italic> and <italic>z</italic>&#x02032; &#x0003D; <italic>f</italic>(<italic>x, y, z</italic>), then <xref ref-type="disp-formula" rid="E10">Equation (4)</xref> becomes</p>
<disp-formula id="E11"><mml:math id="M13"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>z</mml:mi><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E12"><mml:math id="M14"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>z</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>With initial condition, <italic>y</italic>(<italic>d</italic>) &#x0003D; &#x003B1;, <italic>y</italic>&#x02032;(<italic>d</italic>) &#x0003D; &#x003B2; and <italic>z</italic>(<italic>x</italic>) &#x0003D; <italic>y</italic>&#x02032;(<italic>x</italic>).</p>
<p>Now, we can apply the Runge-Kutta fourth-order method to this system of first-order ODEs. The Runge-Kutta fourth order method updates the functions y and z at each step as follows:</p>
<p>The general formula for the Runge-Kutta approximation to solve systems of equations is given by</p>
<disp-formula id="E13"><mml:math id="M15"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>6</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mn>2</mml:mn><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mn>2</mml:mn><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E14"><mml:math id="M16"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>6</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mn>2</mml:mn><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mn>2</mml:mn><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>Where <italic>k</italic><sub>1</sub> &#x0003D; <italic>hf</italic>(<italic>x</italic><sub><italic>n</italic></sub>, <italic>y</italic><sub><italic>n</italic></sub>, <italic>z</italic><sub><italic>n</italic></sub>)</p>
<disp-formula id="E15"><mml:math id="M17"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>h</mml:mi><mml:mi>f</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mi>h</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>f</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>3</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02026;</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
</sec>
</sec>
<sec id="s3">
<title>3 Error analysis</title>
<p>Error analysis is an essential component when studying numerical methods for solving second-order Initial Value Problems (IVPs) of Ordinary Differential Equations (ODEs) using Euler&#x00027;s method and the Runge-Kutta fourth-order (RK4) method [<xref ref-type="bibr" rid="B9">9</xref>]. Error analysis allows us to quantify the accuracy of these methods and understand their convergence properties. In numerical methods, the truncation error and the global error are commonly evaluated. The truncation error in Euler&#x00027;s method arises from the linear approximation of the derivative [<xref ref-type="bibr" rid="B14">14</xref>, <xref ref-type="bibr" rid="B15">15</xref>]. It is proportional to the step size h, used in the numerical scheme. Specifically, the truncation error is of order <italic>O</italic>(<italic>h</italic>)<sup>2</sup>, meaning that by halving the step size, the error typically decreases by a factor of four. The truncation error in RK4 arises from the approximation of the derivative at various internal points within the step. It is proportional to the step size h, increased to the power of five. Therefore, the truncation error of RK4 is of order <italic>O</italic>(<italic>h</italic>)<sup>5</sup>, which is significantly smaller than Euler&#x00027;s method [<xref ref-type="bibr" rid="B16">16</xref>]. The global error in Euler&#x00027;s method is the cumulative effect of the truncation error at each step throughout the integration interval [<xref ref-type="bibr" rid="B17">17</xref>]. As the number of steps increases, the global error accumulates, resulting in a larger discrepancy between the numerical solution and the exact solution. The global error in RK4 is significantly smaller compared to Euler&#x00027;s method [<xref ref-type="bibr" rid="B15">15</xref>]. Due to its higher order of accuracy, the cumulative effect of the truncation error is reduced, resulting in a more accurate approximation of the exact solution. It is important to note that while RK4 has a smaller truncation error and is typically more accurate than Euler&#x00027;s method, the step size h, also plays a role. The accuracy of the solution will depend on how small we make the step size h [<xref ref-type="bibr" rid="B18">18</xref>]. If |y(x<sub>n)-</sub>y<sub>n</sub>| &#x0003D; 0, then a numerical technique is considered as convergent. Where the exact solution is denoted by <italic>y</italic><sub><italic>n</italic></sub> and the approximate solution by <italic>y</italic>(<italic>x</italic><sub><italic>n</italic></sub>).</p>
<p>Using a smaller step size can improve the accuracy of both methods; however, it can also increase computational cost [<xref ref-type="bibr" rid="B19">19</xref>]. In error analysis, it is common to compare the numerical solutions obtained using Euler&#x00027;s method and RK4 to an analytically available exact solution or a solution obtained using a more accurate method (such as a higher-order Runge-Kutta method). By comparing the errors, we can assess the convergence properties of the methods and determine their suitability for a specific problem. In order to verify the accuracy of the suggested methods, we examine first-order initial value problem ODE in this study. MATLAB software is used to obtain the approximate solution for the two numerical methods that are proposed, at different step sizes. The formula for calculating the maximum error is defined by <inline-formula><mml:math id="M18"><mml:msub><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mo class="qopname">max</mml:mo></mml:mrow><mml:mrow><mml:mn>0</mml:mn><mml:mo>&#x02264;</mml:mo><mml:mi>x</mml:mi><mml:mo>&#x02264;</mml:mo><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>e</mml:mi><mml:mi>p</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo></mml:mrow><mml:mrow><mml:mo>|</mml:mo><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext><mml:mo>|</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
<sec>
<title>3.1 Numerical example</title>
<p>This section examines a numerical example to verify which numerical techniques converge to an analytical solution more quickly. Errors and numerical solutions are calculated.</p>
<p><italic>Example 1:</italic> We consider the initial value problem <italic>y</italic><sup>&#x02032;&#x02032;</sup>&#x02212;3<italic>y</italic>&#x02032;&#x0002B;2<italic>y</italic> &#x0003D; 0 , <italic>y</italic>(0) &#x0003D; &#x02212;1 , <italic>y</italic>&#x02032;(0) &#x0003D; 0 on the interval 0 &#x02264; <italic>x</italic> &#x02264; 1 with <italic>h</italic> &#x0003D; 0.1. Then the exact solution to the given problem is given by <italic>y</italic>(<italic>x</italic>) &#x0003D; <italic>e</italic><sup>2<italic>x</italic></sup>&#x02212; 2<italic>e</italic><sup><italic>x</italic></sup>.</p>
<p>The approximate results and maximum errors are obtained and shown in <xref ref-type="table" rid="T1">Tables 1</xref>&#x02013;<xref ref-type="table" rid="T4">4</xref> and the graphs of the numerical solutions are shown as follows in <xref ref-type="fig" rid="F1">Figures 1</xref>&#x02013;<xref ref-type="fig" rid="F6">6</xref> from (a)-(r).</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Comparison between Runge&#x02013;Kutta fourth order and Euler method with exact solution for step size <italic>h</italic> = 0.1.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919498;color:#ffffff">
<th/>
<th valign="top" align="center"><bold>Euler method</bold></th>
<th valign="top" align="center"><bold>RK4_method</bold></th>
<th valign="top" align="center"><bold>Error Euler</bold></th>
<th valign="top" align="center"><bold>Error_RK4</bold></th>
<th valign="top" align="center"><bold>Exact solution</bold></th>
</tr>
</thead>
<tbody>
<tr style="background-color:#919498;color:#ffffff">
<td valign="top" align="center"><bold>x</bold><sub><bold>n</bold></sub></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>y</bold><sub><bold>n</bold></sub></td>
</tr> <tr>
<td valign="top" align="left">0</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">&#x02212;1</td>
</tr> <tr>
<td valign="top" align="left">0.1</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;0.988941666666667</td>
<td valign="top" align="center">0.0110609220088744</td>
<td valign="top" align="center">2.58867554114861e-06</td>
<td valign="top" align="center">&#x02212;0.988939077991126</td>
</tr> <tr>
<td valign="top" align="left">0.2</td>
<td valign="top" align="center">&#x02212;0.98</td>
<td valign="top" align="center">&#x02212;0.950987181701389</td>
<td valign="top" align="center">0.0290191813209306</td>
<td valign="top" align="center">6.36302231959984e-06</td>
<td valign="top" align="center">&#x02212;0.950980818679069</td>
</tr> <tr>
<td valign="top" align="left">0.3</td>
<td valign="top" align="center">&#x02212;0.934</td>
<td valign="top" align="center">&#x02212;0.877610537781075</td>
<td valign="top" align="center">0.0564011852385027</td>
<td valign="top" align="center">1.17230195781914e-05</td>
<td valign="top" align="center">&#x02212;0.877598814761497</td>
</tr> <tr>
<td valign="top" align="left">0.4</td>
<td valign="top" align="center">&#x02212;0.8546</td>
<td valign="top" align="center">&#x02212;0.75812765438281</td>
<td valign="top" align="center">0.0964915332099271</td>
<td valign="top" align="center">1.91875927370022e-05</td>
<td valign="top" align="center">&#x02212;0.758108466790073</td>
</tr> <tr>
<td valign="top" align="left">0.5</td>
<td valign="top" align="center">&#x02212;0.7327</td>
<td valign="top" align="center">&#x02212;0.579190140587741</td>
<td valign="top" align="center">0.153539287058789</td>
<td valign="top" align="center">2.94276465303556e-05</td>
<td valign="top" align="center">&#x02212;0.579160712941211</td>
</tr> <tr>
<td valign="top" align="left">0.6</td>
<td valign="top" align="center">&#x02212;0.557138</td>
<td valign="top" align="center">&#x02212;0.324163985933377</td>
<td valign="top" align="center">0.233017321955529</td>
<td valign="top" align="center">4.33078889066074e-05</td>
<td valign="top" align="center">&#x02212;0.324120678044471</td>
</tr> <tr>
<td valign="top" align="left">0.7</td>
<td valign="top" align="center">&#x02212;0.3142534</td>
<td valign="top" align="center">0.0276326121855938</td>
<td valign="top" align="center">0.341947951903721</td>
<td valign="top" align="center">6.19397181275128e-05</td>
<td valign="top" align="center">0.0276945519037213</td>
</tr> <tr>
<td valign="top" align="left">0.8</td>
<td valign="top" align="center">0.0126393400000001</td>
<td valign="top" align="center">0.50186381938946</td>
<td valign="top" align="center">0.489311227410179</td>
<td valign="top" align="center">8.6748020719174e-05</td>
<td valign="top" align="center">0.501950567410179</td>
</tr> <tr>
<td valign="top" align="left">0.9</td>
<td valign="top" align="center">0.44388497</td>
<td valign="top" align="center">1.13032168665261</td>
<td valign="top" align="center">0.686556272099047</td>
<td valign="top" align="center">0.000119555446434161</td>
<td valign="top" align="center">1.13044124209905</td>
</tr> <tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">1.0042515022</td>
<td valign="top" align="center">1.95232975338913</td>
<td valign="top" align="center">0.948240939812559</td>
<td valign="top" align="center">0.000162688623432494</td>
<td valign="top" align="center">1.95249244201256</td>
</tr></tbody>
</table>
</table-wrap>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>Comparison between Runge&#x02013;Kutta-fourth order and Euler&#x00027;s method with exact solution for step size <italic>h</italic> = 0.05.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919498;color:#ffffff">
<th/>
<th valign="top" align="center"><bold>Euler method</bold></th>
<th valign="top" align="center"><bold>RK4_method</bold></th>
<th valign="top" align="center"><bold>Error Euler</bold></th>
<th valign="top" align="center"><bold>Error_RK4</bold></th>
<th valign="top" align="center"><bold>Exact solution</bold></th>
</tr>
</thead>
<tbody>
<tr style="background-color:#919498;color:#ffffff">
<td valign="top" align="left"><bold>x</bold><sub><bold>n</bold></sub></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>y</bold><sub><bold>n</bold></sub></td>
</tr> <tr>
<td valign="top" align="left">0</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">&#x02212;1</td>
</tr> <tr>
<td valign="top" align="left">0.05</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;0.997371354166667</td>
<td valign="top" align="center">0.00262872532359948</td>
<td valign="top" align="center">7.94902661471752e-08</td>
<td valign="top" align="center">&#x02212;0.997371274676401</td>
</tr> <tr>
<td valign="top" align="left">0.1</td>
<td valign="top" align="center">&#x02212;0.995</td>
<td valign="top" align="center">&#x02212;0.988939254257948</td>
<td valign="top" align="center">0.00606092200887443</td>
<td valign="top" align="center">1.76266822582427e-07</td>
<td valign="top" align="center">&#x02212;0.988939077991126</td>
</tr> <tr>
<td valign="top" align="left">0.15</td>
<td valign="top" align="center">&#x02212;0.98425</td>
<td valign="top" align="center">&#x02212;0.973809970980796</td>
<td valign="top" align="center">0.010440322119437</td>
<td valign="top" align="center">2.93100233306198e-07</td>
<td valign="top" align="center">&#x02212;0.973809677880563</td>
</tr> <tr>
<td valign="top" align="left">0.2</td>
<td valign="top" align="center">&#x02212;0.9669125</td>
<td valign="top" align="center">&#x02212;0.950981251831617</td>
<td valign="top" align="center">0.0159316813209306</td>
<td valign="top" align="center">4.33152547607563e-07</td>
<td valign="top" align="center">&#x02212;0.950980818679069</td>
</tr> <tr>
<td valign="top" align="left">0.25</td>
<td valign="top" align="center">&#x02212;0.942053125</td>
<td valign="top" align="center">&#x02212;0.919330162704315</td>
<td valign="top" align="center">0.0227235623246453</td>
<td valign="top" align="center">6.00028960517918e-07</td>
<td valign="top" align="center">&#x02212;0.919329562675355</td>
</tr> <tr>
<td valign="top" align="left">0.3</td>
<td valign="top" align="center">&#x02212;0.90863028125</td>
<td valign="top" align="center">&#x02212;0.877599612597494</td>
<td valign="top" align="center">0.0310314664885026</td>
<td valign="top" align="center">7.9783599693517e-07</td>
<td valign="top" align="center">&#x02212;0.877598814761497</td>
</tr> <tr>
<td valign="top" align="left">0.35</td>
<td valign="top" align="center">&#x02212;0.8654837453125</td>
<td valign="top" align="center">&#x02212;0.824383420963075</td>
<td valign="top" align="center">0.0411013555964619</td>
<td valign="top" align="center">1.03124703665358e-06</td>
<td valign="top" align="center">&#x02212;0.824382389716038</td>
</tr> <tr>
<td valign="top" align="left">0.4</td>
<td valign="top" align="center">&#x02212;0.811322077578125</td>
<td valign="top" align="center">&#x02212;0.758109772366138</td>
<td valign="top" align="center">0.0532136107880521</td>
<td valign="top" align="center">1.30557606525805e-06</td>
<td valign="top" align="center">&#x02212;0.758108466790073</td>
</tr> <tr>
<td valign="top" align="left">0.45</td>
<td valign="top" align="center">&#x02212;0.744708740957031</td>
<td valign="top" align="center">&#x02212;0.677022886684052</td>
<td valign="top" align="center">0.0676874811336436</td>
<td valign="top" align="center">1.62686066473849e-06</td>
<td valign="top" align="center">&#x02212;0.677021259823388</td>
</tr> <tr>
<td valign="top" align="left">0.5</td>
<td valign="top" align="center">&#x02212;0.664046793454883</td>
<td valign="top" align="center">&#x02212;0.579162714896582</td>
<td valign="top" align="center">0.084886080513672</td>
<td valign="top" align="center">2.00195537081171e-06</td>
<td valign="top" align="center">&#x02212;0.579160712941211</td>
</tr> <tr>
<td valign="top" align="left">0.55</td>
<td valign="top" align="center">&#x02212;0.567562010122627</td>
<td valign="top" align="center">&#x02212;0.462342450425013</td>
<td valign="top" align="center">0.10522199833427</td>
<td valign="top" align="center">2.43863665627675e-06</td>
<td valign="top" align="center">&#x02212;0.462340011788357</td>
</tr> <tr>
<td valign="top" align="left">0.6</td>
<td valign="top" align="center">&#x02212;0.453284275323258</td>
<td valign="top" align="center">&#x02212;0.324123623765422</td>
<td valign="top" align="center">0.129163597278788</td>
<td valign="top" align="center">2.94572095160817e-06</td>
<td valign="top" align="center">&#x02212;0.324120678044471</td>
</tr> <tr>
<td valign="top" align="left">0.65</td>
<td valign="top" align="center">&#x02212;0.319027070253371</td>
<td valign="top" align="center">&#x02212;0.161788523605838</td>
<td valign="top" align="center">0.157242079844823</td>
<td valign="top" align="center">3.53319728940704e-06</td>
<td valign="top" align="center">&#x02212;0.161784990408548</td>
</tr> <tr>
<td valign="top" align="left">0.7</td>
<td valign="top" align="center">&#x02212;0.162364863046385</td>
<td valign="top" align="center">0.0276903395273841</td>
<td valign="top" align="center">0.190059414950106</td>
<td valign="top" align="center">4.21237633715932e-06</td>
<td valign="top" align="center">0.0276945519037213</td>
</tr> <tr>
<td valign="top" align="left">0.75</td>
<td valign="top" align="center">0.0193918105929166</td>
<td valign="top" align="center">0.247684041054918</td>
<td valign="top" align="center">0.228297226519798</td>
<td valign="top" align="center">4.9960577966357e-06</td>
<td valign="top" align="center">0.247689037112715</td>
</tr> <tr>
<td valign="top" align="left">0.8</td>
<td valign="top" align="center">0.229223809593345</td>
<td valign="top" align="center">0.501944668691785</td>
<td valign="top" align="center">0.272726757816834</td>
<td valign="top" align="center">5.89871839462575e-06</td>
<td valign="top" align="center">0.501950567410179</td>
</tr> <tr>
<td valign="top" align="left">0.85</td>
<td valign="top" align="center">0.470433649390873</td>
<td valign="top" align="center">0.794646751152289</td>
<td valign="top" align="center">0.324220038484344</td>
<td valign="top" align="center">6.93672292828573e-06</td>
<td valign="top" align="center">0.794653687875218</td>
</tr> <tr>
<td valign="top" align="left">0.9</td>
<td valign="top" align="center">0.746678846110064</td>
<td valign="top" align="center">1.1304331135379</td>
<td valign="top" align="center">0.383762395988983</td>
<td valign="top" align="center">8.1285611486237e-06</td>
<td valign="top" align="center">1.13044124209905</td>
</tr> <tr>
<td valign="top" align="left">0.95</td>
<td valign="top" align="center">1.06200865409018</td>
<td valign="top" align="center">1.51446562853401</td>
<td valign="top" align="center">0.452466469557398</td>
<td valign="top" align="center">9.49511357029031e-06</td>
<td valign="top" align="center">1.5144751236475</td>
</tr> <tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">1.42090453903676</td>
<td valign="top" align="center">1.95248138206287</td>
<td valign="top" align="center">0.531587902975799</td>
<td valign="top" align="center">1.10599496858654e-05</td>
<td valign="top" align="center">1.95249244201256</td>
</tr></tbody>
</table>
</table-wrap>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Comparison between Runge&#x02013;Kutta-fourth order and Eulers method with exact solution for step size <italic>h</italic> = 0.025.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919498;color:#ffffff">
<th/>
<th valign="top" align="center"><bold>Euler method</bold></th>
<th valign="top" align="center"><bold>RK4_method</bold></th>
<th valign="top" align="center"><bold>Error Euler</bold></th>
<th valign="top" align="center"><bold>Error_RK4</bold></th>
<th valign="top" align="center"><bold>Exact solution</bold></th>
</tr>
</thead>
<tbody>
<tr style="background-color:#919498;color:#ffffff">
<td valign="top" align="left"><bold>x</bold><sub><bold>n</bold></sub></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>y</bold><sub><bold>n</bold></sub></td>
</tr> <tr>
<td valign="top" align="left">0</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">&#x02212;1</td>
</tr> <tr>
<td valign="top" align="left">0.025</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;0.999359147135417</td>
<td valign="top" align="center">0.000640855327166401</td>
<td valign="top" align="center">2.4625830263858e-09</td>
<td valign="top" align="center">&#x02212;0.999359144672834</td>
</tr> <tr>
<td valign="top" align="left">0.05</td>
<td valign="top" align="center">&#x02212;0.99875</td>
<td valign="top" align="center">&#x02212;0.99737127986257</td>
<td valign="top" align="center">0.00137872532359951</td>
<td valign="top" align="center">5.18616916078685e-09</td>
<td valign="top" align="center">&#x02212;0.997371274676401</td>
</tr> <tr>
<td valign="top" align="left">0.075</td>
<td valign="top" align="center">&#x02212;0.99615625</td>
<td valign="top" align="center">&#x02212;0.993934067232134</td>
<td valign="top" align="center">0.0022221909590201</td>
<td valign="top" align="center">8.19115364425471e-09</td>
<td valign="top" align="center">&#x02212;0.99393405904098</td>
</tr> <tr>
<td valign="top" align="left">0.1</td>
<td valign="top" align="center">&#x02212;0.99211953125</td>
<td valign="top" align="center">&#x02212;0.988939089490462</td>
<td valign="top" align="center">0.0031804532588745</td>
<td valign="top" align="center">1.1499336483034e-08</td>
<td valign="top" align="center">&#x02212;0.988939077991126</td>
</tr> <tr>
<td valign="top" align="left">0.125</td>
<td valign="top" align="center">&#x02212;0.98653486328125</td>
<td valign="top" align="center">&#x02212;0.982271504579925</td>
<td valign="top" align="center">0.00426337383533881</td>
<td valign="top" align="center">1.51340135978728e-08</td>
<td valign="top" align="center">&#x02212;0.982271489445911</td>
</tr> <tr>
<td valign="top" align="left">0.15</td>
<td valign="top" align="center">&#x02212;0.979291195800781</td>
<td valign="top" align="center">&#x02212;0.973809697000635</td>
<td valign="top" align="center">0.00548151792021834</td>
<td valign="top" align="center">1.91200721921803e-08</td>
<td valign="top" align="center">&#x02212;0.973809677880563</td>
</tr> <tr>
<td valign="top" align="left">0.175</td>
<td valign="top" align="center">&#x02212;0.970271084680176</td>
<td valign="top" align="center">&#x02212;0.963424908115551</td>
<td valign="top" align="center">0.00684620004871694</td>
<td valign="top" align="center">2.34840922264112e-08</td>
<td valign="top" align="center">&#x02212;0.963424884631459</td>
</tr> <tr>
<td valign="top" align="left">0.2</td>
<td valign="top" align="center">&#x02212;0.959350351230774</td>
<td valign="top" align="center">&#x02212;0.950980846933525</td>
<td valign="top" align="center">0.00836953255170458</td>
<td valign="top" align="center">2.82544557750342e-08</td>
<td valign="top" align="center">&#x02212;0.950980818679069</td>
</tr> <tr>
<td valign="top" align="left">0.225</td>
<td valign="top" align="center">&#x02212;0.946397723916817</td>
<td valign="top" align="center">&#x02212;0.936333280355021</td>
<td valign="top" align="center">0.0100644770232566</td>
<td valign="top" align="center">3.34614612684803e-08</td>
<td valign="top" align="center">&#x02212;0.93633324689356</td>
</tr> <tr>
<td valign="top" align="left">0.25</td>
<td valign="top" align="center">&#x02212;0.931274461615274</td>
<td valign="top" align="center">&#x02212;0.9193296018128</td>
<td valign="top" align="center">0.0119448989399197</td>
<td valign="top" align="center">3.91374457286986e-08</td>
<td valign="top" align="center">&#x02212;0.919329562675355</td>
</tr> <tr>
<td valign="top" align="left">0.275</td>
<td valign="top" align="center">&#x02212;0.91383395748622</td>
<td valign="top" align="center">&#x02212;0.899808377184759</td>
<td valign="top" align="center">0.0140256256183723</td>
<td valign="top" align="center">4.53169115566254e-08</td>
<td valign="top" align="center">&#x02212;0.899808331867848</td>
</tr> <tr>
<td valign="top" align="left">0.3</td>
<td valign="top" align="center">&#x02212;0.893921322470468</td>
<td valign="top" align="center">&#x02212;0.877598866798164</td>
<td valign="top" align="center">0.0163225077089705</td>
<td valign="top" align="center">5.20366669753969e-08</td>
<td valign="top" align="center">&#x02212;0.877598814761497</td>
</tr> <tr>
<td valign="top" align="left">0.325</td>
<td valign="top" align="center">&#x02212;0.871372947381676</td>
<td valign="top" align="center">&#x02212;0.852520522283577</td>
<td valign="top" align="center">0.0188524844340696</td>
<td valign="top" align="center">5.93359703593421e-08</td>
<td valign="top" align="center">&#x02212;0.852520462947607</td>
</tr> <tr>
<td valign="top" align="left">0.35</td>
<td valign="top" align="center">&#x02212;0.846016042508137</td>
<td valign="top" align="center">&#x02212;0.824382456972721</td>
<td valign="top" align="center">0.0216336527920992</td>
<td valign="top" align="center">6.72566832227162e-08</td>
<td valign="top" align="center">&#x02212;0.824382389716038</td>
</tr> <tr>
<td valign="top" align="left">0.375</td>
<td valign="top" align="center">&#x02212;0.817668153584856</td>
<td valign="top" align="center">&#x02212;0.792982888467164</td>
<td valign="top" align="center">0.024685340961128</td>
<td valign="top" align="center">7.58434365311089e-08</td>
<td valign="top" align="center">&#x02212;0.792982812623728</td>
</tr> <tr>
<td valign="top" align="left">0.4</td>
<td valign="top" align="center">&#x02212;0.786136652939193</td>
<td valign="top" align="center">&#x02212;0.758108551933874</td>
<td valign="top" align="center">0.0280281861491201</td>
<td valign="top" align="center">8.51438011206795e-08</td>
<td valign="top" align="center">&#x02212;0.758108466790073</td>
</tr> <tr>
<td valign="top" align="left">0.425</td>
<td valign="top" align="center">&#x02212;0.751218204553124</td>
<td valign="top" align="center">&#x02212;0.719534082609241</td>
<td valign="top" align="center">0.031684217152358</td>
<td valign="top" align="center">9.52084749927806e-08</td>
<td valign="top" align="center">&#x02212;0.719533987400766</td>
</tr> <tr>
<td valign="top" align="left">0.45</td>
<td valign="top" align="center">&#x02212;0.712698201721927</td>
<td valign="top" align="center">&#x02212;0.677021365914865</td>
<td valign="top" align="center">0.035676941898539</td>
<td valign="top" align="center">1.06091477158898e-07</td>
<td valign="top" align="center">&#x02212;0.677021259823388</td>
</tr> <tr>
<td valign="top" align="left">0.475</td>
<td valign="top" align="center">&#x02212;0.670350175922698</td>
<td valign="top" align="center">&#x02212;0.630318853506074</td>
<td valign="top" align="center">0.0400314402669782</td>
<td valign="top" align="center">1.17850354142135e-07</td>
<td valign="top" align="center">&#x02212;0.630318735655719</td>
</tr> <tr>
<td valign="top" align="left">0.5</td>
<td valign="top" align="center">&#x02212;0.623935175436374</td>
<td valign="top" align="center">&#x02212;0.579160843487613</td>
<td valign="top" align="center">0.0447744624951633</td>
<td valign="top" align="center">1.30546401910792e-07</td>
<td valign="top" align="center">&#x02212;0.579160712941211</td>
</tr> <tr>
<td valign="top" align="left">0.525</td>
<td valign="top" align="center">&#x02212;0.573201112193673</td>
<td valign="top" align="center">&#x02212;0.523266722939915</td>
<td valign="top" align="center">0.049934533498654</td>
<td valign="top" align="center">1.44244895805556e-07</td>
<td valign="top" align="center">&#x02212;0.523266578695019</td>
</tr> <tr>
<td valign="top" align="left">0.55</td>
<td valign="top" align="center">&#x02212;0.517882075238474</td>
<td valign="top" align="center">&#x02212;0.462340170803698</td>
<td valign="top" align="center">0.0555420634501166</td>
<td valign="top" align="center">1.59015340672752e-07</td>
<td valign="top" align="center">&#x02212;0.462340011788357</td>
</tr> <tr>
<td valign="top" align="left">0.575</td>
<td valign="top" align="center">&#x02212;0.457697609121393</td>
<td valign="top" align="center">&#x02212;0.396068319070038</td>
<td valign="top" align="center">0.0616294649830836</td>
<td valign="top" align="center">1.74931729102212e-07</td>
<td valign="top" align="center">&#x02212;0.396068144138309</td>
</tr> <tr>
<td valign="top" align="left">0.6</td>
<td valign="top" align="center">&#x02212;0.392351955451482</td>
<td valign="top" align="center">&#x02212;0.324120870117292</td>
<td valign="top" align="center">0.0682312774070116</td>
<td valign="top" align="center">1.92072821758593e-07</td>
<td valign="top" align="center">&#x02212;0.324120678044471</td>
</tr> <tr>
<td valign="top" align="left">0.625</td>
<td valign="top" align="center">&#x02212;0.321533255744927</td>
<td valign="top" align="center">&#x02212;0.246149167925044</td>
<td valign="top" align="center">0.0753842983423234</td>
<td valign="top" align="center">2.10522441229655e-07</td>
<td valign="top" align="center">&#x02212;0.246148957402603</td>
</tr> <tr>
<td valign="top" align="left">0.65</td>
<td valign="top" align="center">&#x02212;0.244912713616065</td>
<td valign="top" align="center">&#x02212;0.161785220778329</td>
<td valign="top" align="center">0.0831277232075167</td>
<td valign="top" align="center">2.30369780807038e-07</td>
<td valign="top" align="center">&#x02212;0.161784990408548</td>
</tr> <tr>
<td valign="top" align="left">0.675</td>
<td valign="top" align="center">&#x02212;0.162143714257858</td>
<td valign="top" align="center">&#x02212;0.070640672952461</td>
<td valign="top" align="center">0.0915032930151381</td>
<td valign="top" align="center">2.51709741189154e-07</td>
<td valign="top" align="center">&#x02212;0.0706404212427199</td>
</tr> <tr>
<td valign="top" align="left">0.7</td>
<td valign="top" align="center">&#x02212;0.0728608990557651</td>
<td valign="top" align="center">0.0276942772604496</td>
<td valign="top" align="center">0.100555450959486</td>
<td valign="top" align="center">2.74643271638841e-07</td>
<td valign="top" align="center">0.0276945519037213</td>
</tr> <tr>
<td valign="top" align="left">0.725</td>
<td valign="top" align="center">0.023320806929307</td>
<td valign="top" align="center">0.133652015958094</td>
<td valign="top" align="center">0.110331508306537</td>
<td valign="top" align="center">2.99277750415161e-07</td>
<td valign="top" align="center">0.133652315235844</td>
</tr> <tr>
<td valign="top" align="left">0.75</td>
<td valign="top" align="center">0.126807216987079</td>
<td valign="top" align="center">0.247688711385344</td>
<td valign="top" align="center">0.120881820125636</td>
<td valign="top" align="center">3.25727370714679e-07</td>
<td valign="top" align="center">0.247689037112715</td>
</tr> <tr>
<td valign="top" align="left">0.775</td>
<td valign="top" align="center">0.238025956790523</td>
<td valign="top" align="center">0.370285574110294</td>
<td valign="top" align="center">0.132259971433334</td>
<td valign="top" align="center">3.54113563194591e-07</td>
<td valign="top" align="center">0.370285928223857</td>
</tr> <tr>
<td valign="top" align="left">0.8</td>
<td valign="top" align="center">0.357427593057991</td>
<td valign="top" align="center">0.501950182844749</td>
<td valign="top" align="center">0.144522974352188</td>
<td valign="top" align="center">3.84565429834005e-07</td>
<td valign="top" align="center">0.501950567410179</td>
</tr> <tr>
<td valign="top" align="left">0.825</td>
<td valign="top" align="center">0.485486819599531</td>
<td valign="top" align="center">0.64321787930102</td>
<td valign="top" align="center">0.157731476921711</td>
<td valign="top" align="center">4.1722022170454e-07</td>
<td valign="top" align="center">0.643218296521241</td>
</tr> <tr>
<td valign="top" align="left">0.85</td>
<td valign="top" align="center">0.622703703640364</td>
<td valign="top" align="center">0.794653235651393</td>
<td valign="top" align="center">0.171949984234854</td>
<td valign="top" align="center">4.52223824165543e-07</td>
<td valign="top" align="center">0.794653687875218</td>
</tr> <tr>
<td valign="top" align="left">0.875</td>
<td valign="top" align="center">0.76960499545976</td>
<td valign="top" align="center">0.956851598340245</td>
<td valign="top" align="center">0.187247092611774</td>
<td valign="top" align="center">4.89731289077255e-07</td>
<td valign="top" align="center">0.956852088071534</td>
</tr> <tr>
<td valign="top" align="left">0.9</td>
<td valign="top" align="center">0.92674550453606</td>
<td valign="top" align="center">1.13044071219166</td>
<td valign="top" align="center">0.203695737562987</td>
<td valign="top" align="center">5.29907388857609e-07</td>
<td valign="top" align="center">1.13044124209905</td>
</tr> <tr>
<td valign="top" align="left">0.925</td>
<td valign="top" align="center">1.09470954554876</td>
<td valign="top" align="center">1.31608242895834</td>
<td valign="top" align="center">0.221373456336778</td>
<td valign="top" align="center">5.72927200570561e-07</td>
<td valign="top" align="center">1.31608300188554</td>
</tr> <tr>
<td valign="top" align="left">0.95</td>
<td valign="top" align="center">1.27411245775674</td>
<td valign="top" align="center">1.51447450467084</td>
<td valign="top" align="center">0.240362665890839</td>
<td valign="top" align="center">6.1897673542255e-07</td>
<td valign="top" align="center">1.51447512364758</td>
</tr> <tr>
<td valign="top" align="left">0.975</td>
<td valign="top" align="center">1.46560220144838</td>
<td valign="top" align="center">1.72635249037048</td>
<td valign="top" align="center">0.260750957175699</td>
<td valign="top" align="center">6.68253599345192e-07</td>
<td valign="top" align="center">1.72635315862408</td>
</tr> <tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">1.6698610353447</td>
<td valign="top" align="center">1.95249172104487</td>
<td valign="top" align="center">0.282631406667858</td>
<td valign="top" align="center">7.20967687106722e-07</td>
<td valign="top" align="center">1.95249244201256</td>
</tr></tbody>
</table>
</table-wrap>
<table-wrap position="float" id="T4">
<label>Table 4</label>
<caption><p>Comparison between Runge&#x02013;Kutta fourth order and Euler&#x00027;s method with exact solution for step size <italic>h</italic> = 0.0125.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919498;color:#ffffff">
<th/>
<th valign="top" align="center"><bold>Euler method</bold></th>
<th valign="top" align="center"><bold>RK4_method</bold></th>
<th valign="top" align="center"><bold>Error Euler</bold></th>
<th valign="top" align="center"><bold>Error_RK4</bold></th>
<th valign="top" align="center"><bold>Exact solution</bold></th>
</tr>
</thead>
<tbody>
<tr style="background-color:#919498;color:#ffffff">
<td valign="top" align="left"><bold>x</bold><sub><bold>n</bold></sub></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold><italic>y</italic>(x</bold><sub><bold>n</bold></sub><bold>)</bold></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>e</bold><sub><bold>r</bold></sub></td>
<td valign="top" align="center"><bold>y</bold><sub><bold>n</bold></sub></td>
</tr> <tr>
<td valign="top" align="left">0</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">&#x02212;1</td>
</tr> <tr>
<td valign="top" align="left">0.0125</td>
<td valign="top" align="center">&#x02212;1</td>
<td valign="top" align="center">&#x02212;0.999841782633464</td>
<td valign="top" align="center">0.000158217443160025</td>
<td valign="top" align="center">7.66235963567397e&#x02212;11</td>
<td valign="top" align="center">&#x02212;0.99984178255684</td>
</tr> <tr>
<td valign="top" align="left">0.025</td>
<td valign="top" align="center">&#x02212;0.9996875</td>
<td valign="top" align="center">&#x02212;0.99935914483009</td>
<td valign="top" align="center">0.000328355327166352</td>
<td valign="top" align="center">1.57256652144611e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.999359144672834</td>
</tr> <tr>
<td valign="top" align="left">0.0375</td>
<td valign="top" align="center">&#x02212;0.99905078125</td>
<td valign="top" align="center">&#x02212;0.998539843521072</td>
<td valign="top" align="center">0.000510937970981229</td>
<td valign="top" align="center">2.42053488364036e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.998539843279019</td>
</tr> <tr>
<td valign="top" align="left">0.05</td>
<td valign="top" align="center">&#x02212;0.998077783203125</td>
<td valign="top" align="center">&#x02212;0.997371275007575</td>
<td valign="top" align="center">0.000706508526724381</td>
<td valign="top" align="center">3.31174421219771e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.997371274676401</td>
</tr> <tr>
<td valign="top" align="left">0.0625</td>
<td valign="top" align="center">&#x02212;0.996756094360352</td>
<td valign="top" align="center">&#x02212;0.995840465193677</td>
<td valign="top" align="center">0.000915629591458744</td>
<td valign="top" align="center">4.24784540875578e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.995840464768893</td>
</tr> <tr>
<td valign="top" align="left">0.075</td>
<td valign="top" align="center">&#x02212;0.995072942878723</td>
<td valign="top" align="center">&#x02212;0.993934059564035</td>
<td valign="top" align="center">0.00113888383774308</td>
<td valign="top" align="center">5.23055265766459e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.99393405904098</td>
</tr> <tr>
<td valign="top" align="left">0.0875</td>
<td valign="top" align="center">&#x02212;0.993015186937046</td>
<td valign="top" align="center">&#x02212;0.991638312899708</td>
<td valign="top" align="center">0.00137687466350045</td>
<td valign="top" align="center">6.26162788286422e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.991638312273545</td>
</tr> <tr>
<td valign="top" align="left">0.1</td>
<td valign="top" align="center">&#x02212;0.990569304852906</td>
<td valign="top" align="center">&#x02212;0.988939078725416</td>
<td valign="top" align="center">0.00163022686178083</td>
<td valign="top" align="center">7.3429029523453e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.988939077991126</td>
</tr> <tr>
<td valign="top" align="left">0.1125</td>
<td valign="top" align="center">&#x02212;0.987721384944694</td>
<td valign="top" align="center">&#x02212;0.985821798481323</td>
<td valign="top" align="center">0.00189958731099726</td>
<td valign="top" align="center">8.47626968614179e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.985821797633696</td>
</tr> <tr>
<td valign="top" align="left">0.125</td>
<td valign="top" align="center">&#x02212;0.984457115132157</td>
<td valign="top" align="center">&#x02212;0.982271490412278</td>
<td valign="top" align="center">0.00218562568624536</td>
<td valign="top" align="center">9.66366764387772e&#x02212;10</td>
<td valign="top" align="center">&#x02212;0.982271489445911</td>
</tr> <tr>
<td valign="top" align="left">0.1375</td>
<td valign="top" align="center">&#x02212;0.980761772268854</td>
<td valign="top" align="center">&#x02212;0.978272738167235</td>
<td valign="top" align="center">0.00248903519233112</td>
<td valign="top" align="center">1.09071252030191e-09</td>
<td valign="top" align="center">&#x02212;0.978272737076523</td>
</tr> <tr>
<td valign="top" align="left">0.15</td>
<td valign="top" align="center">&#x02212;0.976620211199699</td>
<td valign="top" align="center">&#x02212;0.973809679101436</td>
<td valign="top" align="center">0.00281053331913594</td>
<td valign="top" align="center">1.22087295828521e-09</td>
<td valign="top" align="center">&#x02212;0.973809677880563</td>
</tr> <tr>
<td valign="top" align="left">0.1625</td>
<td valign="top" align="center">&#x02212;0.972016853536616</td>
<td valign="top" align="center">&#x02212;0.968865992273692</td>
<td valign="top" align="center">0.00315086261998687</td>
<td valign="top" align="center">1.35706257342605e-09</td>
<td valign="top" align="center">&#x02212;0.96886599091663</td>
</tr> <tr>
<td valign="top" align="left">0.175</td>
<td valign="top" align="center">&#x02212;0.966935676145168</td>
<td valign="top" align="center">&#x02212;0.963424886130964</td>
<td valign="top" align="center">0.00351079151370959</td>
<td valign="top" align="center">1.49950496464157e-09</td>
<td valign="top" align="center">&#x02212;0.963424884631459</td>
</tr> <tr>
<td valign="top" align="left">0.1875</td>
<td valign="top" align="center">&#x02212;0.961360199334811</td>
<td valign="top" align="center">&#x02212;0.957469085872189</td>
<td valign="top" align="center">0.00389111511105078</td>
<td valign="top" align="center">1.64842939298637e-09</td>
<td valign="top" align="center">&#x02212;0.95746908422376</td>
</tr> <tr>
<td valign="top" align="left">0.2</td>
<td valign="top" align="center">&#x02212;0.95527347474527</td>
<td valign="top" align="center">&#x02212;0.950980820483144</td>
<td valign="top" align="center">0.00429265606620022</td>
<td valign="top" align="center">1.80407422334383e-09</td>
<td valign="top" align="center">&#x02212;0.950980818679069</td>
</tr> <tr>
<td valign="top" align="left">0.2125</td>
<td valign="top" align="center">&#x02212;0.948658072921328</td>
<td valign="top" align="center">&#x02212;0.943941809433876</td>
<td valign="top" align="center">0.00471626545413761</td>
<td valign="top" align="center">1.96668470398009e-09</td>
<td valign="top" align="center">&#x02212;0.943941807467191</td>
</tr> <tr>
<td valign="top" align="left">0.225</td>
<td valign="top" align="center">&#x02212;0.941496070568132</td>
<td valign="top" align="center">&#x02212;0.936333249030075</td>
<td valign="top" align="center">0.00516282367457144</td>
<td valign="top" align="center">2.13651463187858e-09</td>
<td valign="top" align="center">&#x02212;0.93633324689356</td>
</tr> <tr>
<td valign="top" align="left">0.2375</td>
<td valign="top" align="center">&#x02212;0.933769037478902</td>
<td valign="top" align="center">&#x02212;0.928135798409482</td>
<td valign="top" align="center">0.00563324138324639</td>
<td valign="top" align="center">2.31382679682923e-09</td>
<td valign="top" align="center">&#x02212;0.928135796095656</td>
</tr> <tr>
<td valign="top" align="left">0.25</td>
<td valign="top" align="center">&#x02212;0.925458023126774</td>
<td valign="top" align="center">&#x02212;0.919329565174245</td>
<td valign="top" align="center">0.00612846045141902</td>
<td valign="top" align="center">2.49889064996012e-09</td>
<td valign="top" align="center">&#x02212;0.919329562675355</td>
</tr> <tr>
<td valign="top" align="left">0.2625</td>
<td valign="top" align="center">&#x02212;0.916543542912228</td>
<td valign="top" align="center">&#x02212;0.909894090649877</td>
<td valign="top" align="center">0.00664945495433755</td>
<td valign="top" align="center">2.69198641156265e-09</td>
<td valign="top" align="center">&#x02212;0.909894087957891</td>
</tr> <tr>
<td valign="top" align="left">0.275</td>
<td valign="top" align="center">&#x02212;0.90700556405741</td>
<td valign="top" align="center">&#x02212;0.899808334761251</td>
<td valign="top" align="center">0.00719723218956259</td>
<td valign="top" align="center">2.89340318371245e-09</td>
<td valign="top" align="center">&#x02212;0.899808331867848</td>
</tr> <tr>
<td valign="top" align="left">0.2875</td>
<td valign="top" align="center">&#x02212;0.896823491138377</td>
<td valign="top" align="center">&#x02212;0.889050660515806</td>
<td valign="top" align="center">0.00777283372600968</td>
<td valign="top" align="center">3.10343872822472e-09</td>
<td valign="top" align="center">&#x02212;0.889050657412367</td>
</tr> <tr>
<td valign="top" align="left">0.3</td>
<td valign="top" align="center">&#x02212;0.885976151246112</td>
<td valign="top" align="center">&#x02212;0.877598818083899</td>
<td valign="top" align="center">0.00837733648461425</td>
<td valign="top" align="center">3.3224019091449e-09</td>
<td valign="top" align="center">&#x02212;0.877598814761497</td>
</tr> <tr>
<td valign="top" align="left">0.3125</td>
<td valign="top" align="center">&#x02212;0.874441778766906</td>
<td valign="top" align="center">&#x02212;0.865429928465981</td>
<td valign="top" align="center">0.00901185385153525</td>
<td valign="top" align="center">3.55061036128035e-09</td>
<td valign="top" align="center">&#x02212;0.86542992491537</td>
</tr> <tr>
<td valign="top" align="left">0.325</td>
<td valign="top" align="center">&#x02212;0.862197999772465</td>
<td valign="top" align="center">&#x02212;0.852520466735999</td>
<td valign="top" align="center">0.00967753682485828</td>
<td valign="top" align="center">3.78839271064635e-09</td>
<td valign="top" align="center">&#x02212;0.852520462947607</td>
</tr> <tr>
<td valign="top" align="left">0.3375</td>
<td valign="top" align="center">&#x02212;0.849221816009868</td>
<td valign="top" align="center">&#x02212;0.838846244850187</td>
<td valign="top" align="center">0.010375575195769</td>
<td valign="top" align="center">4.03608801935462e-09</td>
<td valign="top" align="center">&#x02212;0.838846240814099</td>
</tr> <tr>
<td valign="top" align="left">0.35</td>
<td valign="top" align="center">&#x02212;0.835489588481245</td>
<td valign="top" align="center">&#x02212;0.824382394010085</td>
<td valign="top" align="center">0.0111071987652069</td>
<td valign="top" align="center">4.29404656276944e-09</td>
<td valign="top" align="center">&#x02212;0.824382389716038</td>
</tr> <tr>
<td valign="top" align="left">0.3625</td>
<td valign="top" align="center">&#x02212;0.820977020602795</td>
<td valign="top" align="center">&#x02212;0.809103346568393</td>
<td valign="top" align="center">0.0118736785970336</td>
<td valign="top" align="center">4.56263071768603e-09</td>
<td valign="top" align="center">&#x02212;0.809103342005762</td>
</tr> <tr>
<td valign="top" align="left">0.375</td>
<td valign="top" align="center">&#x02212;0.805659140932504</td>
<td valign="top" align="center">&#x02212;0.792982817465941</td>
<td valign="top" align="center">0.012676328308776</td>
<td valign="top" align="center">4.84221285290687e-09</td>
<td valign="top" align="center">&#x02212;0.792982812623728</td>
</tr> <tr>
<td valign="top" align="left">0.3875</td>
<td valign="top" align="center">&#x02212;0.789510285455638</td>
<td valign="top" align="center">&#x02212;0.775993785187767</td>
<td valign="top" align="center">0.013516505401049</td>
<td valign="top" align="center">5.13317843786609e-09</td>
<td valign="top" align="center">&#x02212;0.775993780054589</td>
</tr> <tr>
<td valign="top" align="left">0.4</td>
<td valign="top" align="center">&#x02212;0.772504079416848</td>
<td valign="top" align="center">&#x02212;0.758108472225999</td>
<td valign="top" align="center">0.0143956126267748</td>
<td valign="top" align="center">5.43592659774106e-09</td>
<td valign="top" align="center">&#x02212;0.758108466790073</td>
</tr> <tr>
<td valign="top" align="left">0.4125</td>
<td valign="top" align="center">&#x02212;0.754613418687398</td>
<td valign="top" align="center">&#x02212;0.739298325036908</td>
<td valign="top" align="center">0.0153150994013572</td>
<td valign="top" align="center">5.75086722687246e-09</td>
<td valign="top" align="center">&#x02212;0.739298319286041</td>
</tr> <tr>
<td valign="top" align="left">0.425</td>
<td valign="top" align="center">&#x02212;0.735810450655777</td>
<td valign="top" align="center">&#x02212;0.71953399347919</td>
<td valign="top" align="center">0.0162764632550103</td>
<td valign="top" align="center">6.07842387534419e-09</td>
<td valign="top" align="center">&#x02212;0.719533987400766</td>
</tr> <tr>
<td valign="top" align="left">0.4375</td>
<td valign="top" align="center">&#x02212;0.716066554629629</td>
<td valign="top" align="center">&#x02212;0.698785309720203</td>
<td valign="top" align="center">0.0172812513284611</td>
<td valign="top" align="center">6.41903497022867e-09</td>
<td valign="top" align="center">&#x02212;0.698785303301168</td>
</tr> <tr>
<td valign="top" align="left">0.45</td>
<td valign="top" align="center">&#x02212;0.695352321736672</td>
<td valign="top" align="center">&#x02212;0.67702126659654</td>
<td valign="top" align="center">0.018331061913284</td>
<td valign="top" align="center">6.77315237229692e-09</td>
<td valign="top" align="center">&#x02212;0.677021259823388</td>
</tr> <tr>
<td valign="top" align="left">0.4625</td>
<td valign="top" align="center">&#x02212;0.673637534311906</td>
<td valign="top" align="center">&#x02212;0.65420999541498</td>
<td valign="top" align="center">0.0194275460381675</td>
<td valign="top" align="center">7.14124126499627e-09</td>
<td valign="top" align="center">&#x02212;0.654209988273739</td>
</tr> <tr>
<td valign="top" align="left">0.475</td>
<td valign="top" align="center">&#x02212;0.650891144758169</td>
<td valign="top" align="center">&#x02212;0.630318743179503</td>
<td valign="top" align="center">0.0205724091024501</td>
<td valign="top" align="center">7.52378404023091e-09</td>
<td valign="top" align="center">&#x02212;0.630318735655719</td>
</tr> <tr>
<td valign="top" align="left">0.4875</td>
<td valign="top" align="center">&#x02212;0.627081253866695</td>
<td valign="top" align="center">&#x02212;0.60531384922969</td>
<td valign="top" align="center">0.0217674125582822</td>
<td valign="top" align="center">7.92127663462594e-09</td>
<td valign="top" align="center">&#x02212;0.605313841308413</td>
</tr> <tr>
<td valign="top" align="left">0.5</td>
<td valign="top" align="center">&#x02212;0.602175088584054</td>
<td valign="top" align="center">&#x02212;0.579160721275443</td>
<td valign="top" align="center">0.0230143756428427</td>
<td valign="top" align="center">8.33423174917414e-09</td>
<td valign="top" align="center">&#x02212;0.579160712941211</td>
</tr> <tr>
<td valign="top" align="left">0.5125</td>
<td valign="top" align="center">&#x02212;0.57613897921148</td>
<td valign="top" align="center">&#x02212;0.551823810812613</td>
<td valign="top" align="center">0.0243151771620446</td>
<td valign="top" align="center">8.76317751696831e-09</td>
<td valign="top" align="center">&#x02212;0.551823802049435</td>
</tr> <tr>
<td valign="top" align="left">0.525</td>
<td valign="top" align="center">&#x02212;0.548938336022252</td>
<td valign="top" align="center">&#x02212;0.52326658790368</td>
<td valign="top" align="center">0.0256717573272326</td>
<td valign="top" align="center">9.20866050080349e-09</td>
<td valign="top" align="center">&#x02212;0.523266578695019</td>
</tr> <tr>
<td valign="top" align="left">0.5375</td>
<td valign="top" align="center">&#x02212;0.520537625282424</td>
<td valign="top" align="center">&#x02212;0.49345151530727</td>
<td valign="top" align="center">0.0270861196463964</td>
<td valign="top" align="center">9.67124291761934e-09</td>
<td valign="top" align="center">&#x02212;0.493451505636028</td>
</tr> <tr>
<td valign="top" align="left">0.55</td>
<td valign="top" align="center">&#x02212;0.490900344659846</td>
<td valign="top" align="center">&#x02212;0.462340021939864</td>
<td valign="top" align="center">0.0285603328714887</td>
<td valign="top" align="center">1.01515071904146e-08</td>
<td valign="top" align="center">&#x02212;0.462340011788357</td>
</tr> <tr>
<td valign="top" align="left">0.5625</td>
<td valign="top" align="center">&#x02212;0.45998899800602</td>
<td valign="top" align="center">&#x02212;0.429892475652617</td>
<td valign="top" align="center">0.0300965330034543</td>
<td valign="top" align="center">1.06500506191765e-08</td>
<td valign="top" align="center">&#x02212;0.429892465002566</td>
</tr> <tr>
<td valign="top" align="left">0.575</td>
<td valign="top" align="center">&#x02212;0.42776506949497</td>
<td valign="top" align="center">&#x02212;0.396068155305802</td>
<td valign="top" align="center">0.031696925356661</td>
<td valign="top" align="center">1.11674930414196e-08</td>
<td valign="top" align="center">&#x02212;0.396068144138309</td>
</tr> <tr>
<td valign="top" align="left">0.5875</td>
<td valign="top" align="center">&#x02212;0.394188997102878</td>
<td valign="top" align="center">&#x02212;0.360825222122928</td>
<td valign="top" align="center">0.0333637866844218</td>
<td valign="top" align="center">1.17044715031156e-08</td>
<td valign="top" align="center">&#x02212;0.360825210418457</td>
</tr> <tr>
<td valign="top" align="left">0.6</td>
<td valign="top" align="center">&#x02212;0.359220145411866</td>
<td valign="top" align="center">&#x02212;0.324120690306115</td>
<td valign="top" align="center">0.0350994673673957</td>
<td valign="top" align="center">1.22616446995849e-08</td>
<td valign="top" align="center">&#x02212;0.324120678044471</td>
</tr> <tr>
<td valign="top" align="left">0.6125</td>
<td valign="top" align="center">&#x02212;0.322816777720846</td>
<td valign="top" align="center">&#x02212;0.285910396893872</td>
<td valign="top" align="center">0.0369063936666661</td>
<td valign="top" align="center">1.2839691865274e-08</td>
<td valign="top" align="center">&#x02212;0.28591038405418</td>
</tr> <tr>
<td valign="top" align="left">0.625</td>
<td valign="top" align="center">&#x02212;0.284936027445972</td>
<td valign="top" align="center">&#x02212;0.246148970841916</td>
<td valign="top" align="center">0.0387870700433691</td>
<td valign="top" align="center">1.34393123574217e-08</td>
<td valign="top" align="center">&#x02212;0.246148957402603</td>
</tr> <tr>
<td valign="top" align="left">0.6375</td>
<td valign="top" align="center">&#x02212;0.245533868792753</td>
<td valign="top" align="center">&#x02212;0.204789801307189</td>
<td valign="top" align="center">0.0407440815467922</td>
<td valign="top" align="center">1.40612288479502e-08</td>
<td valign="top" align="center">&#x02212;0.20478978724596</td>
</tr> <tr>
<td valign="top" align="left">0.65</td>
<td valign="top" align="center">&#x02212;0.20456508668146</td>
<td valign="top" align="center">&#x02212;0.161785005114735</td>
<td valign="top" align="center">0.0427800962729118</td>
<td valign="top" align="center">1.47061868793763e-08</td>
<td valign="top" align="center">&#x02212;0.161784990408548</td>
</tr> <tr>
<td valign="top" align="left">0.6625</td>
<td valign="top" align="center">&#x02212;0.161983245906997</td>
<td valign="top" align="center">&#x02212;0.117085393386553</td>
<td valign="top" align="center">0.0448978678953992</td>
<td valign="top" align="center">1.53749557252336e-08</td>
<td valign="top" align="center">&#x02212;0.117085378011597</td>
</tr> <tr>
<td valign="top" align="left">0.675</td>
<td valign="top" align="center">&#x02212;0.117740659513903</td>
<td valign="top" align="center">&#x02212;0.0706404373110469</td>
<td valign="top" align="center">0.0471002382711829</td>
<td valign="top" align="center">1.60683270439277e-08</td>
<td valign="top" align="center">&#x02212;0.0706404212427199</td>
</tr> <tr>
<td valign="top" align="left">0.6875</td>
<td valign="top" align="center">&#x02212;0.0717883563667219</td>
<td valign="top" align="center">&#x02212;0.0223982330311248</td>
<td valign="top" align="center">0.0493901401227153</td>
<td valign="top" align="center">1.67871181816492e-08</td>
<td valign="top" align="center">&#x02212;0.0223982162440066</td>
</tr> <tr>
<td valign="top" align="left">0.7</td>
<td valign="top" align="center">&#x02212;0.0240760478954237</td>
<td valign="top" align="center">0.0276945343715484</td>
<td valign="top" align="center">0.051770599799145</td>
<td valign="top" align="center">1.7532172907897e-08</td>
<td valign="top" align="center">0.0276945519037213</td>
</tr> <tr>
<td valign="top" align="left">0.7125</td>
<td valign="top" align="center">0.0254479060049128</td>
<td valign="top" align="center">0.0796926278192158</td>
<td valign="top" align="center">0.0542447401186637</td>
<td valign="top" align="center">1.83043606938327e-08</td>
<td valign="top" align="center">0.0796926461235765</td>
</tr> <tr>
<td valign="top" align="left">0.725</td>
<td valign="top" align="center">0.0768365319414793</td>
<td valign="top" align="center">0.133652296131265</td>
<td valign="top" align="center">0.0568157832943649</td>
<td valign="top" align="center">1.91045788910937e-08</td>
<td valign="top" align="center">0.133652315235844</td>
</tr> <tr>
<td valign="top" align="left">0.7375</td>
<td valign="top" align="center">0.13014427888004</td>
<td valign="top" align="center">0.189631312892295</td>
<td valign="top" align="center">0.0594870539460066</td>
<td valign="top" align="center">1.99337518713705e-08</td>
<td valign="top" align="center">0.189631332826047</td>
</tr> <tr>
<td valign="top" align="left">0.75</td>
<td valign="top" align="center">0.185427054912566</td>
<td valign="top" align="center">0.247689016319883</td>
<td valign="top" align="center">0.062261982200149</td>
<td valign="top" align="center">2.07928315953954e-08</td>
<td valign="top" align="center">0.247689037112715</td>
</tr> <tr>
<td valign="top" align="left">0.7625</td>
<td valign="top" align="center">0.242742264959161</td>
<td valign="top" align="center">0.307886350157565</td>
<td valign="top" align="center">0.0651441068812088</td>
<td valign="top" align="center">2.16828046073481e-08</td>
<td valign="top" align="center">0.30788637184037</td>
</tr> <tr>
<td valign="top" align="left">0.775</td>
<td valign="top" align="center">0.302148849427843</td>
<td valign="top" align="center">0.370285905619175</td>
<td valign="top" align="center">0.0681370787960134</td>
<td valign="top" align="center">2.26046822926484e-08</td>
<td valign="top" align="center">0.370285928223857</td>
</tr> <tr>
<td valign="top" align="left">0.7875</td>
<td valign="top" align="center">0.363707323856302</td>
<td valign="top" align="center">0.434951964411365</td>
<td valign="top" align="center">0.0712446641145731</td>
<td valign="top" align="center">2.35595102315855e-08</td>
<td valign="top" align="center">0.434951987970875</td>
</tr> <tr>
<td valign="top" align="left">0.8</td>
<td valign="top" align="center">0.427479819560381</td>
<td valign="top" align="center">0.501950542861812</td>
<td valign="top" align="center">0.0744707478497984</td>
<td valign="top" align="center">2.45483675609393e-08</td>
<td valign="top" align="center">0.501950567410179</td>
</tr> <tr>
<td valign="top" align="left">0.8125</td>
<td valign="top" align="center">0.493530125314658</td>
<td valign="top" align="center">0.571349437181299</td>
<td valign="top" align="center">0.0778193374390066</td>
<td valign="top" align="center">2.55723657804907e-08</td>
<td valign="top" align="center">0.571349462753664</td>
</tr> <tr>
<td valign="top" align="left">0.825</td>
<td valign="top" align="center">0.561923730091108</td>
<td valign="top" align="center">0.643218269888593</td>
<td valign="top" align="center">0.0812945664301338</td>
<td valign="top" align="center">2.66326488640445e-08</td>
<td valign="top" align="center">0.643218296521241</td>
</tr> <tr>
<td valign="top" align="left">0.8375</td>
<td valign="top" align="center">0.632727866882513</td>
<td valign="top" align="center">0.717628537427769</td>
<td valign="top" align="center">0.0849006982756543</td>
<td valign="top" align="center">2.77303989770772e-08</td>
<td valign="top" align="center">0.717628565158168</td>
</tr> <tr>
<td valign="top" align="left">0.85</td>
<td valign="top" align="center">0.706011557637944</td>
<td valign="top" align="center">0.794653659008383</td>
<td valign="top" align="center">0.088642130237274</td>
<td valign="top" align="center">2.88668347003807e-08</td>
<td valign="top" align="center">0.794653687875218</td>
</tr> <tr>
<td valign="top" align="left">0.8625</td>
<td valign="top" align="center">0.781845659338301</td>
<td valign="top" align="center">0.874369026699666</td>
<td valign="top" align="center">0.0925233974045763</td>
<td valign="top" align="center">3.00432116961957e-08</td>
<td valign="top" align="center">0.874369056742878</td>
</tr> <tr>
<td valign="top" align="left">0.875</td>
<td valign="top" align="center">0.860302911240661</td>
<td valign="top" align="center">0.956852056810713</td>
<td valign="top" align="center">0.0965491768308727</td>
<td valign="top" align="center">3.12608208208331e-08</td>
<td valign="top" align="center">0.956852088071534</td>
</tr> <tr>
<td valign="top" align="left">0.8875</td>
<td valign="top" align="center">0.941457983320816</td>
<td valign="top" align="center">1.04218224258944</td>
<td valign="top" align="center">0.100724291789624</td>
<td valign="top" align="center">3.2521000781216e-08</td>
<td valign="top" align="center">1.04218227511044</td>
</tr> <tr>
<td valign="top" align="left">0.9</td>
<td valign="top" align="center">1.02538752594421</td>
<td valign="top" align="center">1.13044120827392</td>
<td valign="top" align="center">0.105053716154833</td>
<td valign="top" align="center">3.38251242570919e-08</td>
<td valign="top" align="center">1.13044124209905</td>
</tr> <tr>
<td valign="top" align="left">0.9125</td>
<td valign="top" align="center">1.1121702207962</td>
<td valign="top" align="center">1.22171276453059</td>
<td valign="top" align="center">0.109542578909002</td>
<td valign="top" align="center">3.51746087812188e-08</td>
<td valign="top" align="center">1.2217127997052</td>
</tr> <tr>
<td valign="top" align="left">0.925</td>
<td valign="top" align="center">1.20188683310328</td>
<td valign="top" align="center">1.31608296531462</td>
<td valign="top" align="center">0.114196168782255</td>
<td valign="top" align="center">3.65709158511862e-08</td>
<td valign="top" align="center">1.31608300188554</td>
</tr> <tr>
<td valign="top" align="left">0.9375</td>
<td valign="top" align="center">1.29462026517788</td>
<td valign="top" align="center">1.41364016618871</td>
<td valign="top" align="center">0.119019939026382</td>
<td valign="top" align="center">3.80155509294156e-08</td>
<td valign="top" align="center">1.41364020420426</td>
</tr> <tr>
<td valign="top" align="left">0.95</td>
<td valign="top" align="center">1.39045561131993</td>
<td valign="top" align="center">1.51447508413751</td>
<td valign="top" align="center">0.124019512327651</td>
<td valign="top" align="center">3.95100665517845e-08</td>
<td valign="top" align="center">1.51447512364758</td>
</tr> <tr>
<td valign="top" align="left">0.9625</td>
<td valign="top" align="center">1.48948021410943</td>
<td valign="top" align="center">1.61868085891571</td>
<td valign="top" align="center">0.129200685862344</td>
<td valign="top" align="center">4.10560634378498e-08</td>
<td valign="top" align="center">1.61868089997178</td>
</tr> <tr>
<td valign="top" align="left">0.975</td>
<td valign="top" align="center">1.59178372212501</td>
<td valign="top" align="center">1.72635311596889</td>
<td valign="top" align="center">0.13456943649907</td>
<td valign="top" align="center">4.2655188714491e-08</td>
<td valign="top" align="center">1.72635315862408</td>
</tr> <tr>
<td valign="top" align="left">0.9875</td>
<td valign="top" align="center">1.69745814912426</td>
<td valign="top" align="center">1.83759003096718</td>
<td valign="top" align="center">0.140131926152066</td>
<td valign="top" align="center">4.43091430213372e-08</td>
<td valign="top" align="center">1.83759007527633</td>
</tr> <tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">1.80659793472282</td>
<td valign="top" align="center">1.95249239599288</td>
<td valign="top" align="center">0.145894507289739</td>
<td valign="top" align="center">4.60196762919196e-08</td>
<td valign="top" align="center">1.95249244201256</td>
</tr></tbody>
</table>
</table-wrap>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Exact and approximate numerical Solutions for <italic>h</italic> = 0.1, <bold>(A)</bold> graph of the approximate solution for Eulers and Runge-Kutta fourth order, <bold>(B)</bold> graph of the approximate solution of Exact and Runge-Kutta fourth order, <bold>(C)</bold> graph of the approximate solution for Eulers and Exact, and <bold>(D)</bold> graph of approximate solutions for Euler, Runge-Kutta forth order methods and exact solution.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0001.tif"/>
</fig>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Exact and approximate numerical solutions for <italic>h</italic> = 0.05, <bold>(A)</bold> graph of the approximate solution for Eulers and Runge-Kutta fourth order, <bold>(B)</bold> graph of the approximate solution of Exact and Runge-Kutta fourth order, <bold>(C)</bold> graph of the approximate solution for Eulers and Exact, and <bold>(D)</bold> graph of approximate solutions for Euler, Runge-Kutta forth order methods and exact solution.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0002.tif"/>
</fig>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Exact and approximate numerical solutions for <italic>h</italic> = 0.025, <bold>(A)</bold> graph of the approximate solution for Euler&#x00027;s and Runge-Kutta fourth order, <bold>(B)</bold> graph of the approximate solution of Exact and Runge-Kutta fourth order, <bold>(C)</bold> graph of the approximate solution for Euler&#x00027;s and Exact, and <bold>(D)</bold> graph of approximate solutions for Euler, Runge-Kutta forth order methods and exact solution.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0003.tif"/>
</fig>
</sec>
</sec>
<sec id="s4">
<title>4 Discussion of results</title>
<p>In this work the obtained results are shown in the <xref ref-type="table" rid="T1">Tables 1</xref>&#x02013;<xref ref-type="table" rid="T4">4</xref> and graphically representations are show in the <xref ref-type="fig" rid="F1">Figures 1</xref>&#x02013;<xref ref-type="fig" rid="F7">7</xref>. The <xref ref-type="table" rid="T1">Tables 1</xref>&#x02013;<xref ref-type="table" rid="T4">4</xref> shows that the comparison of the two desired methods Euler&#x00027;s and Runge-Kutta fourth order method with the exact solution and also the <xref ref-type="fig" rid="F1">Figures 1</xref>&#x02013;<xref ref-type="fig" rid="F4">4</xref> shows that the graph of the approximate solution for Euler and Runge-Kutta methods for each step size h. The approximated numerical solution is calculated with the step size <italic>h</italic> &#x0003D; 0.1, 0.05, 0.025, 0.125. The approximate solution of Euler&#x00027;s and Runge-Kutta fourth order methods have different values for the same step size h for each iteration for example when we compared the accuracy of the Euler and Runge-Kutta fourth order method with sizes <italic>h</italic> &#x0003D; 0.1 and <italic>h</italic> &#x0003D; 0.05, then approximated solution with the step size <italic>h</italic> &#x0003D; 0.1 has less accurate then the approximated solution with the step size <italic>h</italic> &#x0003D; 0.05 because the error of approximate values for <italic>h</italic> &#x0003D; 0.1 is greater than the error for <italic>h</italic> &#x0003D; 0.05 <italic>i</italic>n each iterations. This shows that the Euler&#x00027;s method with <italic>h</italic> &#x0003D; 0.1 and <italic>h</italic> &#x0003D; 0.05 does not converges to the exact solution. Similarly for the step sizes <italic>h</italic> &#x0003D; 0.025 and <italic>h</italic> &#x0003D; 0.0125, then approximate solution with the step size <italic>h</italic> &#x0003D; 0.025 has less accurate than the approximate the solution with the step size <italic>h</italic> &#x0003D; 0.0125 because of the approximate solution with the step size <italic>h</italic> &#x0003D; 0.0125 has less absolute error then the approximated solution for <italic>h</italic> &#x0003D; 0.025. This shows that the Euler&#x00027;s method with <italic>h</italic> = 0.1 and <italic>h</italic> = 0.05 does not converges to the exact solution but for <italic>h</italic> &#x0003D; 0.025 and <italic>h</italic> = 0.0125 Converges slowly to exact solution. The Runge-Kutta fourth order method with the same step size also the approximate solution obtained for <italic>h</italic> &#x0003D; 0.1 and <italic>h</italic> &#x0003D; 0.05 converges gradually to exact solution but the approximate for <italic>h</italic> = 0.025 and <italic>h</italic> = 0.0125 converges fatly to exact solution. This shows that as the step size decreases the accuracy the approximate solution also increases. The <xref ref-type="fig" rid="F5">Figures 5</xref>, <xref ref-type="fig" rid="F6">6</xref> shows that the approximate solution of Euler and Runge-Kutta fourth order method with the same step size respectively. According to <xref ref-type="fig" rid="F5">Figure 5</xref> the graph of the approximate solution for Runge-Kutta fourth order method are approximately all are overlapped because of little difference between approximate solutions of Runge-Kutta methods with Exact solution (i.e., error) for each <italic>h</italic> values. From the <xref ref-type="fig" rid="F6">Figure 6</xref> also the graph of approximated solutions for Euler&#x00027;s method has the gap between two consecutives step sizes this shows that Euler&#x00027;s method has maximum absolute error compared to Runge-Kutta fourth order for same step size. Graph of approximated solutions for <italic>h</italic> &#x0003D; 0.0125 is above the graph of approximated value for <italic>h</italic> &#x0003D; 0.1, 0.05, 0.025 this means that the graph of approximated solution approach&#x00027;s to the graph of exact solution as step size decreases but the graph for approximated solution for <italic>h</italic> = 0.1 is under the graph of approximated solution <italic>for h</italic> &#x0003D; 0.05, 0.025, 0.0125 this means that it away from the graph of exact solution and it has maximum error for <italic>h</italic> &#x0003D; 0.1. In the <xref ref-type="fig" rid="F7">Figure 7</xref> the graph of maximum absolute error for Euler and Runge-Kutta fourth order for each step size are plotted. The graph of error for Euler&#x00027;s method in <xref ref-type="fig" rid="F7">Figure 7</xref> for <italic>h</italic> = 0.1 is above <italic>h</italic> &#x0003D; 0.05, 0.025, <italic>and</italic> 0.0125 this shows the approximate solution for h=0.1 has maximum error then all approximated solution for <italic>h</italic> &#x0003D; 0.05, 0.025, 0.0125 but for <italic>h</italic> &#x0003D; 0.0125 the error graph is below <italic>h</italic> &#x0003D; 0.05, 0.025, <italic>and</italic> 0.1 this shows that the absolute error for <italic>h</italic> &#x0003D; 0.0125 is less then all other approximated solution for <italic>h</italic> &#x0003D; 0.05, 0.025, <italic>and</italic> 0.1 for every iteration. Additionally, error analysis for Runge-Kutta method in <xref ref-type="fig" rid="F7">Figure 7</xref> the graph of error for each step size resembles overlapped to x-axis that means the error for Runge-Kutta is almost tends to zero. From the <xref ref-type="fig" rid="F7">Figure 7</xref> we observed that Runge-Kutta fourth order converges fastly then the Euler&#x00027;s method with the same step size. The absolute error for each step size h of Euler and Runge-Kutta fourth order methods tends to zero as the step size tends to zero. Although the fourth order Runge-Kutta method is more accurate than the Euler&#x00027;s approach, which only requires one-fourth the step size, it is arduous and takes four evaluations per step size. Finally, we noticed that, as the tables and figures show, the fourth order Runge-Kutta method is the most effective approach for solving second order initial value problem for ordinary differential equations, and that it is converging more quickly than the Euler method.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Exact and approximate numerical Solutions for <italic>h</italic> = 0.0125, <bold>(A)</bold> graph of the approximate solution for Euler&#x00027;s and Runge-Kutta fourth order, <bold>(B)</bold> graph of the approximate solution of Exact and Runge-Kutta fourth order, <bold>(C)</bold> graph of the approximate solution for Eulers and Exact, and <bold>(D)</bold> graph of approximate solutions for Euler, Runge-Kutta forth order methods and exact solution.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0004.tif"/>
</fig>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Approximate value for Runge-Kutta fourth order method for each step size.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0005.tif"/>
</fig>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Approximate value for each step size in Euler method.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0006.tif"/>
</fig>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>The approximated error for Euler and Runge-Kutta fourth order for different step size.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-10-1360628-g0007.tif"/>
</fig>
</sec>
<sec sec-type="conclusions" id="s5">
<title>5 Conclusion</title>
<p>In this work, we have discussed Euler&#x00027;s and fourth order Runge-Kutta method for solving second order initial value problems that provides efficient solutions. To achieve the desired accuracy of the numerical solution it is necessary to take step size small. From the tables and figures, we can see that accuracy of the method obtained for decreasing the step size h. The numerical solutions obtained by the two methods are in good agreement with the exact solutions. However, by comparing the results of the two methods, we state that the RK4 Method is appropriate, consistent, convergent, quite stable, and more accurate than the Euler&#x00027;s method and it is widely used in numerical solutions of second order initial value problems in ordinary differential equations. Our research will be helpful in many scientific areas where numerical computations are needed.</p></sec>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.</p></sec>
<sec sec-type="author-contributions" id="s7">
<title>Author contributions</title>
<p>YW: Conceptualization, Data curation, Investigation, Methodology, Resources, Software, Supervision, Validation, Visualization, Writing&#x02014;original draft, Writing&#x02014;review &#x00026; editing, Formal analysis, Project administration. HM: Conceptualization, Data curation, Investigation, Methodology, Resources, Software, Supervision, Validation, Visualization, Writing&#x02014;original draft, Writing&#x02014;review &#x00026; editing. BB: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing&#x02014;original draft, Writing&#x02014;review &#x00026; editing.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>The author(s) declare that no financial support was received for the research, authorship, and/or publication of this article.</p>
</sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s9">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sobczyk</surname> <given-names>K</given-names></name></person-group>. <source>Stochastic Differential Equations: With Applications to Physics and Engineering.</source> <publisher-loc>Cham</publisher-loc>: <publisher-name>Springer Science &#x00026; Business Media</publisher-name> (<year>2001</year>).</citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhu</surname> <given-names>SP</given-names></name></person-group>. <article-title>An exact and explicit solution for the valuation of American put options</article-title>. <source>Quantitative Financ.</source> (<year>2006</year>) <volume>6</volume>:<fpage>229</fpage>&#x02013;<lpage>42</lpage>. <pub-id pub-id-type="doi">10.1080/14697680600699811</pub-id></citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Hamming</surname> <given-names>R</given-names></name></person-group>. <source>Numerical Methods for Scientists and Engineers</source>. <publisher-loc>Chelmsford, MA</publisher-loc>: <publisher-name>Courier Corporation</publisher-name> (<year>2012</year>).</citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Chapra</surname> <given-names>SC</given-names></name></person-group>. <source>Numerical Methods for Engineers</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Mcgraw-Hill</publisher-name>. (<year>2010</year>).</citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Brissaud</surname> <given-names>A</given-names></name> <name><surname>Frisch</surname> <given-names>U</given-names></name></person-group>. <article-title>Solving linear stochastic differential equations</article-title>. <source>J Mathematic Phys</source>. (<year>1974</year>) <volume>15</volume>:<fpage>524</fpage>&#x02013;<lpage>34</lpage>. <pub-id pub-id-type="doi">10.1063/1.1666678</pub-id></citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Denis</surname> <given-names>B</given-names></name></person-group>. <source>An Overview of Numerical and Analytical Methods for solving Ordinary Differential Equations.</source> Cornell University (<year>2020</year>). Available online at: <ext-link ext-link-type="uri" xlink:href="http://arxiv.org/abs/2012.07558">http://arxiv.org/abs/2012.07558</ext-link></citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Butcher</surname> <given-names>JC</given-names></name></person-group>. <source>The Numerical Analysis of Ordinary Differential Equations: Runge-Kutta and General Linear Methods</source>. <publisher-loc>London</publisher-loc>: <publisher-name>Wiley-Interscience</publisher-name> (<year>1987</year>).</citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jator</surname> <given-names>SN</given-names></name> <name><surname>Li</surname> <given-names>J</given-names></name></person-group>. <article-title>Boundary value methods via a multistep method with variable coefficients for second order initial and boundary value problems</article-title>. <source>Int J Pure Appl Mathematics.</source> (<year>2009</year>) <volume>50</volume>:<fpage>403</fpage>&#x02013;<lpage>20</lpage>.</citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hossain</surname> <given-names>MJ</given-names></name> <name><surname>Alam</surname> <given-names>MS</given-names></name> <name><surname>Hossain</surname> <given-names>MB</given-names></name></person-group>. <article-title>A study on numerical solutions of second order initial value problems (IVP) for ordinary differential equations with fourth order and Butcher&#x00027;s fifth order Runge-Kutta methods</article-title>. <source>Am J Comput Appl Mathematics.</source> (<year>2017</year>) <volume>7</volume>:<fpage>129</fpage>&#x02013;<lpage>37</lpage>. <pub-id pub-id-type="doi">10.5923/j.ajcam.20170705.02</pub-id></citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hussain</surname> <given-names>K</given-names></name> <name><surname>Ismail</surname> <given-names>F</given-names></name> <name><surname>Senu</surname> <given-names>N</given-names></name></person-group>. <article-title>Solving directly special fourth-order ordinary differential equations using Runge&#x02013;Kutta type method</article-title>. <source>J Comput Appl Math.</source> (<year>2016</year>) <volume>306</volume>:<fpage>179</fpage>&#x02013;<lpage>99</lpage>. <pub-id pub-id-type="doi">10.1016/j.cam.2016.04.002</pub-id></citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kamruzzaman</surname> <given-names>M</given-names></name> <name><surname>Nath</surname> <given-names>MC</given-names></name></person-group>. <article-title>A comparative study on numerical solution of initial value problem by using Euler&#x00027;s method, modified Euler&#x00027;s method and Runge&#x02013;Kutta method</article-title>. <source>J Comput Mathematic Sci.</source> (<year>2018</year>) <volume>9</volume>:<fpage>493</fpage>&#x02013;<lpage>500</lpage>. <pub-id pub-id-type="doi">10.29055/jcms/784</pub-id></citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cromer</surname> <given-names>A</given-names></name></person-group>. <article-title>Stable solutions using the Euler approximation</article-title>. <source>Am J Phys.</source> (<year>1981</year>) <volume>49</volume>:<fpage>455</fpage>&#x02013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1119/1.12478</pub-id></citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hossen</surname> <given-names>M</given-names></name> <name><surname>Ahmed</surname> <given-names>Z</given-names></name> <name><surname>Kabir</surname> <given-names>R</given-names></name> <name><surname>Hossan</surname> <given-names>Z</given-names></name></person-group>. <article-title>A comparative investigation on numerical solution of initial value problem by using modified Euler method and Runge-Kutta method</article-title>. <source>IOSR-JM.</source> (<year>2019</year>) <volume>12</volume>:<fpage>2278</fpage>&#x02013;<lpage>5728</lpage>. <pub-id pub-id-type="doi">10.9790/5728-1504034045</pub-id></citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hindmarsh</surname> <given-names>AC</given-names></name> <name><surname>Petzold</surname> <given-names>LR</given-names></name></person-group>. <article-title>Algorithms and software for ordinary differential equations and differential-algebraic equations, Part I: Euler methods and error estimation</article-title>. <source>Computers in Physics.</source> (<year>1995</year>) <volume>9</volume>:<fpage>34</fpage>&#x02013;<lpage>41</lpage>. <pub-id pub-id-type="doi">10.1063/1.168536</pub-id></citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Okeke</surname> <given-names>AA</given-names></name> <name><surname>Tumba</surname> <given-names>P</given-names></name> <name><surname>Anorue</surname> <given-names>OF</given-names></name> <name><surname>Dauda</surname> <given-names>A</given-names></name></person-group>. <article-title>Analysis and comparative study of numerical solutions of initial value problems (IVP) in ordinary differential equations (ODE) with Euler and Runge-Kutta methods</article-title>. <source>AJER.</source> (<year>2019</year>) <volume>8</volume>:<fpage>6</fpage>&#x02013;<lpage>15</lpage>.</citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Amir Taher</surname> <given-names>K</given-names></name></person-group>. <source>Comparison of Numerical Methods for Solving a System of Ordinary Differential Equations: Accuracy, Stability and Efficiency</source>. <publisher-loc>Lowa City, IA</publisher-loc>: <publisher-name>Johan Wiley, and Sons</publisher-name> (<year>2009</year>). p. 81.</citation>
</ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Neto</surname> <given-names>AR</given-names></name> <name><surname>Rao</surname> <given-names>KR</given-names></name></person-group>. <article-title>A stochastic approach to global error estimation in ODE multistep numerical integration</article-title>. <source>J Comput Appl Math.</source> (<year>1990</year>) <volume>30</volume>:<fpage>257</fpage>&#x02013;<lpage>81</lpage>. <pub-id pub-id-type="doi">10.1016/0377-0427(90)90279-9</pub-id></citation>
</ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gustafsson</surname> <given-names>K</given-names></name> <name><surname>S&#x000F6;derlind</surname> <given-names>G</given-names></name></person-group>. <article-title>Control strategies for the iterative solution of nonlinear equations in ODE solvers</article-title>. <source>SIAM J Sci Comp.</source> (<year>1997</year>) <volume>18</volume>:<fpage>23</fpage>&#x02013;<lpage>40</lpage>. <pub-id pub-id-type="doi">10.1137/S1064827595287109</pub-id></citation>
</ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Atkinson</surname> <given-names>K</given-names></name> <name><surname>Han</surname> <given-names>W</given-names></name> <name><surname>Stewart</surname> <given-names>DE</given-names></name></person-group>. <source>Numerical Solution of Ordinary Differential Equations.</source> <publisher-loc>New York, NY</publisher-loc>: <publisher-name>John Wiley &#x00026; Sons</publisher-name> (<year>2009</year>). </citation>
</ref>
</ref-list>
</back>
</article>





