Next Article in Journal
Exploring Virtual Environments to Assess the Quality of Public Spaces
Next Article in Special Issue
An Innovative Mathematical Model of the Spine: Predicting Cobb and Intervertebral Angles Using the 3D Position of the Spinous Processes Measured by Vertebral Metrics
Previous Article in Journal
Highly Imbalanced Classification of Gout Using Data Resampling and Ensemble Method
Previous Article in Special Issue
A Geometrical Study about the Biparametric Family of Anomalies in the Elliptic Two-Body Problem with Extensions to Other Families
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficient Third-Order Scheme Based on Runge–Kutta and Taylor Series Expansion for Solving Initial Value Problems

by
Noori Y. Abdul-Hassan
1,
Zainab J. Kadum
2 and
Ali Hasan Ali
1,3,*
1
Department of Mathematics, College of Education for Pure Sciences, University of Basrah, Basrah 61001, Iraq
2
Basrah Education Directorate, Ministry of Education, Basrah 61001, Iraq
3
Institute of Mathematics, University of Debrecen, Pf. 400, H-4002 Debrecen, Hungary
*
Author to whom correspondence should be addressed.
Algorithms 2024, 17(3), 123; https://doi.org/10.3390/a17030123
Submission received: 20 November 2023 / Revised: 22 February 2024 / Accepted: 14 March 2024 / Published: 16 March 2024
(This article belongs to the Special Issue Mathematical Modelling in Engineering and Human Behaviour)

Abstract

:
In this paper, we propose a new numerical scheme based on a variation of the standard formulation of the Runge–Kutta method using Taylor series expansion for solving initial value problems (IVPs) in ordinary differential equations. Analytically, the accuracy, consistency, and absolute stability of the new method are discussed. It is established that the new method is consistent and stable and has third-order convergence. Numerically, we present two models involving applications from physics and engineering to illustrate the efficiency and accuracy of our new method and compare it with further pertinent techniques carried out in the same order.

1. Introduction

Numerical analysis is the area of mathematics that deals with computational techniques for studying and finding solutions to math problems. It is an offshoot of computer science and mathematics that develops, analyzes, and generates algorithms for numerically solving mathematical problems. Numerical methods are typically centered on the implementation of numerical algorithms. The goal of these numerical methods is to provide systematic procedures for numerically solving mathematical problems. The ordinary differential equation (ODE) is a mathematical equation that is used in natural physical processes, chemistry, engineering, and other sciences. Ordinary differential equations are notoriously difficult to approximate analytically, so the numerical treatment is crucial because it offers a powerful alternate solution method for resolving the differential equation.
We frequently use initial value problems (IVPs), such that
y = f ( x , y ( x ) ) ,   y x 0 = y 0
where x is the independent variable, which might also indicate time in physical problems, and y ( x ) is the solution. Furthermore, because y ( x ) can be a vector-valued function with N-dimensions, the domain and range of f and the solution y are given by
f   : R × R   N R
y : R R   N
Furthermore, Equation (1), in which f is a function both of x and y , is known as a “non-autonomous” equation. However, by simply adding an extra variable, which is always equal to x , it can be easily rewritten in an equivalent “autonomous” form below, in which f is a function of y only:
y = f ( y ( x ) ) ,   y x 0 = y 0
There are numerous well-known numerical methods that can be used to solve the IVP in Equation (1). One category of these is third-order methods, like Ralston’s third-order Runge–Kutta method (Ralston’s scheme) [1], the third-order Runge–Kutta method (RK3 scheme) [2], the third-order Runge–Kutta method based on the arithmetic mean (ARK3 scheme) [3], the third-order Heun’s method (Heun’s scheme) [4], and several other methods. These numerical methods have been constructed to solve Equations (1) and (2) using different techniques such as the Taylor series expansion technique, homotopy analysis technique, quadrature formulas technique, and Adomian decomposition technique; for more details, see [5,6,7].
In this study, we construct a new numerical method based on a variation of the standard formulation of the Runge–Kutta method using Taylor series expansion. The rest of this paper is divided into the following sections. In Section 2, we recall some definitions and auxiliary results that we will use in our work. The derivation of the new method is described in Section 3. Section 4 provides details on the local truncation error. Section 5 discusses the stability analysis of the suggested technique. The consistency of the new method and its convergence are detailed in Section 6. Several numerical models are shown in Section 7 to show the efficiency of this method and compare it with other relevant methods. Finally, Section 8 offers the discussion and the conclusions.

