285
Views
0
CrossRef citations to date
0
Altmetric
Research Article

A numerical comparative analysis of methods for solving fractional differential equations

ORCID Icon, , ORCID Icon &
Pages 154-164 | Received 15 Oct 2023, Accepted 01 Feb 2024, Published online: 15 Feb 2024

Abstract

In this paper, we present two collocation methods utilizing subdivision schemes and Bernstein polynomials as their basis functions to solve Caputo-type fractional differential equations. These methods transform fractional differential equations into systems of linear equations, which can be solved using various suitable techniques. Notably, these methods are versatile, making them applicable to both boundary value problems and initial value problems. To demonstrate their effectiveness, we applied these methods to three test problems of fractional differential equations, including the Bagley-Torvik equation and fractional oscillation equation. Our results reveal that both methods provide a more accurate approximation to the exact solution when compared to various algorithms found in the existing literature, showcasing their efficiency, accuracy, and consistency.

1. Introduction

Fractional Differential Equations (FDEs) constitute a potent mathematical framework that extends classical differential equations by involving derivatives of non-integer order. Their significance spans across various scientific domains owing to their unique capacity to encapsulate complex systems and phenomena characterized by memory, hereditary properties, or non-local effects. In the realm of physics, FDEs serve as indispensable tools, enabling precise descriptions of anomalous diffusion, viscoelastic materials, and memory-laden systems. Notably, in fluid dynamics, they excel in modeling non-Newtonian fluids and long-range interactions. Furthermore, their application in modeling biological systems, encompassing neuron firing patterns and disease behavior, provides nuanced insights into memory-dependent cellular processes and intricate biological dynamics. Within engineering, FDEs hold practical utility, accurately modeling systems manifesting non-local or memory-dependent behaviors, evident in control systems, signal processing, and material science. Moreover, their role in economics and finance is pivotal, facilitating a deeper understanding of financial markets, price dynamics, risk management, and complex financial time series analysis. This paper aims to illuminate the profound impact and significance of FDEs in comprehending the complexities of real-world phenomena that defy traditional differential equations, offering enriched insights into systems governed by memory effects, hereditary properties, and non-local interactions.

The use of fractional calculus has had a profound impact on the modeling of physical phenomena that are challenging to represent using integer-order derivatives. In the literature, there are various types of fractional operators available for handling these equations. Consequently, specific problems often lack a unique solution that satisfies all differential operators. The most commonly employed and widely recognized operators include Riemann-Liouville, Grnwald-Letnikov, and Caputo. Additionally, the Atangana-Baleanu and Caputo-Fabrizio operators have also proven to be valuable. Within the realm of fractional differential equations, various types exist, each with its own approximate and analytical solutions. Some of the most frequently encountered types include Bagley-Torvik fractional differential equations, Riccati-type fractional differential equations, and Fractal-Fractional differential equations.

Bagley-Torvik fractional differential equations have been addressed using both Riemann-Liouville and Caputo fractional operators. Researchers (Ray & Bera, Citation2005) have tackled these equations using the Adomian decomposition method, employing the Riemann-Liouville fractional derivative. The use of Caputo derivatives has led to solutions via operational matrices (Ray, Citation2012), the Chebyshev wavelet operational matrix method (Mohammadi, Citation2014), hybridizable discontinuous Galerkin methods (Karaaslan, Celiker, & Kurulay, Citation2016), and the Tau method (Mokhtary, Citation2016). To solve Riccati-type fractional differential equations, several approaches have been explored, including the Enhanced Homotopy Perturbation Method (HosseinNia, Ranjbar, & Momani, Citation2008), the Adomian Decomposition Method (Momani & Shawagfeh, Citation2006), and the utilization of Bernstein polynomials (Yzbasi, Citation2013). Similarly, the solution of fractal fractional differential equations has been investigated using methods such as the B-spline collocation method (Shloof & Gewily, Citation2021), operational matrix methods (Shloof, Senu, Ahmadian, & Salahshour, Citation2021), Taylor series technique for fractal bratu-type equation was introduced by He, Shen, Ji, & He (Citation2020). A numerical approach based on the two-scale fractal transformation and the global residue harmonic balance method was proposed by (Lu & Chen, Citation2022) for finding the approximated solutions of a fractal modification of the YaoCheng oscillator with He’s fractal derivative. Two numerical approaches, the homotopy perturbation transform method and the method based on the fractional complex transform were presented by Lu & Sun (Citation2021) for finding approximate solutions to the time fractional Boussinesq-Burgers equations with He’ s fractional derivative. Furthermore (Ain et al., Citation2022), explored the transmission dynamics of MERS-CoV between humans and camels using a non-linear fractional order model. A numerical approach based on the fractional complex transform and the homotopy perturbation method was proposed by Lu & Ma (Citation2023) to solve the space-time fractional Benjamin-Bona-Mahony equation with Caputo fractional derivative. An efficient technique based on fractional complex transform and global residue harmonic balance method was proposed by Lu & Ma (Citation2022). An efficient technique, based on the fractional complex transform and the global residue harmonic balance method, was proposed by Lu & Sun (Citation2023) for solving the fractional modification of the nonlinear oscillator with coordinate-dependent mass. Different types of approaches have been applied by Anjum, Ain, & Li (Citation2021), Ain, Anjum, & He (Citation2021), Tao, Anjum, & Yang (Citation2023) to solve the fractional differential equations.

