1,185
Views
5
CrossRef citations to date
0
Altmetric
Research Article

Numerical study of multi-order fractional differential equations with constant and variable coefficients

ORCID Icon, , &

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.

2010 Mathematics Subject Classifications:

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 ).

Figure 1. The maximum absolute errors determined by our method are compared with the maximum absolute errors determined by the method ([Citation22], Example 2, n = 3. (a) (Our proposed method) and (b) (Proposed method in [Citation22])).

Figure 1. The maximum absolute errors determined by our method are compared with the maximum absolute errors determined by the method ([Citation22], Example 2, n = 3. (a) (Our proposed method) and (b) (Proposed method in [Citation22])).

Table 1. Maximum absolute error of Example 7.5 at n={2,3,4,6}=scale level=number of terms of SLPs, and for different values of t.

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 α>0 is given as (see [Citation10]): (1) Jαu(t)=1Γ(α)0t(ts)α1u(s)ds,t>0.(1)

Definition 2.2

The (left side) Riemann-Liouville derivative of order α>0 is given as (see [Citation10]): (2) RLDαu(t)=DmJmαu(t),m1<αm,mN.(2)

Definition 2.3

The (left side) Caputo derivative of order α>0 is given as (see [Citation10]): (3) CDαu(t)={dmu(t)dtm,α=mN,Jmαu(m)(t),m1<α<m,mN,(3) where m is an integer, t>0, and u(t)Cm[0,1].

For the Caputo derivative, we have the following observations: (4) CDαK=0,Kisaconstant.(4) (5) CDαtμ={0,forμR+,andμ<α,Γ(μ+1)Γ(μ+1α)tμα,forμR+,andμα.(5) Note the following basic results: RLDγJαu(t)={Jαγu(t),ifα>γ.u(t),ifα=γ.Jγαu(t),ifα<γ.

Lemma 2.1

Let u(t)Cn[0,1] for nN, and suppose nm, αR+N, such that, 0<α<n. Then, CDαu(0)=0.

Proof.

By definition of Caputo differential operator, we have (6) CDαu(t)=Jmαu(m)(t)=1Γ(mα)0tu(m)(t)(ts)1m+αds,(6) where m is an integer defined as m1<α<m. Now, according to our assumption, nm which implies that u(m)(t) is a continuous function, and u(m)(t)Cnm[0,1]. Consequently, for t0, the integral in (Equation6) vanishes. Hence, CDαu(0)=0.

3. Properties of SLPs

The following recurrence formulae are used to evaluate the orthogonal Legendre polynomials (LPs) on the interval of orthogonality [1,1] (see [Citation23]): (7) Pj+1(x)=2j+1j+1xPj(x)jj+1Pj1(x),j=1,2,,whereP0(x)=1,P1(x)=x.(7) Now by setting, x = 2t−1 in (Equation7), the SLPs on the interval of orthogonality [0,1] can be expressed with the aid of the following analytical form, (see [Citation23]) (8) Pj~(t)=k=0j(1)k+j(k+j)!(jk)!(k!)2tk.(8) The orthogonality condition of SLPs can be expressed as (9) 01Pj~(t)Pi~(t)dt={12j+1,forj=i,0,forji.(9)

3.1. Functions approximation

Suppose u(t)L2[0,1], then it can be demonstrated as a basis vectors of SLPs, (see [Citation23]) (10) u(t)=i=0eiPi~(t).(10) Using (Equation9), the coefficients ei can be determined as (11) ei=(2i+1)01u(t)Pi~(t)dt,i=0,1,2,.(11) For the practicality, considering the first n + 1-terms of (Equation10), we have (12) u(t)i=0neiPi~(t),=(Λ)TΨ(t),(12) where (13) (Λ)T=[e0,e1,,en],(13) and (14) Ψ(t)=[P0~(t)P1~(t)Pn~(t)].(14)

4. Generalized derivative operational matrix of SLPs in Caputo sense

Lemma 4.1

Let Ψ(t) be defined in (Equation14), then (see [Citation24]) (15) dΨ(t)dt=D(1)Ψ(t),(15) where (16) D(1)=d(p+1,q+1)={2(2q+1),q=pr{r=1,3,m,p=1,2,,m,if m odd;r=1,3,m1,p=1,2,,m,if m even.0,otherwise.(16) For example, for m = 9, we have D(1)=(00002.000000006.0000002.0000010.0000006.0000014.00002.0000010.0000006.0000014.00002.0000010.0000006.0000014.00002.0000010.000000000000000000000000018.0000000022.00000018.0000026.00000022.0000030.000018.0000026.00000.0000000000000000000000.000034.00000)

In general for m odd, we have D(1)=(00000200000600020100006014006014020100180000000000000002(2n3)0002(2n1)0),and for m even, we have D(1)=(00000200000600020100006014020100180601400000000000000002(2n3)0002(2n1)0).

Lemma 4.2

Let Pj~(t) be the SLPs as defined in (Equation8), then CDαPj~(t)=0,j=0,1,,α1,α>0.

Proof.

Using the definition of SLPs, we have (17) Pj~(t)=k=0j(1)k+j(k+j)!(jk)!(k!)2tk,j=0,1,,α1.(17) Using (Equation17), the SLPs of degree α1 is demonstrated as (18) Pα1~(t)=(1)α1(α1)!(α1)!t0+(1)α(α)!(α2)!t1+(1)α+1(α+1)!4(α3)!t2++(1)2(α1)(2(α1))!(2α)!(α1)!)2tα1.(18) Applying Caputo differential operator, and its linearity to (Equation18), we have (19) CDαPα1~(t)=(1)α1(α1)!(α1)!CDαt0+(1)α(α)!(α2)!CDαt1+(1)α+1(α+1)!4(α3)!CDαt2++(1)2(α1)(2(α1))!(2α)!(α1)!)2CDαtα1.(19) Since, α>α1, then using the results of (Equation4)–(Equation5), we have (20) CDαPα1~(t)=0.(20) Consequently, (21) CDαPj~(t)=0,j=0,1,,α1,α>0.(21)

Theorem 4.1

Let Ψ(t) be a function vector of SLPs and suppose α>0, then (22) CDαΨ(t)D(α)Ψ(t)(22) where D(α) is a generalized derivative operational matrix in Caputo sense, demonstrated as (23) D(α)=(000000Ωα(α,0)Ωα(α,1)Ωα(α,2)Ωα(j,0)Ωα(j,1)Ωα(j,2)Ωα(n,0)Ωα(n,1)Ωα(n,2)10Ωα(α,m)Ωα(j,n)Ωα(n,n))(23) where Ωα(j,l)=k=αjΥj,l,k,and Υj,l,k is given as (24) Υj,l,k=(2l+1)r=0l(1)j+k+l+rΓ(j+k+1)Γ(l+r+1)Γ(jk+1)Γ(k+1)Γ(k+1α)Γ(lr+1)(Γ(r+1))2×1(k+rα+1),l=0,1,,n.(24)

Proof.

Using (Equation8), (Equation5), and Lemma 4.2, we have (25) CDαPj~(t)=k=αj(1)k+jΓ(1+k+j)Γ(1k+j)Γ(1+k)Γ(1+kα)tkα.(25) We can approximate tkα by first n + 1-terms of SLPs, as (26) tkαl=0nel,kPl~(t),(26) where (27) el,k=(2l+1)01tkαPl~(t)dt=(2l+1)r=0l(1)l+rΓ(l+r+1)Γ(lr+1)(Γ(r+1))2×01tk+rαdt=(2l+1)r=0l(1)l+rΓ(l+r+1)Γ(lr+1)(Γ(r+1))2(k+rα+1)(27) By inserting, (Equation26) into (Equation25), we have (28) CDαPj~(t)k=αjl=0n(1)j+kΓ(j+k+1)Γ(jk+1)Γ(k+1)Γ(k+1α)el,kPl~(t).(28) By putting the value of el,k in (Equation28), and after some simplification, we have (29) CDαPj~(t)k=αjl=0n(2l+1)×r=0l(1)j+k+l+rΓ(j+k+1)Γ(l+r+1)Γ(jk+1)Γ(k+1)Γ(k+1α)Γ(lr+1)(Γ(r+1))2×1(k+rα+1)Pl~(t).(29) For simplicity, we have (30) Υj,l,k=(2l+1)r=0l(1)j+k+l+rΓ(j+k+1)Γ(l+r+1)Γ(jk+1)Γ(k+1)Γ(k+1α)Γ(lr+1)(Γ(r+1))2×1(k+rα+1).(30) Now (Equation29) can be expressed as (31) CDαPj~(t)k=αjl=0nΥj,l,kPl~(t),j=α,,m.(31) (Equation31) can be written in vector notation as (32) CDαPj~(t)[k=αjΥj,0,k,k=αjΥj,1,k,,k=αjΥj,n,k]Ψ(t),j=α,,n.(32) Moreover, using Lemma 4.2, we have (33) CDαPj~(t)=[0,0,,0]Ψ(t),j=0,1,,α1.(33) Equations (Equation32) and (Equation33) together prove the required result.

5. Decomposition of multi-order FDEs into a system of FDEs

Consider the multi-order FDEs as (34) CDαu(t)=f(t,u(t),CDβ1u(t),CDβ2u(t),,CDβnu(t)),u(k)(0)=dk,k=0,1,,m.(34) where m1<αm, 0<β1<β2<<βn<α, f can be a nonlinear in general, and CDα is a Caputo derivative of order α defined in (Equation3). Problem (Equation34) can be decomposed into a system of FDEs, as

Set u1=u and suppose, (35) CDβ1u1=u2.(35) Case(1) If m1β1<β2m, then we define (36) CDβ2β1u2=u3.(36) Claim: u3=CDβ2u.

If β1=m1, then CDβ2β1u2=CDβ2(m1).CD(m1)u1=CDβ2u1=CDβ2u.

Hence the claim is verified.

If β1N, then by Lemma 2.1, CDβ1u1(0)=0, and as β2β1<1, CDβ2β1[CDβ1u1]=RLDβ2β1[CDβ1u1]=DJ1+β1β2Jmβ1u1(m)=DJ1+mβ2u1(m)=Jmβ2u1(m)=CDβ2u1=CDβ2u.Therefore u3=CDβ2β1u2=CDβ2u.

Case (2) Consider m1β1<mβ2. If β1=m1, then define (37) CDβ2β1u2=u3.(37) As CDβ2β1u2=CDβ2m+1.CDm1u1=CDβ2u1.

If m1<β1<mβ2, then define, (38) CDmβ1u2=u3.(38) Claim: u3=u(m). As β1N, then by Lemma 2.1,CDβ1u1(0)=u2(0)=0 and 0<mβ1<1, CDmβ1u2=RLDmβ1.CDβ1u1=DJ1+β1mJmβ1u1(m)=DJu1(m)=u1(m)=u(m).

Hence u3=u(m). Further, we define: (39) CDβ2mu3=u4.(39) Claim: u4=CDβ2u. As u4=CDβ2mu3=CDβ2mu(m)=CDβ2u.

The process will be continued until the decomposition of the problem (Equation34) 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) u(t)+CD52u(t)+u(t)+4u(t)+CD12u(t)+4u(t)=6cos(t),(40) subject to the following initial conditions (41) u(0)=1,u(0)=1,u(0)=1.(41) Set, u(t)=u1, we have CD12u1=u2,u1(0)=1,CD12u2=u3,u2(0)=0,CD(1)u3=u4,u3(0)=1,CD12u4=u5,u4(0)=1,CD12u5=6cos(t)u5u44u3u24u1,u5(0)=0.

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) CDα1u1+j=1k1γ1juj=g1(t)p1=α1,CDα2u2+j=1k2γ2juj=g2(t)p2=α2,CDαnun+j=1knγnjuj=gn(t)pn=αn,(42) with initial conditions (43) ui(j)(0)=dij,i=1,2,,n,j=0,1,,pi1,(43) where γij,ki, and dij are real constants. The differential operator CDα represents the Caputo fractional derivative of order α. We can approximate ui(t) and gi(t) by SLPs as, (44) ui(t)k=0meikPk~(t)=ΛiTΨ(t),(44) (45) gi(t)k=0mgikPk~(t)=GiTΨ(t),(45) Here GiT=[gi0,gi1,,gim] is known, but ΛiT=[ei0,ei1,,eim,] is unknown vector. Using (Equation22) and (Equation44), we have (46) CDαiui(t)ΛiTD(αi)Ψ(t),i=1,2,,n.(46) Employing Equation (Equation44)–(Equation45) and calculating the residuals Rmi(t) for the system (Equation42), it yields (47) Rmi(t)=(ΛiTD(αi)+j=1kiγijΛiTGiT)Ψ(t),i=1,2,,n.(47) Now using typical Tau method [Citation25], we can generate (mpi+1) linear algebraic equations by applying the following: (48) Rmi.Pj~(t)=01RmiPj~(t)dt=0,j=0,1,,mpi.(48) Using (Equation43), (Equation23), and (Equation44), we have (49) ui(j)(0)=ΛiTD(j)Ψ(0)=dij,j=0,1,,pi1.(49) Equations (Equation48), and (Equation49) together generate n(m+1) linear algebraic equations, corresponds to (Equation42). By solving these equations for unknown coefficients of the vector ΛiT, we consequently obtained the solutions ui(t) for (i=1,2,,n) of (Equation42) under initial conditions (Equation43).

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) CDα1u1(t)=F1(t,u1,,un),p1=α1,CDα2u2(t)=F2(t,u1,,un),p2=α2,CDαnun(t)=Fn(t,u1,,un),pn=αn,(50) together with initial conditions defined in (Equation43). Here Fi generally a nonlinear function for i=1,2,,n. Substituting the approximation of ui(t) and CDαiui(t) into above Equation (Equation50), we have (51) ΛiTCD(αi)Ψ(t)=Fi(t,e1TΨ(t),,enTΨ(t)),(i=1,2,,n).(51) Equations (Equation51) are exactly satisfied at the first mpi+1 roots of Pm+1~(t). So, we collocate these equations at root points. Consequently, these equations together with (Equation49) produce n(m+1) nonlinear algebraic equations with unknown coefficients of ΛiT. Finally, approximated solution ui(t) for (i=1,2,,n) 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) CDβ1u(t)+CDβ2u(t)+u(t)=G1(t),t[0,1],1<β2β12,(52)