2. Preliminaries

Theorem 1
([8]). (Existence and Uniqueness Theorem).
Let f ( x ,   y ) and f y be continuous functions of x and y at all points ( x ,   y ) in some neighborhood of the initial point x 0 ,   y 0 . Then, there is a unique function y ( x ) defined on some interval x 0 ε ,   x 0 + ε satisfying
y = f ( x , y ( x ) ) ,   y x 0 = y 0 ,   x     x 0 ε ,   x 0 + ε ,   ε > 0
Definition 1
([9]). A Taylor sum or Taylor series is a mathematical function representation in the form of a series consisting of terms calculated using the values of the function’s derivation at a specific point and given by
ψ T x n , y n ; h = r = 0 h r r + 1 ! x + f y r f ( x , y )
Definition 2
([10]). Let I R be an open interval and f : I R be a n -times differentiable function at α I . The Taylor polynomial Τ n α f of degree n at a point α of f is the polynomial
Τ n α f α = f α + x α f α + x α 2 2 ! f α + x α 3 3 ! f α + + x α n n ! f ( n ) α
Definition 3
([11]). The difference between the numerical solution
  y n + 1 = y n + h ψ ( x n , y n ; h )
and the exact solution y x n + 1  is called the local truncation error (L.T.E.) for a one-step method x n with step size h is given by
L . T . E . = y x n + 1 y n + 1
Definition 4
([12]). The numerical method is said to be stable if there exists  h > 0 for each differential equation such that changing the initial values by a fixed amount produces a bounded change in the numerical solution for all h
Definition 5
([13]). A numerical method is said to be consistent when all step sizes  h 0 , as it will converge to the differential equation. In other words, we say the method is consistent if and only if
Lim h 0 L . T . E . h = 0   f o r   h = b a N

3. Construction of the New Scheme

In order to construct new single-step methods to solve the IVP Equation (1), we rely on a variant of the standard form of the Runge–Kutta method given by
  y n + 1 = y n + h ψ ( x n , y n ; h )
where
ψ ( x n , y n ; h ) = i = 1 2 m w i k i + 1
and
k 1 = f ( x n , y n ) ,   k i = f x n + c i h , y n + h j = 1 j i i 1 a i j k j ,   i = 2 ,   3 , ,   2 m + 1
and
j = 1 i 1 a i j = c i ,   i = 2 ,   3 ,   ,   2 m + 1
By using the Taylor series expansion of any arbitrary function ψ ( x n , y n ; h ) for the non-autonomous Equation (1), we have
ψ T ( x n , y n ; h ) = r = 0 1 r + 1 ! x + f y r f x , y
and in the autonomous case Equation (2), ψ T ( x n , y n ; h ) becomes
ψ T ( y n ; h ) = r = 0 1 r + 1 ! f y r f ( y )
We now start with the numerical method by using the family of explicit Runge–Kutta methods listed below to solve the mentioned problem in (2).
y n + 1 = y n + h ( w 1 k 2 + w 2 k 3 )
with
  k 1 = f x n , y n     k 2 = f x n + c 2 h , y n + a 1 h k 1       k 3 = f x n + c 3 h , y n + h a 2 k 1 + a 3 k 2    
where a 1 = a 21 ,   a 2 = a 31   , and a 3 = a 32 . We must first calculate the unknowns a 1 ,     a 2 , a 3   ,   w 2 and w 3 . Using Taylor series expansion around f y , we obtain
k 1 = f y n
k 2 = r = 0 1 r ! h a 1 k 1 d d y r f ( y n )
k 3 = r = 0 1 r ! h ( a 2 k 1 + a 3 k 2 ) d d y r f ( y n )
By expanding k 1 , k 2 , and k 3 in Equations (11)–(13), we have
  k 1 = f     k 2 = f + h a 1 f f y + h 2 2 ! f 2 a 1 2 f y y + h 2 3 ! a 1 3 f 3 f y y y +   k 3 = f + h ( a 2 + a 3 ) f f y + h 2 2 ! a 2 2 + 2 a 2 a 3 + a 3 2 f 2 f y y + 2 a 1 a 3 f f y 2   + h 3 1 2 a 2 a 3 3 + a 2 2 a 3 + 1 6 a 3 3 + 1 6 a 2 3 f 3 f y y y + a 1 a 2 a 3 f 2 f y f y y + 1 2 a 1 2 a 3 f 2 f y f y y +