Let us consider the following fractional differential equation: (1.1) Ay(z)+BDα2y(z)+Cy(z)+EDα1y(z)+Fy(z)=f(z),w1<αw(w=1,2)<w(1.1) with initial or boundary conditions: (1.2) IC:y(0)=a1,y(0)=a2,(1.2) (1.3) BC:y(0)=a1,y(1)=a3,(1.3) where a1, a2, a3, A,B,C,E, and F are real constants. Additionally, y(z) is the unknown function to be determined, Dα1 and Dα2 are fractional differential operators of orders α1 and α2 respectively, where α1,α2N. The parameter w appears in the inequality constraint related to the fractional orders of α1 and α2. Finally, f(z) is the given function.

Caputo’s fractional derivative stands out among various fractional differential operators, such as those by He or Jumarie, due to its unique incorporation of initial and boundary conditions. Its distinct advantages, including seamless extension of classical equations to fractional order and alignment with physical interpretations, make it a preferred choice for solving fractional differential equations in mathematical and practical applications. The mathematical expression for the Caputo fractional derivative of order α is as follows: (1.4) Dαy(z)=1Γ(mα)0z(zτ)mα1ym(τ)dτwherem1<α<m.(1.4)

In this paper, we solve Equation(1.1) by two collocation methods using subdivision collocation method and Bernstein collocation method. The Subdivision Collocation Method (SCM) enhances image quality in computer graphics and plays a vital role in simulating wave propagation and solving differential equations for fluid dynamics applications (Ejaz, Baleanu, Mustafa, Malik, & Chu, Citation2020; Ejaz & Mustafa, Citation2016; Mustafa, Abbas, Ejaz, Ismail, & Khan, Citation2017; Mustafa, Ejaz, Kouser, Ali, & Aslam, Citation2021). However, until now, subdivision schemes have not been employed to find numerical solutions for fractional differential equations.

In this paper, we use the collocation method with subdivision schemes as basis functions to solve EquationEquation (1.1). On the other hand, Bernstein polynomials have proven to be successful tools for solutions in various fields. Researchers, including (Khan, Mustafa, Omar, & Komal, Citation2017) and (Abdul Karim, Khan, & Basit, Citation2022), have used Bernstein polynomials to solve different integral equations, while (Jasim & Ibraheem, Citation2023) applied them to fractional Bagley-Torvik equations. We modify this method for general fractional differential equations defined in Equation(1.1) by adjusting the node points, introducing our new technique: the Bernstein Collocation Method. In light of the literature mentioned above, it is evident that the fractional differential EquationEquation (1.1) have not been addressed using these collocation methods.

1.1. Methodology

Here, we define two methodologies that have been employed to obtain the numerical solution of the second-order fractional differential equation:

1.1.1. Step by step methodology using Bernstein polynomials

  • Consider the mth degree Bernstein polynomials.

  • Calculating the integer and fractional order derivatives of Bernstein polynomials.

  • Begin by constructing the inconsistent system of equations for the second-order fractional differential equation using the Bernstein polynomials as basis functions of the chosen Bernstein polynomials. Subsequently, refine the system by incorporating initial or boundary conditions.

  • The solution to the refined system of equations can be obtained using any numerical method. Specifically, we employed the Gaussian elimination method to determine the solution.

  • The solution to the system ultimately serves as the solution to the second-order fractional differential equation.

1.1.2. Step by step methodology using subdivision scheme

  • Identify a suitable linear-binary interpolating subdivision scheme that ensures the generation of at least a C 2-continuous curve. In simpler terms, the basis functions of the scheme should be at least twice continuously differentiable. In addition, the scheme itself should have at least an approximation order of six.

  • Approximating the fractional order derivatives, Caputo’s derivative has been utilized, where the integral term has been approximated using the midpoint rule.

  • Begin by constructing the inconsistent system of equations for the second-order fractional differential equation using the basis functions of the chosen scheme. Subsequently, refine the system by incorporating initial or boundary conditions and applying the extrapolation method utilizing a quintic polynomial.

  • The solution to the refined system of equations can be obtained using any numerical method. Specifically, we employed the Gaussian elimination method to determine the solution.

  • The solution to the system ultimately serves as the solution to the second-order fractional differential equation.

