Next Article in Journal
An Algorithm for Coding an Additive Manufacturing File from the Pressure Distribution of a Baropodometric Board for 3D Printing Customised Orthopaedic Insoles
Previous Article in Journal
An Analysis of the Stress–Strain State of a Layer on Two Cylindrical Bearings
Previous Article in Special Issue
Fractional-Order Degn–Harrison Reaction–Diffusion Model: Finite-Time Dynamics of Stability and Synchronization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Second-Order Modified Nonstandard Explicit Euler and Explicit Runge–Kutta Methods for n-Dimensional Autonomous Differential Equations

by
Fawaz K. Alalhareth
1,†,
Madhu Gupta
2,†,
Hristo V. Kojouharov
3,*,† and
Souvik Roy
3,†
1
Department of Mathematics, College of Arts and Sciences, Najran University, Najran 55461, Saudi Arabia
2
Department of Computing and Data Science, Flame University, Pune 412115, India
3
Department of Mathematics, The University of Texas at Arlington, Arlington, TX 76019, USA
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Computation 2024, 12(9), 183; https://doi.org/10.3390/computation12090183
Submission received: 26 July 2024 / Revised: 28 August 2024 / Accepted: 6 September 2024 / Published: 9 September 2024

Abstract

:
Nonstandard finite-difference (NSFD) methods, pioneered by R. E. Mickens, offer accurate and efficient solutions to various differential equation models in science and engineering. NSFD methods avoid numerical instabilities for large time steps, while numerically preserving important properties of exact solutions. However, most NSFD methods are only first-order accurate. This paper introduces two new classes of explicit second-order modified NSFD methods for solving n-dimensional autonomous dynamical systems. These explicit methods extend previous work by incorporating novel denominator functions to ensure both elementary stability and second-order accuracy. This paper also provides a detailed mathematical analysis and validates the methods through numerical simulations on various biological systems.
MSC:
65L05; 65L06; 65L12; 65L20

1. Introduction

Dynamical systems are important in many disciplines, including biology, economics, engineering, and chemistry. Because the majority of dynamical systems cannot be solved analytically, numerical methods are typically used to approximate their solutions. However, the stability properties of the corresponding numerical solutions are typically strongly dependent on the computational step size, particularly when standard numerical methods such as the explicit Euler and Runge–Kutta methods are used. R.E. Mickens [1] pioneered the use of nonstandard finite-difference (NSFD) methods to overcome this dependency while numerically preserving important properties of exact solutions. Since then, NSFD methods have been developed and applied to a wide range of scientific and engineering problems. Notably, NSFD methods have been constructed for numerically solving problems in ecology [2,3,4,5,6,7,8] and epidemiology [9,10,11,12,13,14,15,16,17,18,19,20,21,22], for solving biochemical systems [23,24], and general productive-destructive systems [25,26], to name a few. For a detailed review of various NSFD methods, we refer the reader to [27,28,29]. In particular, several classes of NSFD methods have been developed based on standard theta methods and standard two-stage explicit Runge–Kutta (ERK2) methods [18,30,31,32]. However, these methods, while preserving the local dynamical properties of solutions near equilibrium points, are only first-order accurate. There exist some higher-order nonstandard numerical methods, such as those presented in [23,25]; however, their elementary stability property has not yet been established analytically. In [14], the proposed class of NSFD methods is elementary stable but is second-order accurate only for a very specific choice of parameters. In [33], a second-order nonstandard method based on the Runge–Kutta methods is presented, but the proposed elementary stable nonstandard explicit Euler’s method is only of first-order accuracy. Recently, modified nonstandard theta and Runge–Kutta methods [34,35] that are not only elementary stable but also second-order accurate have been presented. But, those methods were only developed for one-dimensional autonomous dynamical systems.
This paper contributes to the field of NSFD methods by presenting two novel generalized versions of the NSFD explict Euler and NSFD explicit Runge–Kutta methods, which are not only elementary stable but also second-order accurate, with the order of accuracy of the underlying numerical method being improved in the case of the explicit Euler method. Here, previous theoretical results are extended, and new explicit second-order modified NSFD methods for solving n-dimensional autonomous dynamical systems are designed. The extensions are based on the use of novel denominator functions that account for both the elementary stability and the increased accuracy of the numerical methods. The modified NSFD methods are applied for solving a forest biomass model, an epidemiological model, and a predator–prey model. The numerical simulation results demonstrate the superior performance of the proposed new NSFD methods.
This paper is structured as follows. The new explicit second-order modified NSFD methods are constructed and analyzed in Section 2. Applications to two classical mathematical biology models are presented in Section 3 to numerically validate the theoretical results. In Section 4, some concluding remarks are made and future research directions are outlined.

2. Main Results

An n-dimensional autonomous differential equation can be written as
x ( t ) = f ( x ) ; x ( t 0 ) = x 0 ,
where x represents the vector function [ x 1 ( t ) , , x n ( t ) ] T , x i : [ t 0 , T ) R , f = [ f 1 , , f n ] T C 2 ( R n ; R n ) is differentiable, x 0 R n . It is assumed that System (1) has a finite number of only hyperbolic equilibria. For NSFD methods in the case of systems with non-hyperbolic equilibria, see [36,37,38].
Definition 1.
Let x be an equilibrium of System (1), J ( x ) = f i x j ( x ) 1 i , j n be the Jacobian of System (1) at x , with σ ( J ( x ) ) denoting the spectrum of J ( x ) . An equilibrium x of System (1) is called linearly stable if R e ( λ ) < 0 for λ σ ( J ( x ) ) , and linearly unstable if R e ( λ ) > 0 for some λ σ ( J ( x ) ) .
A general finite-difference method which approximates the solution of System (1) on the interval [ t 0 , T ] can be written as
D i , h ( x k ) = F i , h ( f i ; x k ) , k = 0 , , N t ,
where D i , h ( x k ) x i t = t k , F i , h ( f i ; x k ) f i ( x ) , x k x ( t k ) , t k = t 0 + k h , k = 0 , , N t , i = 1 , , n , with mesh size h > 0 .
The modified NSFD numerical methods discussed in this paper satisfy the two main properties of NSFD methods, as formalized by Anguelov and Lubuma in [30] (see [32,39]), which are that the denominator function φ i ( h ) , i = 1 , 2 , , n , from the discretization of the derivative, i.e., D i , h ( x k ) = x i k + 1 x i k φ i ( h ) , is a non-negative function of the form φ i ( h ) = h + O ( h 2 ) , and the right-hand side function is discretized using multiple steps, i.e., F i , h ( f ; x k ) = g i ( x k , x k + 1 , h ) , where g i ( x k , x k + 1 , h ) is a multi-step approximation of the i component of the right-hand side of System (1).
Definition 2
([30,32,39]). A finite-difference method is elementary stable if, for any value of the step size h, its only fixed points x are the same as the equilibria of Equation (1) and the local stability properties of each x are the same for both the differential equation and the discrete method.

2.1. General Second-Order Modified Nonstandard Explicit Euler Method