Substituting Equation (14) into Equation (9) yields
y n + 1 = y n + w 1 + w 2 f   h + a 2 + a 3   w 2 + a 1   w 1 f f y   h 2 + 1 2 a 2 + a 3 2   w 2 + a 1 2   w 1 f f y y + 2   w 2 a 1 a 3   f y 2 f   h 3 +
The Taylor series expansion of an exact solution y ( x n + 1 ) is given by
y ( x n + 1 ) = y ( x n ) + f h + 1 2 f f y h 2 + 1 6 f 2 f y y + f f y 2 h 3 + 1 24 f 3 f y y + 4 f 2 f y f y y + f f y 3 h 4 +
The following system of equations is obtained by expressing k 1 ,   k 2 , and k 3 in the Taylor expansion, ignoring terms with powers of h higher than 3, and then substituting them into formula (15) and comparing them to Equation (16):
h f :   w 1 + w 2 = 1
h 2 f f y : a 2 + a 3 w 2 + w 1 a 1 = 1 2
h 3 f 2 f y y :   a 2 + a 3 2 w 2 + a 1 2 w 1 = 1 3
h 3 f f y 2 :   w 2 a 1 a 3 = 1 6
This is a system with an infinite number of solutions comprising four equations and five unknowns. Assuming that w 1 = 3 7 , we obtain the optimal solution listed below:
w 1 = 3 7   ,   w 2 = 4 7 ,   a 1 = 1 6   ,   a 2 = 1 ,   a 3 = 7 4
Additionally, from Equation (6), we obtain c 2 = 1 6 and c 3 = 3 4 .
Thus, substituting the above results in Equations (9) and (10), we present the new method, and we call it the variation Runge–Kutta method of order three (VRK3), given as follows:
y n + 1 = y n + h 7 ( 3 k 2 + 4 k 3 )
with
k 1 = f x n , y n   k 2 = f x n + h 6 , y n + h 6 k 1   k 3 = f x n + 3 h 4 , y n + h k 1 + 7 4 k 2    

4. Accuracy of the New Scheme

Here, the local truncation error of the proposed scheme is investigated as follows.
The set of Equation (18), when expanded using Taylor expansion, yields
k 1 = f
k 2 = f + h 6 f f y + h 2 72 f 2 f y y + h 3 1296 f 3 f y y y +
k 3 = f + 3 h 4 f f y + h 2 9 32 f 2 f y y + 7 24 f f y 2 + h 3 9 128 f 3 f y y y 77 288 f 2 f y f y y +
Now, substituting Equations (19)–(21) into Equation (17) yields
y n + 1 = y n + h f + 1 2 h 2 f f y + 1 6 f 2 f y y + 1 6 f f y 2 h 3 + 35 864 f 3 f y y y 11 72 f 2 f y f y y h 4 +
Hence, from Definition 3, we have
L . T . E . = ( 1 864 f ( f 2 f y y y + 276 f f y f y y + 36 f y 3 ) ) h 4 + O ( h 5 )
As per Equation (22), our proposed method (VRK3) is of third order, with an L . T . E . of fourth order.

5. Stability Analysis of New Scheme

To test the absolute stability of the presented scheme (VRK3), we use the set of Equations (18) to derive the following:
k 1 = λ y n
k 2 = λ y n 1 + h λ 6
k 3 = λ y n 1 + 11 h λ 4 + 7 h 2 λ 2 24
By substituting Equations (23)–(25) into (17) and allowing z = h λ , we obtain
y n + 1 = y n 1 + z + Z 2 2 + z 3 6
Then, from Equation (26), the stability polynomial is
R z = y n + 1 y n = 1 + z + Z 2 2 + z 3 6 + o z 4
Utilizing the MATLAB program, Figure 1 below graphically illustrates the absolute stability region of the Formula (27):