subject to the integer-order initial conditions (53) u(0)=1=u(0).(53) The source term G1 is given as G1(t)=1+t.The exact solution at β1=2,β2=32 is given below u(t)=1+t.Using the algorithm studied in Section 5, the problem (Equation52)–(Equation53) can be converted into a system of FDEs, as (54) CDβ2u1(t)=u2(t),u1(0)=1=u1(0),CDβ1β2u2(t)=u2(t)u1(t)+G1(t),u2(0)=0.(54) Then the functions u1(t), and u2(t), and the source term G1(t) can be approximated using the first three terms of SLPs as (55) u1(t)j=02e1jPj~(t)=Λ1Ψ(t),u2(t)j=02e2jPj~(t)=Λ2Ψ(t),G1(t)j=02f1jPj~(t)=Λ3Ψ(t),(55) where Λ1=[e10,e11,e12], Λ2=[e20,e21,e22], Λ3=[f10,f11,f12] and Ψ(t)=[P0~(t),P1~(t),P2~(t)]t. The Legendre operational matrices corresponding to (Equation54) can be expressed as (56) D3×3β1β2=(001.504505556127350.9027033336764090.902703333676411.9343642864494500.214929365161051.50450555612736),D3×3β2=(00009.02703333676415.41622000205846001.28957619096632).(56) The residuals for the system (Equation54) can be evaluated using Equation (Equation55), and the fractional operational matrix as (57) R21(t)=(Λ1Dβ2Λ2)Ψ(t)=0,R22(t)=(Λ2Dβ1β2+Λ2+Λ1Λ3)Ψ(t)=0,(57) where Λ3=[f10,f11,f12]=[32,12,0] are determined by comparing the coefficients of G1(t)Ψ(t)=1+t. Now making use of Equation (Equation48), and Λ3=[32,12,0], we have (58) R21(t).P0~(t)=e10+e20+67756906619519754503599627370496e21254088399823199281474976710656e2232=0,R22(t).P0~(t)=e113+42845070122708396755399441055744e21+4537292853985770368744177664e2216=0,R22(t).P1~(t)=5081767996463981562949953421312e12e20=0.(58) Now by using Equation (Equation49) along-with the initial conditions of (Equation54), we have (59) e10e11+e121=0,2e116e121=0,e20e21+e22=0.(59) The unknowns can be easily calculated by solving the system of Equations (Equation58)–(Equation59) by using any computational software. So, we have (60) e20=0=e21,e22=0=e12,e10=32,e11=12.(60) Finally, the solution can be expressed as (61) u(t)=u1(t)j=02e1jPj~(t)=e10P0~(t)+e11P1~(t)+e12P2~(t)=32+12(2t1)=t+1.(61)

