Abstract
The paper attempts to propose nonstandard finite difference theta schemes to analyze solutions of a competitive problem with toxicants. We have seen that the competitive system is elementary-stable, and the stability features of each equilibrium point of the derived model are the same as those of the continuous model for any value of step size. Therefore, we can say that nonstandard finite difference theta schemes exhibit symmetry at every stage where stability analyses of the mathematical model are performed.
1. Introduction
Nonlinear ordinary differential equations are often used to explain interactions between species, to formulate mathematical models of epidemic diseases such as COVID-19 and rabies viruses, and to explore the intricate dynamics of the air population [1,2,3,4]. Establishing a variational formulation for a nonlinear problem is extremely difficult, and it is nearly impossible for singular differential equations that do not contain linear terms. For this reason, He and Liu used a universal approach to construct a variational formulation of singular waves using the semi-inverse method [5]. Also, a new micro-electro-mechanical system (MEMS) has been developed to handle high-order nonlinearities with high efficiency [6]. When the critical parameters are selected appropriately in [6], the MEMS model completely destroys all even nonlinearities.
Due to the nonlinearity, most of these systems of differential equations cannot be solved analytically, and therefore, discretization is inevitable in order to obtain a good approximation to the solution. Traditional discretization methods like Euler and Runge–Kutta are strongly dependent on the step size and produce superior dynamics, such as doubling bifurcation and chaos, which are not observed in the proposed continuous system. In principle, the corresponding discrete system should have the same properties as the original continuous system, and the dynamics should not depend on the step size. Therefore, establishing a discrete model that will preserve the properties of the original continuous model and whose dynamics will be independent of the step size is of great importance.
Recently, in order to maintain the dynamic consistency of the continuous model, a significant effort was put in construction of the discrete model using the nonstandard finite difference (NSFD) method introduced by Mickens [7,8]. The number of implementations of NSFD models in various scientific fields is increasing day by day [9,10,11,12,13,14,15,16]. The NSFD method has been used to find the numerical solutions of the smoking model with reversion class [17] and the SICA (Susceptible–Infected–Chronic–AIDS) model [16]. Hoang and Ehrhardt developed Micken’s method to construct a dynamically consistent second-order NSFD scheme for the general Rosenzweing–MacArthur predator–prey model with logistic intrinsic growth of the prey [18]. Also, the SIR (Susceptible–Infected–Recovered) rabies virus model was solved using an NSFD method, and the results were presented in some graphical representation for various parameters in [19]. Hoang and Valverde formulated a new discrete-time population dynamics of a two-stage species and reported some numerical examples to validate the theoretical results and advantages of the NSFD method [20]. It has been considered that the approach used to prove the asymptotic stability of equilibrium points can be extended to investigate the asymptotic stability of finite difference schemes for general two-dimensional discrete systems, particularly in cases where continuous models have many parameters. The NSFD scheme was proposed for a recognized virus patch dynamic model in [21]. They stated that they will develop the approach to establish NSFD schemes and higher-order NSFD schemes for other mathematical models emerging in biology, epidemiology, and ecology. In addition, a type of meshless method called the generalized finite difference method (GFDM) was employed for bi-material interfacial crack problems and dynamic crack problems in [22,23]. For a method to be considered as an NSFD, at least one of the following basic criteria must be satisfied [24]:
- and where ;
- The nonlinear functions of may need nonlocal discretizations, for instance,
2. Mathematical Model
The mathematical model of the competitive system with toxicants was introduced in [25] as follows:
where
and : population densities of two competing species at time ;
: intrinsic growth rate;
: competition coefficient;
: effect of species on the growth rate of species ();
: effect of toxicants.
In the emergence of the model, it is assumed that the environment in which the species is found contains contamination, and as a result, the growth of the species is affected.
The model (1) has four equilibrium points [25,26] as
- The trivial equilibrium point ;
- The second equilibrium point ;
- The third equilibrium point ;
- An interior equilibrium point satisfying
3. Construction of Nonstandard Finite Difference Theta Schemes
We use the nonstandard finite difference theta method [18,27,28,29,30,31,32] for the competitive system. We suggest a family of nonstandard schemes for System (1):
where
3.1. Scheme I
In this scheme, we obtain the following results by taking and :
3.2. Scheme II
In this scheme, we obtain the following results by taking and :
3.3. Numerical Consistency Analysis
We now verify that the proposed nonstandard finite difference scheme is numerically consistent with the original continuous model. We analyze the first scheme where is a nonstandard time step function. We use the Taylor expansion of the exact solutions as
For the first equation, we expand the scheme by using
Applying the approximation , we obtain the following:
which matches the Taylor expansion. Hence, the scheme is consistent for . For the second equation, we expand similarly
Using the expansion , we simplify
again matching the exact solution’s Taylor expansion. Therefore, both components have local truncation errors of order and the scheme is first-order numerically consistent.
4. Elementary Stability
Theorem 1.
Schemes (3) and (4) are positive.
Proof.
Assume that , and the constants in the numerator and denominator are always positive with positive initial values, as [25], thereby concluding . Hence schemes (3) and (4) are considered positive NSFD schemes for any . □
Definition 1.
The finite difference method is called stable as long as the equilibrium points
are those of the original differential system for any value of the step size
. The linear stability features of each
are the same for both continuous differential systems and discrete systems [33].
Lemma 1.
Both roots of the equation
satisfy
if and only if the following conditions are met
- ;
- ;
- .
These principles are named as Jury conditions [34,35].
Lemma 2.
The equilibrium point is called stable if
, and a source if , . It is called a saddle point if , or , [36].
Theorem 2.
Scheme (3) is elementary-stable.
Proof.
The members of Jacobian matrix of Scheme (3) is obtained
□
The Jacobian matrix at is defined by
with the eigenvalues and . The equilibrium point is a source from Lemma 2 since and .
The Jacobian matrix at is defined by
with the eigenvalues . is always positive and less than unity for any step size .
If , . Also, . Hence, is called stable from Lemma 2. On the other hand if , and is already less than unity. Hence,
is called a saddle point from Lemma 2.
When the eigenvalues of the Jacobian matrix at is defined, it can be seen that is stable if and it can not be a source. is a saddle point if . The proof is similar to that of the .
Finally the Jacobian matrix at is obtained as follows:
where
Eigenvalues of are the roots of the equation where
and
The equilibrium point is stable if and only if all conditions of Lemma 1 are satisfied. Assume that is a stable equilibrium point of the competitive system. Then
and the second condition of Lemma 1 is met, where
The equilibrium point is unstable if at least one of the conditions is not ensured. Note that and are continuous functions of for . However, and , that imply the existence of a constant such that forall
. Consequently, we obtain the following inequality for the first condition of Lemma 1
where
and .
Therefore, should be selected as
The last requirement is equivalent to
The inequality (7) is true when , with
where
Finally, if we choose , then
for all , which ensures the dynamical consistency between System (1) and System (2). So, all conditions of Lemma 1 are satisfied and is a stable equilibrium point.
Theorem 3.
Scheme (4) is elementary-stable.
Proof.
The members of Jacobian matrix of Scheme (4) are obtained as follows
□
The Jacobian matrix at is defined by
with the eigenvalues and . The equilibrium point is a source from Lemma 2 since and .
The Jacobian matrix at is defined by
with the eigenvalues . is always positive and less than unity for any step size .
If , and becomes stable. It can not be a source. On the other hand if , and is a saddle point from Lemma 2.
When the eigenvalues of the Jacobian matrix at is defined, it can be seen that is stable if and it can not be a source. is a saddle point if . The proof is similar to that of the .
Finally the Jacobian matrix at is obtained as follows:
where
Eigenvalues of are the roots of the equation where
and
The equilibrium point is stable if and only if all conditions of Lemma 1 are satisfied. Assume that is a stable equilibrium point of the competitive system. Then
and the second condition of Lemma 1 is satisfied, where
The equilibrium point is unstable if at least one of the conditions is not provided. Note that and are continuous functions of for . However, and , that imply the existence of a constant such that for all
. Consequently, we obtain the following inequality for the first condition of Lemma 1
where
and .
Therefore, should be selected as
The last condition is equivalent to
The inequality (12) is true when , with
where
Finally, if we choose , then
for all , which ensures the dynamical consistency between System (1) and System (2). So, all conditions of Lemma 1 are satisfied and is a stable equilibrium point.
5. Numerical Experiments
In this section, we validate the theoretical findings presented in the previous sections by performing a series of numerical experiments. Our aim is to show that the proposed NSFD schemes preserve the essential dynamical features of the competitive model with toxicants and remain stable and positive for all step sizes. We firstly used the parameters from [25] in Figure 1, Figure 2, Figure 3, Figure 4 and Figure 5:
Figure 1.
Numerical approximations to System (1) using Euler method.
Figure 2.
Numerical approximations to System (1) using improved Euler method.
Figure 3.
Numerical approximations to System (1) using Runge–Kutta 4 method.
Figure 4.
Numerical approximations to System (2) using Scheme (3).
Figure 5.
Numerical approximations to System (2) using Scheme (4).
, , , , , , , , and a step size . Then we used the other parameters from [25] in Figure 6, Figure 7, Figure 8, Figure 9 and Figure 10:
Figure 6.
Numerical approximations to System (1) using Euler method with the other parameters.
Figure 7.
Numerical approximations to System (1) using improved Euler method with the other parameters.
Figure 8.
Numerical approximations to System (1) using Runge–Kutta 4 method with the other parameters.
Figure 9.
Numerical approximations to System (2) using Scheme (3) with the other parameters.
Figure 10.
Numerical approximations to System (2) using Scheme (4) with the other parameters.
, , , , , , , , and a step size . All simulations are carried out in MATLAB R2023b, with initial points and . For comparison, we present the numerical behavior of the standard Euler, improved Euler, and 4th order Runge–Kutta methods.
As seen in Figure 1, Figure 2, Figure 3, Figure 6, Figure 7 and Figure 8, the Euler, improved Euler, and fourth-order Runge–Kutta (RK4) methods exhibit step-size-dependent dynamics and become unstable for large values of h. Figure 4, Figure 5, Figure 9 and Figure 10 illustrate that the proposed NSFD method is unconditionally stable with respect to the step size and preserves positivity for all initial data in the positive quadrant. Moreover, it remains dynamically consistent with the continuous model, accurately reproducing its qualitative behavior for any choice of h. In particular, for large step sizes, the RK4 solution gradually departs from the continuous dynamics and eventually loses stability, whereas Scheme I and Scheme II continue to produce bounded, positive, and stable solutions.
We also study the accuracy of the two proposed NSFD schemes by performing a convergence test with the parameters , , , , , , , , and initial points and . For each scheme, the solution is computed using several time step sizes , which acts as the time step of the method. The numerical results are compared with a reference solution obtained using a very small time step. The error is measured at a fixed final time using the maximum infinity norm. The order of accuracy is computed from the errors corresponding to two successive step sizes.
where represents the error for the step size . The results in Figure 11 and Figure 12 show that, for both schemes, the error decreases proportionally to the time step size, and the computed orders are close to one. This confirms that both schemes are first-order accurate in time.
Figure 11.
Log–log plot to Scheme (3).
Figure 12.
Log–log plot to Scheme (4).
6. Conclusions
We transformed a continuous-time nonlinear competitive model with toxicant effects into a discrete-time model using two nonstandard finite difference theta schemes in order to demonstrate their dynamic consistency. We preferred to study a discrete-time model because of its ability to capture generational dynamics, their relevance in populations with non-overlapping generations, and the fact that they can exhibit rich and complex dynamics that often do not appear in corresponding continuous models. We have shown that the proposed schemes preserve key qualitative properties, including stability and positivity. Moreover, stability analyses carried out for each equilibrium point confirmed that the Jury conditions are satisfied, indicating that both the continuous system and its NSFD–theta discretizations exhibit consistent dynamical behavior. Furthermore, numerical experiments support our theoretical findings by illustrating that the NSFD schemes maintain bounded, positive, and dynamically consistent solutions for all step sizes, in contrast to standard methods whose behavior deteriorates as the step size increases.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Solanke, G.S.; Pachpatte, D.B. Mathematical model for spread of COVID-19 virus using Fractional Order Approach. Stat. Appl. 2025, 23, 335–346. [Google Scholar]
- Yeshwanth, R.; Kumbinarasaiah, S.; Dhawan, S. Analysis of new mathematical model for rabies through wavelet method. Front. Appl. Math. Stat. 2025, 11, 1544002. [Google Scholar] [CrossRef] [Scilit]
- Aakash, M.; Gunasundari, C.; Al-Mdallal, Q.M. Mathematical modelling and simulation of SEIR model for COVID-19 outbreak: A case study of Trivandrum. Front. Appl. Math. Stat. 2023, 9, 1124897. [Google Scholar] [CrossRef] [Scilit]
- Aakash, M.; Gunasundari, C.; Athithan, S.; Kumar, G.S.; Meetei, M.Z.; Orsud, M.A. Modelling Air Polution Dynamics and Mitigation Strategies: A Mathematical Approach. Contemp. Math. 2025, 6, 3454–3471. [Google Scholar] [CrossRef] [Scilit]
- He, C.-H.; Liu, C. Variational principle for singular waves. Chaos Solitons Fractals 2023, 172, 113566. [Google Scholar] [CrossRef] [Scilit]
- He, C.-H.; Cui, Y.; He, J.-H.; Buhe, E.; Bai, Q.; Xu, Q.; Ma, J.; Alsolam, A.A.; Gao, M. Nonlinear dynamics in MEMS systems: Overcoming pull-in challenges and exploring innovative solutions. J. Low Freq. Noise Vib. Act. Control. 2025, 1–33. [Google Scholar] [CrossRef] [Scilit]
- Mickens, R.E. Nonstandard Finite Difference Schemes for Differential Equations. J. Differ. Equ. Appl. 2002, 8, 823–847. [Google Scholar] [CrossRef] [Scilit]
- Mickens, R.E. Dynamic Consistency: A Fundamental Principle for Constructing NSFD Schemes for Differential Equations. J. Differ. Equ. Appl. 2025, 11, 645–653. [Google Scholar] [CrossRef] [Scilit]
- Egbelowo, O.F. Nonstandard finite difference approach for solving 3- compartment pharmacokinetic models. Biomed. Eng. 2018, 34, e3114. [Google Scholar] [CrossRef] [Scilit]
- Wood, D.T.; Kojouharov, H.V.; Dimitrov, D.T. Universal approachs to approximate biological systems with nonstandard finite difference methods. Math. Comput. Simul. 2017, 133, 337–350. [Google Scholar] [CrossRef] [Scilit]
- Adekanye, O. Washington, Nonstandard finite difference scheme for a Tacoma Narrows Bridge model. Appl. Math. Model. 2018, 62, 223–236. [Google Scholar] [CrossRef] [Scilit]
- de Waal, G.N.; Appadu, A.R.; Pretorius, C.J. Some standard and nonstandard finite difference schemes for a reaction-diffusion-chemotaxis model. Open Phys. 2023, 21, 20220231. [Google Scholar] [CrossRef] [Scilit]
- Chapwanya, M.; Dozva, R.; Muchatibaya, G. A nonstandard finite difference technique for singular Lane-Emdan type equations. Eng. Comput. 2019, 36, 1566–1578. [Google Scholar] [CrossRef] [Scilit]
- Neena, A.S.; Clemence-Mkhope, D.P.; Awasthi, A. Nonstandard finite difference scheme for a linear and non-linear Fokker-Planck equations. J. Eng. Math. 2024, 145, 11. [Google Scholar] [CrossRef] [Scilit]
- Wacker, B. Qualitative Study of a Dynamical System for Computer Virus Propagation—A Nonstandard Finite-Difference Methodological. Math. Methods Appl. Sci. 2025, 48, 8487–9352. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit] [PubMed]
- Zeb, A.; Alzahrani, A. Non-standard finite difference scheme and analysis of smoking model with reversion class. Results Phys. 2021, 21, 103785. [Google Scholar] [CrossRef] [Scilit]
- Hoang, M.T.; Ehrhardt, M. A second-order nonstandard finite difference method for a general Rosenzweig-MacArthur. J. Comput. Appl. Math. 2024, 444, 115752. [Google Scholar] [CrossRef] [Scilit]
- Alfwzan, W.F.; Raza, A.; Ahmed, N.; Elsonbaty, A.; Rafiq, M.; Adel, W. Nonstandard Computational and Bifurcation Analysis of the Rabies Epidemic Model. J. Math. 2024, 2024, 3909089. [Google Scholar] [CrossRef] [Scilit]
- Hoang, M.T.; Valverde, J.C. A generalized model for the population dynamics of a two stage species with recruitment and capture using a nonstandard finite difference scheme. Comput. Appl. Math. 2024, 43, 54. [Google Scholar] [CrossRef] [Scilit]
- Hoang, M.T. Dynamically consistent nonstandard finite difference schemes for a virus-patch dynamic model. J. Appl. Math. Comput. 2022, 68, 3397–3423. [Google Scholar] [CrossRef] [Scilit]
- Qu, W.; Gu, Y.; Fan, C.-M. A stable framework for long-time dynamic crack analysis. Int. J. Solids Struct. 2024, 293, 112768. [Google Scholar] [CrossRef] [Scilit]
- Sun, W.; Qu, W.; Gu, Y.; Zhao, S. Dynamic analysis of bi-material interfacial cracks by the high-order GFDM with an enhanced Krylov deferred correction technique. Int. J. Solids Struct. 2025, 318, 113451. [Google Scholar] [CrossRef] [Scilit]
- Brauer, F.; Castillo-Chavez, C. Mathematical Models in Population Biology and Epidemiology; Springer: New York, NY, USA, 2001. [Google Scholar]
- Biswas, M.; Bairagi, N. On the dynamic consistency of a two-species competitive discrete system with toxicity: Local and global analysis. J. Comput. Appl. Math. 2020, 363, 145–155. [Google Scholar] [CrossRef] [Scilit]
- Chattopadhyay, J. Effect of toxic substances on a two-species competitive system. Ecol. Model. 1996, 84, 287–289. [Google Scholar] [CrossRef] [Scilit]
- Khalsaraei, M.M.; Shorki, A.; Noeiaghdam, S.; Molayi, M. Nonstandard Finite Difference Schemes for an SIR Epidemic Model. Mathematics 2021, 9, 3082. [Google Scholar] [CrossRef] [Scilit]
- Gupta, M.; Slezak, J.M.; Alalhareth, F.K.; Roy, S.; Kojouharov, H.V. Second-order Modified Nonstandard Explicit Runge-Kutta and Theta method for one-dimensional autonomous differential equations. Appl. Appl. Math. 2021, 16, 788–803. [Google Scholar]
- 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] [Scilit]
- 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] [Scilit]
- Khalsaraei, M.M.; Shorki, A.; Ramos, H.M.; Mohammadnia, Z.; Khakzad, P. A Positivity-Preserved Improved Nonstandard Finite Difference Method to Solve the Black-Scholes Equation. Mathematics 2022, 10, 1846. [Google Scholar]
- Nonlaopon, K.; Khalsaraei, M.M.; Shorki, A.; Molayi, M. Approximate Solutions for a Class of Predator-Prey Systems with Nonstandard Finite Difference Schemes. Symmetry 2022, 14, 1660. [Google Scholar] [CrossRef] [Scilit]
- Dimitrov, D.T.; Kojouharov, H.V. Nonstandard numerical methods for a class of predator-prey models with predator interference. Electron. J. Differ. Equ. 2007, 15, 67–75. [Google Scholar]
- Anguelov, R.; Lubuma, J.M.-S. Contributions to the Mathematics of the Nonstandard Finite Difference Method and Applications. Numer. Methods Partial. Differ. Equ. 2001, 17, 518–543. [Google Scholar] [CrossRef] [Scilit]
- Dumont, Y.; Chiroleu, F.; Domerg, C. On a Temporal model for the Chikungunya disease: Modeling theory and numerics. Math. Biosci. 2008, 213, 80–91. [Google Scholar] [CrossRef] [Scilit]
- Elaydi, S.N. Discrete Chaos with Applications in Science and Engineering; Chapman & Hall/CRC: New York, NY, USA, 2008. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