The new second-order modified nonstandard explicit Euler method is given in the following theorem:
Theorem 1. 
Let f C 2 ( R n ; R n ) and let φ i : R + × R n R + , for i = 1 , , n , which satisfies the following conditions:
 (I)
φ i ( h , x ) = h + x f i ( x ) , f ( x ) f i ( x ) h 2 2 + O ( h 3 ) , f i ( x ) 0 h , f i ( x ) = 0 ,
for all 1 i n .
 (II)
0 < φ i ( h , x ) < 2 | Re ( λ i ) | | λ i | 2 , for all hyperbolic equilibria x of Equation (1) with h > 0 and for all x R n .
  • Then, the modified nonstandard explicit Euler method
x i k + 1 x i k φ i ( h , x k ) = f i x k
i = 1 , , n , for approximating the solution of Equation (1), is both second-order accurate and elementary stable.
Proof. 
The second-order accuracy of the modified nonstandard explicit Euler method (3) is proven using the Taylor series expansion about t k , which yields
  • If f i ( x k ) 0 , then
    x i ( t k + 1 ) x i ( t k ) + φ i ( h , x ( t k ) ) f i x ( t k ) = x i ( t k ) + h x i ( t k ) + h 2 2 x ( t k ) + O ( h 3 ) x i ( t k ) + φ i ( h , x ( t k ) ) f i ( x ( t k ) ) = h x i ( t k ) + h 2 2 x i ( t k ) φ i ( h , x ( t k ) ) f i ( x ( t k ) ) + O ( h 3 ) = h f i ( x ( t k ) ) + h 2 2 x f i ( x ( t k ) ) , f ( x ( t k ) ) h f i ( x ( t k ) ) h 2 2 x f i ( x ( t k ) ) , f ( x ( t k ) ) + O ( h 3 ) = O ( h 3 ) .
  • If f i ( x k ) = 0 , then the numerical method (3) reduces to x i k + 1 = x i k , which represents an exact scheme for solving Equation (1) at t = t k .
Therefore, the numerical method (3) is of second-order accuracy.
To prove the elementary stability of the NSFD method (3), we assume that System (1) has a finite number of only hyperbolic equilibria.
First, we need to show that the fixed points of Scheme (3) are equilbrium points to System (1) and vise versa. Suppose that x is a fixed point of Scheme (3). Then,
x i = x i + φ i ( h , x ) f i x ,
for all i = 1 , , n , this clearly implies f i ( x ) = 0 , i.e., x is an equilibrium point to System (1). If x is an equilibrium point to System (1), then f i ( x ) = 0 , and we need to show that
x i = x i + φ i ( h , x ) f i x ,
and Equation (4) clearly holds.
Next, let x be a hyperbolic equilibrium of System (1) and J = J ( x ) be the Jacobian matrix evaluated at x with eigenvalues λ 1 , λ 2 , , λ n . The corresponding linear system can then be given as follows:
x = J x .
If Λ is a Jordan form of J, then J = S 1 Λ S , where S is a non-singular complex n × n matrix. In general, Λ has the following bi-diagonal form:
λ 1 α 1 λ 2 α 2 λ n 1 α n 1 λ n ,
where λ i σ ( J ) , i = 1 , 2 , n , and α i = { 0 , 1 } . Therefore, the linear system can be written as x = S 1 Λ S x , and the change of variables y = S x yields the following new system:
y = Λ y .
Applying the numerical method (3) on the above system results in the following:
y 1 k + 1 y 1 k φ 1 ( h , y k ) y 2 k + 1 y 2 k φ 2 ( h , y k ) y n k + 1 y n k φ n ( h , y k ) = Λ y 1 k y 2 k y n k
and, equivalently, the following vector formulation:
y k + 1 = ( I + V Λ ) y k ,
where V is the diagonal matrix:
V = φ 1 ( h , y k ) φ 2 ( h , y k ) φ n 1 ( h , y k ) φ n ( h , y k ) .
Note that the matrix ( I + V Λ ) is upper triangular and its eigenvalues are given by μ i ( h , y k ) = 1 + λ i φ i ( h , y k ) , where λ i σ ( J ) , i = 1 , 2 , , n . Observe that x being a stable fixed point of System (8) is equivalent to
1 + λ i φ i ( h , y k ) < 1 ,
and therefore
| 1 + φ i ( h , y k ) Re ( λ i ) + φ i ( h , y k ) Im ( λ i ) | 2 < 1 .
From here, since φ i ( h , y k ) > 0 , a straightforward algebraic manipulation shows that Inequality (9) is equivalent to
φ i ( h , y k ) < 2 Re ( λ i ) | λ i | 2 .
Note that Condition (II) implies
0 < φ i ( h , y k ) < 2 | Re ( λ i ) | | λ i | 2 .
If x is a locally stable equilibrium, then | Re ( λ i ) | = Re ( λ i ) . Thus, from the above inequality, it can be seen that Inequality (10) holds. Hence, x is a stable fixed point. On the other hand, if x is an unstable equilibrium, then there is j 0 1 , , n , such that Re ( λ j 0 ) > 0 . This implies
φ j 0 ( h , y k ) > 0 > 2 Re ( λ j 0 ) | λ j 0 | 2 ,
since φ j 0 ( h , y k ) > 0 . Therefore, Inequality (10) is strictly not satisfied when x is an unstable equilibrium. As a result, x is an unstable fixed point. Therefore, the numerical scheme (3) is elementary stable. □
Lemma 1. 
If f i ( x ) 0 , ϕ i 1 : R + R + and ϕ i 2 : R R + satisfy the following conditions:
 (a)
0 < ϕ i 1 ( h ) < 1 , for all h > 0 , and ϕ i 1 ( h ) = h h 2 2 + O ( h 3 ) .
 (b)
0 < ϕ i 2 ( h ) < M , for all h R and some M > 0 , and ϕ i 2 ( h ) = 1 + h + O ( h 3 ) .
  • Then, the functions
φ i ( h , x ) = ϕ i 1 ( α h ) α ϕ i 2 α q i ( x ) 2 h , i = 1 , , n ,
with α > M 2 max Ω | λ | 2 | R e ( λ ) | , where Ω = x Γ σ ( J ( x ) ) and Γ denotes the set of all equilibria of System (1) and q i ( x ) = x f i ( x ) , f ( x ) f i ( x ) , satisfy the conditions ( I ) and ( I I ) of Theorem (1).
Proof. 
Notice that
ϕ i 1 ( α h ) α = h α h 2 2 + O ( h 3 ) , and ϕ i 2 α q i ( x ) 2 h = 1 + α q i ( x ) 2 h + O ( h 3 ) .
Therefore,
φ i ( h , x ) = h + x f i ( x ) , f ( x ) f i ( x ) h 2 2 + O ( h 3 ) ,
which proves Condition (I). Next, since 0 < ϕ i 1 ( h ) < 1 and 0 < ϕ i 2 ( h ) < M , then one can easily see that
0 < ϕ i 1 ( α h ) α ϕ i 2 α q i ( x ) 2 h < M α < 2 | R e ( λ i ) | | λ i | 2 ,
Therefore, Condition (II) is also satisfied. □
Remark 1. 
There exists a variety of functions ϕ i 1 and ϕ i 2 that satisfy the conditions of Lemma 1. One such set of functions is ϕ i 1 ( h ) = 1 e h and ϕ i 2 ( h ) = 1 + tanh ( h ) , which can be used to construct the denominator functions φ i ( h , x ) in Theorem 1.
Remark 2. 
The modified nonstandard implicit one-stage theta method
x i k + 1 x i k φ i ( h , x k ) = f i θ x k + 1 + ( 1 θ ) x k
and the modified nonstandard implicit two-stage theta method
x i k + 1 x i k φ i ( h , x k ) = θ f i ( x k + 1 ) + ( 1 θ ) f i ( x k ) ,
i = 1 , , n , where θ ( 0 , 1 ] , for approximating the solution of Equation (1), are also both second-order accurate and elementary stable. Here, f C 2 ( R n ; R n ) and φ i : R + × R n R + , for i = 1 , , n , satisfies the following conditions:
 (I)