Remark 7.1

By increasing the number of terms of SLPs, the exact solution and the approximate solution of the problem, (Equation52)–(Equation53) coincide. For example, by considering the first four terms of SLPs, we have Ψ(t)=(12t16t26t+120t330t2+12t1),Λ1=[321200].So,u(t)j=03e1jPj~(t)=e10P0~(t)+e11P1~(t)+e12P2~(t)+e13P3~(t)=32+12(2t1)=t+1.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 α=0=β. In ([Citation19], Example 1), α,β0.

Example 7.2

Consider the following inhomogeneous nonlinear fractional differential equation (62) CDβ1u(t)+CDβ2u(t)+u2(t)=G1(t),t[0,1],2<β2β13,(62)

subject to the integer-order initial conditions (63) u(0)=0=u(0),u(0)=2.(63) The source term G1 is given as G1(t)=t4,where β1=3, and β2=2.5. The exact solution is given below u(t)=t2.Using the algorithm studied in Section 5, the problem (Equation62)–(Equation63) can be converted into a system of FDEs, as (64) CDβ2u1(t)=u2(t),u1(0)=0=u1(0),u1(0)=2,CDβ1β2u2(t)=u2(t)u12(t)+G1(t),u2(0)=0.(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).

Table 2. Legendre series coefficients (e10,e11,e12,e13) for Example 7.2 obtained by using our proposed method (PM) and the Jacobi series coefficients (e10=c0,e11=c1,e12=c2,e13=c3) obtained by using the method ([Citation19], Example 4), when α=β=0, and n = 3= scale level= the number of terms of SLPs.

