Next Article in Journal
Solutions of Bernoulli Equations in the Fractional Setting
Previous Article in Journal
On the Connectivity Measurement of the Fractal Julia Sets Generated from Polynomial Maps: A Novel Escape-Time Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Simulation for the Treatment of Nonlinear Predator–Prey Equations by Using the Finite Element Optimization Method

by
H. M. Srivastava
1,2,3,4,* and
M. M. Khader
5,6
1
Department of Mathematics and Statistics, University of Victoria, Victoria, BC V8W 3R4, Canada
2
Department of Medical Research, China Medical University Hospital, China Medical University, Taichung 40402, Taiwan
3
Department of Mathematics and Informatics, Azerbaijan University, 71 Jeyhun Hajibeyli Street, Baku AZ1007, Azerbaijan
4
Section of Mathematics, International Telematic University Uninettuno, I-00186 Rome, Italy
5
Department of Mathematics, Faculty of Science, Benha University, Benha 13511, Egypt
6
Department of Mathematics and Statistics, College of Science, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh 11566, Saudi Arabia
*
Author to whom correspondence should be addressed.
Fractal Fract. 2021, 5(2), 56; https://doi.org/10.3390/fractalfract5020056
Submission received: 25 April 2021 / Revised: 20 May 2021 / Accepted: 4 June 2021 / Published: 16 June 2021
(This article belongs to the Special Issue Fractional Integral Transforms: Theory and Applications)

Abstract

:
This article aims to introduce an efficient simulation to obtain the solution for a dynamical–biological system, which is called the Lotka–Volterra system, involving predator–prey equations. The finite element method (FEM) is employed to solve this problem. This technique is based mainly upon the appropriate conversion of the proposed model to a system of algebraic equations. The resulting system is then constructed as a constrained optimization problem and optimized in order to get the unknown coefficients and, consequently, the solution itself. We call this combination of the two well-known methods the finite element optimization method (FEOM). We compare the obtained results with the solutions obtained by using the fourth-order Runge–Kutta method (RK4 method). The residual error function is evaluated, which supports the efficiency and the accuracy of the presented procedure. From the given results, we can say that the presented procedure provides an easy and efficient tool to investigate the solution for such models as those investigated in this paper.

1. Introduction

Nonlinear differential equations have kept attracting the interest of many researchers. Some authors have realized the need for finding new mathematical models of many real-life problems in such different areas as, for example, fluid mechanics, viscoelasticity, biology, physics, and engineering. Most nonlinear differential equations do not have an exact solution. Therefore, approximate and numerical techniques must be used (see [1,2,3,4]). For relevant further details about differential equations, together with their important properties and the tools and techniques used for them, one can see the works [5] (see also [6] for various developments involving ordinary differential equations as well as analogous fractional-order differential equations).
After the above-mentioned works, many researchers have successfully applied various numerical methods in this field (see, for example, [7]). Among these numerical methods, the finite element method (FEM) (see [8]) has some distinct advantages for handling this class of problems in which the coefficients for the solution can easily be found to exist after using any one of the available numerical programs. Here, we state the main advantages to this technique through the following points:
1.
FEM allows for easier modeling of complex geometrical and irregular shapes.
2.
FEM can be adapted to obtain the solution of the problem with a high degree of accuracy to decrease the need for physical prototypes in the design process.
3.
FEM is remarkably useful for certain time-dependent simulations, such as crash simulations in which deformations in one area depend upon deformations in another area.
In this paper, we apply the finite element optimization method (FEOM) to obtain the solution for the given problem. The outline of the paper is as follows:
  • Section 2 is devoted to the presentation of the formulation of the Lotka–Volterra system;
  • Section 3 is devoted to the construction and prediction of the solution by FEOM;
  • Section 4 is devoted to the results and discussion;
  • Section 5 presents the conclusions of this investigation.

2. The Model of the Lotka–Volterra System (with Two Predators and One Prey)