φ i ( h , x ) = h + ( 1 2 θ ) x f i ( x ) , f ( x ) f i ( x ) h 2 2 + O ( h 3 ) , f i ( x ) 0 h , f i ( x ) = 0 ,
for all 1 i n .
 (II)
0 < φ i ( h , x ) < 2 | Re ( λ i ) | | 2 θ 1 | | λ i | 2 , 0 < θ 1 , θ 1 2 , for all hyperbolic equilibria x of Equation (1) with h > 0 and for all x R n ,

2.2. General Second-Order Modified Nonstandard ERK2 Method

The following result holds for the new modified nonstandard two-stage ERK2 method:
Theorem 2. 
Let f = [ f 1 , , f n ] C 2 ( R n ; R n ) and let φ : R + R + satisfy the following conditions:
 (I)
φ ( h ) = h + O ( h 3 ) ,
 (II)
0 < φ ( h ) < 1 q , for all λ Ω , where q > max Ω | λ | 2 2 | R e ( λ ) | , Ω = x Γ σ ( J ( x ) ) and Γ denotes the set of all hyperbolic equilibria x of System (1).
  • Then, the modified nonstandard two-stage ERK2 method for approximating the solution of Equation (1)
x i k + 1 = x i k + φ ( h ) ( 1 ω ) f i ( x k ) + ω f i x k + 1 2 ω f ( x k ) φ ( h ) , 0 < ω 1 ,
i = 1 , , n , is of second-order accuracy and preserves the local stability property of each x , provided the method does not introduce additional fixed points other than those of Equation (1). Furthermore, when Equation (1) is conservative, then Method (13) is also conservative.
Proof. 
The second-order accuracy of the modified nonstandard two-stage ERK2 method (13) is proven using the Taylor series expansion about t k , which yields
x i ( t k + 1 ) x i ( t k ) + φ ( h ) ( 1 ω ) f i ( x ( t k ) ) +   ω f i x ( t k ) + 1 2 ω f ( x ( t k ) ) φ ( h ) = x i ( t k ) + h x i ( t k ) + h 2 2 x i ( t k ) + O ( h 3 ) [ x i ( t k ) + φ ( h ) { ( 1 ω ) f i ( x ( t k ) ) + ω f i ( x ( t k ) ) + 1 2 ω j = 1 n φ ( h ) f i ( x ( t k ) ) f i x j ( x ( t k ) ) + O ( h 2 ) } ] = x i ( t k ) + h f i ( x t k ) + h 2 2 j = 1 n f i x j ( x ( t k ) ) f i ( x ( t k ) ) [ x i ( t k ) + φ ( h ) { ( 1 ω ) f i ( x ( t k ) ) + ω f i ( x ( t k ) ) + 1 2 ω φ ( h ) j = 1 n f i ( x ( t k ) ) f i x j ( x ( t k ) ) + O ( h 3 ) } ] = ( h φ ( h ) ) f i ( x ( t k ) ) + h 2 2 φ 2 ( h ) 2 j = 1 n f i x j ( x ( t k ) ) f i ( x ( t k ) ) + O ( h 3 ) = O ( h 3 ) ,
which implies the second-order accuracy of the numerical method (13).
To prove the elementary stability of the NSFD method (13), we assume that System (1) has a finite number of only hyperbolic equilibria. Let x be an hyperbolic equilibrium of System (1) and J be the Jacobian matrix evaluated at x with eigenvalues λ 1 , λ 2 , , λ n . Let Λ be a Jordan form of J, given as follows:
λ 1 α 1 λ 2 α 2 λ n 1 α n 1 λ n
where λ i σ ( J ) , i = 1 , 2 , n , and α i = { 0 , 1 } . Then, we have J = S 1 Λ S . Using a similar argument as in the proof of Theorem 1, the numerical method (13) can be applied to
y = Λ y ,
where y = S x . This yields
y k + 1 = y k + φ ( h ) ( 1 ω ) Λ y k + ω Λ y k + 1 2 ω Λ y k φ ( h ) ,
which results in
y k + 1 = I + φ ( h ) ( 1 ω ) Λ + ω φ ( h ) Λ 1 + 1 2 ω φ ( h ) Λ y k = I + φ ( h ) ( 1 ω ) Λ + ω φ ( h ) Λ + 1 2 φ 2 ( h ) Λ 2 y k = I + φ ( h ) Λ + 1 2 φ 2 ( h ) Λ 2 y k .
The eigenvalues of I + φ ( h ) Λ + 1 2 φ 2 ( h ) Λ 2 are given as
μ i ( h ) = 1 + φ ( h ) λ i + 1 2 λ i 2 φ 2 ( h ) .
Therefore, showing that x is a stable equilibrium is equivalent to showing that | μ i ( h ) | < 1 for all i = 1 , , n , i.e.,
| 1 + φ ( h ) λ i + 1 2 λ i 2 φ 2 ( h ) | < 1 .
Inequality (15) corresponds to
1 + φ ( h ) Re ( λ i ) + φ 2 ( h ) 2 Re ( λ i ) 2 Im ( λ i ) 2 2 + φ 2 ( h ) ( Im ( λ i ) ) 2 1 + Re ( λ i ) φ ( h ) 2 < 1 ,
which is equivalent to
1 4 | λ i | 4 φ 3 ( h ) + Re ( λ i ) | λ i | 2 φ 2 ( h ) + 2 | λ i | 2 φ ( h ) + 2 Re ( λ i ) < 0 .
Denote r i ( t ) = 1 4 | λ i | 4 t 3 + Re ( λ i ) | λ i | 2 t 2 + 2 | λ i | 2 t + 2 Re ( λ i ) . Thus, Inequality (15) is equivalent to r i ( φ ( h ) ) < 0 for each λ i , where i = 1 , 2 , , n . Similarly, to show that x is an unstable equilibrium point is equivalent to showing that there exists an i, such that r i ( φ ( h ) ) > 0 . The rest of the proof follows from [32].
Finally, the conservative property of the modified nonstandard two-stage ERK2 method (13) is proven. For this purpose, we assume that Equation (1) is conservative. First, observe that the denominator function φ ( h ) is independent of x and is thus the same for each component i = 1 , , n , of the numerical method. Next, summing over all i = 1 , , n yields the following:
i = 1 n x i k + 1 = i = 1 n x i k + φ ( h ) ( 1 ω ) i = 1 n f i ( x k ) + ω i = 1 n f i x k + 1 2 ω f ( x k ) φ ( h )
and, therefore,
i = 1 n x i k + 1 = i = 1 n x i k ,
since i = 1 n f i ( x k ) = i = 1 n f i x k + 1 2 ω f ( x k ) φ ( h ) = 0 . □
Remark 3. 
All equilibria of System (1) are also fixed points of Method (13), since f i ( x ) = 0 implies that
( 1 ω ) f i ( x ) + ω f i x + 1 2 ω f ( x ) φ ( h ) = ( 1 ω ) f i ( x ) + ω f i ( x ) = f i ( x ) = 0
for i = 1 , , n and x R n ; however, the vice versa is not necessarily always true. When all fixed points of Method (13) are also the equilibria of System (1), then Method (13) is elementary stable.
Remark 4. 
There exists a variety of functions φ ( h ) which satisfy the conditions of above Theorem 2, ensuring a second-order accurate and elementary stable method (13). One such denominator function is φ ( h ) = tanh ( q h ) q , where q > max Ω | λ | 2 2 | R e ( λ ) | .
Remark 5. 
When analytical computations of the steady states and spectra of the Jacobian matrix for System (1) are difficult, numerical computations can be performed using any standard root-finding algorithms and power methods. Because those computations need to be carried out only once, at the beginning of the numerical implementation, they do not considerably increase the overall computational cost of the NSFD methods.