Table 3. Comparison of approximate solution (AS) for Example 7.2 obtained by using our proposed method (PM) and the AS obtained by using the method ([Citation19], Example 4), when α=β=0, and n = 3=scale level=number of terms of SLPs.

Table 4. AE for Example 7.2 computed by using our proposed method (PM) and the AE computed by using the method ([Citation19], Example 4), when α=β=0, and n = 3=scale level=number of terms of SLPs.

Example 7.3

Consider the following inhomogeneous nonlinear FDE (65) CDβ2u(t)+t72CDβ1u(t)+u2(t)=G1(t),t[0,1],1<β1β22,(65)

subject to the integer-order initial conditions (66) u(0)=0=u(0).(66) The source term G1 is given as G1(t)=(1+4π)t4+2,where β1=1.5, and β2=2. The exact solution is given below u(t)=t2.Using the algorithm studied in Section 5, the problem (Equation65)–(Equation66) can be converted into a system of FDEs, as (67) CDβ1u1(t)=u2(t),u1(0)=0=u1(0),CDβ2β1u2(t)=u12(t)u2(t)+G1(t),u2(0)=0(67)

Example 7.4

Consider the following inhomogeneous FDE (68) CDβ1u(t)+2tu(t)+u3(t)=G1(t),t[0,1],1<β12,(68)