6. Consistency of the New Scheme

To explain the consistency property of the newly proposed scheme, we adopt Definition 5. Therefore, by substituting Equation (22) into Equation (8), we obtain
Lim h 0 L . T . E . h = Lim h 0 ( 1 864 f ( f 2 f y y y + 276 f f y f y y + 36 f y 3 ) ) h 4 + O ( h 5 ) h = 0
According to Lambert [13], a numerical method is consistent if the order is bigger than one. Therefore, our new method is consistent since it is of order three.
Lambert also defines a numerical method as convergent if it is consistent and stable. Following from Equations (27) and (28), this method is consistent and stable. We conclude that the new method (VRK3) is convergent because it satisfies the consistency and stability properties.

7. Numerical Examples

In this section, we introduce two models of IVPs with varying step sizes h to compare the efficiency and the accuracy of the proposed new method (VRK3 scheme) with other third-order methods, like Ralston’s scheme, RK3 scheme, ARK3 scheme, and Heun’s scheme. Here, all calculations and figures are performed using MATLAB (R2022a) software. The numerical results are presented in Table 1, Table 2, Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8, and the error analysis is illustrated in Figure 2, Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7.

7.1. Problem 1 [14]

Take into consideration the first order IVP y = y x 2 + 1 , y 0 = 0.5 , with the exact solution y = x 2 + 2 x 0.5 e x + 1 , 0 x 1 . Table 1, Table 2 and Table 3 show the results that were obtained. The graphs of absolute errors are shown in Figure 2, Figure 3 and Figure 4. The comparison of CPU time between the VRK3 scheme and other relevant third-order schemes is shown in Table 7.
Table 1. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 10 1 .
Table 1. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 10 1 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.16.2076 × 10−66.2076 × 10−68.9854 × 10−63.4299 × 10−66.5207 × 10−7
0.21.2845 × 10−51.2845 × 10−51.8692 × 10−56.9968 × 10−61.1492 × 10−6
0.31.9932 × 10−51.9932 × 10−52.9173 × 10−51.0692 × 10−51.4515 × 10−6
0.42.7492 × 10−52.7492 × 10−54.0482 × 10−51.4502 × 10−51.5125 × 10−6
0.53.5546 × 10−53.5546 × 10−55.2680 × 10−51.8412 × 10−51.2781 × 10−6
0.64.4113 × 10−54.4113 × 10−56.5826 × 10−52.2399 × 10−56.8563 × 10−7
0.75.3212 × 10−55.3212 × 10−57.9987 × 10−52.6437 × 10−53.3777 × 10−7
0.86.2861 × 10−56.2861 × 10−59.5229 × 10−53.0492 × 10−51.8762 × 10−6
0.97.3074 × 10−57.3074 × 10−51.1162 × 10−43.4524 × 10−54.0265 × 10−6
18.3864 × 10−58.3864 × 10−51.2925 × 10−43.8482 × 10−56.9006 × 10−6
Table 2. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 5 × 10 2 .
Table 2. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 5 × 10 2 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.17.9184 × 10−77.9184 × 10−71.1480 × 10−64.3572 × 10−77.9594 × 10−8
0.21.6379 × 10−61.6379 × 10−62.3876 × 10−68.8818 × 10−71.3848 × 10−7
0.32.5408 × 10−62.5408 × 10−63.7254 × 10−61.3561 × 10−61.7141 × 10−7
0.43.5031 × 10−63.5031 × 10−65.1684 × 10−61.8377 × 10−61.7229 × 10−7
0.54.5273 × 10−64.5273 × 10−66.7240 × 10−62.3307 × 10−61.3400 × 10−7
0.65.6159 × 10−65.6159 × 10−68.3997 × 10−62.8321 × 10−64.8292 × 10−8
0.76.7710 × 10−66.7710 × 10−61.0204 × 10−53.3383 × 10−69.4375 × 10−8
0.87.9947 × 10−67.9947 × 10−61.2144 × 10−53.8448 × 10−63.0504 × 10−7
0.99.2884 × 10−69.2884 × 10−61.4231 × 10−54.3460 × 10−65.9642 × 10−7
11.0653 × 10−51.0653 × 10−51.6472 × 10−54.8351 × 10−69.8318 × 10−7
Table 3. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 25 × 10 3 .
Table 3. Comparison of the absolute errors among third-order schemes in Problem 1, for h = 25 × 10 3 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.19.9973 × 10−89.9973 × 10−81.4505 × 10−75.4894 × 10−89.8153 × 10−9
0.22.0675 × 10−72.0675 × 10−73.0165 × 10−71.1185 × 10−71.6954 × 10−8
0.33.2066 × 10−73.2066 × 10−74.7062 × 10−71.7070 × 10−72.0745 × 10−8
0.44.4202 × 10−74.4202 × 10−76.5283 × 10−72.3121 × 10−72.0405 × 10−8
0.55.7114 × 10−75.7114 × 10−78.4920 × 10−72.9308 × 10−71.5023 × 10−8
0.67.0830 × 10−77.0830 × 10−71.0607 × 10−63.5592 × 10−73.5422 × 10−9
0.78.5378 × 10−78.5378 × 10−71.2883 × 10−64.1926 × 10−71.5261 × 10−8
0.81.0078 × 10−61.0078 × 10−61.5331 × 10−64.8250 × 10−74.2799 × 10−8
0.91.1705 × 10−61.1705 × 10−61.7962 × 10−65.4492 × 10−78.0702 × 10−8
11.3422 × 10−61.3422 × 10−62.0787 × 10−66.0565 × 10−71.3084 × 10−7
Figure 2. The absolute errors for numerical results in Table 1.
Figure 2. The absolute errors for numerical results in Table 1.
Algorithms 17 00123 g002
Figure 3. The absolute errors for numerical results in Table 2.
Figure 3. The absolute errors for numerical results in Table 2.
Algorithms 17 00123 g003
Figure 4. The absolute errors for numerical results in Table 3.
Figure 4. The absolute errors for numerical results in Table 3.
Algorithms 17 00123 g004