3. Numerical Simulations

In this section, the performance of the proposed new explicit second-order modified NSFD methods is illustrated. The modified NSFD explicit Euler (modified NSFD EE) method (12) and the modified nonstandard two-stage ERK2 method (13), with ω = 1 / 2 , are chosen. Furthermore, the two-stage modified nonstandard ERK2 method (13) with ω = 1 / 2 is henceforth referred to as the modified NSFD ERK2 method. The modified NSFD methods are compared to other standard and nonstandard finite-difference methods for solving three specific biological systems.
For the numerical test cases, we consider a class of linear and nonlinear autonomous ODE systems. The linear system has an exact solution that enables us to compare the accuracy and performance of our proposed methods with other NSFD and non-NSFD methods. The nonlinear systems are used to demonstrate the performance of our proposed methods on general classes of autonomous ODEs.
In Test Case 1, we consider the following forest biomass model, presented in [40]:
x ( t ) = x ( t ) + 3 y ( t ) y ( t ) = 3 y ( t ) + 5 z ( t ) z ( t ) = 5 z ( t ) ,
where x ( t ) represents the biomass decayed into humus, y ( t ) the biomass of dead trees, and z ( t ) the biomass of living trees. The initial data are x ( 0 ) = 0 , y ( 0 ) = 0 , and z ( 0 ) = z 0 , which assumes that there are no dead trees and no humus at t = 0 . The exact solution of the above system is given by
x ( t ) = 15 8 ( e t 2 e 3 t + e 5 t ) z 0 y ( t ) = 5 2 ( e 3 t e 5 t ) z 0 z ( t ) = e 5 t z 0
We compare our modified NSFD EE and modified NSFD ERK2 methods with the NSFD EE and NSFD ERK2 methods [32], the NSFD θ = θ ^ = 1 2 and NSFD θ = 0 , θ ^ = 1 methods [10,14], the NSFD separate method ([40], Equation (23)), and the explicit Runge–Kutta methods of order four (RK4) [41], applied to Model (16). Figure 1a shows that all methods are working quite well for small values of the time step, particularly for h = 0.1 . It is also evident from Figure 1b, which shows the absolute error of all the methods, that the first-order methods have larger errors as compared to the second- and fourth-order methods. Figure 1c shows a comparison of the numerical methods for solving Model (16) using a large step size h = 0.569 , where we see that RK4 becomes unstable while the other nonstandard methods are converging to the solution even for large values of h. Finally, Figure 1d shows the order plots of all the numerical methods. A comparison of the l errors at the final time T = 10 and convergence rates for the numerical solution obtained with various NSFD methods is presented in Table 1. We define the l error as
E ( h ) = x h x ,
where
y = max k = 0 , , N t | y k |
represents the discrete l norm of the vector y, and x represents the exact solution of Equation (1). The errors are calculated by using the exact solution given in Equation (17). We observe from Table 1 that the solutions obtained using the modified NSFD EE and modified NSFD ERK2 methods converge to the exact solution with rate 2, which also validates our theoretical results and the observations made in Figure 1.
In Test Case 2, the conservative MSEIR epidemiological model in [10,14] is considered, with the notation x = ( x 1 , x 2 , x 3 , x 4 , x 5 ) = ( m , s , e , i , r ) :
d x 1 d t = d ( x 3 + x 4 + x 5 ) δ x 1 , d x 2 d t = β x 2 x 4 + δ x 1 , d x 3 d t = β x 2 x 4 ( ϵ + d ) x 3 , d x 4 d t = ϵ x 3 ( γ + d ) x 4 , d x 5 d t = γ x 4 d x 5 .
The following initial conditions x 1 ( 0 ) = 0.1 , x 2 ( 0 ) = 0.05 , x 3 ( 0 ) = 0.05 , x 4 ( 0 ) = 0.1 , x 5 ( 0 ) = 0.7 and parameter values d = 1 / ( 40 × 365 ) , β = 0.14 , γ = 1 / 7 , δ = 1 / 180 , ϵ = 1 / 14 are used in numerical simulations.
The novel nonstandard denominator functions φ i for the modified NSFD EE method are selected using Remark 1, as follows:
φ i ( h , x ) = 1 exp ( α h ) α 1 + tanh α q i ( x ) 2 h ,
for i = 1 , , 5 . Here, the parameters q i are given according to Lemma 1:
q i = f 1 f i x 1 + f 2 f i x 2 + f 3 f i x 3 + f 4 f i x 4 + f 5 f i x 5 f i ,
i = 1 , , 5 , where
f 1 ( x ) = d ( x 3 + x 4 + x 5 ) δ x 1 f 2 ( x ) = β x 2 x 4 + δ x 1 f 3 ( x ) = β x 2 x 4 ( ϵ + d ) x 3 f 4 ( x ) = ϵ x 3 ( γ + d ) x 4 f 5 ( x ) = γ x 4 d x 5 .
The Jacobian matrix has the following form:
δ 0 d d d δ β x 4 0 β x 2 0 0 β x 4 ( ϵ + d ) β x 2 0 0 0 ϵ ( γ + d ) 0 0 0 0 γ d .
and the eigenvalues evaluated at the epidemic equilibrium are λ 1 = 0.214422 , λ 2 = 0.00555541 , λ 3 = 0.000300252 , λ 4 = 0.000232743 and λ 5 = 1.95907 × 10 18 . Accordingly, the value α = 0.3 > 0.214422 = max | λ i | 2 | R e ( λ i ) | : i = 1 , , 5 was used in the denominator function of the modified NSFD EE method. For the modified NSFD ERK2 method, the denominator function is chosen as φ ( h ) = tanh ( q h ) q , with q = 0.25 > 0.107211 = max | λ i | 2 2 | R e ( λ i ) | : i = 1 , , 5 .
In Figure 2a, the two new modified nonstandard methods are compared with two of the nonstandard numerical methods presented in [14]. Note that the method in [14] for θ = 0 , θ ^ = 1 is an explicit NSFD method, but with a different approximation of the nonlinear right-hand side terms and a denominator function φ ( h ) = ( 1 exp ( Q h ) ) / Q , where Q = max { δ , ϵ + d , γ + d , β } . Also, the method in [14] for θ = θ ^ = 1 2 is a second-order NSFD method with a denominator function φ ( h ) = tanh ( Q h ) Q , where Q = 1 2 max { δ , ϵ + d , γ + d , β } . In Figure 2a, these two numerical methods are denoted by NSFD θ = 0 , θ ^ = 1 and NSFD θ = θ ^ = 1 2 , respectively. In the figure, it can be seen that the behavior of the numerical solutions from the modified NSFD EE and the modified NSFD ERK2 methods is superior to those produced by the NSFD methods in [14]. In addition, the absolute error plots of the modified NSFD EE and the modified NSFD ERK2 methods are presented for h = 1 in Figure 2b. The absolute errors are calculated by using the numerical solution obtained on the finest grid as a benchmark. As can be seen in Figure 2b, the error in the numerical solution from the modified NSFD ERK2 method is less than the error from the modified NSFD EE method.
Next, a comparison of the l errors at the final time T = 120 and convergence rates for the numerical solution obtained with various NSFD methods is presented in Table 2. The errors are calculated by using the numerical solution obtained on the finest grid as a benchmark. We observe from Table 2 that the solutions obtained using the modified NSFD EE and modified NSFD ERK2 methods again converge to the exact solution with rate 2, even for a nonlinear system, which also validates our theoretical results and the observations made in Figure 2.
In Test Case 3, the predator–prey system with a Beddington–DeAngelis functional response in [32] is considered, with the notation x = ( x 1 , x 2 ) = ( x , y ) :
d x 1 d t = x 1 A x 1 x 2 1 + x 1 + x 2 , d x 2 d t = E x 1 x 2 1 + x 1 + x 2 D x 2 ,
where x 1 and x 2 represent the prey and predator population sizes, respectively. Parameter values A = 6.0 , D = 5.0 , and E = 7.5 are used in the numerical simulations. Stability analysis of System (19) reveals that there exist two equilibria [32]: ( 0 , 0 ) and A D A E E A D , E A E E A D = ( 4 , 1 ) . The eigenvalues of the Jacobian matrix evaluated at ( 0 , 0 ) are λ 1 = 1 and λ 2 = 5 , while the eigenvalues evaluated at ( 4 , 1 ) are λ 3 , 4 = 1 12 ± i 119 12 , with | λ 3 , 4 | = 0.9129 . Therefore, the coexistence equilibrium ( 4 , 1 ) is globally asymptotically stable in the interior of the first quadrant, while ( 0 , 0 ) is unstable.
The novel nonstandard denominator functions φ i for the modified NSFD EE method are selected using Remark 1, as follows:
φ i ( h , x ) = 1 exp ( α h ) α 1 + tanh α q i ( x ) 2 h ,
for i = 1 , 2 , using
q i ( x ) = f 1 ( x 1 , x 2 ) f i x 1 + f 2 ( x 1 , x 2 ) f i x 2 f i ( x 1 , x 2 ) ,
where f 1 ( x 1 , x 2 ) = x 1 A x 1 x 2 1 + x 1 + x 2 and f 2 ( x 1 , x 2 ) = E x 1 x 2 1 + x 1 + x 2 D x 2 , and α = 10.1 > max Ω | λ | 2 | R e ( λ ) | . For the modified NSFD ERK2 method, the denominator function is chosen as φ ( h ) = tanh ( q h ) q , with q = 5.1 > max Ω | λ | 2 2 | R e ( λ ) | , where Ω = x Γ σ ( J ( x ) ) , and Γ denotes the set of all hyperbolic equilibria x of System (1).
Figure 3 compares the modified NSFD EE method with the NSFD EE method for h = 0.02 . As can be seen in Figure 3a–c, there is a slight horizontal shift in both components of the numerical solution from the first-order NSFD EE method, while the numerical solution from the modified NSFD EE method converges much more accurately to the exact solution. In addition, absolute error plots, using the numerical solution on the finest grid as a benchmark, are presented in Figure 3d, where the new modified NSFD EE method clearly outperforms the NSFD EE method. A similar comparison of the numerical methods is presented in Figure 4, where the second-order modified NSFD ERK2 method outperforms the first-order NSFD ERK2 method for h = 0.05 .
Next, we compare the execution time and the computational cost for the presented explicit second-order modified NSFD methods, modified NSFD explicit Euler and modified NSFD ERK2 methods, with the implicit Rosenbrock23 method or order 2 [42], the Magnus exponential integrator of order 2 [43], and the MATLAB® built-in adaptive time-stepping solvers ode23s (based on the modified Rosenbrock formula of order 2), ode23, ode15s, and ode23t, with MATLAB’s default absolute tolerance of 1.00 × 10 6 and relative tolerance of 1.00 × 10 3 [44]. The simulations were performed using MATLAB R2022a on a MacBook Pro (13-inch Apple M1, Apple, Tokyo, Japan) with MacOS 14.4.1(23E224), 8 cores, and 16 Gb RAM; the results are displayed in Table 3. The execution time for each numerical method was calculated using MATLAB’s tic and toc functions to measure the elapsed time in seconds, while the computational cost coefficient was calculated as the ratio of the elapsed times for the numerical method to our corresponding explicit second-order modified NSFD method. There are alternative approaches of estimating the computational cost of the various methods used; nevertheless, our approach accurately reflects the relative performance of these methods. As can be seen in the table, our second-order modified NSFD ERK2 method is the most efficient integrator within this group of numerical methods, followed closely by our second-order modified NSFD explicit Euler method and MATLAB’s ode23 solver. This is in contrast with the other numerical integrators, particularly the Magnus exponential integrator and MATLAB’s ode23s solver, whose computational cost is the highest of all the methods considered. It is also important to note that the modified NSFD ERK2 method is more computationally efficient than the modified NSFD EE method. This is because the denominator function φ ( h ) in the modified NSFD ERK2 method is the same for all solution components and does not change over time (Theorem 2), whereas the denominator function φ i ( h , x k ) in the modified NSFD EE method (Theorem 1) must be re-calculated for each solution component i and at every time step, making it the preferred modified NSFD method in Test Case 3.