subject to the integer-order initial conditions (69) u(0)=0=u(0).(69) The source term G1 is given as G1(t)=6+t6,where 1<β12, and β2=1. The exact solution at β1=2 can be easily determined, given as u(t)=t2.Using the algorithm studied in Section 5, the problem (Equation68)–(Equation69) for a fixed value of β1=1.75, can be converted into a system of FDEs, as (70) CDβ2u1(t)=u2(t),u1(0)=0,CDβ1β2u2(t)=u13(t)u2(t)+G1(t),u2(0)=0.(70) Then the functions u1(t), and u2(t) can be approximated by using the first three terms of shifted Lagendre polynomials as (71) u1(t)j=02e1jPj~(t)=Λ1Ψ(t),u2(t)j=02e2jPj~(t)=Λ2Ψ(t).(71) where Λ1=[e10,e11,e12], Λ2=[e20,e21,e22], and Ψ(t)=[P0~(t),P1~(t),P2~(t)]t. The Lagendre operational matrices corresponding to (Equation70) can be expressed as (72) D3×3β2=(000200060),D3×3β1β2=(01.765220242113340.588406747371113000.5884067473711120.2263102874504243.666226656696941.2114256563523).(72) Now using Equation (Equation51), the system (Equation70) can also be written as (73) (Λ1Dβ2Λ2)Ψ(t)=0,(73) (74) Λ2Dβ1β2Ψ(t)+Λ2Ψ(t)+(Λ1Ψ(t))3G1(t)=0.(74) Considering the initial conditions and using Equations (Equation48) and (Equation73) can be converted into a system of algebraic equations, we have (75) 2e11e20=0,2e12e213=0,e10e11+e12=0,e20e21+e22=0.(75) Now (Equation74) can be converted into a system of nonlinear algebraic equations by approximating it at the collocation points, t0=12, and t3=12+1510, we have (76) 4e20+1.878e213.194e22+(e100.5e12)36.016=0,2.254e20+3.786e21+3.637e22(e10+0.774e11+0.4e12)3+6.488=0.(76) Solving (Equation75) and (Equation76), we have (77) e10=0.38177,e11=0.50453,e12=0.12277,e20=1.00234,e21=0.98215,e22=0.02019.(77) Finally, the solution is approximated as (78) u(t)=u1(t)j=02e1jPj~(t)=e10P0~(t)+e11P1~(t)+e12P2~(t)=0.73662t2+0.27244t+0.000010.73662t2+0.27244t.(78)

