Abstract
In this manuscript, a numerical method based on the conjunction of Paraskevopoulos's algorithm and operational matrices is developed to solve numerically the multi-order linear and nonlinear fractional differential equations. By means of this conjunction, the multi-order problem is decomposed into a system of differential equations of fractional order which are then solved by employing operational matrices approach. The accuracy and efficiency of the method is examined by taking some examples. In addition, the numerical results presented in Pak et al. [Analytical solutions of linear inhomogeneous fractional differential equation with continuous variable coefficients. Adv Differ Equ. 2019;2019(256):1–22] are improved in our work.
1. Introduction
Fractional calculus (FC) is a study of derivatives and integration of arbitrary order. At the initial phases of its development, it was considered as an abstract mathematical idea with nearly no applications. But, now the situation is entirely different with FC and it considered to be the most useful and important topic among the scientific community. The various important phenomena of science and engineering have been well described with the use of fractional derivatives, including, partial bed-load transport, diffusion model, dynamics of earthquakes, viscoelastic systems, biological systems, chaos, and wave propagation, (see [Citation1–7]) and references therein. Furthermore, FDEs have been used in the modelling of important physical phenomena appearing in the study of control theory, electrostatic, study of polymers, visco-elasticity, signal and image processing phenomena, computer networking, and mathematical biology (see [Citation8–13]) and references therein.
The exact solution of most of the fractional differential equations (FDEs) is difficult to find due to the involvement of the fractional differential and integral operators in the problem. So, it is a natural way to develop the numerical methods to solve them numerically. Operational matrices approach coupled with orthogonal polynomials is one of the efficient and stable numerical tool used to find the approximate solutions of fractional ordinary and partial differential equations (see [Citation14–16]). This approach is easy in use which has the ability to transform the FDEs into a system of algebraic equations. Finally, this approach approximates the solution as basis vectors of orthogonal polynomials (see [Citation17–21]).
Motivated by aforementioned studies, we propose a numerical method based on the extension of Paraskevopoulos's method in conjunction with shifted Legendre polynomials (SLPs) to solve numerically the multi-order linear and nonlinear FDEs with constant and variable coefficients. Under this approach, the multi-order fractional problem is decomposed into a system of FDEs which are then solved by using operational matrices approach. Finally, the solution is approximated as a basis vectors of orthogonal SLPs. We also compare the numerical results obtained using our method with the results obtained in [Citation22]. We observe that our proposed method improves the numerical results presented in [Citation22]. For instance, (see Example 7.5, Figure and Table ).
The manuscript is organized as follows: Some essential definitions, properties and results of FC are given in Section 2. In Section 3, the properties of SLPs are recalled. In Section 4, a generalized operational matrix in the sense of Caputo fractional differential operator is studied. In Section 5, the multi-order fractional problems are reduced into a system of FDEs. In Section 6, a numerical algorithm based on Paraskevopoulos's method in conjunction with operational matrices approach is developed to solve linear and nonlinear multi-order FDEs with constant and variable coefficients. The numerical accuracy of the proposed method is examined by taking some examples in Section 7. Finally, in Section 9, the manuscript ends with a brief conclusion and some remarks.
2. Preliminary remarks on FC
Some important definitions and results are recalled in this section which are indispensable to construct the proposed numerical algorithm.
Definition 2.1
The (left side) Riemann–Liouville integral of order is given as (see [Citation10]): (1) (1)
Definition 2.2
The (left side) Riemann-Liouville derivative of order is given as (see [Citation10]): (2) (2)
Definition 2.3
The (left side) Caputo derivative of order is given as (see [Citation10]): (3) (3) where m is an integer, t>0, and .
For the Caputo derivative, we have the following observations: (4) (4) (5) (5) Note the following basic results:
Lemma 2.1
Let for , and suppose , , such that, . Then, .
Proof.
By definition of Caputo differential operator, we have (6) (6) where m is an integer defined as . Now, according to our assumption, which implies that is a continuous function, and . Consequently, for , the integral in (Equation6(6) (6) ) vanishes. Hence, .
3. Properties of SLPs
The following recurrence formulae are used to evaluate the orthogonal Legendre polynomials (LPs) on the interval of orthogonality (see [Citation23]): (7) (7) Now by setting, x = 2t−1 in (Equation7(7) (7) ), the SLPs on the interval of orthogonality can be expressed with the aid of the following analytical form, (see [Citation23]) (8) (8) The orthogonality condition of SLPs can be expressed as (9) (9)
3.1. Functions approximation
Suppose , then it can be demonstrated as a basis vectors of SLPs, (see [Citation23]) (10) (10) Using (Equation9(9) (9) ), the coefficients can be determined as (11) (11) For the practicality, considering the first n + 1-terms of (Equation10(10) (10) ), we have (12) (12) where (13) (13) and (14) (14)
4. Generalized derivative operational matrix of SLPs in Caputo sense
Lemma 4.1
Let be defined in (Equation14(14) (14) ), then see [Citation24] (15) (15) where (16) (16) For example, for m = 9, we have
In general for m odd, we have and for m even, we have
Lemma 4.2
Let be the SLPs as defined in (Equation8(8) (8) ), then .
Proof.
Using the definition of SLPs, we have (17) (17) Using (Equation17(17) (17) ), the SLPs of degree is demonstrated as (18) (18) Applying Caputo differential operator, and its linearity to (Equation18(18) (18) ), we have (19) (19) Since, , then using the results of (Equation4(4) (4) )–(Equation5(5) (5) ), we have (20) (20) Consequently, (21) (21)
Theorem 4.1
Let be a function vector of SLPs and suppose , then (22) (22) where is a generalized derivative operational matrix in Caputo sense, demonstrated as (23) (23) where and is given as (24) (24)
Proof.
Using (Equation8(8) (8) ), (Equation5(5) (5) ), and Lemma 4.2, we have (25) (25) We can approximate by first n + 1-terms of SLPs, as (26) (26) where (27) (27) By inserting, (Equation26(26) (26) ) into (Equation25(25) (25) ), we have (28) (28) By putting the value of in (Equation28(28) (28) ), and after some simplification, we have (29) (29) For simplicity, we have (30) (30) Now (Equation29(29) (29) ) can be expressed as (31) (31) (Equation31(31) (31) ) can be written in vector notation as (32) (32) Moreover, using Lemma 4.2, we have (33) (33) Equations (Equation32(32) (32) ) and (Equation33(33) (33) ) together prove the required result.
5. Decomposition of multi-order FDEs into a system of FDEs
Consider the multi-order FDEs as (34) (34) where , , f can be a nonlinear in general, and is a Caputo derivative of order α defined in (Equation3(3) (3) ). Problem (Equation34(34) (34) ) can be decomposed into a system of FDEs, as
Set and suppose, (35) (35) Case(1) If , then we define (36) (36) Claim: .
If , then .
Hence the claim is verified.
If , then by Lemma 2.1, , and as , Therefore .
Case (2) Consider . If , then define (37) (37) As .
If , then define, (38) (38) Claim: . As , then by Lemma 2.1 and , .
Hence . Further, we define: (39) (39) Claim: As .
The process will be continued until the decomposition of the problem (Equation34(34) (34) ) into a system of FDEs.
5.1. Implementation to the problem
In this section, a multi-order fractional differential equation is decomposed into a system of FDEs using the algorithm developed in Section 5.
Consider the following multi-order fractional differential equation (40) (40) subject to the following initial conditions (41) (41) Set, , we have
6. Application of operational matrices method of SLPs
In this section, we apply the Legendre operational matrix method to find approximate solution of linear and nonlinear multi-order FDEs by converting them into a system of FDEs.
6.1. Algorithm for the linear multi-order FDEs
Consider the linear system of FDEs established after implementation of the method studied in Section 5: (42) (42) with initial conditions (43) (43) where and are real constants. The differential operator represents the Caputo fractional derivative of order α. We can approximate and by SLPs as, (44) (44) (45) (45) Here is known, but is unknown vector. Using (Equation22(22) (22) ) and (Equation44(44) (44) ), we have (46) (46) Employing Equation (Equation44(44) (44) )–(Equation45(45) (45) ) and calculating the residuals for the system (Equation42(42) (42) ), it yields (47) (47) Now using typical Tau method [Citation25], we can generate linear algebraic equations by applying the following: (48) (48) Using (Equation43(43) (43) ), (Equation23(23) (23) ), and (Equation44(44) (44) ), we have (49) (49) Equations (Equation48(48) (48) ), and (Equation49(49) (49) ) together generate linear algebraic equations, corresponds to (Equation42(42) (42) ). By solving these equations for unknown coefficients of the vector , we consequently obtained the solutions for () of (Equation42(42) (42) ) under initial conditions (Equation43(43) (43) ).
6.2. Algorithm for the nonlinear multi-order FDEs
In this section, we develop the numerical algorithm to solve nonlinear multi-order FDEs with the support of the theory developed in Section 5:
Consider, (50) (50) together with initial conditions defined in (Equation43(43) (43) ). Here generally a nonlinear function for Substituting the approximation of and into above Equation (Equation50(50) (50) ), we have (51) (51) Equations (Equation51(51) (51) ) are exactly satisfied at the first roots of . So, we collocate these equations at root points. Consequently, these equations together with (Equation49(49) (49) ) produce nonlinear algebraic equations with unknown coefficients of . Finally, approximated solution for () can be derived by solving these nonlinear algebraic equations using Newton's method.
7. Illustrative examples
This section is devoted to demonstrate the applicability of our developed numerical method by taking some test examples. We solve numerically the multi-order linear and nonlinear FDEs in this section. The numerical results are demonstrated by using tables and plots. The software MATLAB is used for numerical calculations and simulations.
Example 7.1
Consider the following multi-order fractional Bagley–Torvik equation (52) (52)
subject to the integer-order initial conditions (53) (53) The source term is given as The exact solution at is given below Using the algorithm studied in Section 5, the problem (Equation52(52) (52) )–(Equation53(53) (53) ) can be converted into a system of FDEs, as (54) (54) Then the functions , and , and the source term can be approximated using the first three terms of SLPs as (55) (55) where , , and . The Legendre operational matrices corresponding to (Equation54(54) (54) ) can be expressed as (56) (56) The residuals for the system (Equation54(54) (54) ) can be evaluated using Equation (Equation55(55) (55) ), and the fractional operational matrix as (57) (57) where are determined by comparing the coefficients of . Now making use of Equation (Equation48(48) (48) ), and , we have (58) (58) Now by using Equation (Equation49(49) (49) ) along-with the initial conditions of (Equation54(54) (54) ), we have (59) (59) The unknowns can be easily calculated by solving the system of Equations (Equation58(58) (58) )–(Equation59(59) (59) ) by using any computational software. So, we have (60) (60) Finally, the solution can be expressed as (61) (61)
Remark 7.1
By increasing the number of terms of SLPs, the exact solution and the approximate solution of the problem, (Equation52(52) (52) )–(Equation53(53) (53) ) coincide. For example, by considering the first four terms of SLPs, we have The maximum absolute error is zero because the exact solution and the approximate solution are same. Similarly by considering the first five terms of SLPs, we have the same result.
Remark 7.2
In fact the result of Example 1 is in a complete agreement with the result of ([Citation19], Example 1) and particularly for . In ([Citation19], Example 1), .
Example 7.2
Consider the following inhomogeneous nonlinear fractional differential equation (62) (62)
subject to the integer-order initial conditions (63) (63) The source term is given as where , and . The exact solution is given below Using the algorithm studied in Section 5, the problem (Equation62(62) (62) )–(Equation63(63) (63) ) can be converted into a system of FDEs, as (64) (64)
Remark 7.3
The results of Tables show that the results obtained by using our PM are in a good agreement with the results obtained by using the method in ([Citation19], Example 4).
Example 7.3
Consider the following inhomogeneous nonlinear FDE (65) (65)
subject to the integer-order initial conditions (66) (66) The source term is given as where , and . The exact solution is given below Using the algorithm studied in Section 5, the problem (Equation65(65) (65) )–(Equation66(66) (66) ) can be converted into a system of FDEs, as (67) (67)
Example 7.4
Consider the following inhomogeneous FDE (68) (68)
subject to the integer-order initial conditions (69) (69) The source term is given as where , and . The exact solution at can be easily determined, given as Using the algorithm studied in Section 5, the problem (Equation68(68) (68) )–(Equation69(69) (69) ) for a fixed value of , can be converted into a system of FDEs, as (70) (70) Then the functions , and can be approximated by using the first three terms of shifted Lagendre polynomials as (71) (71) where , , and . The Lagendre operational matrices corresponding to (Equation70(70) (70) ) can be expressed as (72) (72) Now using Equation (Equation51(51) (51) ), the system (Equation70(70) (70) ) can also be written as (73) (73) (74) (74) Considering the initial conditions and using Equations (Equation48(48) (48) ) and (Equation73(73) (73) ) can be converted into a system of algebraic equations, we have (75) (75) Now (Equation74(74) (74) ) can be converted into a system of nonlinear algebraic equations by approximating it at the collocation points, , and , we have (76) (76) Solving (Equation75(75) (75) ) and (Equation76(76) (76) ), we have (77) (77) Finally, the solution is approximated as (78) (78)
Example 7.5
Consider the following inhomogeneous nonlinear FDE (79) (79)
subject to the integer-order initial conditions (80) (80) The source term is given as where , and . The exact solution is given below Using the algorithm studied in Section 5, the problem (Equation79(79) (79) )–(Equation80(80) (80) ) can be converted into a system of FDEs, as (81) (81)
8. Results and discussion
We check the accuracy and stability of our developed numerical algorithm by solving different examples. The exact and numerical solutions are compared at different scale levels and for different choices of fractional parameters, see Figures , , and and Tables and . We examine that as fractional order approaches to the exact order, the approximate solution approaches to the exact solution, see Figure . It is also observed that with the increase in scale levels, the approximate solutions are in a good agreement with the exact solutions, see Figures , , and Table . We also compute the absolute errors and observe that with the increase in scale levels, the amount of absolute errors decreases significantly, see Figure , Tables , and . It is worth to mention that even at low scale level, our approximate solution is in a good agreement with the exact solution, see Figure .
We determine the analytical solution for each example using our proposed numerical algorithm. For example, in Example 7.1, the analytical solution is obtained for fractional order derivatives using the proposed numerical algorithm. The obtained numerical results are then compared with the exact solution to test the accuracy of the proposed method. Similarly, the analytical solutions for Examples 7.2 and 7.3 are computed for fractional order derivatives using the same procedure as used in Example 7.1. However, in Examples 7.4 and 7.5, the analytical solutions are determined for integer order derivatives to test the accuracy and applicability of the proposed numerical algorithm for different choices of the fractional parameter, . We observe that the results computed using the proposed algorithm are in a good agreement with the exact solution at various values of .
9. Conclusion
We proposed an approximate method to solve linear and nonlinear multi-order FDEs by extending the Paraskevopoulos's method for orthogonal SLPs. Our proposed method is based on decomposing the multi-order FDEs into a system of FDEs and then the resultant system is solved using the operational matrix approach. We checked the accuracy and efficiency of the method by solving various linear and nonlinear FDEs with constant and variable coefficients. We examined that with the increase of scale level, the approximate solutions were in a good agreement with the exact solutions. We also demonstrated the high efficiency of the method by determining the amount of absolute error and observed that as we increased the scale level, this amount was decreased significantly. It is important to note that only considering the few terms of SLPs, we obtained the satisfactory results. In addition, our proposed method has advantage to other methods, like Homotopy perturbation method, because in our case, the perturbation, linearization, or discritization are not necessary to be implemented. We also improved the numerically obtained results presented in [Citation22]. Finally, our proposed method is fit to solve both linear and nonlinear problems of fractional order with constant and variable coefficients.
Acknowledgments
We thank the anonymous reviewers for their careful reading of our manuscript and their many insightful comments and suggestions which improve the quality of our manuscript.
Author's contributions
All authors contributed equally to this article. All authors read and approved the final manuscript.
Disclosure statement
The authors declare that they have no competing interests.
References
- Ahmed E, Elgazzar AS. On fractional order differential equations model for nonlocal epidemics. Physica A:Statistical Mechanics and its Applications. 2007;379(2):607–614.
- Sun H, Chen D, Zhang Y, et al. Understanding partial bed-load transport: experiments and stochastic model analysis. J Hydrol (Amst). 2015;521:196–204.
- Chen W, Sun H, Zhang X, et al. Anomalous diffusion modeling by fractal and fractional derivatives. Comput Math Appl. 2010;59(5):1754–1758.
- Sun H, Chen W, Chen Y. Variable-order fractional differential operators in anomalous diffusion modeling. Phys A. 2009;388(21):4586–4592.
- Kilbas A, Srivastava H, Trujillo J. Theory and application of fractional differential equations. New York (NY): Elsevier Science B.V.; 2006.
- Rossikhin Y, Shitikova M. Application of fractional derivatives to the analysis of damped vibrations of viscoelastic single mass systems. Acta Mech. 1997;120(1):109–125.
- Chen W. A speculative study of 2/3-order fractional Laplacian modeling of turbulence: some thoughts and conjectures. Chaos. 2006;16(2):023126.
- Agarwal R, Benchohra M, Hamani S. Boundary value problems for differential inclusions with fractional order. Adv Stud Contemp Math. 2008;12(2):181–196.
- Miller K, Ross B. An introduction to the fractional calculus and fractional differential equations. New York: Wiley; 1993.
- Podlubny I. Fractional differential equations. New York: Academic Press; 1998.
- Shah A, Khan R, Khan A, et al. Investigation of a system of nonlinear fractional order hybrid differential equations under usual boundary conditions for existence of solution. Math Methods Appl Sci. 2021;44(2):1628–1638.
- Tajadodi H, Khan Z, Irshad A, et al. Exact solutions of conformable fractional differential equations. Res Phys. 2021;22:1–6.
- Alshehri M, Duraihem F, Alalyani A, et al. A caputo (discretization) fractional-order model of glucose–insulin interaction: numerical solution and comparisons with experimental data. J Taibah Univ Sci. 2021;15(1):26–36.
- Bhrawy A, Zaky M. A fractional-order Jacobi Tau method for a class of time-fractional PDEs with variable coefficients. Math Methods Appl Sci. 2016;39(7):1765–1779.
- Mokhtaryand P, Ghoreishi F, Srivastava H. The Müntz-Legendre Tau method for fractional differential equations. Appl Math Model. 2016;40(2):671–684.
- Talib I, Belgacem FB, Asif NA, et al. On mixed derivatives type high dimensional multi-term fractional partial differential equations approximate solutions. In: AIP Conference Proceedings. Vol. 1798, No. 1. AIP Publishing; 2017.
- Khan RA, Khalil H. A new method based on Legendre polynomials for solution of system of fractional order partial differential equations. Int J Comput Math. 2014;91(12):2554–2567.
- Talib I, Tunc C, Noor ZA. New operational matrices of orthogonal Legendre polynomials and their operational. J Taibah Univ Sci. 2019;13(1):377–389.
- Doha E, Bhrawy A, Ezz-Eldien S. A new Jacobi operational matrix: an application for solving fractional differential equations. Appl Math Model. 2012;36(10):4931–4943.
- El-Sayed A, Baleanu D, Agarwal P. A novel Jacobi operational matrix for numerical solution of multi-term variable-order fractional differential equations. J Taibah Univ Sci. 2020;14(1):963–974.
- Heydari M, Atangana A, Avazzadeh Z, et al. An operational matrix method for nonlinear variable-order time fractional reaction diffusion equation involving Mittag–Leffler kernel. Eur Phys J Plus. 2020;135:237.
- Pak S, Choi H, Sin K, et al. Analytical solutions of linear inhomogeneous fractional differential equation with continuous variable coefficients. Adv Differ Equ. 2019;2019(256):1–22.
- Attar RE. Special functions and orthogonal polynomials. New York: Lulu Press; 2006.
- Mohammadi F, Hosseini M. A new Legendre wavelet operational matrix of derivative and its applications in solving the singular ordinary differential equations. J Franklin Inst. 2011;348(8):1787–1796.
- Saadatmandi A, Dehghan M. Numerical solution of a mathematical model for capillary formation in tumor angiogenesis via the Tau method. Commun Numer Methods Eng. 2008;24(11):1467–1474.