4. Conclusions

In this paper, two new classes of second-order modified nonstandard explicit Euler and explicit Runge–Kutta methods for multi-dimensional autonomous dynamical systems were presented and analyzed. The fundamental idea underlying the numerical methods’ development is the use of a novel modified nonstandard denominator function in the discretization of the derivative. In the case of the modified NSFD explicit Euler method, the denominator function is a product of two special functions. One of the functions satisfies the methods’ second-order accuracy property, while the other function satisfies the stability criteria of Theorem 1. For the modified nonstandard explicit Runge–Kutta method, a single denominator function suffices to satisfy both the elementary stability and second-order accuracy properties. Examples of denominator functions were presented that also serve as instructions for choosing generic ones. Next, the proposed modified nonstandard methods were applied to solve a biomass system, an MSEIR system, and a predator–prey system with a Beddington–DeAngelis functional response. The results obtained using the new numerical methods were compared to existing standard and nonstandard finite-difference methods, and it was observed that the new explicit modified NSFD methods demonstrate high accuracy and desirable stability properties, while still being computationally efficient and easy to implement.

Author Contributions

Conceptualization, H.V.K. and S.R.; methodology, H.V.K. and S.R.; software, F.K.A. and M.G.; formal analysis, F.K.A., M.G., H.V.K. and S.R.; investigation, F.K.A., M.G., H.V.K. and S.R.; writing—original draft preparation, F.K.A., M.G., H.V.K. and S.R.; writing—review and editing, F.K.A., M.G., H.V.K. and S.R.; visualization, F.K.A. and M.G.; supervision, H.V.K.; funding acquisition, H.V.K. and S.R. All authors have read and agreed to the published version of the manuscript.