Example 7.5

Consider the following inhomogeneous nonlinear FDE (79) CDβ1u(t)+t0.3CDβ2u(t)=G1(t),t[0,1],1<β12,0<β21,(79)

subject to the integer-order initial conditions (80) u(0)=0=u(0).(80) The source term G1 is given as G1(t)=2Γ(1.5)t0.5+2Γ(2.2)t1.5,where β1=1.5, and β2=0.8. The exact solution is given below u(t)=t2.Using the algorithm studied in Section 5, the problem (Equation79)–(Equation80) can be converted into a system of FDEs, as (81) CDβ2u1(t)=u2(t),u1(0)=0=u1(0),CDβ1β2u2(t)=G1(t)t0.3u2(t),u2(0)=0.(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, β1. We observe that the results computed using the proposed algorithm are in a good agreement with the exact solution at various values of β1.

Figure 2. Exact and the approximate solutions of Example 7.3 are compared at different scale levels.

Figure 2. Exact and the approximate solutions of Example 7.3 are compared at different scale levels.

Figure 3. Error plots of Example 7.3 at different scale levels.

Figure 3. Error plots of Example 7.3 at different scale levels.

Figure 4. Exact and the approximate solutions of Example (7.4) are compared at various values of β1.

Figure 4. Exact and the approximate solutions of Example (7.4) are compared at various values of β1.

Figure 5. Exact and the approximate solutions of Example (7.5) are compared at different scale levels.

Figure 5. Exact and the approximate solutions of Example (7.5) are compared at different scale levels.

Figure 6. Exact and the approximate solutions of Example 7.2 are compared at n = 4, β1=3, and β2=2.5.

Figure 6. Exact and the approximate solutions of Example 7.2 are compared at n = 4, β1=3, and β2=2.5.

Table 5. Maximum absolute error of Example 7.4 at n = 10=scale level=number of terms of SLPs and for various choices of β1.

Table 6. The Approximate solution of Example 7.5 is calculated at n={2,3,4,6}=scale level=number of terms of SLPs, and for different values of t.

Table 7. Absolute error (AE) of Example 7.2 at n={3,4} = scale level= the number of terms of SLPs.

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.