Abstract
In this article, we present a new numerical approach for solving a class of systems of fractional initial value problems based on the operational matrix method. We derive the method and provide a convergence analysis. To reduce computational cost, we transform the algebraic problem produced by this approach into a set of nonlinear equations, instead of solving a system of 2 m × 2 m equations. We apply our approach to three main applications in science: optimal control problems, Riccati equations, and clock reactions. We compare our results with those of other researchers, considering computational time, cost, and absolute errors. Additionally, we validate our numerical method by comparing our results with the integer model when the fractional order approaches one. We present numerous figures and tables to illustrate our findings. The results demonstrate the effectiveness of the proposed approach.
Keywords:
optimal control problems; Riccati equations; operational matrix method; vitamin C clock reaction; fractional derivative MSC:
44A10; 35R11
1. Introduction
The area of mathematics that focuses on the integration and differentiation of real or complex orders is known as fractional calculus. Despite its ancient origins, fractional calculus (FC) has gained significant popularity in recent years due to its wide range of applications [1,2,3,4,5,6]. One intriguing aspect of FC is the existence of multiple fractional operators, allowing researchers to choose the most suitable operator to describe real-world phenomena. In [7], the authors solved a system of fractional linear equations, while in [8], Al-Refai discussed some fundamental results for fractional derivatives with nonsingular kernels.
Initially, FC was limited to fractional integrals obtained by iteratively applying integrals to acquire nth-order integrals and replacing k with any integer. The corresponding derivatives were defined using classical methods. However, researchers have discovered new fractional operators with nonlocal and nonsingular kernels that better capture real-world phenomena by utilizing the limiting process and the Dirac delta function [9,10,11,12,13,14,15,16].
Various numerical techniques have been employed to solve nonlinear fractional differential equations, such as the Adomian decomposition method, the homotopy perturbation method, and the collocation method.
Among the numerical tools used to solve fractional problems, the operational matrix method (OMM) is particularly useful. Zamanpour and Ezzati [17] applied the OM of fractional integration of trigonometric functions to numerically solve nonlinear fractional weakly singular two-dimensional partial Volterra integral equations. Syam et al. [18] investigated delay equations and demonstrated the effectiveness of the OMM. They employed OMs and the properties of two-dimensional block-pulse functions (BPFs) to reduce two-dimensional fractional integral equations to systems of algebraic equations. Najafalizadeh and Ezzati [19] provided examples, both linear and nonlinear, to showcase the accuracy, efficiency, and speed of the operational matrix method.
In this paper, we investigate a fractional system of initial value problems given by
subject to the initial conditions
where and are second-order polynomial functions of two variables, , and are unknown functions defined on the interval , T is a positive constant, and are constants. The fractional derivative is considered in the Caputo sense. We can express and as follows:
where and are constants for . Systems (1)–(3) have several applications. For example, clock reactions have been investigated for over a hundred years by researchers such as Richards and Loomis [20], Forbes et al. [21], and Horváth and Nagypál [22]. Clock reactions are intriguing reactions that exhibit a dramatic change, causing a noticeable color change on the surface. The precise definition of this scientific phenomenon is yet to be determined. However, when the iodate and sulfite reaction occurs, it demonstrates the characteristics of a clock reaction, with an induction time followed by a rapid transition. One of the more recent clock reactions discovered is the chlorate–iodine reaction, which only takes place under UV light. This reaction involves the disassembly of iodine molecules, which then react sequentially with the chlorate. Clock reactions are not only important in chemistry education but also have industrial and biological applications. The clock reaction of vitamin C serves as an accessible model system for mathematical chemistry. Kerr, Thomson, and Smith [23] mathematically modeled a substrate-depletive, non-auto-catalytic clock reaction involving household chemicals (vitamin C, iodine, hydrogen peroxide, and starch) using a system of nonlinear ordinary differential equations. Its mathematical model, as described in Write [24,25], can be given as follows:
with
where are positive real constants, , and and are unknown functions with . Another interesting application of Systems (1)–(3) is the set of nonlinear Riccati differential equations (RDEs). RDEs find applications in various fields such as physics, algebraic geometry, and conformal mapping theory, see [9,10]. They also arise in numerous real-world problems. The OMM can be employed to solve systems of RDEs. The OMM facilitates the reduction of nonlinear fractional-order RDEs into an algebraic system. This approach offers advantages such as low setup costs for the equations without the need for projection techniques like Galerkin or collocation methods. It is worth mentioning that we consider a system of equations because the applications we are planning to discuss involve such systems. However, we can generalize this technique to equations. In that case, we obtain a system of algebraic equations. Furthermore, we can also study general nonlinear equations. However, in this case, we end up with a system of equations, and we need to employ numerical methods like Newton’s method to solve this nonlinear system.
As an example of the problems that we will discuss as an application of Systems (1)–(3), consider the following problem:
with
where are constants for , .
The third application which we discuss in this paper is optimal control problems (OCPs). Numerous fields, including aerospace engineering, robotics, economics, and finance, utilize optimal control. In aerospace engineering, optimal control is employed to design aircraft and spacecraft control systems that achieve desired trajectories while minimizing fuel consumption. The development of motion planning and trajectory optimization algorithms for robots in robotics heavily relies on optimal control techniques. In the field of finance, optimal control is applied to devise investment plans that maximize returns while adhering to predetermined risk levels, see [26,27]. We will study the following OCP:
subject to
where , , , and .
The article is organized into six sections. Section 1 provides a brief literature overview of the applications related to the problem being studied and introduces the OMM as the solution approach. Section 2 presents the definitions and key findings for the BPF and Caputo derivative. In Section 3, we develop the OM approach. The convergence analysis is discussed in Section 4. Section 5 presents the numerical results, showcasing the application of the method. Finally, in Section 6, we provide conclusions and discuss the findings in detail.
2. Preliminaries
We present the definitions of the Caputo derivative and the fractional integral operator [28]. Additionally, we provide the definition and main properties of the block-pulse functions [18].
Definition 1.
A real function is said to be in the space if there exists a real number such that where and it is said to be in the space if [9].
Definition 2.
For and , the Caputo fractional derivative is defined by
where Γ is the Gamma function [9].
Using the substitution , we can observe that
The Riemann–Liouville fractional integral operator is given as follows.
Definition 3.
The Riemann–Liouville fractional integral operator for is defined by [28]
The following two properties are important as they connect the Caputo derivative with the fractional integral operator.
and
where . For more details, we refer the reader to [9,28].
Another important concept in this paper is the BPF, which is defined as follows [18].
Definition 4.
Let m be a positive integer and T be a given positive real number. Then, the lth BPF is a function from into which is given by
where and .
We can express the set of block-pulse functions as a vector function of the form
The BPFs have two important properties: the product relation and the orthogonality relation.
Theorem 1.
Proof.
This follows directly from the fact that the BPFs are defined on disjoint sub-intervals of length h. □
Following Theorem 1, it is established that any function in can be expressed in terms of the BPFs as stated in Theorem 2.
Theorem 2.
If , then
where
Proof.
From Equation (22), we can express the function in matrix form as follows:
where .
3. Method of Solution
In this section, we outline the method used to solve Systems (1)–(3). The OM approach, combined with the properties of the Caputo derivative and the BPFs, provides an efficient and accurate technique for solving fractional differential equations.
First, we approximate the unknown functions and using the BPFs as shown in Equation (22). This approximation allows us to express the functions in terms of a finite number of basis functions . Then, we obtain the following
This can be rewritten in matrix form as
where and . Next, we derive the OM of the product of the functions and , as described in Theorem (3). This operational matrix enables us to represent the product of the functions in matrix form.
Theorem 3.
Let be two functions. Then,
where and ⊙ denotes the Hadamard product.
Proof.
Theorem 3 establishes the relationship between the product of the functions and and the BPFs . The product can be represented as a linear combination of the BPFs with coefficients given by the Hadamard product of the coefficient vectors and . This result provides a convenient form for evaluating the product of the functions in terms of the BPFs and their corresponding coefficients. Similar argument can be used to prove that if , then
where
In the next theorem, we derive the OM of the Riemann–Liouville fractional integral operator .
Theorem 4.
The OM of the Riemann–Liouville fractional integral operator is
Proof.
For any , we have
Let
then
Let and . Then, the operational matrix of is
□
Now, we will describe how to use the OMs to solve Systems (1)–(3). Theorem 2 implies that the OM of the constant function is
Taking the fractional integral operator for both sides of Equations (34) and (35) and using Equation (17), we obtain
The orthogonality relation in Theorem 1 implies that
Since is an upper triangular matrix, the components of Equations (40) and (41) can be written as
where
for . Therefore, we will solve Systems (40) and (41) iteratively. In each iteration, we solve a system as in Equations (42) and (43). This approach reduces the computational cost of the form of nonlinear Systems (42) and (43), as we solve m systems of equations instead of solving a nonlinear system of 2 m × 2 m equations and unknowns.
4. Convergence Analysis
Let be a function, and its norm is defined by
From Equation (44), we can approximate by
In the first theorem, we aim to prove that the mean square error achieves its minimum value when is given by Equation (23).
Theorem 5.
Proof.
Let . Using Theorem 1, we have
Then,
Theorem 1 implies that
For any , we have
Thus, reaches its minimum value when is given by Equation (23) for □
Theorem 6.
Let be a continuous bounded function in . Then, converges pointwise to on . Moreover,
Proof.
Using Equation (23), we have
Let . Partition the interval into q uniform sub-intervals of length h. Using the Riemann integral formula with the left-end point, we have
Since is a continuous function, we have
Similarly, for any , we can prove that
Thus, converges pointwise to on . Now, using Theorem 1, we have
□
Now, we want to find the order of the mean square error in the approximation of on the interval .
Theorem 7.
Let be a differentiable function on such that
for all , where Π is a positive real number. Then,
where , , is given by Equation (45), and .
Proof.
Then, by the mean value theorem for integrals, we have
where and . By the mean value theorem and Equation (47), we obtain
where . □
Now, we will discuss the pointwise convergence of and .
Theorem 8.
Let and be bounded continuous functions in . Then:
- is pointwise convergent to .
- is pointwise convergent to .
- is pointwise convergent to .
Proof.
Assume that and are bounded continuous functions in . Then, there exist two positive real numbers and such that
Let . By Theorem (6), and are pointwise convergent to and , respectively. Then, for , we have
for some positive integer . Then, for , we have
Then, is pointwise convergent to . The proofs of Parts (2) and (3) are similar to the proof of Part (1). □
Finally, we will prove the main theorem, which is the convergence theorem.
Theorem 9.
Proof.
Let and be the exact solutions of Systems (1)–(3). Let and be the approximate solutions of Systems (1)–(3) given by Equation (22). Then, we have
Let
From the proof of Theorem 5, we have
Therefore, there exists a positive integer such that for any , we have
By the triangle inequality, we obtain
where
and
5. Numerical Results
In this section, we will examine three applications utilizing the solution method described in Section 3. These applications include the clock reaction of vitamin C, a system of Riccati equations that arises in control theory, and a problem from optimal control theory.
5.1. Clock Reaction of Vitamin C
In this subsection, we solve Systems (6)–(8) for , , and . We will investigate the influence of the fractional derivative on the solution. We compare the behavior of the solution as approaches 1 with the results presented in [23]. Additionally, we will discuss the impact of and .
In all calculations in this subsection, we set the number of BPFs m to 40. Figure 1 and Figure 2 depict the approximate solutions of and for various values of : 0.7, 0.8, 0.9, 0.95, and 1. To facilitate comparison with [23] and demonstrate the behavior of the approximate solution using our proposed method, we provide sketches of the approximate solutions of and for in four distinct regions, as shown in Figure 3, Figure 4, Figure 5 and Figure 6. In Figure 7, we present the approximate solutions of and for over the entire interval .
Figure 1.
The approximate solution for .
Figure 2.
The approximate solution for .
Figure 3.
The approximate solutions and for on .
Figure 4.
The approximate solutions and for on .
Figure 5.
The approximate solutions and for on .
Figure 6.
The approximate solutions and for on .
Figure 7.
The approximate solutions and for on .
To numerically measure the accuracy of the approximate solutions, and since the exact solution of Systems (1)–(3) is unknown, we compute the residual errors defined as follows:
Figure 8 illustrates the residual errors of and for . Since the residual errors are nearly zero, except at the beginning of the interval, we present them over a large interval to demonstrate the error behavior. Additionally, we provide plots of the residual errors over smaller intervals to showcase their magnitudes.
Figure 8.
Residual errors of and for .
In Figure 9, we analyze the behavior of the solutions for different values of in comparison with each other.
Figure 9.
The approximate solutions against each other.
Figure 10.
The approximate solutions and for .
Figure 11.
The approximate solutions and for .
Finally, we study the length of the induction period. The length of the induction period is defined as the value of r when . Table 1 reports the length of the induction period for , , and across different values of .
Table 1.
Length of the induction period when , , and .
Furthermore, we compute the length of the induction period for and different values of . The results are presented in Table 2.
Table 2.
Length of the induction period for and .
5.2. System of Riccati Equations
Consider the following system of fractional Riccati equations:
Then, the approximate solutions of and for different values of are given in Figure 12 and Figure 13, respectively. Let us define the maximum error as follows:
Figure 12.
The approximate solution for different values of .
Figure 13.
The approximate solution for different values of .
Then, the errors in our approach are reported in Table 3.
Table 3.
The errors for .
5.3. Optimal Control Problem
Consider the following optimal control problem [29,30,31]:
subject to
To minimize J, we follow the method described in [30]. The dynamics of the state and adjoint equations are given in fractional form as
where and are the state and co-state variables, respectively, while the optimal control function is given by
To solve the previous system using the OMM, we assume that and we use the linear shooting method to find . We compared our results with those in [29,30] based on computational time, and the comparison is reported in Table 4. We also report the values of J in Table 5. To compare the computational time between our approach and the approaches in [29,30], we implemented their approaches, and the results are reported in Table 5.
Table 4.
The CT in seconds and the value of J.
Table 5.
The absolute error in OMM and in [29,31].
In addition, the absolute errors for the state functions in [29,31] are given in Table 5 for when Legendre and Bernoulli polynomials of a degree of at most five were used.
6. Conclusions and Discussion of the Results
In this article, we have presented a new numerical approach for solving a class of systems of fractional initial value problems based on the operational matrix method. The method has been derived, and a convergence analysis has been provided. By effectively simplifying the resulting algebraic system, we have reduced the computational cost by transforming the problem into a set of nonlinear equations instead of solving a system of 2 m × 2 m equations.
We have applied our approach to three main applications in science: optimal control problems, Riccati equations, and clock reactions. The clock reaction not only holds significance in chemistry education but also has industrial and biological applications. We have compared our results with those of other researchers, considering computational time, cost, and absolute errors. Additionally, we have validated our numerical method by comparing our results with the integer model when the fractional order approaches one. To support our findings, we have included numerous figures and tables.
Based on the presented figures and tables, we can draw the following conclusions:
- Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7 reveal that the behavior of concentrations and differs based on the value of when . The domain can be divided into four parts: rapid decay of and in the first interval, linear increase in and linear decay of in the second region, fast increase in and fast decay of in the third region, and linear increase in and rapid decay of in the fourth region. This behavior is consistent with [23].
- Figure 5 visually indicates the end of the induction period .
- Figure 8 shows that the residual errors of and are approximately , providing strong numerical evidence for the convergence of the proposed method.
- Figure 9 compares the behavior of the two approximate solutions and confirms their similarity to [23].
- As approaches one, the approximate solutions converge to the solutions in [23].
- Table 3 presents the maximum error for different values of , which is approximately . This indicates that the approximate solution converges to the exact solution.
- Table 4 compares the computation time in our approach with those in [29,31] for the optimal control problem. It is evident that our approach requires significantly less computational time compared to [29,31]. This demonstrates that our approach converges faster to the exact solution, which is attributed to reducing our algebraic system to a set of algebraic systems.
- Table 5 compares the absolute error in our approach with those in [29,31]. It is evident that the absolute error in our approach is smaller compared to [29,31]. This serves as strong numerical evidence that our approach converges faster to the exact solution.
- We can generalize our approach to boundary value problems using the linear shooting method. To do this, we assume initial conditions and , and then we determine these values by solving the system using the given boundary conditions.
Author Contributions
Methodology, S.M.S.; software, S.M.S.; formal analysis, S.M.S.; investigation, S.M.S.; writing—original draft, R.M.K.; writing—review editing, S.H.A.; supervision, Z.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Deanship of Scientific Research at Umm Al-Qura University, grant number 23UQU4310382DSR002.
Data Availability Statement
No new data were created or analyzed in this study. Data sharing is not applicable to this article.
Acknowledgments
The authors would like to thank the Deanship of Scientific Research at Umm Al-Qura University for supporting this work.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Amin, R.; Ahmad, H.; Shah, K.; Bilal Hafeez, M.; Sumelka, W. Theoretical and computational analysis of nonlinear fractional integro-differential equations via collocation method. Chaos Solitons Fractals 2021, 151, 111252. [Google Scholar] [CrossRef]
- Biazar, J.; Sadri, K. Solution of weakly singular fractional integro-differential equations by using a new operational approach. J. Comput. Appl. Math. 2019, 352, 453–477. [Google Scholar] [CrossRef]
- Sahu, P.; Saha Ray, S. Legendre spectral collocation method for the solution of the model describing biological species living together. J. Comput. Appl. Math. 2016, 296, 47–55. [Google Scholar] [CrossRef]
- Roul, P.; Meyer, P. Numerical solutions of systems of nonlinear-differential equations by Homotopy-perturbation method. Appl. Math. Model. 2011, 35, 4234–4242. [Google Scholar] [CrossRef]
- Shakeri, F.; Dehghan, M. Solution of a model describing biological species living together using the variational iteration method. Math. Comput. Model. 2008, 48, 685–699. [Google Scholar] [CrossRef]
- Hatamzadeh-Varmazyar, S.; Masouri, Z.; Babolian, E. Numerical method for solving arbitrary linear differential equations using a set of orthogonal basis functions and operational matrix. Appl. Math. Model. 2016, 40, 233–253. [Google Scholar] [CrossRef]
- Odibat, Z.M. Analytic study on linear systems of fractional differential equations. Comput. Math. Appl. 2010, 59, 1171–1183. [Google Scholar] [CrossRef]
- Al-Refai, M. Fundamental results on systems of fractional differential equations in- volving Caputo-Fabrizio fractional derivative. Jordan J. Math. Stat. 2020, 13, 389–399. [Google Scholar]
- Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
- Syam, S.M.; Siri, Z.; Altoum, S.H.; Kasmani, R.M. Analytical and Numerical Methods for Solving Second-Order Two-Dimensional Symmetric Sequential Fractional Integro-Differential Equations. Symmetry 2023, 15, 1263. [Google Scholar] [CrossRef]
- Katugampola, U.N. New approach to generalized fractional integral. Appl. Math. Comput. 2011, 218, 860–865. [Google Scholar] [CrossRef]
- Baleanu, D.; Jaiami, A.; Sajjadi, S.; Mozyrski, D. A new fractional model and optimal control of a tumor-immune surveillance with non-singular derivative operator. Chaos 2019, 29, 083127. [Google Scholar] [CrossRef]
- Caputo, M.; Fabrizio, M. A new definition of fractional derivative without singular kernel. Prog. Fract. Differ. Appl. 2015, 1, 73–85. [Google Scholar]
- Atangana, A.; Baleanu, D. New fractional derivative with non-local and non-singular kernel. Therm. Sci. 2016, 20, 757–763. [Google Scholar] [CrossRef]
- Da Vanterler, J.; Sousa, C.; Capelas de Oliveira, E. A Gronwall inequality and the Cauchy-type problem by means of Ψ-Hilfer operator. arXiv 2017, arXiv:1709.03634. [Google Scholar] [CrossRef]
- Youbi, F.; Momani, S.; Hasan, S.; Al-Smadi, M. Effective numerical technique for nonlinear Caputo-Fabrizio Systems of fractional Volterra Integro-differential equations in Hilbert space. Alex. Eng. J. 2022, 61, 1778–1786. [Google Scholar] [CrossRef]
- Zamanpour, I.; Ezzati, R. Operational matrix method for solving fractional weakly singular 2D partial Volterra integral equations. J. Comput. Appl. Math. 2023, 419, 114704. [Google Scholar] [CrossRef]
- Syam, M.I.; Sharadga, M.; Hashim, I. A numerical method for solving fractional delay differential equations based on the operational matrix method. Chaos Solitons Fractals 2021, 147, 110977. [Google Scholar] [CrossRef]
- Najafalizadeh, S.; Ezzati, R. A block pulse operational matrix method for solving two-dimensional nonlinear integro-differential equations of fractional order. J. Comput. Appl. Math. 2017, 326, 159–170. [Google Scholar] [CrossRef]
- Richards, W.T.; Loomis, A.L. The chemical effects of high frequency sound waves I. A preliminary survey. J. Am. Chem. Soc. 1927, 49, 3086–3100. [Google Scholar] [CrossRef]
- Forbes, G.S.; Estill, H.W.; Walker, O.J. Induction periods in reactions between thiosulfate and arsenite or arsenate: A useful clock reaction. J. Am. Chem. Soc. 1922, 44, 97–102. [Google Scholar] [CrossRef]
- Horváth, A.K.; Nagypál, I. Classification of clock reactions. ChemPhysChem 2015, 16, 588–594. [Google Scholar] [CrossRef] [PubMed]
- Kerr, R.; Thomson, W.M.; Smith, D.J. Mathematical modelling of the vitamin C clock reaction. R. Soc. Open Sci. 2019, 6, 181367. [Google Scholar] [CrossRef] [PubMed]
- Wright, S.W. Tick tock, a vitamin C clock. J. Chem. Edu. 2002, 79, 40A. [Google Scholar] [CrossRef]
- Wright, S.W. The vitamin C clock reaction. J. Chem. Edu. 2002, 79, 41. [Google Scholar] [CrossRef]
- Rawlings, J.B.; Mayne, D.Q.; Diehl, M. Model Predictive Control: Theory and Design, 2nd ed.; Nob Hill Publishing: Santa Barbara, CA, USA, 2017. [Google Scholar]
- Mehta, P.G. Principles of Control Systems Engineering; PHI Learning Pvt. Ltd: New Delhi, India, 2011. [Google Scholar]
- Samko, S.G.; Kilbas, A.A.; Marichev, O.I. Fractional Integrals and Derivatives: Theory and Applications; Gordon and Breach: Yverdon, Switzerland, 1993. [Google Scholar]
- Lotf, A.; Dehghan, M.; Yousef, S.A. A numerical technique for solving fractional optimal control problems. Comput. Math. Appl. 2011, 62, 1055–1067. [Google Scholar] [CrossRef]
- Agrawal, O.P.; Baleanu, D. A Hamiltonian Formulation and a Direct Numerical Scheme for Fractional Optimal Control Problems. J. Vib. Control 2007, 13, 1269–1281. [Google Scholar] [CrossRef]
- Keshavarz, E.; Ordokhani, Y.; Razzaghi, M. A numerical solution for fractional optimal control problems via Bernoulli polynomials. J. Vib. Control 2016, 22, 3889–3903. [Google Scholar] [CrossRef]
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. |
© 2023 by the authors. 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 (https://creativecommons.org/licenses/by/4.0/).