This research work is organized as follows: Section 2, discusses some of the key characteristics of Bernstein polynomials and the binary subdivision scheme. Section 3, develops the Bernstein collocation method based on Bernstein polynomials for the solution of a specific problem Equation(1.1). Section 4, introduces a method based on subdivision collocation for the solution of specific problem Equation(1.1). In Section 5, we present error estimations for both methods. Section 6 provides numerical findings based on the suggested algorithm and includes comparisons with other existing approaches. Finally, Section 7 presents conclusions, limitations, and future work.

2. Preliminaries

In this section, a brief introduction to Bernstein polynomials and subdivision schemes is provided below.

2.1. Bernstein polynomials

The Bernstein polynomials of degree m are defined as (2.1) Bl,m(s)=(ml)sl(1s)ml, l=0,1,2,,m  with  (ml)=m!l!(ml)!.(2.1)

For mth degree, we have m+1 Bernstein polynomials and for simplicity it was supposed that Bl,m=0 if l<0 or l>m.

2.2. Subdivision scheme and derivatives

Consider a 6-point binary interpolatory subdivision scheme as presented by Qu & Agarwal (Citation1996) (2.2) P2il+1=PilP2i+1l+1=(916+2k)(Pil+Pi+1l)(116+3k)(Pi1l+Pi+2l)+k(Pi2l+Pi+3l)(2.2) where k is the tension parameter and this scheme produces C2 interpolatory curve for 0<k3256. The scheme defined in Equation(2.2) satisfies the following two scale relation Ψ(z)=Ψ(2z)+1256{150(Ψ(2z1)+ψ(2z+1))25(Ψ(2z3)+ψ(2z+3))+3(Ψ(2z5)+Ψ(2z+5))},