Funding

The work of H.V.K. and S.R. was supported by the US National Science Foundation under Grant No. DMS-2230790. The work of S.R. was also supported partially by the US National Science Foundation under Grant Nos. DMS-2212938 and DMS-2309491.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mickens, R. Nonstandard Finite Difference Models of Differential Equations; World Scientific: Singapore, 1994. [Google Scholar]
  2. Dimitrov, D.; Kojouharov, H. Positive and elementary stable nonstandard numerical methods with applications to predator-prey models. J. Comput. Appl. Math. 2006, 189, 98–108. [Google Scholar] [CrossRef]
  3. Mickens, R.E. Numerical integration of population models satisfying conservation laws: NSFD methods. J. Biol. Dyn. 2007, 1, 427–436. [Google Scholar] [CrossRef] [PubMed]
  4. González-Parra, G.; Arenas, A.J.; Chen-Charpentier, B.M. Combination of nonstandard schemes and Richardson’s extrapolation to improve the numerical solution of population models. Math. Comput. Model. 2010, 52, 1030–1036. [Google Scholar] [CrossRef]
  5. Patidar, K.C.; Ramanantoanina, A. A non-standard finite difference scheme for a class of predator–prey systems with non-monotonic functional response. J. Differ. Equ. Appl. 2021, 27, 1310–1328. [Google Scholar] [CrossRef]
  6. Calatayud, J.; Jornet, M. An improvement of two nonstandard finite difference schemes for two population mathematical models. J. Differ. Equ. Appl. 2021, 27, 422–430. [Google Scholar] [CrossRef]
  7. Anguelov, R.; Lubuma, J.M.S. Forward invariant set preservation in discrete dynamical systems and numerical schemes for ODEs: Application in biosciences. Adv. Contin. Discret. Model. 2023, 2023. [Google Scholar] [CrossRef]
  8. Alalhareth, F.K.; Mendez, A.C.; Kojouharov, H.V. A simple model of nutrient recycling and dormancy in a chemostat: Mathematical analysis and a second-order nonstandard finite difference method. Commun. Nonlinear Sci. Numer. Simul. 2024, 132, 107940. [Google Scholar] [CrossRef]
  9. Arenas, A.J.; Moraño, J.A.; Cortés, J.C. Non-standard numerical method for a mathematical model of RSV epidemiological transmission. Comput. Math. Appl. 2008, 56, 670–678. [Google Scholar] [CrossRef]
  10. Anguelov, R.; Dumont, Y.; Lubuma, J.S.; Shillor, M. Comparison of Some Standard and Nonstandard Numerical Methods for the MSEIR Epidemiological Model. AIP Conf. Proc. 2009, 1168, 1209–1212. [Google Scholar]
  11. Arenas, A.J.; González-Parra, G.; Chen-Charpentier, B.M. A nonstandard numerical scheme of predictor–corrector type for epidemic models. Comput. Math. Appl. 2010, 59, 3740–3749. [Google Scholar] [CrossRef]
  12. Garba, S.; Gumel, A.; Lubuma, J.S. Dynamically-consistent non-standard finite difference method for an epidemic model. Math. Comput. Model. 2011, 53, 131–150. [Google Scholar] [CrossRef]
  13. Obaid, H.A.; Ouifki, R.; Patidar, K.C. An unconditionally stable nonstandard finite difference method applied to a mathematical model of HIV infection. Int. J. Appl. Math. Comput. Sci. 2013, 23, 357–372. [Google Scholar] [CrossRef]
  14. Anguelov, R.; Dumont, Y.; Lubuma, J.; Shillor, M. Dynamically consistent nonstandard finite difference schemes for epidemiological models. J. Comput. Appl. Math. 2014, 255, 161–182. [Google Scholar] [CrossRef]
  15. Berge, T.; Lubuma, J.S.; Moremedi, G.; Morris, N.; Kondera-Shava, R. A simple mathematical model for Ebola in Africa. J. Biol. Dyn. 2017, 11, 42–74. [Google Scholar] [CrossRef]
  16. Obaid, H.A.; Ouifki, R.; Patidar, K.C. A nonstandard finite difference method for solving a mathematical model of HIV-TB co-infection. J. Differ. Equ. Appl. 2017, 23, 1105–1132. [Google Scholar] [CrossRef]
  17. Anguelov, R.; Dukuza, K.; Lubuma, J.M.S. Backward bifurcation analysis for two continuous and discrete epidemiological models. Math. Methods Appl. Sci. 2018, 41, 8784–8798. [Google Scholar] [CrossRef]
  18. Anguelov, R.; Berge, T.; Chapwanya, M.; Djoko, J.; Kama, P.; Lubuma, J.M.S.; Terefe, Y. Nonstandard finite difference method revisited and application to the Ebola virus disease transmission dynamics. J. Differ. Equ. Appl. 2020, 26, 818–854. [Google Scholar] [CrossRef]
  19. Vaz, S.; Torres, D.F.M. A dynamically-consistent nonstandard finite difference scheme for the SICA model. Math. Biosci. Eng. 2021, 18, 4552–4571. [Google Scholar] [CrossRef]
  20. Adamu, E.M.; Patidar, K.C.; Ramanantoanina, A. An unconditionally stable nonstandard finite difference method to solve a mathematical model describing Visceral Leishmaniasis. Math. Comput. Simul. 2021, 187, 171–190. [Google Scholar] [CrossRef]
  21. Chapwanya, M.; Lubuma, J.; Terefe, Y.; Tsanou, B. Analysis of War and Conflict Effect on the Transmission Dynamics of the Tenth Ebola Outbreak in the Democratic Republic of Congo. Bull. Math. Biol. 2022, 84, 136. [Google Scholar] [CrossRef]
  22. Ouemba Tassé, A.J.; Kubalasa, V.B.; Tsanou, B.; Jean, M.-S.L. Nonstandard finite difference schemes for some epidemic optimal control problems. Math. Comput. Simul. 2024, 228, 1–22. [Google Scholar] [CrossRef]
  23. Bruggeman, J.; Burchard, H.; Kooi, B.W.; Sommeijer, B. A second-order, unconditionally positive, mass-conserving integration scheme for biochemical systems. Appl. Numer. Math. 2007, 57, 36–58. [Google Scholar] [CrossRef]
  24. Benz, J.; Meister, A.; Zardo, P. A conservative, positivity preserving scheme for advection-diffusion-reaction equations in biochemical applications. In Hyperbolic Problems: Theory, Numerics and Applications, Proceedings of the Twelfth International Conference on Hyperbolic Problems, Center for Scientific Computation and Mathematical Modeling, University of Maryland, College Park, MD, USA, 9–13 June 2008; Tadmor, E., Liu, J.G., Tzavaras, A., Eds.; American Mathematical Society: Providence, RI, USA, 2009; Volume 67, pp. 399–408. [Google Scholar]
  25. Burchard, H.; Deleersnijder, E.; Meister, A. A high-order conservative Patankar-type discretisation for stiff systems of production–destruction equations. Appl. Numer. Math. 2003, 47, 1–30. [Google Scholar] [CrossRef]
  26. Wood, D.; Dimitrov, D.; Kojouharov, H. A nonstandard finite difference method for n-dimensional productive-destructive systems. J. Differ. Equ. Appl. 2015, 21, 240–254. [Google Scholar] [CrossRef]
  27. Patidar, K.C. On the use of nonstandard finite difference methods. J. Differ. Equ. Appl. 2005, 11, 735–758. [Google Scholar] [CrossRef]
  28. Patidar, K.C. Nonstandard finite difference methods: Recent trends and further developments. J. Differ. Equ. Appl. 2016, 22, 817–849. [Google Scholar] [CrossRef]
  29. Mickens, R.E. Nonstandard Finite Difference Schemes; World Scientific: Singapore, 2020. [Google Scholar]
  30. Anguelov, R.; Lubuma, J. Contributions to the mathematics of the nonstandard finite difference method and applications. Numer. Methods Partial. Differ. Equ. 2001, 17, 518–543. [Google Scholar] [CrossRef]
  31. Lubuma, J.M.S.; Roux, A. An Improved Theta-method for Systems of Ordinary Differential Equations. J. Differ. Equ. Appl. 2003, 9, 1023–1035. [Google Scholar] [CrossRef]
  32. Dimitrov, D.; Kojouharov, H. Nonstandard finite-difference schemes for general two-dimensional autonomous dynamical systems. Appl. Math. Lett. 2005, 18, 769–774. [Google Scholar] [CrossRef]
  33. Dang, Q.A.; Hoang, M.T. Positive and elementary stable explicit nonstandard Runge-Kutta methods for a class of autonomous dynamical systems. Int. J. Comput. Math. 2020, 97, 2036–2054. [Google Scholar] [CrossRef]
  34. Gupta, M.; Slezak, J.; Alalhareth, F.; Roy, S.; Kojouharov, H.V. Second-order Modified Nonstandard Explicit Runge-Kutta And Theta Methods for One-dimensional Autonomous Differential Equations. Appl. Appl. Math. Int. J. (AAM) 2021, 16, 788–803. [Google Scholar]
  35. Hoang, M.T. A novel second-order nonstandard finite difference method for solving one-dimensional autonomous dynamical systems. Commun. Nonlinear Sci. Numer. Simul. 2022, 114, 106654. [Google Scholar] [CrossRef]
  36. Roeger, L.I.W. Nonstandard finite-difference schemes for the Lotka–Volterra systems: Generalization of Mickens’s method. J. Differ. Equ. Appl. 2006, 12, 937–948. [Google Scholar] [CrossRef]
  37. Izgin, T.; Kopecz, S.; Meister, A. On the stability of unconditionally positive and linear invariants preserving time integration schemes. SIAM J. Numer. Anal. 2022, 60, 3029–3051. [Google Scholar] [CrossRef]
  38. Izgin, T.; Kopecz, S.; Meister, A. On Lyapunov stability of positive and conservative time integrators and application to second order modified Patankar–Runge–Kutta schemes. ESAIM Math. Model. Numer. Anal. 2022, 56, 1053–1080. [Google Scholar] [CrossRef]
  39. Wood, D.T.; Kojouharov, H.V.; Dimitrov, D.T. Universal approaches to approximate biological systems with nonstandard finite difference methods. Math. Comput. Simul. 2017, 133, 337–350. [Google Scholar] [CrossRef]
  40. Songolo, M.E.; Bidégaray-Fesquet, B. Extending nonstandard finite difference scheme rules to systems of nonlinear ODEs with constant coefficients. J. Differ. Equ. Appl. 2024, 30, 577–602. [Google Scholar] [CrossRef]
  41. Quarteroni, A.; Sacco, R.; Saleri, F. Numerical Mathematics; Springer: Berlin/Heidelberg, Germany, 2007; 657p. [Google Scholar]
  42. Dear, J.; Shi, Z.; Lin, J. An efficient numerical integration system for stiff unified constitutive equations for metal forming applications. IOP Conf. Ser. Mater. Sci. Eng. 2022, 1270, 012008. [Google Scholar] [CrossRef]
  43. Hajiketabi, M.; Casas, F. Numerical integrators based on the Magnus expansion for nonlinear dynamical systems. Appl. Math. Comput. 2020, 369, 124844. [Google Scholar] [CrossRef]
  44. Shampine, L.F.; Reichelt, M.W. The MATLAB ODE Suite. SIAM J. Sci. Comput. 1997, 18, 1–22. [Google Scholar] [CrossRef]
