1. Introduction
Numerous theoretical and practical studies in the world show that the Riccati equation is of great interest, since it often finds its application in many fields of science, for example, in physics—wave processes in media with inelastic hysteresis and saturation of losses [
1], in epidemiology—logistic models, the purpose of which is to determine the time of saturation (reaching a plateau) and recession of the epidemic [
2].
Saturation processes can also have the effect of heredity (memory or heredity); this indicates a causal relationship in the dynamics of the process. The famous Italian mathematician Vito Voltaire devoted part of his scientific works to the development of the concept of heredity and its application in various fields of science, in particular, to problems of ecology and physics. In particular, he devoted several chapters in the books [
3,
4], where he noted that, in fact, the concept of consequences in physics was introduced by Pekar in 1907, although such phenomena as delayed waves, fatigue of metals and other delayed hereditary processes were known earlier, according to the work of Uchaikin V.V. [
5]. The concept of heredity means that the system stores information about its prehistory and, from the point of view of mathematics, can be described using integro-differential equations with difference kernels—memory functions. When choosing memory functions and power functions, we naturally turn to the well-known mathematical apparatus of the fractional calculus [
6,
7], in particular to the derivatives of fractional order [
8,
9,
10].
Fractional calculus is an important and well-developed part of mathematical theory with many applications in various fields of science [
11]. The study of this topic has been going on for more than three centuries, continues to this day, and is associated with such names as: A. Nakhushev [
6], V. Uchaikin [
5,
9], A. Pskhu [
12], A. Kilbas [
8], O. Mamchuev [
13]. Fractional integration and fractional differentiation are a generalization of the concepts of integration and differentiation of integer order and include
n-th derivatives and
n-folded integrals, where
, as special cases.
Like the concept of heredity, fractional calculus is closely related to the theory of fractals, or rather to the concept of fractional dimension. In particular, there is a connection between the fractal (Hausdorff) dimension of the environment and the orders of fractional operators, which is reflected in the works [
14,
15,
16]. The fractional orders of the operators included in the equations of hereditary oscillators, in the generalized case, are functions, since the fractal dimension can change in time and in magnitude. This means that they can only be resolved numerically for some schemes, for example, finite-difference schemes, as shown in the works [
17,
18].
Therefore, the Riccati equation with a fractional derivative is usually called the fractional Riccati equation. The fractional Riccati equation is a generalization of the classical Riccati equation and, due to the additional degree of freedom—the order of the fractional derivative, gives a more flexible description of the experimental data of processes with saturation. In addition, the introduction of a fractional derivative of variable order into the Riccati equation will make it possible to describe the experimental data even more flexibly.
Therefore, an important task is to find a solution to the fractional Riccati equation, in view of its nonlinearity, using numerical analysis, to study the issues of stability and convergence of the numerical solution, and also to compare it with the time series of experimental data of the process under consideration.
The first works on the study of the fractional Riccati equation appeared relatively recently, in the early 2000s. For example, the 2006 work [
19] by the authors Momani S., Shawagfeh N. is known, in which the fractional Riccati equation with variable coefficients was investigated using the Adomian decomposition method. In this work, the fractional derivative was understood in the sense of Gerasimov-Caputo. In 2008, the authors Tan Y. and Abbasbandy S. [
20] applied the method of homotopic analysis to the study of the fractional Riccati equation.
Further, in the work [
21] in 2010, Jafari H. and Tajadodi H. proposed a variational iteration method for solving the same fractional Riccati equation with non-constant coefficients, and in 2011 the authors Khan N. A., Ara A., Jamil M. proposed [
22] a new homotopy perturbation method. The development of these methods was obtained in the work [
23] 2012 by Sweilam N. H., Khader M. M., Mahdy A. M. S.. In this work, for the simplest fractional Riccati equation with the Gerasimov-Caputo derivative and constant coefficients, some numerical methods for its solution were described: Newton’s method, variational-iterative method, Padé approximation. It should be noted that the fractional Riccati equation with the Riemann-Liouville derivative was investigated in 2013 by Merdan M., who proposed the [
24] method of fractional variational iterations.
In the same 2013, the author of Khader MM in the work [
25] develops methods based on orthogonal Chebyshev polynomials, by the authors of Khader MM, Mahdy AMS, Mohamed ES, in the work [
26] on the Laguerre-Eld polynomials For more information, see [
27] on Jacobi polynomials. Also in 2013 by already well-known authors Khan N. A., Ara A. in the article [
28] Padé’s Laplace-Adomian method (LAPM) is introduced into the fractional order Riccati differential equation. This method gives more accurate and reliable results than the Adomian Decomposition Method (ADM) and requires less computation.
Hybrid methods for solving the fractional Riccati equation are being developed: semi-analytical methods [
29] in 2016 by the authors Salehi Y., Darvishi M. T., Laplace transform with the method of homotopic perturbation [
30] in 2018 by Aminikhah H., Sheikhani A. H. R., Rezazadeh H., Implicit Hybrid Methods [
31] in 2019 by Syam M.I., et al.
In 2020, a group of authors, Khader M. M., Sweilam N. H., Kharrat B. N., in the article [
32] introduced a numerical treatment using the generalized Euler method (GEM) for the fractional (Caputo sense) Riccati and Logistic differential equations. In the proposed method, the authors invert this model as a difference equation. Numerical solutions obtained using the fourth order Runge-Kutta method (RK4) are compared with the exact solution. The obtained numerical results for the two proposed models show the simplicity and efficiency of the proposed method.
Of interest is the work of the authors Min Cai and Changpin Li [
33] published in 2020. This article is devoted to numerical approximations of fractional integrals and derivatives, in particular, a fractional derivative in the sense of Caputo. However, it also includes almost all results in this regard. Existing results, along with some remarks, are summarized for the applied scientists and engineering community of fractional calculus.
Analysis of the literature on the research topic showed that various numerical solution methods have been developed for the fractional Riccati equation, but:
little information about numerical methods based on finite difference schemes;
no or little comparison of simulation results with real experimental data of processes with saturation;
mostly the order of the fractional derivative, is constant, which may produce unacceptable results when describing experimental data;
approaches to the numerical solution of the Riccati equation with a fractional variable order derivative are poorly studied.
This scientific study is devoted to the elimination of these gaps, the numerical study of the fractional Riccati equation with non-constant coefficients and with a derivative of a fractional variable order of the Gerasimov-Caputo type. In particular, it addresses questions of convergence and stability of finite-difference schemes.
In this article, for a nonlinear fractional equation, in the general case, we prove theorems of approximation, stability and convergence of a nonlocal implicit finite difference scheme (IFDS). Let us solve the IFDS scheme numerically using the modified Newton method (MNM). In the case of the fractional Riccati equation, we prove the theorems of approximation, stability, and convergence for a nonlocal explicit finite difference scheme (EFDS). On specific test examples, we will evaluate the computational accuracy of numerical methods according to Runge’s rule, as well as compare it with the exact solution.
2. The Concept of Heredity and Memory
From a physical point of view, the concept of heredity is almost equivalent to such concepts as: memory, remnant, consequences. In our case, we are talking about a causal relationship between two processes:
—cause,
—consequence. We assume, as in many cases, that the temporary connection is instantaneous, although this speed of exposure is an approximate model. The state
will be determined by another state
at the same time, which is reflected in the formula:
Remark 1. Note that any action like (1) will take time; depending on the model we either take this time into account or not. The famous Italian mathematician Vito Voltera, devoted part of his scientific works to the development of the concept of hereditarity and its application in various branches of science, in particular to problems of ecology and physics. In particular, he devoted several chapters in the books [
3,
34], where he noted that in fact the concept of consequences in physics was introduced by Pekar in 1907, although phenomena such as delayed waves, fatigue of metals, and also other delayed hereditary processes were known earlier, as indicated in the work of Uchaikin V.V. [
5].
The mathematical reflection of the hereditary situation consists in replacing the function
with a functional, in other words, the hereditary operator
, from the background of the process
:
In his studies of the theory of hereditarity and its practical application, V. Voltaire established some restrictions on how the functionals would look, identified important from a practical point of view, properties and studied their consequences. In his work [
3] V. Voltaire formulated the above and called it general laws of heredity.
Linearity principle:
taking into account the integral (
3), the formula (
2) can be rewritten as:
An integral of the form (
4) will be called—
memory functional, where
is
memory function and has the properties described in the following principles:
The invariance principle:
Heredity is called limited if and only if there is such that and .
Two equivalent hereditary systems are at one certain moment in equivalent states only if their dynamic variables coincide on the entire heredity interval , which precedes this moment.
Remark 2. In fact, the described principles reflect only the simplest class of hereditary phenomena. V. Voltera, in his work [3], therefore gives an important remark that, for example, linear heredity “is, however, insufficient to explain some of the phenomena of electrodynamics” [5]. Hypothesis 1. Let us assume that the considered hereditary system at the moments of time t and will be in the same state, provided that its dynamic variables coincide not only at the indicated moments, but also in the previous similar intervals: and , where is the decay time of the hereditary effect.
Voltera theorem:
If at the end of a certain period of time the hereditary system returns to its original state, then the work of external forces is positive [
5].
Since from the point of view of dynamical systems, the state of the system has not changed at all, then the total mechanical energy will also not change, and the positive work
A will reflect the dissipation of energy:
According to the principle of conservation, energy must pass from one form to another, but, firstly, into heat. For example, a whole line of thermodynamic media with memory [
5] is being developed on this fundamental principle.
5. Statement of the Problem for a Nonlinear Fractional Equation
Consider the following Cauchy problem for a nonlinear fractional equation (
10), with variable coefficients:
where
—decision function,
—current time,
—simulation time,
—given constant,
—continuous function,
—a nonlinear function satisfying the Lipschitz condition (
8) with a constant
L in the variable
, and a fractional variable order operator of the form (
6).
Remark 9. The Cauchy problem (11) describes a wide class of dynamic processes with variable memory in saturated environments [39]. Due to the nonlinearity of the Cauchy problem (
11), we will seek its solution using the numerical method of finite difference schemes [
40,
41,
42,
43]. Consider a uniform mesh. To do this, we divide the segment
into
N equal parts—grid nodes with a step
. Then the solution function
will go to the grid solution function
or
, and also
will go to
or
, where
.
An approximation of the derivative of a fractional variable order of the Gerasimov-Caputo type (
6) in Equation (
11) can be written as follows for
as follows:
Substituting (
12) into (
11), we get a discrete analogue of the Cauchy problem:
where
C—specified constant,
,
.
The following lemma is true for the Cauchy problem (
13):
Lemma 1. The coefficients and in Equation (13) for any fixed k have the following properties: - 1.
, moreover, the function is monotone if the function is monotone on the interval ;
- 2.
;
- 3.
.
Proof. The first property follows from the property of the Euler gamma function
, then for any fixed
k:
Further, let the function be given
,
,
. Its derivative:
Note that the function increases monotonically on the segment , the denominator and numerator of are positive, and therefore . Therefore, the monotonicity of the function depends on the sign of the derivative .
The second property of the weight coefficients
follows from the expansion of the sum:
We prove the third property of the weight coefficients as follows: consider the function: for each fixed k the derivative of the function: , therefore, the function is monotonically decreasing and the weight coefficients have property 3. □
Let us investigate the order of approximation of the fractional operator
. Let:
this is an operator approximating the fractional operator
. Then the lemma is true:
Lemma 2. Approximation of the Gerasimov-Caputo type operator of the form (6) satisfies the following estimate:where C—step-independent constant τ. Proof. It should be noted that in the literature [
33,
44] the approximation of the Gerasimov-Caputo operator proposed above is called the
approximation. In these papers, an estimate (
14) is proved for a constant fractional order
. However, using the same technique it is possible to generalize the results to the non-constant fractional order
. □
Lemma 3. The discrete Cauchy problem (13) approximates the original differential problem (11) with the order: Proof. Indeed, taking into account the condition
14 of Lemma 2, we easily obtain the estimate
15. □
10. Computational Accuracy and Test Cases
Let us consider some examples: a non-local implicit finite-difference scheme (IFDS) (
32) resolved by the modified Newton’s method (MNM) (
34), as well as an explicit finite-difference scheme (EFDS) (
38), which were implemented in the Maple 2021 computer mathematics environment.
Example 1. Consider the case when and are constants: and . The rest of the parameters are taken as follows: . Indeed, for such values of the parameters, the condition from Theorem 5 is satisfied: performed: . Then, by (IFDS) (32) and EFDS (38) we get the calculated curves of the Figure 1. Data can be seen from supplementary material. From
Figure 1, it can be seen that the calculated curve has an s-shape, which is typical for dynamic processes in saturated media. It can also be seen that the trend of the calculated curves is increasing with the exit to the steady state. As the value of the
b parameter increases and the value of the
a parameter decreases, the s-shape becomes more pronounced.
Let us evaluate the computational accuracy of EFDS and IFDS.To do this, calculate the maximum error
according to Runge’s rule, that is,
, where
and
—calculated values obtained by formulas (
32) and (
38) on step
and
respectively,
—theoretical order of convergence for IFDS,
—for EFDS. The computational accuracy is determined by the formula:
.
From
Table 1 it can be seen that, with an increase in the nodes of the computational grid, the maximum error decreases and the computational accuracy for EFDS tends to unity, which corresponds to the condition of Theorem 5, and for IFDS it tends to the theoretical one according to (
15 ) Lemma 3.
It should also be noted that the IFDS scheme has better accuracy, and the maximum error is an order of magnitude less than that of the EFDS.
Consider also for this example the case when the condition from Theorem 5:
is violated. To do this, it is enough to take the values of
b an order of magnitude larger, for example,
then:
, and we leave the values of other parameters unchanged. Design curves: for EFDS obtained by the formula (
38), and for IFDS by the formula (
32), are shown in
Figure 2.
Example 2. Using the property of the fractional integral, we show that by solving the Cauchy problem: is the function . Indeed, according to the work [48] with: Notice that , which means for the EFDS schema (38) . Consider (
43), with parameters similar to example 1, when:
,
,
and
. Other parameters:
. Condition from Theorem 5:
executed:
. The calculated curves are shown in
Figure 3.
Let us estimate the computational accuracy: the exact solution EX: , IFDS and EFDS. To do this, we calculate the maximum error between the obtained solutions, that is, , where and —calculated values obtained by one and the second method, respectively.
From
Table 2, as we can see, for EFDS and IFDS schemes, in comparison with the exact EX solution, with an increase in the nodes of the computational grid, the maximum error
decreases, and for IFDS the error value is an order of magnitude less. Computational accuracy
p for EFDS tends to unity, which corresponds to the condition of Theorem 5, and for IFDS, tends to theoretical
according to (
15) Lemma 3.
Similarly to Example 1, consider the case when the condition from Theorem 5:
is violated. We take
b an order of magnitude more,
then:
, and we leave the values of other parameters unchanged. The calculated curves are shown in
Figure 4.
From
Figure 4, we see that the EFDS scheme (
38) falls apart when the condition
is violated, similar to the case from example 1.
Example 3. Consider the case when in the model fractional Riccati Equation (31) the variable order of fractionality: is a monotonically decreasing function, equation coefficients: , , , and the rest of the parameters: . Condition: performed for EFDS: . Modeling results using formulasIFDS (32) and EFDS (38) give the calculated curves in Figure 5. The calculated curves in
Figure 5 obtained by the numerical methods IFDS and EFDS practically coincided. Due to the fact that the coefficients in the model Equation (
31) change according to the harmonic law, their shape resembles the shape of curves for oscillatory processes. We also note that the general trend of the calculated curves is an increasing one when the steady-state regime is reached. Similar dynamics are found in economics when describing cycles and crises [
49].
Let us evaluate the computational accuracy of EFDS and IFDS, similar to Example 1.
For the case of
and
—functions, we see from
Table 3 that, with an increase in the nodes of the computational grid, the maximum error
decreases, and for IFDS the error value is an order of magnitude less. Computational accuracy
p for EFDS tends to unity, which corresponds to the condition of Theorem 5, and for IFDS, tends to theoretical
according to (
15) Lemma 3.
Example 4. Consider the case when, in the model fractional Riccati Equation (31), the variable order of fractionality: is a monotonically increasing function, the coefficients of the equation are: , , , and the remaining parameters: . Condition: performed for EFDS: . Modeling results using formulas IFDS (32) and EFDS (38) give the calculated curves in Figure 6. Let us evaluate the computational accuracy of EFDS and IFDS, similar to Example 3.
We see from
Table 4 that, with an increase in the nodes of the computational grid, the maximum error
decreases, and for IFDS the error value is an order less. Computational accuracy
p for EFDS tends to unity, which corresponds to the condition of Theorem 5, and for IFDS, tends to theoretical
according to (
15) Lemma 3.
Example 5. Consider the case when, in the model fractional Riccati Equation (31), the variable order of fractionality: is a periodic function, the coefficients of the equation are: , , , and the remaining parameters: . Condition: performed for EFDS: . Modeling results using formulas IFDS (32) and EFDS (38) give the calculated curves in Figure 7. Let us evaluate the computational accuracy of EFDS and IFDS, similar to Examples 3 and 4.
We see from
Table 5 that, with an increase in the nodes of the computational grid, the maximum error
decreases, and for IFDS the error value is an order less. Computational accuracy
p for EFDS tends to unity, which corresponds to the condition of Theorem 5, and for IFDS, tends to theoretical
according to (
15) Lemma 3.