Abstract
In this article, we consider approximate solutions by quadratic splines for a fractional differential equation with two Caputo fractional derivatives, the orders of which satisfy and . Numerical computing schemes of the two fractional derivatives based on quadratic spline interpolation function are derived. Then, the recursion scheme for numerical solutions and the quadratic spline approximate solution are generated. Two numerical examples are used to check the proposed method. Additionally, comparisons with the – numerical solutions are conducted. For the considered fractional differential equation with the leading order , the involved undetermined parameters in the quadratic spline interpolation function can be exactly resolved.
1. Introduction
In recent decades, fractional calculus, due to its ability for modeling memory and hereditary properties of various materials and processes, has been applied to many fields of science and engineering, including relaxation and oscillation, viscoelasticity, anomalous diffusion, control problems, etc. [1,2,3,4,5,6,7,8]. At present, theories and applications of fractional calculus have attracted much interest and have become a vibrant research area. Fractional differential equations, including the existence, uniqueness and stability of solutions, were studied by some scholars [2,3,4,6,9,10]. In particular, new analytical and numerical methods were proposed [3,4,6,7,11,12,13]. Lie symmetry analysis and conservation laws were investigated for fractional evolution equations [14].
In [15], the difference method and its convergence for the space-time fractional advection–diffusion equation were investigated. In [16], a matrix representation of discrete analogues of fractional differentiation and integration was suggested and used to the numerical solution of fractional integral and differential equations. In [17], a local discontinuous Galerkin finite element method was suggested for Caputo-type fractional partial differential equations. In [18], a numerical Laplace transform technique was used to solve the irrational fractional-order systems. In [19,20,21], numerical methods based on spline functions were presented for the fractional differential equations. In [22], an Adams-type predictor–corrector method for the numerical solution of fractional differential equations was proposed. In [23], a numerical differentiation formula for the Caputo fractional derivative was developed by means of the quadratic interpolation approximation on three nodes. In [24], a survey and a MATLAB software tutorial for numerical methods were presented. In [25], Wang et al. proposed an asymptotic approximation method for a class of linear weakly singular Volterra integral equations based on the Laplace transform.
We recall the basic concepts in the fractional calculus. Let be piecewise continuous on and integrable on any finite subinterval of . The Riemann–Liouville fractional integral of has the definition
where is a positive real constant, and is Euler’s gamma function.
If exists and is integrable on any finite subinterval of , then applying the integration by parts in Equation (1), we have
It follows that So, we rationally define for complementarity. The fractional integral satisfies the following equalities,
The Riemann–Liouville fractional derivative of of order is defined, when it exists, as
while the Caputo fractional derivative of of order is
From the definitions, for the Caputo fractional derivative of polynomial functions, the following equality holds
and for the power function , , the Caputo fractional derivative is
where denotes the least integer greater than or equal to . We use the Caputo fractional derivative in this article in view of its convenience for formation of initial value condition. We denote the operators as and as for short.
In this article, we consider approximate solution by quadratic spline interpolation function for the initial value problem of the fractional differential equation with two Caputo fractional derivatives
where are constants, and is a given continuous function on the interval . In next section, we derive the quadratic spline interpolation function. In Section 3, the numerical schemes of the two fractional derivatives based on the quadratic spline interpolation are devised. In Section 4, the recursion scheme of numerical solutions for the fractional differential equation is generated. Two numerical examples are used to check the proposed method. Additionally, comparisons with the – numerical solutions are conducted.
2. Quadratic Spline Interpolation Function
Suppose , for , are known, where and . Additionally, suppose is known. Then, the quadratic spline interpolation function with the nodes , , satisfying for and , exists uniquely [26,27]. This means on each subinterval, , is a quadratic polynomial,
and is continuous on the whole interval .
First, we introduce the notations for which serve as the interim parameters, to derive the quadratic spline interpolation function. Due to being a spline function of degree 1, interpolating the values , so has the form on the subinterval ,
Operating indefinite integration leads to
where are the integral constants. By setting
we obtain , and so Equation (5) becomes
The parameters , may be determined by the continuity of the function on the interval as
Applying the condition to Equation (6), we have
By the iterations in Equation (7), we give expressions to each , in terms of , as
The general form is
where the sum vanishes if .
Substituting Equation (8) into Equation (6), we obtain the quadratic spline interpolation function on the subinterval expressed through , ,
We indicate that due to , , are constants, Equations (4) and (6) will be used in the numerical computing process of fractional derivatives, and the expression of in Equation (8) will be substituted at the final procedure to avoid large expressions by using Equation (9).
For estimation of interpolation remainder , it was proved that if with of bounded variation, then there exists such that [26,27]
Li and Huang [28] proved the result under the assumption .
3. Numerical Computation of Fractional Derivatives
We calculate numerically the fractional derivatives and at each nodes , , using the quadratic spline interpolation function . First, the -th order derivative is approximated as
Form Equation (4), is piecewise constants on the interval , and has the form on the interval as
Substituting leads to
Regrouping the right hand side leads to the following equation
where
Substituting the derivatives , , in Equation (8) into Equation (14), we obtain the fractional derivative of order at in terms of as
where
For the -th order fractional derivative at , in a similar manner, we have
Instead, here is a linear function as in Equation (4). The sub-domain integration is calculated as
Substituting the derivatives , , in Equation (8) into Equation (19), we obtain the fractional derivative of order at in terms of , as
where
We remark for the two fractional derivatives that the integral in Equation (18) is a little more tactical than that in Equation (13), and in Equation (20) has a different form compared with in Equation (15). Nevertheless, except the expressions of and , the expressions in Equations (19)–(22) present the same layouts as in Equations (14)–(17).
4. Solution of Fractional Differential Equation
At , the fractional differential Equation (2) becomes
where are known values. Approximating the two fractional derivatives and the first order derivative by the counterparts of the quadratic spline interpolation function yields
where the truncation error is estimated from Equations (10), (23) and (24) as
where M is a constant related to .
Inserting the results about the derivative in Equation (8) and the fractional derivatives in Equations (16) and (21) into Equation (25), we have
Leaving out the error term and replacing by their numerical approximations , we obtain the recursion scheme of the numerical approximations , , from as
Thus the recursion scheme (27) gives the numerical solutions , derived from quadratic splines, and Equation (9) gives the quadratic spline approximate solution by replacing by , .
We will compare the present algorithm with the usual – algorithm to approximate the fractional derivatives and [1,23]. We note that the method utilizes the quadratic interpolation polynomials on three nodes to approximate the function , while the method approximate the function by using piecewise linear interpolation. So for the present problem, Equations (2) and (3), the first two node values need to be given as the iterative initial values in the – numerical solutions.
On the interval , , approximate by the quadratic interpolation polynomials on the nodes , while on the first interval , is approximated by . Thus, the method derives the following approximation for the fractional derivative:
The first-order derivative is also approximated by using the quadratic interpolation polynomials as for . For the fractional derivative of order , using the method we have
Thus, by discretizing Equation (2) at , , and using Equations (28) and (29), the – numerical solutions are obtained as
Here, we use , and , , to denote the quadratic spline numerical solutions derived from the quadratic spline interpolation and the – numerical solutions derived from the and methods, respectively.
Next, we consider two numerical examples, one has a monotonically increasing excitation and another has a sinusoidal excitation.
Example 1.
Consider the initial value problem for the fractional differential equation
The exact solution can be expressed in terms of the generalized Mittag–Leffler functions [3,4].
where the generalized Mittag–Leffler function is defined as Calculating the convolution in Equation (30) yields the exact solution in the following form
We take , , to compute the quadratic spline numerical solutions on the interval from Equation (27) and compare them with the exact solution in Equation (31) and the – numerical solutions . In Figure 1a, the black dash line is depicted from the exact solution in Equation (31), while the blue circles denote the numerical solutions and the red crosses denote the numerical solutions by using . In Figure 1b–d, the errors of the numerical solutions are plotted for the different step-sizes h = 0.1, 0.05 and 0.025, respectively.
Figure 1.
The exact solution , numerical solutions and , and the errors of in Example 1. (a) The exact solution (dash line), the quadratic spline numerical solutions (circles) and the – numerical solutions (crosses) with h = 0.1; (b) the errors of (h = 0.1); (c) the errors of (h = 0.05); (d) the errors of (h = 0.025).
We examined the numerical solutions derived from the – methods with the same step-sizes and found that the errors also decrease oscillatorily as t increases, but the maximal error is about five times of that of the numerical solutions . For example, in Figure 2, we depict the plot of the errors of the numerical solutions derived from the – methods with the step-size on the interval . Compared with the errors of the numerical solutions with the identical step-size in Figure 1c, the maximal errors of the numerical solutions increases to about five times.
Figure 2.
The errors of the – numerical solutions ().
Example 2.
Consider the initial value problem for the fractional differential equation
For this example, we use the high-precision numerical inverse of the Laplace transform proposed by Wang et al. [29] as a reference to the exact solution. The Laplace transform of the solution is
The numerical solutions obtained by the high-precision numerical Laplace inverse transform are denoted by .
In Figure 3a, the three numerical solutions on the interval with the step-size obtained from the high-precision numerical Laplace inverse transform, the present quadratic spline interpolation and the – methods are displayed. In the initial stage, we can readily see that the quadratic spline numerical solutions are closer to than the – numerical solutions.
Figure 3.
The numerical solutions and comparisons in Example 2. (a) The numerical solutions with h = 0.1 by the inverse Laplace transform, (dots), the quadratic spline interpolation (circles) and the – methods (crosses); (b) the differences of the two numerical solutions and (h = 0.1); (c) the differences of the two numerical solutions and (h = 0.05); (d) the differences of the two numerical solutions and (h = 0.025).
The differences of the two numerical solutions and are shown in Figure 3b–d for , 0.05 and 0.025, respectively. We also examined the differences of the numerical solutions and and found that for a same step-size, the maximum value of is about three times of that of . In Figure 4, the differences of the numerical solutions from the high-precision inverse Laplace transform and the – methods with the step-size are shown. Compared with Figure 3c, the maximum value in Figure 4 enlarges to about three times.
Figure 4.
The difference between the high-precision inverse Laplace transform numerical solutions and the – numerical solutions ().
The considered equation belongs to the forced fractional oscillation equation. In Example 1, the transient oscillation evolves into steady-state increasing, while in Example 2, the transient oscillation grows into steady-state oscillation. Two examples show that the decreasing of the step-size h can effectively enhance the accuracy of the numerical solutions, and the present quadratic spline numerical solutions have higher precision than the – numerical solutions. It is worth noting that for the considered problem, in the initial stage the numerical solutions emerge slightly large errors, but with the process evolution errors can fall off in an oscillatory manner. In Example 1, the second-order derivative of the exact solution does not exist at . This responds the unusual errors in the initial stage.
We note that if a differentiable nonlinearity is added in the left hand side of Equation (2), then we can approximate the nonlinearity at , , as to derive an explicit scheme of numerical solutions in the nonlinear case. Inasmuch as we focus on the numerical schemes for the fractional derivatives by using the quadratic splines, examples in the nonlinear case are not involved.
5. Conclusions
We considered numerical solutions of a fractional differential equation with two Caputo fractional derivative terms, and . The proposed numerical algorithm is based on the method of quadratic spline interpolation. First, we derived discrete expressions of the two fractional derivatives at nodes based on the quadratic spline interpolation function. Then, the recursion scheme for numerical solutions was generated and the approximate solution in the form of quadratic spline function was obtained. Additionally, error estimations were considered. Two numerical examples were used to check the proposed method. For the considered fractional differential equation with the leading order between 1 and 2, the involved undetermined parameters in the quadratic spline interpolation function can be exactly resolved.
Compared with the – numerical solutions, where the first two node values need to be given, the iterative scheme of the present quadratic spline numerical solutions only needs to know the value of the first node , i.e., the iterative scheme starts from . An improved accuracy is shown in the two examples. The results give the discrete numerical solutions, and the continuous solution with continuous derivative composed of piecewise quadratic polynomials.
Author Contributions
Conceptualization, J.-S.D. and M.L.; data curation, Y.W. and Y.-L.A.; formal analysis, J.-S.D., M.L., Y.W. and Y.-L.A.; funding acquisition, J.-S.D., M.L. and Y.-L.A.; investigation, J.-S.D. and M.L.; methodology, J.-S.D., M.L., Y.W. and Y.-L.A.; software, Y.W. and Y.-L.A.; supervision, J.-S.D. and M.L.; validation, M.L.; visualization, Y.W. and Y.-L.A.; writing—original draft, J.-S.D., M.L. and Y.W.; writing—review and editing, J.-S.D., M.L., Y.W. and Y.-L.A. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (Nos. 61672238, 12071302 and 11772203).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Oldham, K.B.; Spanier, J. The Fractional Calculus; Academic: New York, NY, USA, 1974. [Google Scholar]
- Miller, K.S.; Ross, B. An Introduction to the Fractional Calculus and Fractional Differential Equations; Wiley: New York, NY, USA, 1993. [Google Scholar]
- Podlubny, I. Fractional Differential Equations; Academic: San Diego, CA, USA, 1999. [Google Scholar]
- Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
- Mainardi, F. Fractional Calculus and Waves in Linear Viscoelasticity; Imperial College: London, UK, 2010. [Google Scholar]
- Diethelm, K. The Analysis of Fractional Differential Equations; Springer: Berlin, Germany, 2010. [Google Scholar]
- Monje, C.A.; Chen, Y.Q.; Vinagre, B.M.; Xue, D.; Feliu, V. Fractional-Order Systems and Controls, Fundamentals and Applications; Springer: Berlin, Germany, 2010. [Google Scholar]
- Li, M. Theory of Fractional Engineering Vibrations; De Gruyter: Berlin, Germany; Boston, MA, USA, 2021. [Google Scholar]
- Wu, G.C.; Baleanu, D.; Xie, H.P.; Chen, F.L. Chaos synchronization of fractional chaotic maps based on the stability condition. Physica A 2016, 460, 374–383. [Google Scholar] [CrossRef]
- Cao, W.; Xu, Y.; Zheng, Z. Existence results for a class of generalized fractional boundary value problems. Adv. Differ. Equ. 2017, 2017, 348. [Google Scholar] [CrossRef]
- Băleanu, D.; Diethelm, K.; Scalas, E.; Trujillo, J.J. Fractional Calculus Models and Numerical Methods; Series on Complexity, Nonlinearity and Chaos; World Scientific: Boston, MA, USA, 2012. [Google Scholar]
- Li, C.; Zeng, F. Numerical Methods for Fractional Calculus; CRC Press: Boca Raton, FL, USA, 2015. [Google Scholar]
- Hajipour, M.; Jajarmi, A.; Baleanu, D. An efficient nonstandard finite difference scheme for a class of fractional chaotic systems. J. Comput. Nonlinear Dynam. 2018, 13, 021013. [Google Scholar] [CrossRef]
- Baleanu, D.; Inc, M.; Yusuf, A.; Aliyu, A.I. Space-time fractional Rosenou-Haynam equation: Lie symmetry analysis, explicit solutions and conservation laws. Adv. Differ. Equ. 2018, 2018, 46. [Google Scholar] [CrossRef] [Green Version]
- Liu, F.; Zhuang, P.; Anh, V.; Turner, I.; Burrage, K. Stability and convergence of the difference methods for the space-time fractional advection-diffusion equation. Appl. Math. Comput. 2007, 191, 12–20. [Google Scholar] [CrossRef]
- Podlubny, I. Matrix approach to discrete fractional calculus. Fract. Calc. Appl. Anal. 2000, 3, 359–386. [Google Scholar]
- Li, C.; Wang, Z. The local discontinuous Galerkin finite element methods for Caputo-type partial differential equations: Numerical analysis. Appl. Numer. Math. 2019, 140, 1–22. [Google Scholar] [CrossRef]
- Liu, L.; Xue, D.; Zhang, S. Closed-loop time response analysis of irrational fractional-order systems with numerical Laplace transform technique. Appl. Math. Comput. 2019, 350, 133–152. [Google Scholar] [CrossRef]
- Jafari, H.; Khalique, C.M.; Ramezani, M.; Tajadodi, H. Numerical solution of fractional differential equations by using fractional B-spline. Cent. Eur. J. Phys. 2013, 11, 1372–1376. [Google Scholar] [CrossRef] [Green Version]
- Luo, W.H.; Huang, T.Z.; Wu, G.C.; Gu, X.M. Quadratic spline collocation method for the time fractional subdiffusion equation. Appl. Math. Comput. 2016, 276, 252–265. [Google Scholar] [CrossRef]
- Qin, Y.; Wu, K. Numerical solution of fractional bioheat equation by quadratic spline collocation method. J. Nonlinear Sci. Appl. 2016, 9, 5061–5072. [Google Scholar] [CrossRef]
- Diethelm, K.; Ford, N.J.; Freed, A.D. A predictor-corrector approach for the numerical solution of fractional differential equations. Nonlinear Dynam. 2002, 29, 3–22. [Google Scholar] [CrossRef]
- Gao, G.H.; Sun, Z.Z.; Zhang, H.W. A new fractional numerical differentiation formula to approximate the Caputo fractional derivative and its applications. J. Comput. Phys. 2014, 259, 33–50. [Google Scholar] [CrossRef]
- Garrappa, R. Numerical solution of fractional differential equations: A survey and a software tutorial. Mathematics 2018, 6, 16. [Google Scholar] [CrossRef] [Green Version]
- Wang, T.; Qin, M.; Lian, H. The asymptotic approximations to linear weakly singular Volterra integral equations via Laplace transform. Numer. Algorithms 2020, 85, 683–711. [Google Scholar] [CrossRef]
- Li, Y.S. Splines and Interpolations; Science and Technology Press: Shanghai, China, 1983. [Google Scholar]
- Xie, S. Quadratic and cubic spline interpolation. J. Approx. Theory 1984, 41, 21–28. [Google Scholar] [CrossRef]
- Li, Y.S.; Huang, Y.Q. Numerical Approximation; People’s Education Press: Beijing, China, 1978. [Google Scholar]
- Wang, T.; Gu, Y.; Zhang, Z. An algorithm for the inversion of Laplace transforms using Puiseux expansions. Numer. Algorithms 2018, 78, 107–132. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).