7.2. Problem 2 (Mixture Model)

We consider here the IVP proposed in [15], which was a model of a storage tank in an oil refinery that holds 2000 gal of gasoline with 100 lb of an additive mixed within it. To prepare for winter weather, 40 gal/min of gasoline that contains 2 lb of additive per gallon is pumped into the storage tank. The well-mixed solution is pumped out at a rate of 45 gal/min. Let y be the amount of additive (in pounds) in the tank at time x . When x = 0 , we know that y = 100 . The mixture process is modeled by the IVP, y = 80 45   ( 2000 5 x )   y   ,   y 0 = 100 , and the analytic solution, y ( x ) = 2000 5 x { 2 3900   ( 2000 ) 9 ( 2000 5 x ) 8 }, 0 x 1 .
Table 4, Table 5 and Table 6 show the absolute errors among third-order methods and the VRK3 scheme, with different step sizes of h = 0.1 , h = 0.05 , and h = 0.025 . Figure 5, Figure 6 and Figure 7 depict the graphical analysis used to support the numerical results in Table 4, Table 5 and Table 6. A comparison of CPU time between the new method and other third-order schemes is shown in Table 8.
Table 4. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 10 1 .
Table 4. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 10 1 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.13.7246 × 10−94.1133 × 10−93.8694 × 10−93.3207 × 10−93.1607 × 10−9
0.27.4366 × 10−98.2127 × 10−97.7257 × 10−96.6303 × 10−96.3109 × 10−9
0.31.1136 × 10−81.2298 × 10−81.1568 × 10−89.9282 × 10−99.4499 × 10−9
0.41.4821 × 10−81.6367 × 10−81.5397 × 10−81.3214 × 10−81.2577 × 10−8
0.51.8494 × 10−82.0424 × 10−81.9213 × 10−81.6488 × 10−81.5694 × 10−8
0.62.2154 × 10−82.4466 × 10−82.3015 × 10−81.9752 × 10−81.8800 × 10−8
0.72.5801 × 10−82.8493 × 10−82.6804 × 10−82.3003 × 10−82.1895 × 10−8
0.82.9435 × 10−83.2507 × 10−83.0579 × 10−82.6243 × 10−82.4979 × 10−8
0.93.3057 × 10−83.6506 × 10−83.4342 × 10−82.9472 × 10−82.8053 × 10−8
13.6665 × 10−84.0491 × 10−83.8090 × 10−83.2689 × 10−83.1114 × 10−8
Table 5. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 5 × 10 2 .
Table 5. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 5 × 10 2 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.14.6501 × 10−105.1354 × 10−104.8308 × 10−104.1457 × 10−103.9459 × 10−10
0.29.2889 × 10−101.0258 × 10−99.6499 × 10−108.2821 × 10−107.8832 × 10−10
0.31.3910 × 10−91.5361 × 10−91.4451 × 10−91.2403 × 10−91.1805 × 10−9
0.41.8506 × 10−92.0437 × 10−91.9225 × 10−91.6499 × 10−91.5704 × 10−9
0.52.3096 × 10−92.5506 × 10−92.3994 × 10−92.0592 × 10−91.9600 × 10−9
0.62.7670 × 10−93.0556 × 10−92.8745 × 10−92.4671 × 10−92.3482 × 10−9
0.73.2222 × 10−93.5584 × 10−93.3474 × 10−92.8729 × 10−92.7345 × 10−9
0.83.6763 × 10−94.0598 × 10−93.8191 × 10−93.2778 × 10−93.1199 × 10−9
0.94.1288 × 10−94.5595 × 10−94.2892 × 10−93.6813 × 10−93.5040 × 10−9
14.5789 × 10−95.0566 × 10−94.7568 × 10−94.0826 × 10−93.8859 × 10−9
Table 6. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 25 × 10 3 .
Table 6. Comparison of the absolute errors among third-order schemes in Problem 2, for h = 25 × 10 3 .
x i Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
zerozerozerozerozerozero
0.15.7938 × 10−116.4006 × 10−116.0197 × 10−115.1628 × 10−114.9127 × 10−11
0.21.1617 × 10−101.2828 × 10−101.2069 × 10−101.0360 × 10−109.8595 × 10−11
0.31.7408 × 10−101.9220 × 10−101.8083 × 10−101.5525 × 10−101.4776 × 10−10
0.42.3087 × 10−102.5497 × 10−102.3985 × 10−102.0580 × 10−101.9583 × 10−10
0.52.8851 × 10−103.1858 × 10−102.9971 × 10−102.5724 × 10−102.4477 × 10−10
0.63.4589 × 10−103.8193 × 10−103.5934 × 10−103.0846 × 10−102.9351 × 10−10
0.74.0254 × 10−104.4454 × 10−104.1820 × 10−103.5894 × 10−103.4157 × 10−10
0.84.5941 × 10−105.0736 × 10−104.7731 × 10−104.0967 × 10−103.8989 × 10−10
0.95.1622 × 10−105.7003 × 10−105.3629 × 10−104.6035 × 10−104.3809 × 10−10
15.7196 × 10−106.3162 × 10−105.9421 × 10−105.0994 × 10−104.8530 × 10−10
Figure 5. The absolute errors for numerical results in Table 4.
Figure 5. The absolute errors for numerical results in Table 4.
Algorithms 17 00123 g005
Figure 6. The absolute errors for numerical results in Table 5.
Figure 6. The absolute errors for numerical results in Table 5.
Algorithms 17 00123 g006
Figure 7. The absolute errors for numerical results in Table 6.
Figure 7. The absolute errors for numerical results in Table 6.
Algorithms 17 00123 g007
Table 7. Comparisons of CPU time in Problem 1, for different step sizes h.
Table 7. Comparisons of CPU time in Problem 1, for different step sizes h.
Step SizeCPU Time
Ralston’s SchemeRK3 SchemeARK3 SchemeHeun’s SchemeVRK3 Scheme
h = 0.10.0033250.0035080.0046310.0056530.001558
h = 0.050.0034070.0048270.0030170.0050660.001027
h = 0.0250.0036550.0031440.0050210.0043640.001273
Table 8. Comparisons of CPU time in Problem 2, for different step sizes h.
Table 8. Comparisons of CPU time in Problem 2, for different step sizes h.
Step SizeCPU Time
Ralston’s SchemeRK3 SchemeARK3 SchemeHEUN’S SCHEMEVRK3 Scheme
h = 0.10.0041600.0031160.0046980.0046270.001358
h = 0.050.0033280.0047820.0048790.0034690.001003
h = 0.0250.0035060.0043920.0032300.0042340.001296