Predator–prey equations are a pair of nonlinear differential equations of the first order that are frequently used to describe the dynamics of biological systems in which two species interact with each other; one is a predator and the other is its prey. The studied model was presented by Samardzija [9], who proposed a two-predator and one-prey concept of the Lotka–Volterra system.
In our study, the proposed model for the predator–prey equations is defined as follows:
x ( t ) = λ 1 x ( t ) λ 2 x ( t ) y ( t ) + λ 3 [ x ( t ) ] 2 λ 4 z ( t ) [ x ( t ) ] 2 ,
y ( t ) = λ 5 y ( t ) + λ 6 x ( t ) y ( t )
and
z ( t ) = λ 7 z ( t ) + λ 4 z ( t ) [ x ( t ) ] 2 ,
together with the following initial conditions:
x ( 0 ) = x 0 , y ( 0 ) = y 0 and z ( 0 ) = z 0 ,
where a prime denotes differentiation with respect to t, y ( t ) and z ( t ) are the numbers of the predators at time t, x ( t ) is the number of their prey at time t, and λ j ( j = 1 , , 7 ) are the parameters that represent the interaction between the three species involved (see also [10,11]). In our present work, we solve this problem in the interval ( 0 , t f ) = ( 0 , 8 ) . For more details about this model, see the earlier work [9].

3. Procedure of Solution by the Finite Element Method (FEM)

The FEM is a powerful technique for solving differential equations and integral equations, as well as their fractional-order analogs. The basic concept is that the whole domain is divided into smaller elements of finite dimensions, called Finite Elements. It is one of the most versatile numerical techniques in modern engineering analysis and is employed to study diverse problems in such areas as, for example, fluid mechanics [12], heat transfer [13], chemical processing [14], solid mechanics [15], electrical systems, and many other fields.
The analysis of the finite element method is implemented through the following steps (see, for details, [16]):
1.
Finite-element discretization:
The whole domain is divided into a finite number of sub-domains, which is called the discretization of the domain. Each sub-domain is called an element. The collection of elements is called the finite-element mesh.
2.
Generation of the element equations:
  • From the mesh, a typical element is isolated and the variational formulation of the given problem over the typical element is then constructed.
  • An approximate solution of the variational problem is assumed and the element equations are formulated by substituting this solution into the above system.
  • The element matrix, which is called the stiffness matrix, is constructed by using the element interpolation functions.
3.
Assembly of the element equations:
The algebraic equations so obtained are assembled by imposing the inter-element continuity conditions. This yields a large number of algebraic equations known as the global finite element model, which governs the whole domain.
4.
Imposition of the boundary conditions:
The essential and natural boundary conditions are imposed on the assembled equations.
5.
Solution a system of algebraic equations:
The obtained system of algebraic equations can be solved by any one of the appropriate numerical techniques.

3.1. Variational Formulation of the System

The variational form associated with Equations (1)–(3) over a typical linear element ( t e , t e + 1 ) is given by the following:
t e t e + 1 ϕ 1 x ( t ) λ 1 x ( t ) + λ 2 x ( t ) y ( t ) λ 3 [ x ( t ) ] 2 + λ 4 z ( t ) [ x ( t ) ] 2 d t = 0 ,
t e t e + 1 ϕ 2 y ( t ) + λ 5 y ( t ) λ 6 x ( t ) y ( t ) d t = 0
and
t e t e + 1 ϕ 3 z ( t ) + λ 7 z ( t ) λ 4 z ( t ) [ x ( t ) ] 2 d t = 0 ,
where ϕ 1 , ϕ 2 and ϕ 3 are arbitrary test functions and may be viewed as the variation in x ( t ) , y ( t ) and z ( t ) , respectively.

3.2. Finite Element Formulation of the Model

