Abstract
In this article, a numerical method based on the fractional-order shifted Legendre polynomials (FSLPs) and their operational matrix of fractional integration is introduced for solving the fractional Bagley-Torvik equations. The main advantage of the presented method is that it can reduce a solution of the initial and boundary value problems for the fractional Bagley-Torvik differential equations to a system of algebraic equations. In order to confirm the efficiency and superiority of the presented method, some numerical examples are provided and a comparison is presented between the obtained results and those results achieved from other existing methods in the literature.
Similar content being viewed by others
1 Introduction
Fractional calculus, the theory of differentiation and integration to non-integer order, is very useful for the description of various physical phenomena, such as damping laws, diffusion process, etc. Fractional derivatives provide an excellent instrument for the description of memory and hereditary properties of various materials and processes [1–10]. Especially, fractional differential equations provide outstanding tools for illustration of many engineering and physical problems. Since most fractional differential equations do not have exact and analytic solutions, the accurate numerical techniques for solving these fractional equations are a challenging and motivational research area in mathematics and engineering.
The fractional Bagley-Torvik equation was originally formulated in a description of a real material by the use of fractional calculus. Moreover, the Bagley-Torvik equation has appeared in simulating the motion of a rigid plate immersed in a Newtonian fluid [11–13]. This equation has been studied both analytically and numerically in [3]. Diethelm [14] transformed this equation into a system of fractional differential equation and solved the problem with the Adams predictor and the corrector method. Recently, considerable attention has been devoted to numerical solutions of the fractional Bagley-Torvik equation. For example the spectral tau method [15, 16], the operational formulation of collocation methods [17, 18], collocation methods [19–21], wavelet methods [22, 23], pseudospectral methods [24], differential transform methods [25], hybrid functions methods [26], and fractional Taylor methods [27] have been used to solve this fractional differential equation. In this study, a fractional-order Legendre collocation method is proposed for solving the Bagley-Torvik equations.
Applications of orthogonal functions and polynomials for numerical solution of ordinary differential equations refer, at least, to the time of Lanczos [28]. Moreover, the origin of some current spectral method, such as the Galerkin, tau, and pseudospectral methods can be found in the ‘weighted residual method’ of Finlayson and Scriven [29]. Nowadays, spectral methods are efficient techniques for solving a different kind of fractional differential and integral equations accurately [15, 17, 30, 31]. The main advantage of spectral methods lies in their accuracy for a given number of unknowns. For smooth problems in simple geometries, they offer exponential rates of convergence (spectral accuracy). By using the operational matrices for basis functions, spectral methods reduce the solution of fractional differential and integral equations into a solution of systems of algebraic equations which produce highly accurate solutions for these equations [22, 23, 30, 32].
This paper is structured as follows: In Section 2 some basic preliminaries of the fractional calculus are presented. The FSLPs and their properties are introduced in Section 3. Section 4 is devoted to an operational matrix of fractional integration for the FSLPs. Application of the FSLPs for solving the Bagley-Torvik equation is considered in Section 5. Convergence and an error estimate for the FSLPs expansion are given in Section 6. The efficiency and superiority of the proposed method is demonstrated by considering some numerical examples in Section 7. Finally, a conclusion is given in Section 8.
2 Preliminaries
In this section we review some basic definitions and preliminaries of the fractional calculus which are used in the next sections.
2.1 Fractional calculus
Fractional-order calculus is a branch of calculus which deals with integration and differentiation operators of non-integer order. Among the several formulations of the generalized derivative, the Riemann-Liouville and Caputo definition are most commonly used, which can be described as follows [3].
Definition 1
A real function \(f (t)\), \(t>0\), is said to be in the space \(C_{\mu}\), \(\mu \in\mathbb{R}\) if there exist a real number \(p >\mu\) and a function \(f_{1}(t)\in C[0,\infty)\) such that \(f (t)=t^{p} f_{1}(t)\), and it is said to be in the space \(C_{\mu}^{n}\), \(n \in\mathbb{N}\) if \(f ^{(n)} \in C_{\mu}\).
Definition 2
The Riemann-Liouville fractional integration of order \(\nu\geq0\) of a function \(f \in C_{\mu}\), \(\mu\geq-1\), is defined as
The Riemann-Liouville fractional operator \(\mathcal{J}^{\nu}\) has the following properties:
Definition 3
The fractional derivative of order \(\nu>0\) in the Caputo sense is defined as
where n is an integer, \(t>0\), and \(f \in C_{1}^{n}\).
For \(\mathbb{N}_{0}=\lbrace0, 1, 2, \ldots\rbrace\), \(f \in C_{\mu }\), \(\mu , \lambda\geq-1\), and \(n-1<\nu\leq n\) some useful and practical properties of the Caputo fractional operators \(\mathcal{D}^{\nu}\) are given by the following expressions:
For more details of fractional calculus and their applications please refer to [1–3].
3 The FSLPs and their properties
The FSLPs can be defined based on the definition of the shifted Legendre polynomials by introducing the change of variable \(t=x^{\alpha }\) for \(\alpha>0\) [10]. Let \(P_{n}(x)\) is the nth shifted Legendre polynomial and \(P_{ ( {n,\alpha} )} (x)\) denote the nth FSLPs, i.e. \(P_{n} (x^{\alpha})\). By using the recurrence formula for the shifted Legendre polynomials, it can be given as
where \(P_{ ( {0,\alpha} )} (x)=1\) and \(P_{ ( {1,\alpha} )} (x)=2x^{\alpha} - 1\). The set of FSLPs are orthogonal with respect to the weight function \(w_{\alpha}(x)=x^{\alpha-1}\) in the interval \([0,1]\) with the orthogonality property
Moreover, the analytical form of the FSLP \(P_{ ( {n,\alpha} )} (x)\) can be written as [10]
where \(a_{n,k}\) are defined as
Any function \(f(t)\) defined over \([0,1]\) may be expanded in terms of FSLPs as
in which the \(c_{k}\) are derived by
If the infinite series in equation (3) is truncated, then it can be written as
where C and \(\Phi_{\alpha} (x)\) are \(M \times1\) vectors given by
4 Operational matrix of fractional integration of FSLPs
In recent years various operational matrices for the polynomials have been developed to cover the numerical solution of differential, integral and integro-differential equations. The main advantage of these operational matrices is that they replace differential and integral operators with some matrices. Consequently, they reduce such problems to those of solving a system of algebraic equations, greatly simplifying the problem [33–38]. In this section the operational matrix of fractional integration for FSLPs will be derived.
Theorem 4.1
The Riemann-Liouville fractional integration of order ν for the \(M \times1\) FSLPs vector \(\Phi_{\alpha} (x)\) can be defined as
where \(\mathcal{M}^{(\nu)}\) is \(M \times M\) matrix and its \((i,j)\) th element is defined by
where \(a _{i - 1, s}\) is defined in equation (2).
Proof
The ith element of the vector \(\Phi_{\alpha} (x)\) is \(P_{(i - 1,\alpha )} (x)\). Using the analytical form of \(P_{(i - 1,\alpha)} (x)\), the fractional integration of order ν for this function can be written as
Now the term \(x^{\alpha r}\) is expanded exactly by FSLPs as
in which the \(\rho_{r,s}\) can be derived as
By substituting equations (9) and (10) in (8) we have
this means that the fractional integration of ith element of \(\Phi _{\alpha} (x)\) can be expanded in FSLPs as derived in equation (11) and this yields the desired result directly. □
5 Numerical solution of Bagley-Torvik equations
The fractional Bagley-Torvik equation is of the form
subject to the initial conditions
or the boundary conditions
where \(A_{1}\), \(A_{2}\), \(A_{3}\), \(\alpha_{0}\), \(\alpha_{1}\), \(\beta_{0}\), and \(\beta_{1}\) are constants with \(A\neq0\). To solve this fractional Bagley-Torvik equation we consider two cases.
Case (1) Intitial conditions: For solving the Bagley-Torvik equation (12) with intitial conditions (16), we use the change of variable \(t=\frac{x}{R}\) to transform \(x \in[0, R]\) in \(t \in[0, 1]\). So, we get
subject to the initial conditions
in which \(Y(t)=y(Rt)\) and \(F(t)=f(Rt)\). Now, we approximate the functions \(Y(t)\) and \(F(t)\) in terms of FSLPs as
where C is an unknown \(M \times1\) vector. Substituting equation (17) in equation (15) and applying the Riemann-Liouville integral operator \(\mathcal{J}^{2}\) we get
by using the operational matrix of fractional integration \(\mathcal {M}^{(\nu)}\) we have
Now we collocate the equation (19) at the M zeros of the shifted Legendre polynomial \(P_{M}(x)\). This generates a system of M algebraic equations for the unknown vector C. After finding the solution of this algebraic system, the solution \(Y(t)\) can be derived by substituting the vector C in equation (17).
Case (2) Boundary conditions: To solve the Bagley-Torvik equation (12) with boundary conditions (14), similar to the previous case, by using the change of variable \(t=\frac{x}{R}\) we obtain
subject to boundary conditions
substituting the approximation functions \(Y(t)\) and \(F(t)\) defined in equation (17) into equation (20) and using the operational matrix of fractional integration \(\mathcal{M}^{(\nu)}\) we get
in which \(w=Y^{\prime}(0)\) is unknown. To obtain the solution \(Y(t)\) we collocate the equation (21) at the M zeros of the shifted Legendre polynomial \(P_{M}(x)\) and this gives a system of M algebraic equations for the unknown vector C. Moreover, the boundary condition \(y(R)=Y(1)=\beta_{1}\) give a linear equation. This equation together with M algebraic equations derived by collocation method, generates a system of \(M+1\) equations which can be solved for the unknown vector C and initial condition w. By substituting the derived vector C in equation (17) the solution \(Y(t)\) can be derived.
6 Error analysis
In this section, in order to demonstrate the efficiency of the proposed FSLPs method, we have given some theorems on convergence and error estimation. The next theorem gives an upper bound for the error function of the truncated FSLPs series.
Theorem 6.1
Let \(f(x)\) be a defined function on \([0,1]\) and \(g ( x ) = f ( {{x^{\frac{1}{\alpha}}}} ) \in{C^{n+1}} [ {0,1} ]\), the mean error bound for the truncated FSLPs series \(f_{M}(x) = \sum_{k = 0}^{M-1} {c_{k}}P_{ (k,\alpha)(x)}\) can be derived as follows:
Proof
The truncated FSLPs series \(f_{M}(x)\) can be written as a polynomial \({q_{n}}(x^{\alpha})\) of degree \(M-1\) which approximates \(f(x)\) with minimum mean error, so
by the change of variable \(t=x^{\alpha}\) we get
in which \(Q_{n}(x)\) is the well-known polynomial interpolation for \(g(t)\) at shifted zeros of Chebyshev polynomials in the interval \([ 0, 1 ]\). Now by using an error bound of the polynomial interpolation \(Q_{n}(t)\) (Theorem 8.7 in [39]) we have
taking the square root of both sides completes the proof. □
Now, we give the error estimation of the numerical method given in the previous section. Suppose \(y(x)\) is the exact solution of (12) and \(y_{M}(x)\) is the approximate solution for \(y(x)\). Here, we introduce a process for estimating the error of the approximate solution, i.e. \(e_{M}(x)=y(x)-y_{M}(x)\). Consider the perturbation function \(R_{M}(x)\), depending only on the approximate solution \(y_{M}(x)\) as
subtracting (22) from (12) we obtain
these Bagley-Torvik equations with initial conditions \(e_{M}(0)=0\), \(e_{M}^{\prime}(0)=0\) or boundary conditions \(e_{M}(0)=0\), \(e_{M}(R)=0\) can be solved by using the proposed FSLPs method as given in previous section for this system to find an approximation of the error function \(e_{M}(x)\).
7 Numerical examples
In this section, the efficiency and superiority of the proposed method is demonstrated by some illustrative examples. All algorithms are performed by Maple 17.
Example 1
Let us consider the Bagley-Torvik equation (12) with the following conditions [23, 26, 27]:
The exact solution of this problem is
The FSLPs basis and its fractional operational matrix have been applied for solving this fractional Bagley-Torvik equation. For \(\alpha=1\) and \(M=2\) the presented FSLPs collocation method results in the following linear system for the unknowns \(c_{0}\), \(c_{1}\), and w:
in which \(w=y^{\prime}(0)\) and \(y(x) = {c_{0}}{P_{(0,\alpha)}}(x) + {c_{1}}{P_{(1,\alpha)}}(x)\). Solving this linear system we obtain
Hence, we get \(y(x)=1+x\) up to 15 digits precision which is the exact solution.
Example 2
In this example, we consider the Bagley-Torvik equation (12) with the following conditions [23, 26, 27]:
The exact solution of this problem is
To solve this problem we implemented the proposed FSLPs collocation method for \(M=3\) and \(\alpha=1\). For unknown \(c_{0}\), \(c_{1}\), \(c_{2}\), and \(w=y^{\prime}(0)\) this collocation method results in the following linear system:
where \(w=y^{\prime}(0)\) and \(y(x) = {c_{0}}{P_{(0,\alpha)}}(x) + {c_{1}}{P_{(1,\alpha)}}(x)+{c_{2}}{P_{(2,\alpha)}}(x)\). By solving this linear system we get
and this results the exact solution \(y(x) = x^{2}-x\) up to 14 digits precision.
Example 3
In this example, we consider the Bagley-Torvik equation (12) with the following conditions [23, 26, 27]:
in which
The exact solution of this problem is
Similar to the previous examples the FSLPs method has been used for solving this problem. After solving the linear system derived by the presented collocation method for \(\alpha=1\) and \(M=6\) we get the following values for the unknown coefficients:
and this results in
which is the exact solution up to 17 digits precision.
Example 4
In this example, we consider the Bagley-Torvik equation (12) with the following conditions [22]:
The exact solution of this problem is
Similar to the previous examples the FSLPs method has been used for solving this problem and by solving the linear system derived by the presented collocation method for \(\alpha=1\) and \(M=3\) we get
and this results in the solution function in the interval \([0, 1]\) as
By the change of variable \(t=\frac{x}{5}\) in this function we get
which is the exact solution up to 15 digits precision.
Example 5
Consider the fractional Bagley-Torvik equation (12) with the following conditions [23, 25–27]:
The exact solution of equation is given by
in which \({G_{3}}(t) = \frac{1}{{{A_{1}}}}\sum_{r = 0}^{\infty}{\frac {{{{ ( { - 1} )}^{r}}}}{{r!}}} { ( {\frac {{{A_{3}}}}{{{A_{1}}}}} )^{r}}{t^{2r + 1}}E_{\frac{1}{2},\frac {{3r}}{2} + 2}^{(r)} ( {\frac{{{A_{2}}}}{{{A_{1}}}}{t^{\frac{1}{2}}}} )\) and \(E_{\lambda, \mu}\) is called the Mittag-Leffler function in two parameters \(\lambda, \mu>0\) and
The proposed FSLPs collocation method is implemented for solving this fractional Bagley-Torvik equation. Figure 1 shows the exact and approximate solution for \(\alpha=0.5, 1\) and \(M=20\). The absolute errors for the obtained numerical solutions with \(\alpha=0.5\) and \(\alpha=1\) are plotted in Figure 2. Moreover, a comparison between the results achieved by the proposed FSLPs method with \(M=17\) and other methods in Refs. [23, 27] is presented in Table 1. From Table 1 we can immediately see that the FSLPs method, in comparison to other existing methods, is more efficient and accurate.
8 Discussion and conclusion
A new type of orthonormal fractional-order Legendre polynomials is defined. The operational matrix of fractional integration for this fractional-order basis is derived. By using this fractional operational matrix and collocation method a numerical method is proposed for solving the fractional Bagley-Torvik equations. A comparison is made between numerical results derived by the presented collocation method and other existing numerical method. According to the numerical results, we can conclude that the presented method is more accurate and effective for a numerical solution of the fractional Bagley-Torvik equations.
References
Kilbas, AA, Srivastava, HM, Trujillo, JJ: Theory and Applications of Fractional Differential Equations. Elsevier, San Diego (2006)
Oldham, KB, Spanier, J: The Fractional Calculus. Academic Press, New York (1974)
Podlubny, I: Fractional Differential Equations. Academic Press, San Diego (1999)
Golmankhaneh, AK, Golmankhaneh, AK, Baleanu, D: On nonlinear fractional Klein-Gordon equation. Signal Process. 91(3), 446-451 (2011)
Baleanu, D, Golmankhaneh, AK, Golmankhaneh, AK: Solving of the fractional non-linear and linear Schrödinger equations by homotopy perturbation method. Rom. J. Phys. 54(10), 823-832 (2009)
Bhrawy, AH, Zaky, MA, Baleanu, D: New numerical approximations for space-time fractional Burgers’ equations via a Legendre spectral-collocation method. Rom. Rep. Phys. 67, 340-349 (2015)
Bhrawy, AH, Baleanu, D: A spectral Legendre-Gauss-Lobatto collocation method for a space-fractional advection diffusion equations with variable coefficients. Rep. Math. Phys. 72, 219-233 (2013)
Bhrawy, AH: A new spectral algorithm for a time-space fractional partial differential equations with subdiffusion and super diffusion. Proc. Rom. Acad., Ser. A : Math. Phys. Tech. Sci. Inf. Sci. 17, 39-46 (2016)
Bhrawy, AH: A Jacobi spectral collocation method for solving multi-dimensional nonlinear fractional sub-diffusion equations. Numer. Algorithms 73, 91-113 (2016)
Kazem, S, Abbasbandy, S, Kumar, S: Fractional-order Legendre functions for solving fractional-order differential equations. Appl. Math. Model. 37(7), 5498-5510 (2013)
Torvik, PJ, Bagley, RL: On the appearance of the fractional derivative in the behavior of real materials. J. Appl. Mech. 51, 294-298 (1984)
Bagley, RL, Torvik, PJ: A theoretical basis for the application of fractional calculus to viscoelasticity. J. Rheol. 27(3), 201-210 (1983)
Yan, T, Luo, S: Local polynomial smoother for solving Bagley-Torvik fractional differential equations. Preprints 2016080231 (2016). doi:10.20944/preprints201608.0231.v1
Diethelm, K, Ford, J: Numerical solution of the Bagley-Torvik equation. BIT Numer. Math. 42(3), 490-507 (2002)
Baleanu, D, Bhrawy, AH, Taha, TM: Two efficient generalized Laguerre spectral algorithms for fractional initial value problems. Abstr. Appl. Anal. 2013, Article ID 546502 (2013)
Bhrawy, AH, Hafez, RM, Alzahrani, EO, Baleanu, D, Alzahrani, AA: Generalized Laguerre-Gauss-Radau scheme for the first order hyperbolic equations in a semi-infinite domain. Rom. J. Phys. 60, 918-934 (2015)
Bhrawy, AH, Taha, TM, Alzahrani, EO, Baleanu, D, Alzahrani, AA: New operational matrices for solving fractional differential equations on the half-line. PLoS ONE 10(9), e0138280 (2015). doi:10.1371/journal.pone.0126620
Bhrawy, AH, Abdelkawy, MA, Alzahrani, AA, Baleanu, D, Alzahrani, EO: A Chebyshev-Laguerre Gauss-Radau collocation scheme for solving time fractional sub-diffusion equation on a semi-infinite domain. Proc. Rom. Acad., Ser. A : Math. Phys. Tech. Sci. Inf. Sci. 16, 490-498 (2015)
Cenesiz, Y, Keskin, Y, Kurnaz, A: The solution of the Bagley-Torvik equation with the generalized Taylor collocation method. J. Franklin Inst. 347(2), 452-466 (2010)
Yuzbasi, S: Numerical solution of the Bagley-Torvik equation by the Bessel collocation method. Math. Methods Appl. Sci. 36(3), 300-312 (2013)
El-Gamel, M, El-Hady, AM: Numerical solution of the Bagley-Torvik equation by Legendre-collocation method. SeMA J. (2016). doi:10.1007/s40324-016-0089-6
Mohammadi, F: Numerical solution of Bagley-Torvik equation using Chebyshev wavelet operational matrix of fractional derivative. Int. J. Adv. Appl. Math. Mech. 2(1), 83-91 (2014)
Ray, SS: On Haar wavelet operational matrix of general order and its application for the numerical solution of fractional Bagley-Torvik equation. Appl. Math. Comput. 218(9), 5239-5248 (2012)
Esmaeili, S, Shamsi, M: A pseudo-spectral scheme for the approximate solution of a family of fractional differential equations. Commun. Nonlinear Sci. Numer. Simul. 16, 3646-3654 (2011)
Arikoglu, A, Ozkol, AI: Solution of fractional differential equations by using differential transform method. Chaos Solitons Fractals 34, 1473-1481 (2007)
Mashayekhi, S, Razzaghi, M: Numerical solution of the fractional Bagley-Torvik equation by using hybrid functions approximation. Math. Methods Appl. Sci. 39(3), 353-365 (2016)
Krishnasamy, VS, Razzaghi, M: The numerical solution of the Bagley-Torvik equation with fractional Taylor method. J. Comput. Nonlinear Dyn. 11(5), 051010 (2016)
Lanczos, C: Trigonometric interpolation of empirical and analytical functions. J. Math. Phys. 17, 123-129 (1938)
Finlayson, A, Scriven, LE: The method of weighted residuals: a review. Appl. Mech. Rev. 19, 735-748 (1966)
Doha, EH, Bhrawy, AH, Ezz-Eldien, SS: A Chebyshev spectral method based on operational matrix for initial and boundary value problems of fractional order. Comput. Math. Appl. 62(5), 2364-2373 (2011)
Mohammadi, F: A computational approach for solution of boundary layer equations for the free convection along a vertical plate. J. Comput. Methods Sci. Eng. 15(3), 317-326 (2015)
Ezz-Eldien, SS, Hafez, RM, Bhrawy, AH, Baleanu, D, El-Kalaawy, AA: New numerical approach for fractional variational problems using shifted Legendre orthonormal polynomials. J. Optim. Theory Appl. (2016). doi:10.1007/s10957-016-0886-1
Saadatmandi, A: Bernstein operational matrix of fractional derivatives and its applications. Appl. Math. Model. 38, 1365-1372 (2014)
Saadatmandi, A, Dehghan, M: A new operational matrix for solving fractional-order differential equations. Comput. Math. Appl. 59(3), 1326-1336 (2010)
Bhrawy, AH, Alofi, AS: The operational matrix of fractional integration for shifted Chebyshev polynomials. Appl. Math. Lett. 26, 25-31 (2013)
Doha, EH, Bhrawy, AH, Ezz-Eldien, SS: A new Jacobi operational matrix: an application for solving fractional differential equations. Appl. Math. Model. 36, 4931-4943 (2012)
Doha, EH, Bhrawy, AH, Ezz-Eldien, SS: A Chebyshev spectral method based on operational matrix for initial and boundary value problems of fractional order. Comput. Math. Appl. 62, 2364-2373 (2011)
Bhrawy, AH, Zaky, MA: Shifted fractional-order Jacobi orthogonal functions: application to a system of fractional differential equations. Appl. Math. Model. 40, 832-845 (2016)
Suli, E, Mayers, DF: An Introduction to Numerical Analysis. Cambridge University Press, Cambridge (2003)
Acknowledgements
We express our sincere thanks to the anonymous referees for valuable suggestions that improved the final manuscript.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
All authors participated in drafting, revising, and commenting on the manuscript. Also, all authors read and approved the final draft of the manuscript.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Mohammadi, F., Mohyud-Din, S.T. A fractional-order Legendre collocation method for solving the Bagley-Torvik equations. Adv Differ Equ 2016, 269 (2016). https://doi.org/10.1186/s13662-016-0989-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13662-016-0989-x