8. Discussion and Conclusions

In this study, we introduced an innovative third-order method designed for solving initial value problems (IVPs). Our approach is rooted in a novel adaptation of the standard formulation employed in Runge–Kutta methods, incorporating Taylor series expansion. To validate the effectiveness of this new method, we employed two distinct numerical models, effectively showcasing its fundamental capabilities. It is important to underscore that all our numerical findings, including the accompanying tables and figures, were calculated using MATLAB (R2022a) software on a dedicated computer system operating with Windows 11 Pro. The system uses an 11th Generation Intel(R) Core (TM) i7-11800H processor running at 2.30 GHz, backed by 16.0 GB of RAM (15.7 GB usable).
A comprehensive numerical assessment was conducted using Table 1, Table 2, Table 3, Table 4, Table 5 and Table 6, which present an intricate comparison of absolute errors across various step sizes, specifically h = 10 1 ,   h = 5 × 10 2 ,     a n d   h = 25 × 10 3 . Through the graphical representations found in Figure 2, Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7, we were able to discern that our novel method, referred to as VRK3, consistently outperformed several benchmark techniques including Ralston’s scheme, RK3 scheme, ARK3 scheme, and Heun’s scheme. This superiority primarily stems from the reduced local truncation error of VRK3. Additionally, our investigation revealed a significant insight regarding the impact of step size on accuracy. As we decreased the step size, the error progressively approached zero, strongly indicating that precision increased with smaller step sizes. This observation reinforces the importance of carefully selecting step sizes to achieve higher levels of accuracy in numerical solutions. Turning our attention to computational efficiency, Table 7 and Table 8 provided valuable insights. The VRK3 scheme consistently demonstrated reduced CPU time compared to its counterparts, further validating its utility in practical applications. Furthermore, Figure 1 depicts the stability region of our third-order VRK3 scheme, establishing its equivalence to similar methodologies. Importantly, we substantiated the convergence of our VRK3 scheme, as it satisfies both the consistency and stability criteria.
In conclusion, our newly proposed third-order method exhibits a commendable blend of efficiency and reliability. The method’s stability and high accuracy render it particularly robust for a wide range of applications. This research contributes to the field of numerical methods for IVPs by presenting an innovative approach that holds promise for improving computational accuracy and efficiency. Future research directions might explore the extension of this method to more complex problems or its integration into broader computational frameworks.