Figure 1. Test Case 1: Comparison of the modified NSFD EE and modified NSFD ERK2 methods to the NSFD EE, NSFD ERK2, NSFD θ = θ ^ = 1 2 , NSFD θ = 0 , θ ^ = 1 , NSFD separate, and RK4 methods, applied to Model (16), using step size h = 0.1 (a,b) and stepsize h = 0.569 (c). The order plots for all eight methods are shown in (d). For illustration purposes, only plots of the biomass that has decayed into humus are shown.
Figure 1. Test Case 1: Comparison of the modified NSFD EE and modified NSFD ERK2 methods to the NSFD EE, NSFD ERK2, NSFD θ = θ ^ = 1 2 , NSFD θ = 0 , θ ^ = 1 , NSFD separate, and RK4 methods, applied to Model (16), using step size h = 0.1 (a,b) and stepsize h = 0.569 (c). The order plots for all eight methods are shown in (d). For illustration purposes, only plots of the biomass that has decayed into humus are shown.
Computation 12 00183 g001
Figure 2. Test Case 2: Comparison of the modified NSFD EE and the modified NSFD ERK2 methods to other numerical methods, applied to Model (18), using step size h = 0.5 . For illustration purposes, only the infected population plots are shown.
Figure 2. Test Case 2: Comparison of the modified NSFD EE and the modified NSFD ERK2 methods to other numerical methods, applied to Model (18), using step size h = 0.5 . For illustration purposes, only the infected population plots are shown.
Computation 12 00183 g002
Figure 3. Test Case 3: Comparison of the modified NSFD EE method to the NSFD EE method, applied to Model (19), using h = 0.02 .
Figure 3. Test Case 3: Comparison of the modified NSFD EE method to the NSFD EE method, applied to Model (19), using h = 0.02 .
Computation 12 00183 g003
Figure 4. Test Case 3: Comparison of the modified NSFD ERK2 method to the NSFD ERK2 method, applied to Model (19), using h = 0.05 .
Figure 4. Test Case 3: Comparison of the modified NSFD ERK2 method to the NSFD ERK2 method, applied to Model (19), using h = 0.05 .
Computation 12 00183 g004
Table 1. Test Case 1: Discrete l error (top) and the rates of convergence (bottom) of the new modified NSFD EE and NSFD ERK2 methods, and the NSFD EE, NSFD ERK2, NSFD θ = θ ^ = 1 2 , NSFD θ = 0 , θ ^ = 1 , NSFD separate, and RK4 methods for solving System (16).
Table 1. Test Case 1: Discrete l error (top) and the rates of convergence (bottom) of the new modified NSFD EE and NSFD ERK2 methods, and the NSFD EE, NSFD ERK2, NSFD θ = θ ^ = 1 2 , NSFD θ = 0 , θ ^ = 1 , NSFD separate, and RK4 methods for solving System (16).
hModified
NSFD EE
Modified
NSFD ERK2
NSFD EENSFD ERK2NSFD
θ = θ ^ = 1 2
NSFD
θ = 0 , θ ^ = 1
NSFD
Separate
RK4
5.00 × 10 1 5.16 × 10 1 8.38 × 10 1 6.39 × 10 1 5.06 × 10 1 4.54 × 10 1 1.26 × 10 0 2.76 × 10 0 4.39 × 10 11
2.50 × 10 1 4.54 × 10 1 3.81 × 10 1 4.60 × 10 1 3.89 × 10 1 2.36 × 10 1 4.90 × 10 1 1.02 × 10 0 8.74 × 10 1
1.25 × 10 1 2.26 × 10 1 1.10 × 10 1 2.60 × 10 1 2.43 × 10 1 8.01 × 10 2 2.26 × 10 1 4.40 × 10 1 3.27 × 10 2
6.25 × 10 2 8.09 × 10 2 2.61 × 10 2 1.33 × 10 1 1.35 × 10 1 2.18 × 10 2 8.40 × 10 2 1.97 × 10 1 1.14 × 10 3
3.12 × 10 2 2.43 × 10 2 5.27 × 10 3 6.71 × 10 2 7.08 × 10 2 5.58 × 10 3 4.13 × 10 2 9.24 × 10 2 5.66 × 10 5
1.56 × 10 2 6.83 × 10 3 1.33 × 10 3 3.35 × 10 2 3.61 × 10 2 1.40 × 10 3 2.05 × 10 2 4.48 × 10 2 3.06 × 10 6
7.81 × 10 3 1.83 × 10 3 3.35 × 10 4 1.67 × 10 2 1.82 × 10 2 3.51 × 10 4 1.02 × 10 2 2.20 × 10 2 1.78 × 10 7
3.90 × 10 3 4.78 × 10 4 8.38 × 10 5 8.35 × 10 3 9.13 × 10 3 8.79 × 10 5 5.09 × 10 3 1.09 × 10 2 1.07 × 10 8
Rate1.931.990.991.001.991.001.014.05
Table 2. Test Case 2: Discrete l error (top) and the rates of convergence (bottom) of the new modified NSFD EE and NSFD ERK2 methods for solving System (18).
Table 2. Test Case 2: Discrete l error (top) and the rates of convergence (bottom) of the new modified NSFD EE and NSFD ERK2 methods for solving System (18).
hModified NSFD EEModified NSFD ERK2
1.00 × 10 0 1.73 × 10 1 5.32 × 10 2
5.00 × 10 1 1.61 × 10 1 3.13 × 10 2
2.50 × 10 1 1.36 × 10 1 1.22 × 10 2
1.25 × 10 1 9.09 × 10 2 3.56 × 10 3
6.25 × 10 2 4.02 × 10 2 9.34 × 10 4
3.12 × 10 2 1.26 × 10 2 2.39 × 10 4
1.56 × 10 2 3.41 × 10 3 6.14 × 10 5
7.81 × 10 3 8.96 × 10 4 1.61 × 10 5
Rate1.931.93
Table 3. Comparison of the execution times, which was calculated using MATLAB’s tic and toc functions to measure the elapsed time in seconds, as well as the computational cost coefficients, which were calculated as the ratio of the elapsed times for the numerical method to our corresponding explicit second-order modified NSFD method, for each of the considered numerical methods.
Table 3. Comparison of the execution times, which was calculated using MATLAB’s tic and toc functions to measure the elapsed time in seconds, as well as the computational cost coefficients, which were calculated as the ratio of the elapsed times for the numerical method to our corresponding explicit second-order modified NSFD method, for each of the considered numerical methods.
Modified
NSFD EE
Modified
NSFD ERK2
MATLAB® ode23sMATLAB® ode23MATLAB® ode15sMATLAB® ode23tRosenbrockMagnus
Execution time 2.32 × 10 2 6.53 × 10 3 7.22 × 10 2 1.77 × 10 2 4.58 × 10 2 4.93 × 10 2 9.85 × 10 2 4.20 × 10 1
Computational
cost
coefficient
Modified
NSFD EE
1.000.283.110.761.972.134.2418.1
Modified
NSFD ERK2
3.551.0011.052.717.017.5415.0864.31
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