Which satisfies Ψ(x)={1,ifz=0,0,ifz0.

The first and second order derivatives of the scheme Equation(2.2) was presented by Qu & Agarwal (Citation1996), given below in .

Table 1. First and second order derivatives of the scheme Equation(2.2).

3. Bernstein collocation method

The unknown function y(z), as it appears in Equation(1.1), can be approximated by v(z) using a linear combination with Bernstein polynomials as the basis, defined as follows. (3.1) V(z)=i=0nviBi,n(z),zϵ[0,1](3.1) where vi are unknown to be determined. Bi,n(z) is the Bernstein polynomial as defined in Equation(2.1). EquationEquation (3.1) can be expressed as (3.2) V(z)=(B(z))TV,(3.2) where (3.3) V=[v0v1,,vn]T, and  B(z)T=[B0,n(z)B1,n(z)B2,n(z)Bn,n(z)].(3.3)

Theorem 3.1.

The vector B(z) defined in Equation(3.3) has an equivalent form in terms of an invertible matrix M of size (N+1)×(N+1) and vector X(z) as follows(3.4) B(z)=MX(z),(3.4) with(3.5) B(z)=[B0,n(z)B1,n(z)B2,n(z)Bn,n(z)],X(z)=[1zz2z3zn]T,(3.5) and(3.6) M=[(1)0(n0)(1)1(n1)(1)2(n2)(1)n(nn)0(1)0(n1)(11)(1)1(n2)(21)(1)n1(nn)(n1)00(1)0(n2)(22)(1)n2(nn)(n2)000(1)nn(nn)(nn)].(3.6)

3.1. Integer order derivatives of Bernstein polynomials

First and second derivative of B(x) are calculated by using (3.7) dkdxk(B(x))=MφkX(x),k=1,2(3.7) where k is the order of the derivative, M & X are defined in Equation(3.4), and φ1 & φ2 are defined in Equation(3.8). (3.8) φ1=[00000100000200000300000n0] and  φ2=[000000000000(1)(2)000000(2)(3)0000000(n)(n1)00](3.8)

3.2. Fractional order derivative of Bernstein polynomials

In this section, we construct the matrix of the fractional derivative within the framework of the Caputo fractional derivative. As demonstrated by Jasim & Ibraheem (Citation2023), the α-order fractional derivative of a polynomial basis is (3.9) Dαzk={Γ(k+1)Γ(k+1α)zkα,kϵN,k>α0,   kϵN,k<α.(3.9)

The α1, α2 derivative of Equation(3.4) in the consequence of Equation(3.9) are (3.10) Dαk(B(z))=Mμk(z),k=1,2(3.10) where M is defined in Equation(3.4), and μ1(z)=[0Γ(2)Γ(2α1)z1α1Γ(3)Γ(3α1)z2α1Γ(n+1)Γ(n+1α1)znα1] and  μ2(z)=[00Γ(3)Γ(3α2)z2α2Γ(n+1)Γ(n+1α2)znα2],

3.3. Numerical approximation

Now using Equation(3.1), Equation(3.7), Equation(3.10) in Equation(1.1), we get the following system (3.11) A(Mφ2X(z))TV+B(Mμ2(z))TV+C(Mφ1(z))TV+E(Mμ1(z))TV+F(B(z))TV=f(z),(3.11) this implies (3.12) [A(Mϕ2X(zi))T+B(Mμ2(zi))T+C(Mφ1(zi))T+E(Mμ1(zi))T+F(B(zi))T]V=f(zi),(3.12) with the collocation nodes are defined as zj=jn+ϵ,j=1,2,,n1, where ϵ is very small positive number. Thus, from Equation(3.12), system of (n1) equations with (n+1) unknown is obtained and given in Equation(3.13). (3.13) J1(z)V=F1(z),(3.13) where (3.14) J1(zi)=A(Mϕ2X(zi))T+B(Mμ2(zi))T+C(Mφ1(zi))T+E(Mμ1(zi))T+F(B(zi),(3.14) and (3.15) F1=(f(z1),f(z2),,f(zn1))T.(3.15)

To ensure a unique solution of the system Equation(3.12), we incorporate initial or boundary conditions to obtain a consistent system of linear equations. Thus, the requried consistant system of equations are defined in Equation(3.16). (3.16) JV=F,(3.16) with J and F are defined as J=((y(0))T,(J1(Z))T,(y(0))T)T & F=(a1,(F1(z))T,a2)T, if Equation(1.1) is given with the conditions Equation(1.2) or J=((y(0))T,(J1(Z))T,(y(1))T)T & F=(a1,(F1(z))T,a3)T, if Equation(1.1) is given with the conditions Equation(1.3), where J1(z),F1(z), y(0), y(0) and y(1) are defined in Equation(3.14), Equation(3.15), Equation(1.2) and Equation(1.3) respectively. Thus by solving Equation(3.16) we obtained the unique solution of Equation(1.1) with the conditions Equation(1.2) or Equation(1.3).

3.4. Convergence analysis of bernsitein collocation method

Theorem 3.2.

(Jasim & Ibraheem,Citation2023). Suppose the function V:[0,1)R is n+1 times continuously differentiable, y[0,1) and V1=Span{B0,n(z),B1,n(z),,Bn,n(z)}, if (B(z))TV is the best approximation to y from V then the error bound is displayed as follows ||y(B(z))T||2l(n+1)!(2n+3), where k=|yn+1(z),z[0,1).

Proof.

(See (Jasim & Ibraheem, Citation2023)) □

3.5. Error estimation

Let y(z) is exact and V(z) is the approximate solution of Equation(1.1) then AbsoluteError=||y(z)V(z)||

4. Subdivision collocation method

Here we use subdivision schemes to formulate this method, consider N be a positive integer (N4),h=1N and zi = ih for i=4,2,0,,N+4 Let (4.1) u(z)=i=4N+4ciΨ(zzih),0z1(4.1) be the approximate solution of Equation(1.1). The first and second derivative of Equation(4.1) are (4.2) u(z)=1hi=4N+4ciΨ(zzih) and  u(z)=1h2i=4N+4ciΨ(zzih).(4.2)

Midpoint rule of integration is defined as: (4.3) cdf(z)dz=(dc)f(d+c2)(4.3) where d, c are upper and lower limits of integration.

When we approximate the integral appeared in Equation(1.4) by using midpoint rule of integration, the caputo fractional derivative takes the following form (4.4) Dαy(z)=zΓ(mα)(z2)mα1ym(z2)wherem1<α<m(4.4)

Putting Equation(4.1), Equation(4.2) and Equation(4.4) in Equation(1.1), we get Ah2i=4N+4ciΨ(zzih)+BΓ(2α2)z2α22α21h2i=4N+4ciΨ(z2zih)+Chi=4N+4ciΨ(zzih)+EΓ(1α1)z1α12α1hi=4N+4ciΨ(z2zih)+Fi=4N+4ciΨ(zzih)=f(z).

Taking summation common and putting z=zj=jh and zi=ih, we get (4.5) i=4N+4ci[Ah2Ψ(ji)+BΓ(2α2)(jh)2α22α21h2Ψ(j2i)+ChΨ(ji)+EΓ(1α1)(jh)1α12α1hΨ(j2i)+FΨ(ji)]=f(jh),j=0,1,,N.(4.5)

Making substitution of coefficients of Ψ,Ψ,Ψ, such as A1=Ah2,Bj=BΓ(2α2)2α21(jh)2α21h2,C1=Ch,Ej=E2α1Γ(2α2)(jh)1α1h, for j=0,1,2,,N and putting all in Equation(4.5), we get (4.6) i=4N+4ci[A1Ψ(ji)+BjΨ(j2i)+C1Ψ(ji)+EjΨ(i2i)+FΨ(ji)]=f(zj),(4.6) for j=0,1,2,,N, this implies (4.7) i=4N+4ci[Gj,i+Rj,i]=f(jh),(4.7) for j=0,1,2,,N, where (4.8) Gj,i=A1Ψ(ji)+C1Ψ(ji)+FΨ(ji),(4.8) and (4.9) Rj,i=BjΨ(j2i)+EjΨ(j2i).(4.9)

EquationEquation (4.7) can be expressed as (4.10) c4[Gj,4+Rj,4]+c3[Gj,3+Rj,3]+c2[Gj,2+Rj,2]+.+cN+2[Gj,N+2+Rj,N+2]+cN+3[Gj,N+3+Rj,N+3]+cN+4[Gj,N+4+Rj,N+4]=f(jh),(4.10) j=0,1,2,,N.

The functions GandR gives us non-zero values at some fixed ranges of i and j, which are in the theorems described below

Theorem 4.1.

For i=4,3,2,,N+4,j=0,1,2,,N and using Equation(4.8)Gj,i={A1Ψ(0)+C1Ψ(0)+F,   if j=iA1Ψ(ji)+C1Ψ(ji),if4ji4,ji00,otherwise.

Theorem 4.2.

For i=4,3,,N+3,N+4, j=0,1,2,,N and using Equation(4.9), we get: Rj,i={BjΨ(j2i)+EjΨ(j2i),4j2i4andj2i be integer0,otherwise

Theorem 4.3.

On the sight of theorem (4.1) and theorem (4.2), the system Equation(4.7) in terms of matrix is(4.11) PC=(P1+P2)C=F,(4.11)

whereC=(c4,c3,,cN+3,cN+4)T,F=(f(0),f(h),,f((N1)h),f(Nh)=f(1))T,P1=(G0,4G0,3G0,2G0,1G0,0G0,10000G1,3G1,2G1,1G1,0G1,100000G2,2G2,1G2,0G2,1000000G3,1G3,0G3,1000000000GN1,N+2GN1,N+30000000GN,N+2GN,N+3GN,N+4),P2=(R0,4R0,3R0,2R0,1R0,0R0,100000000000000R2,2R2,1R2,0R2,1000000000000000000RN,N+2RN,N+3RN,N+4).

4.1. Approximation of derivative condition

It is very difficult to impose derivative condition as it is in matrix form. So, we first approximate it by using finite difference method. As we have approximate the unknown function with u(z). So, we approximate the derivative of u(z). For h as defined in Equation(4.1), the first order derivative satisfies the following (4.13) u(z)=1hi=iminimaxbic(z+ih)+O(hp),p>0(4.13) where O(hp) denotes the order of error and p is the integer. Set imin = 0 and imax=p for forward difference. The vector b=(bimin,.,bimax) is the unknowns called convolution mask for approximation. To find these unknowns, it is necessary that (4.14) iminimaxinbi={0,0npandn11,n=1(4.14)

For our method we consider the order of error O(h6) i.e. p=6 then imin = 0 and imax = 6. Equation(4.14) implies iminimaxinbi={0,0n6andn11,n=1

The solution of above equations gives us the values of bi then, putting it in Equation(4.13), we get u(0)=(N60)(147c0+360c1450c2+400c3225c4+72c510c6) this is the approximation of first derivative condition.

4.2. Essential conditions

The initial/boundary conditions along with Equation(4.11) makes a system of order (N+3)×(N+9). Six more conditions are still needed for unique solution, that can be calculated using quintic polynomial interpolating (xi,ci),0i5. Precisely, we have (4.15) S(zi)=cii=1,2(4.15) where (4.16) S(zi)=j=16(6j)(1)j+1c(zij)(4.16)

The above polynomial along with the conditions Equation(1.2) or Equation(1.3) gives us the following left and right end conditions respectively. (For details see (Ejaz & Mustafa, Citation2016)). (4.17) Uleft=(016152015610000016152015610000016152015610000014736045040025572000000100000)5×(N+9),(4.17) and (4.18) Uright=(016152015610000016152015610000016152015610)3×(N+9),(4.18) or (4.19) Uleft=(01615201561000001615201561000001615201561000000100000)4×(N+9),(4.19) and (4.20) Uright=(00001000000016152015610000016152015610000016152015610)4×(N+9)(4.20)

Thus we get a stable system defined as (4.21) HC=F,(4.21) where H=(UleftT,PT,UrightT)T or H=(UleftT,PT,UrightT) depending on the conditions Equation(1.2) or Equation(1.3) respectively, P, Uleft, Uright, Uleft & Uright are defined in Equation(4.11), Equation(4.17), Equation(4.18), Equation(4.19) & Equation(4.20) respectively and the vectors C & F are defined in (4.12). Hence unique solution of Equation(1.1) is obtained by solving Equation(4.21).

4.3. Convergence analysis of subdivision collocation method

Theorem 4.4.

(Qu & Agarwal,Citation1996). Suppose the function y(z) is 6 times continuously differentiable, yC6[0,1) and {u(zi)} is the best approximation to y obtained from Equation(4.21) with the sixth order boundary treatment at the end points then ||ylul(z)||=O(h6j),j=0,1,2.

Proof.

(See (Qu & Agarwal, Citation1996)) □

4.4. Error estimation

Let y(z) is exact and u(z) is the approximate solution of Equation(1.1) then AbsoluteError=||y(z)u(z)||

5. Numerical implementation of proposed methods and discussions

In this section, we evaluate the accuracy of the proposed methods by solving three test problems and comparing the results with existing methods from the literature. In Example 1, numerical results are presented in and , indicating a significant agreement between our computed solutions and the exact solutions. Similarly for Example 2, we compare exact solutions with both the approximate solutions and the results from Momani & Odibat (Citation2007) in and , showcasing the superiority of our proposed method. Finally, for Example 3, numerical results are compared with those from Zahra & Elkholy (Citation2013) in and , highlighting the accuracy of our proposed approach.

Table 2. Exact solution, numerical solutions u(z) and V(z) of Example 5.1 for N=n=8.

Table 3. Absolute errors of Example 5.1 for N=n=8.

Table 4. Exact solution, numerical solution u(z), V(z) and (Momani & Odibat, Citation2007) of Example 5.2 for N=n=10.

Table 5. Absolute errors of Example 5.2 for N=n=8.

Table 6. Exact solution, numerical solution u(z), V(z) and (Zahra & Elkholy, Citation2013) of Example 5.3 for N=n=8.

Table 7. Absolute errors of Example 5.3 for N=n=8.

Example 5.1.

Consider special type of fractional differential equation known as Bagley-Torvik equation(5.1) Ay(z)+BD3/2y(z)+Cy(z)=f(z),0z1(5.1) subject to initial conditions(5.2) y(0)=1,y(0)=1(5.2)

The exact solution of Equation(5.1) is(5.3) y(z)=1+z(5.3)

The Example 5.1 has been solved by Arikoglu & Ozkol (Citation2007) for f(z)=1+z, A=1, B=1, and C=1, and we consider similar values. shows the exact solution y(z) and the numerical solutions obtained by the Bernstein collocation method V(z) and the Subdivision collocation method u(z) for Example 5.1 at different node points z, while shows their absolute errors. displays their graphical representation. where V(z) and u(z) are the numerical solutions of Berstein collocation method and Subdivision collocation method defined in EquationEquations (3.1) and Equation(4.1) respectively.

Figure 1. Graphical representation of example 5.1 for N=n=8.

Figure 1. Graphical representation of example 5.1 for N=n=8.

Example 5.2.

Consider the following fractional differential equation known as fractional oscillation equation(5.4) y(z)aDαy(z)by=8,z>0,0<α<2(5.4) subject to initial conditions:(5.5) y(0)=0,y(0)=0(5.5)

Following (Momani & Odibat, Citation2007), we consider a=b=1 and α=0.5. shows the exact solution y(z) and numerical solutions for both methods of Example (5.2) while shows their absolute errors. And displays their graphical representation. It can be easily seen that both of our methods are in good agreement with exact solution.

Figure 2. Graphical representation of example 5.2 for N=n=10.

Figure 2. Graphical representation of example 5.2 for N=n=10.

Example 5.3.

Consider the following fractional differential equation:(5.6) y(z)+ηDαy(z)+μy(z)=f(z)(5.6) with boundary conditions(5.7) y(0)=0,y(1)=0(5.7)

The exact solution of Equation(5.6) is:(5.8) y(z)=z4(z1)(5.8)

Following (Zahra & Elkholy, Citation2013), we also take α=0.3,η=0.5 and μ= 1 in Equation(5.6). shows the exact solution y(z) and numerical solutions for both methods of Example 5.3 while shows their absolute errors. And displays their graphical representation. It can be easily seen that both of our methods are in good agreement with exact solution.

Figure 3. Graphical representation of example 5.3 for N=n=8.

Figure 3. Graphical representation of example 5.3 for N=n=8.

6. Concluding remarks

Two collocation methods, based on Bernstein polynomials and subdivision schemes, are utilized in this paper for solving fractional differential equations using the Caputo operator. The Midpoint rule of integration is used to derive the Subdivision collocation method. Both methods do not distinguish between whether the problems are initial value or boundary value. We have presented applications for both methods by considering various types of fractional differential equations. These methods give us better results, even for problems for which a closed-form exact solution is not available, as demonstrated in Example 5.2. In this article, we initially select an appropriate subdivision scheme and Bernstein polynomial for a specified interval. Next, we compute derivatives of the subdivision schemes. Then, we transform the problem into a system of linear equations using both techniques. Following that, we compute a suitable solution for the system using a numerical technique. We compare the obtained results with existing methods in the literature, demonstrating that the proposed methods yield superior outcomes. Finally, we assess the convergence rate and present the results through graphs and tables, providing detailed explanations for each.

  • It is evident from and that both methods gives us approximation of high accuracy.

and demonstrates the comparison of these methods with the method described by Momani & Odibat (Citation2007).

and tells us reliability of both methods than the method defined by Zahra & Elkholy (Citation2013).

  • gives us visual confirmation.

Finally, one can easily conquer with graphs and tables, Bernstein collocation method and subdivision collocation method are more encouraging.

6.1. Limitations of methods

The proposed methods are designed for fractional differential equation in a specified interval. We apply midpoint rule of integration to approximate the definite integral appears in caputo definition. This would be replaced with better approximation to enhance the accuracy of subdivision based method.

6.2. Future work

The extension of proposed methods for the solution of high order fractional differential equations on an arbitrary interval is another direction for future work.

Authors’ contributions

Conceptualization, Syeda Tehmina Ejaz; Formal analysis, Namra Zulqarnain, Jihad Younis and Saima Bibi; Methodology, Syeda Tehmina Ejaz and Namra Zulqarnain; Supervision, Syeda Tehmina Ejaz; Writing original draft, Namra Zulqarnain and Syeda Tehmina Ejaz; Writing, review and editing, Syeda Tehmina Ejaz Jihad Younis and Saima bibi.

Disclosure statement

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Data availability statement

The data used to support the findings of the study are available within this paper.

References

  • Abdul Karim, S. A., Khan, F., & Basit, M. (2022). Symmetric Bernstein polynomial approach for the system of Volterra integral equations on arbitrary interval and its convergence analysis. Symmetry, 14(7), 1343. doi:10.3390/sym14071343
  • Ain, Q. T., Anjum, N., & He, C. H. (2021). An analysis of time-fractional heat transfer problem using two-scale approach. GEM-International Journal on Geomathematics, 12, 1–10.
  • Ain, Q. T., Anjum, N., Din, A., Zeb, A., Djilali, S., & Khan, Z. A. (2022). On the analysis of Caputo fractional order dynamics of Middle East Lungs Coronavirus (MERS-CoV) model. Alexandria Engineering Journal, 61(7), 5123–5131. doi:10.1016/j.aej.2021.10.016
  • Anjum, N., Ain, Q. T., & Li, X. X. (2021). Two-scale mathematical model for tsunami wave. GEM-International Journal on Geomathematics, 12, 1–10.
  • Arikoglu, A., & Ozkol, I. (2007). Solution of fractional differential equations by using differential transform method. Chaos, Solitons & Fractals, 34(5), 1473–1481. doi:10.1016/j.chaos.2006.09.004
  • Ejaz, S. T., & Mustafa, G. (2016). A subdivision based iterative collocation algorithm for nonlinear third-order boundary value problems. Advances in Mathematical Physics, 2016, 1–14. doi:10.1155/2016/5026504
  • Ejaz, S. T., Baleanu, D., Mustafa, G., Malik, S., & Chu, Y. M. (2020). The numerical solution of fourth order nonlinear singularly perturbed boundary value problems via 10-point subdivision scheme based numerical algorithm. AIP Advances, 10(9), 095322 . doi:10.1063/5.0017884
  • He, C. H., Shen, Y. U. E., Ji, F. Y., & He, J. H. (2020). Taylor series solution for fractal Bratu-type equation arising in electrospinning process. Fractals, 28(01), 2050011. doi:10.1142/S0218348X20500115
  • HosseinNia, S. H., Ranjbar, A., & Momani, S. (2008). Using an enhanced homotopy perturbation method in fractional differential equations via deforming the linear part. Computers & Mathematics with Applications, 56(12), 3138–3149. doi:10.1016/j.camwa.2008.07.002
  • Jasim, S. M., & Ibraheem, G. H. (2023). The Operational Matrices Methods For Solving The Fractional Bagley-Torvik Equations. Journal of Applied Science and Engineering, 26(9), 1327–1335.
  • Karaaslan, M. F., Celiker, F., & Kurulay, M. (2016). Approximate solution of the Bagley-Torvik equation by hybridizable discontinuous Galerkin methods. Applied Mathematics and Computation, 285, 51–58. doi:10.1016/j.amc.2016.03.024
  • Khan, F., Mustafa, G., Omar, M., & Komal, H. (2017). Numerical approach based on Bernstein polynomials for solving mixed Volterra-Fredholm integral equations. AIP Advances, 7(12), 125123. doi:10.1063/1.5008818
  • Lu, J. F., & Ma, L. (2023). Numerical analysis of space-time fractional Benjamin-Bona-Mahony equation. Thermal Science, 27(3 Part A), 1755–1762. doi:10.2298/TSCI2303755L
  • Lu, J., & Chen, L. (2022). Numerical analysis of a fractal modification of YaoCheng oscillator. Results in Physics, 38, 105602. doi:10.1016/j.rinp.2022.105602
  • Lu, J., & Ma, L. (2022). Numerical analysis of a fractional nonlinear oscillator with coordinate-dependent mass. Results in Physics, 43, 106108. doi:10.1016/j.rinp.2022.106108
  • Lu, J., & Sun, Y. (2021). Numerical approaches to time fractional boussinesq-burgers equations. Fractals, 29(08), 2150244. doi:10.1142/S0218348X21502443
  • Lu, J., & Sun, Y. (2023). Analysis of the fractional oscillator for a mass attached to a stretched elastic wire. Journal of Low Frequency Noise, Vibration and Active Control, 42(4), 1733–1742. doi:10.1177/14613484231181451
  • Mohammadi, F. (2014). Numerical solution of Bagley-Torvik equation using Chebyshev wavelet operational matrix of fractional derivative. International Journal of Advances in Applied Mathematics, 2(1), 83–91.
  • Mokhtary, P. (2016). Numerical treatment of a well-posed Chebyshev Tau method for Bagley-Torvik equation with high-order of accuracy. Numerical Algorithms, 72(4), 875–891. doi:10.1007/s11075-015-0072-9
  • Momani, S., & Odibat, Z. (2007). Numerical comparison of methods for solving linear differential equations of fractional order. Chaos, Solitons & Fractals, 31(5), 1248–1255. doi:10.1016/j.chaos.2005.10.068
  • Momani, S., & Shawagfeh, N. (2006). Decomposition method for solving fractional Riccati differential equations. Applied Mathematics and Computation, 182(2), 1083–1092. doi:10.1016/j.amc.2006.05.008
  • Mustafa, G., Abbas, M., Ejaz, S. T., Ismail, A. I. M., & Khan, F. (2017). A numerical approach based on subdivision schemes for solving non-linear fourth order boundary value problems. Journal of Computational Analysis and Applications, 23(4), 607–623.
  • Mustafa, G., Ejaz, S. T., Kouser, S., Ali, S., & Aslam, M. (2021). Subdivision collocation method for one-dimensional Bratus problem. Journal of Mathematics, 2021, 1–8. doi:10.1155/2021/3497017
  • Qu, R., & Agarwal, R. P. (1996). Solving two point boundary value problems by interpolatory subdivision algorithms. International Journal of Computer Mathematics, 60(3–4), 279–294. doi:10.1080/00207169608804492
  • Ray, S. S. (2012). On Haar wavelet operational matrix of general order and its application for the numerical solution of fractional Bagley Torvik equation. Applied Mathematics and Computation, 218(9), 5239–5248.
  • Ray, S. S., & Bera, R. K. (2005). Analytical solution of the Bagley Torvik equation by Adomian decomposition method. Applied Mathematics and Computation, 168(1), 398–410. doi:10.1016/j.amc.2004.09.006
  • Shloof, A. M., & Gewily, A. (2021). Fractional B-spline collection method for solving fractal-differential equations. International Journal of Nonlinear Analysis and Applications, 12, 745–754.
  • Shloof, A. M., Senu, N., Ahmadian, A., & Salahshour, S. (2021). An efficient operation matrix method for solving fractal-fractional differential equations with generalized Caputo-type fractional-fractal derivative. Mathematics and Computers in Simulation, 188, 415–435. doi:10.1016/j.matcom.2021.04.019
  • Tao, H., Anjum, N., & Yang, Y. J. (2023). The Aboodh transformation-based homotopy perturbation method: New hope for fractional calculus. Frontiers in Physics, 11, 310. doi:10.3389/fphy.2023.1168795
  • Yzbasi, S. (2013). Numerical solutions of fractional Riccati type differential equations by means of the Bernstein polynomials. Applied Mathematics and Computation, 219(11), 6328–6343.
  • Zahra, W. K., & Elkholy, S. M. (2013). Cubic spline solution of fractional Bagley-Torvik equation. Electronic Journal of Mathematical Analysis and Applications, 1(2), 230–241.