The finite element model may be obtained from the above equations by substituting finite element approximations of the following form:
x ( t ) = = 1 2 x Υ , h ( t ) = = 1 2 y Υ and z ( t ) = = 1 2 z Υ ,
together with
ϕ 1 = ϕ 2 = ϕ 3 = Υ ( = 1 , 2 ) .
In our computations, the shape functions of a typical element ( t e , t e + 1 ) are taken to be as follows:
Linear element:
Υ 1 e = t e + 1 t t e + 1 t e , Υ 2 e = t t e t e + 1 t e and t e t t e + 1 .
Quadratic element:
Υ 1 e = ( t e + 1 t e 2 t ) ( t e + 1 t ) ( t e + 1 t e ) 2 , Υ 2 e = 4 ( t t e ) ( t e + 1 t ) ( t e + 1 t e ) 2 , Υ 3 e = ( t e + 1 t e 2 t ) ( t t e ) ( t e + 1 t e ) 2 and t e t t e + 1 .
The finite element model of the equations thus formed is given by the following:
K 12 K 12 K 13 K 21 K 22 K 23 K 31 K 32 K 33 { x } { y } { z } = { b 1 } { b 2 } { b 3 } ,
where [ K r s ] and [ b r ] ( r , s = 1 , 2 , 3 ) are defined as follows:
K i j 11 = t e t e + 1 Υ i d Υ j d t λ 1 Υ i Υ j d t λ 3 t e t e + 1 Υ i x ¯ Υ j d t , K i j 12 = λ 2 t e t e + 1 Υ i x ¯ Υ j d t , K i j 13 = λ 4 t e t e + 1 Υ i x ¯ Υ j d t , K i j 21 = λ 6 t e t e + 1 Υ i y ¯ Υ j d t , K i j 22 = t e t e + 1 Υ i d Υ j d t + λ 5 Υ i Υ j d t , K i j 23 = 0 , K i j 31 = λ 4 t e t e + 1 Υ i z ¯ Υ j d t , K i j 32 = 0 , K i j 33 = t e t e + 1 Υ i d Υ j d t + λ 7 Υ i Υ j d t , b i 1 = 0 , b i 2 = 0 , and b i 3 = 0 ,
in which
x ¯ = = 1 2 x ¯ Υ , y ¯ = = 1 2 y ¯ Υ , and z ¯ = = 1 2 z ¯ Υ .
Each element matrix is of the order 6 × 6 . The entire flow domain is divided into a set of 800 line elements and, following the assembly of all of the element equations, a matrix of order 2403 × 2403 is generated. The resulting system of equations is strongly nonlinear and recourse must be made to a robust iterative scheme to solve it. The system is linearized by incorporating the functions x ¯ , y ¯ and z ¯ , which are assumed to be known. After applying the given boundary conditions, only a system of 2398 equations remains for finding the solution, which is performed by using a robust Gauss elimination method while maintaining an accuracy of 0.0001. A convergence criterion based on the relative difference between the current and previous iterations is employed. When these differences reach the desired accuracy, the solution is assumed to have converged and the iterative process is then terminated. The Gaussian quadrature is implemented for solving the integrations. However, the suitability of the shape functions varies from problem to problem. Due to the simple and efficient use in computations, linear, as well as quadratic, shape functions are used in the present problem. However, it is observed that the results do not vary considerably, indicating that both elements provide approximately the same accuracy.

4. Numerical Simulation

Here, in this section, we present a numerical test example to verify the accuracy and the quality of the presented scheme. With this aim in view, we consider the systems (1) to (4) with different values of the parameters λ j ( j = 1 , , 7 ) , as well as the initial conditions for x 0 , y 0 and z 0 .  Figure 1, Figure 2, Figure 3 and Figure 4 present the numerical simulation for the studied model by employing the technique that we have used in this paper.
In Figure 1, we present the behavior of the approximate solution by the proposed method (dotted line) and the fourth-order Runge–Kutta method (continuous line) in the interval ( 0 , 8 ) with the initial conditions x 0 = 0.5 ,   y 0 = 1 and z 0 = 1 and with the parameters given by the following:
λ 1 = λ 2 = λ 3 = λ 4 = 1 , λ 5 = 2 , λ 6 = 3 and λ 7 = 2.7 .
In Figure 2, we present the behavior of the approximate solution via distinct values of the initial conditions in the interval ( 0 , 8 ) and with the parameters given by the following:
λ 1 = λ 2 = λ 3 = λ 4 = 1 , λ 5 = 2 , λ 6 = 3 and λ 7 = 2.7 .
In this situation, we take the following three cases:
i. 
x 0 = y 0 = 1 , z 0 = 2 ; (a) for the solution x ( t ) ;
ii. 
x 0 = y 0 = 2 , z 0 = 4 ; (b) for the solution y ( t ) ;
iii. 
x 0 = y 0 = 3 , z 0 = 6 ; (c) for the solution z ( t ) .
In Figure 3, we present the behavior of the approximate solution via distinct values of the parameters λ i ( i = 1 , , 7 ) together with x 0 = y 0 = 1 and z 0 = 2 in the interval ( 0 , 8 ). In this situation, we take the following three cases:
i. 
λ 1 = λ 2 = λ 3 = λ 4 = 2 , λ 5 = λ 6 = 1 , λ 7 = 3 (a);
ii. 
λ 1 = λ 2 = λ 3 = λ 4 = 3 , λ 5 = λ 6 = 2 , λ 7 = 4 (b);
iii. 
λ 1 = λ 2 = λ 3 = λ 4 = 4 , λ 5 = λ 6 = 3 , λ 7 = 5 (c).
In addition, in Figure 4, the residual error function (REF) is introduced at the initial conditions x 0 = y 0 = 1 , and z 0 = 2 , with the parameters given by the following:
λ 1 = λ 2 = λ 3 = λ 4 = 1 , λ 5 = 2 , λ 6 = 3 and λ 7 = 2.7 .
From these results, we can note that the behavior of the numerical solution depends on the values in the initial conditions and the included parameters λ j ( j = 1 , , 7 ) . This confirms that the used method has been implemented in a good way for solving the proposed problem.
In order to validate our numerical solutions, we present a comparison of the REF in Table 1 at the initial conditions x 0 = y 0 = 2 , and z 0 = 3 , and with the parameters given by the following:
λ 1 = λ 2 = λ 3 = λ 4 = 2 , λ 5 = 0.8 , λ 6 = 3 and λ 7 = 1.7 .
This comparison shows the thoroughness of the proposed method in this article.