Author Contributions

Conceptualization, N.Y.A.-H., Z.J.K. and A.H.A.; formal analysis, N.Y.A.-H., Z.J.K. and A.H.A.; investigation, N.Y.A.-H., Z.J.K. and A.H.A.; methodology, N.Y.A.-H., Z.J.K. and A.H.A.; software, A.H.A.; supervision, N.Y.A.-H.; writing—original draft, N.Y.A.-H. and Z.J.K.; writing—review and editing, A.H.A. All authors have read and agreed to the published version of the manuscript.

Funding

The author received no direct funding for this work.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The author would like to express gratitude to the anonymous referees for their valuable comments and suggestions.

Conflicts of Interest

The authors declare that they have no competing interests.

References

  1. Ralston, A. Runge-Kutta Methods with Minimum Error Bounds. Math. Comput. 1962, 16, 431–437. [Google Scholar] [CrossRef]
  2. Ralston, A.; Rabinowitz, P. A First Course in Numerical Analysis, 2nd ed.; McGraw-Hill: New York, NY, USA, 1978. [Google Scholar]
  3. Wazwaz, A.M. A Comparison of Modified Runge-Kutta Formulas Based on a Variety of Means. Int. J. Comput. Math. 1994, 50, 105–112. [Google Scholar] [CrossRef]
  4. Hatun, M.; Vatansever, F. Differential Equation Solver Simulator for Runge-Kutta Methods. Uludağ Univ. J. Fac. Eng. 2016, 21, 145–162. [Google Scholar]
  5. Burden, R.L.; Faires, J.D. Numerical Analysis, 9th ed.; Brooks/Cole Publishing Company: Pacific Grove, CA, USA, 2011. [Google Scholar]
  6. Ahmad, N.; Charan, S. A Comparative Study on Numerical Solution of Ordinary Differential Equation by Different Method with Initial Value Problem. Int. J. Recent. Sci. Res. 2017, 8, 21134–21139. [Google Scholar]
  7. Nhawu, G.; Mafuta, P.; Mushanyu, J. The Adomian Decomposition Method for Numerical Solution of First-Order Differential Equations. J. Math. Comput. Sci. 2016, 6, 307–314. [Google Scholar]
  8. Nagle, R.K.; Saff, E.B.; Snider, A.D. Fundamentals of Differential Equations, 9th ed.; Pearson: Boston, MA, USA, 2018. [Google Scholar]
  9. Wusu, A.S.; Akanbi, M.A.; Okunuga, S.A. A Three-stage Multiderivative Explicit Runge-Kutta Method. Am. J. Comput. Math. 2013, 3, 121–126. [Google Scholar]
  10. Ali, A.H.; Pales, Z.S. Taylor-type Expansions in Terms of Exponential Polynomials. Math. Inequalities Appl. 2022, 25, 1123–1141. [Google Scholar] [CrossRef]
  11. Kadum, Z.J.; Abdul-Hassan, N.Y. New Numerical Methods for Solving the Initial Value Problem Based on a Symmetrical Quadrature Integration Formula Using Hybrid Functions. Symmetry 2023, 15, 631. [Google Scholar] [CrossRef]
  12. Corless, R.M.; Kaya, C.Y.; Moir, R.H.C. Optimal Residuals and the Dahlquist Test Problem. Numer. Algorithms 2019, 81, 1253–1274. [Google Scholar] [CrossRef]
  13. Lambert, J.D. Computational Methods in Ordinary Differential Equations; John Wiley & Sons Inc.: New York, NY, USA, 1973. [Google Scholar]
  14. Ram, T.; Solangi, M.A.; Sanghah, A.A. A Hybrid Numerical Method with Greater Efficiency for Solving Initial Value Problems. Math. Theory Model. 2020, 10, 2224–5804. [Google Scholar]
  15. Omar, Z.; Adeyeye, O. Numerical Solution of First Order Initial Value Problems Using a Self-Starting Implicit Two-Step Obrechkoff-Type Block Method. J. Math. Stat. 2016, 12, 127–134. [Google Scholar] [CrossRef]