Alalhareth, F.K.; Gupta, M.; Kojouharov, H.V.; Roy, S. Second-Order Modified Nonstandard Explicit Euler and Explicit Runge–Kutta Methods for n-Dimensional Autonomous Differential Equations. Computation 2024, 12, 183. https://doi.org/10.3390/computation12090183

AMA Style

Alalhareth FK, Gupta M, Kojouharov HV, Roy S. Second-Order Modified Nonstandard Explicit Euler and Explicit Runge–Kutta Methods for n-Dimensional Autonomous Differential Equations. Computation. 2024; 12(9):183. https://doi.org/10.3390/computation12090183

Chicago/Turabian Style

Alalhareth, Fawaz K., Madhu Gupta, Hristo V. Kojouharov, and Souvik Roy. 2024. "Second-Order Modified Nonstandard Explicit Euler and Explicit Runge–Kutta Methods for n-Dimensional Autonomous Differential Equations" Computation 12, no. 9: 183. https://doi.org/10.3390/computation12090183

APA Style

Alalhareth, F. K., Gupta, M., Kojouharov, H. V., & Roy, S. (2024). Second-Order Modified Nonstandard Explicit Euler and Explicit Runge–Kutta Methods for n-Dimensional Autonomous Differential Equations. Computation, 12(9), 183. https://doi.org/10.3390/computation12090183

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