5. Conclusions

The proposed model is solved numerically by employing the finite element optimization method (FEOM). The resulting numerical solutions for the studied problem confirm that the presented technique is quite suitable to study this problem effectively. We can confirm also that, if we add extra terms from the series of the approximate solution, the errors will decrease. Finally, the numerical solutions with different values of the order n of approximation and the residual error function are computed to illustrate the validity of the proposed technique. The derived results also show that the given procedure provides an efficient tool to investigate the numerical solution for such models. On the other hand, in capturing this numerical analysis, our work may provide stronger physical meanings for performing future theoretical and computational analysis on this subject. All numerical results in this paper were obtained by using the Mathematica software.

Author Contributions

Formal analysis, M.M.K.; Methodology, H.M.S. Both authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ali, M.R.; Hadhoud, A.R.; Srivastava, H. Solution of fractional Volterra-Fredholm integro-differential equations under mixed boundary conditions by using the HOBW method. Adv. Differ. Equ. 2019, 2019, 115. [Google Scholar] [CrossRef] [Green Version]
  2. Homeier, H.H.; Srivastava, H.M.; Masjed-Jamei, M.; Moalemi, Z. Some weighted quadrature methods based upon the mean value theorems. Math. Methods Appl. Sci. 2021, 44, 3840–3856. [Google Scholar] [CrossRef]
  3. Khader, M.M.; Sharma, R.P. Evaluating the unsteady MHD micropolar fluid flow past stretching/shirking sheet with heat source and thermal radiation: Implementing fourth order predictor-corrector FDM. Math. Comput. Simulat. 2021, 181, 333–350. [Google Scholar] [CrossRef]
  4. Srivastava, H.M.; Iqbal, J.; Arif, M.; Khan, A.; Gasimov, Y.S.; Chinram, R. A new application of Gauss quadrature method for solving systems of nonlinear equations. Symmetry 2021, 13, 432. [Google Scholar] [CrossRef]
  5. Srivastava, H.M.; Saad, K.M.; Khader, M.M. An efficient spectral collocation method for the dynamic simulation of the fractional epidemiological model of the Ebola virus. Chaos Solitons Fractals 2020, 140, 110174. [Google Scholar] [CrossRef] [PubMed]
  6. Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations. North-Holland Mathematical Studies; Elsevier (North-Holland) Science Publishers: Amsterdam, The Netherlands; London, UK; New York, NY, USA, 2006; Volume 204. [Google Scholar]
  7. Garvie, M.R.; Burkardt, J.; Morgan, J. Simple finite element methods for approximating predator-prey dynamics in two dimensions using Matlab. Bull. Math. Biol. 2015, 77, 548–578. [Google Scholar] [CrossRef] [PubMed]
  8. Khader, M.M.; Abualnaja, K.M. Galerkin-FEM for obtaining the numerical solution of the linear fractional Klein-Gordon equation. J. Appl. Anal. Comput. 2019, 9, 261–270. [Google Scholar] [CrossRef]
  9. Bougoffa, L.; Khanfer, A. On the solutions of the generalized Lotka-Volterra system. In Proceedings of the ITM Web of Conferences, Moscow, Russia, 28–29 November 2019; pp. 1–6. [Google Scholar]
  10. Atangana, A.; Gómez-Aguilar, J.F. A new derivative with normal distribution kernel: Theory, methods and applications. Phys. A Statist. Mech. Appl. 2017, 476, 1–14. [Google Scholar] [CrossRef]
  11. Ghanbari, B.; Günerhan, H.; Srivastava, H.M. An application of the Atangana-Baleanu fractional derivative in mathematical biology: A three-species predator-prey model. Chaos Solitons Fractals 2020, 138, 109919. [Google Scholar] [CrossRef]
  12. Bhargava, R.; Sharma, S.; Takhar, H.S.; Beg, O.A.; Bhargava, P. Numerical solutions for micropolar transport phenomena over a nonlinear stretching sheet. Nonlinear Anal. Model. Cont. 2007, 12, 45–63. [Google Scholar] [CrossRef]
  13. Bathe, K.J. Finite Element Procedures; Prentice Hall, Pearson Education Incorporated: New York, NY, USA, 2006. [Google Scholar]
  14. Lin, Y.-Y.; Lo, S.-P. Finite element modeling for chemical mechanical polishing process under different back pressures. J. Mater. Process. Technol. 2003, 140, 646–652. [Google Scholar] [CrossRef]
  15. Hansbo, A.; Hansbo, P. A finite element method for the simulation of strong and weak discontinuities in solid mechanics. Comput. Methods Appl. Mech. Eng. 2004, 139, 3523–3540. [Google Scholar] [CrossRef]
  16. Rana, P.; Bhargava, R. Flow and heat transfer of a nanofluid over a nonlinearly stretching sheet: A numerical study. Commun. Nonlinear Sci. Numer. Simulat. 2012, 17, 212–226. [Google Scholar] [CrossRef]
Figure 1. Behavior of the approximate solution by the proposed method (dots line) and the RK4 (continuous line).
Figure 1. Behavior of the approximate solution by the proposed method (dots line) and the RK4 (continuous line).
Fractalfract 05 00056 g001
Figure 2. Behavior of the approximate solution via different values of x 0 , y 0 and z 0 .
Figure 2. Behavior of the approximate solution via different values of x 0 , y 0 and z 0 .
Fractalfract 05 00056 g002
Figure 3. Behavior of the approximate solution via different values of the parameters λ j ( j = 1 , , 7 ) .
Figure 3. Behavior of the approximate solution via different values of the parameters λ j ( j = 1 , , 7 ) .
Fractalfract 05 00056 g003aFractalfract 05 00056 g003b
Figure 4. The REF of the solutions.
Figure 4. The REF of the solutions.
Fractalfract 05 00056 g004
Table 1. Comparison of the REF between FEOM and RK4 method.
Table 1. Comparison of the REF between FEOM and RK4 method.
Relative Error—Present FEOM:Relative Error—RK4:
t x ( t ) y ( t ) z ( t ) x ( t ) y ( t ) z ( t )
03.15972 × 10 9 4.85231 × 10 8 5.98745 × 10 8 3.12345 × 10 7 1.65482 × 10 7 2.35479 × 10 7
13.75361 × 10 8 4.98765 × 10 7 1.85317 × 10 7 0.96325 × 10 7 2.74123 × 10 7 1.85213 × 10 7
22.85264 × 10 8 0.05217 × 10 8 1.85214 × 10 8 6.36547 × 10 6 2.96542 × 10 7 9.85471 × 10 7
32.12358 × 10 8 4.98541 × 10 8 3.65412 × 10 9 9.75612 × 10 7 2.95423 × 10 6 1.95423 × 10 6
44.32546 × 10 8 6.02546 × 10 9 5.85642 × 10 8 9.95423 × 10 7 5.35491 × 10 7 1.32564 × 10 7
57.85214 × 10 8 0.32541 × 10 7 6.65482 × 10 8 3.02587 × 10 7 3.65821 × 10 7 9.78523 × 10 7
61.12597 × 10 8 2.32587 × 10 8 5.95421 × 10 7 0.65478 × 10 6 1.32587 × 10 6 4.58241 × 10 7
78.65874 × 10 9 2.32541 × 10 8 6.96325 × 10 8 4.74185 × 10 7 3.00254 × 10 6 1.21504 × 10 6
81.25846 × 10 8 3.24680 × 10 8 5.25813 × 10 9 7.89240 × 10 7 9.11005 × 10 7 1.90412 × 10 7
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Srivastava, H.M.; Khader, M.M. Numerical Simulation for the Treatment of Nonlinear Predator–Prey Equations by Using the Finite Element Optimization Method. Fractal Fract. 2021, 5, 56. https://doi.org/10.3390/fractalfract5020056

AMA Style

Srivastava HM, Khader MM. Numerical Simulation for the Treatment of Nonlinear Predator–Prey Equations by Using the Finite Element Optimization Method. Fractal and Fractional. 2021; 5(2):56. https://doi.org/10.3390/fractalfract5020056

Chicago/Turabian Style

Srivastava, H. M., and M. M. Khader. 2021. "Numerical Simulation for the Treatment of Nonlinear Predator–Prey Equations by Using the Finite Element Optimization Method" Fractal and Fractional 5, no. 2: 56. https://doi.org/10.3390/fractalfract5020056

Article Metrics

Back to TopTop