Figure 1. The absolute stability region of the VRK3 method.
Figure 1. The absolute stability region of the VRK3 method.
Algorithms 17 00123 g001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Abdul-Hassan, N.Y.; Kadum, Z.J.; Ali, A.H. An Efficient Third-Order Scheme Based on Runge–Kutta and Taylor Series Expansion for Solving Initial Value Problems. Algorithms 2024, 17, 123. https://doi.org/10.3390/a17030123

AMA Style

Abdul-Hassan NY, Kadum ZJ, Ali AH. An Efficient Third-Order Scheme Based on Runge–Kutta and Taylor Series Expansion for Solving Initial Value Problems. Algorithms. 2024; 17(3):123. https://doi.org/10.3390/a17030123

Chicago/Turabian Style

Abdul-Hassan, Noori Y., Zainab J. Kadum, and Ali Hasan Ali. 2024. "An Efficient Third-Order Scheme Based on Runge–Kutta and Taylor Series Expansion for Solving Initial Value Problems" Algorithms 17, no. 3: 123. https://doi.org/10.3390/a17030123

APA Style

Abdul-Hassan, N. Y., Kadum, Z. J., & Ali, A. H. (2024). An Efficient Third-Order Scheme Based on Runge–Kutta and Taylor Series Expansion for Solving Initial Value Problems. Algorithms, 17(3), 123. https://doi.org/10.3390/a17030123

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop