#### Abstract

A spectral deferred correction method is presented for the initial value problems of fractional differential equations (FDEs) with Caputo derivative. This method is constructed based on the residual function and the error equation deduced from Volterra integral equations equivalent to the FDEs. The proposed method allows that one can use a relatively few nodes to obtain the high accuracy numerical solutions of FDEs without the penalty of a huge computational cost due to the nonlocality of Caputo derivative. Finally, preliminary numerical experiments are given to verify the efficiency and accuracy of this method.

#### 1. Introduction

Fractional calculus, almost as old as the familiar integer-order calculus, has recently gained considerable popularity and importance due to its attractive applications in widespread fields of science and engineering (e.g., [1–6]), such as control theory [5], viscoelasticity [7], image processing [8], electromagnetism [9], anomalous diffusion [10, 11], and hydrology [12, 13]. The overwhelming advantage is that fractional calculus provides an excellent instrument for the description of memory and hereditary properties of various materials and processes. These applications greatly highlight distinct superiorities and unsubstitutability of fractional calculus.

Similar to the integer-order differential equations, it is usually difficult to obtain the analytical solution for fractional differential equations (FDEs) (e.g., [14, 15]), and one has to resort to numerical methods. Thus, there has been a growing interest to develop numerical approaches in solving FDEs, and many and varied methods have been considered, for example [15–24]. In 2000, Podlubny [16] suggested a matrix form representation of discrete analogues of various forms of fractional differentiation and fractional integration. Based on the so-called triangular strip matrices, an approach was presented to significant simplification of the numerical solution of fractional integral and differential equations. Diethelm et al. [17, 18] discussed an Adams-type predictor-corrector method for the numerical solution of FDEs and gave a detailed error analysis for this algorithm, including error bounds under various types of assumptions on the equation and asymptotic expansions for the error. This Adams-type method is convergent with order at least one if the analytical solution is twice continuously differentiable. In 2007, Lin and Liu [19] developed a kind of linear multistep methods for fractional initial value problems based on Lubich’s high-order approximations [20] to fractional derivatives and integrals. And they proved the consistence, convergence, and stability of these methods. In 2006, Kumar and Agrawal [21] utilized the equivalent Volterra integral equation and extended a block-by-block method to some kinds of FDEs. Numerical examples have shown the efficiency and stability of this scheme. However, it is a pity that the error estimate and convergence order analysis of this scheme was neglected. Thus Huang et al. [22] derived error estimate and precise convergence order of the block-by-block method under certain assumptions and tested the order via numerical experiments. It is shown that this block-by-block method is convergent with order at least 3 for any fractional order index . Li [23] derived a Chebyshev wavelet operational matrix of the fractional integration and used it to solve a nonlinear FDEs. In 2011, Scherer et al. [24] discussed finite difference schemes for the approximation of FDEs based on the Grünwald-Letnikov definition of fractional derivatives. Then, the asymptotic stability, the absolute stability, error representations, and estimates of the proposed explicit and implicit methods were obtained.

As for fractional partial differential equations (FPDEs), maybe the most famous model is the fractional diffusion equation used to describe the anomalous diffusion in porous medium. Further applications and numerical methods for fractional diffusion equation were discussed (e.g., [25–29] and references therein).

It is well known that the key difficulty in numerically solving FDEs or FPDEs is to discretize the nonlocal fractional operators, due to the requirement of using the values of the numerical solution for all the previous times at which the solution is calculated. This makes numerical methods slow and hugely memory demanding when the number of nodes is large. The problem is so acute that a great deal of effort has been devoted to overcoming it. In [30], Yuste and Quintana-Murillo presented an implicit finite difference method with nonuniform timesteps for discretizing Caputo derivative. This method allows one to build adaptive methods where the size of the timesteps is adjusted to the behavior of the solution. In this paper, a spectral deferred correction method for classical ordinary differential equations [31, 32] is extended and reconstructed to solve FDEs based on accelerating the convergence of lower-order schemes. For the new method, a relatively few Gauss-Legendre-Lobatto points are needed, and the high accuracy numerical solutions of FDEs can be easily obtained without a huge computational cost.

This paper is organized as follows. In Section 2, the equivalent Volterra integral equation is given; then a residual function and an error equation are defined. In Section 3, based on Gauss-Legendre-Lobatto points, a spectral approximation of the residual function is obtained. In Section 4, a fractional Adams method is used as a preconditioner to solve the error equation; then we describe the new spectral deferred correction method for FDEs. In Section 5, preliminary numerical experiments are given to verify the efficiency and accuracy of the proposed method.

#### 2. Residual Function and Error Equation

In this paper, we discuss the numerical solution of the following FDE initial value problem (IVP): where is fractional Caputo derivative of order and defined as Assume that the right-hand side function is continuous with respect to two variables and . Then, according to Lemma 1 of [33], IVP (1) is equivalent to the following Volterra integral equation of the second kind: Obviously, if , the kernel in the integral of (3) is singular, and if , then (3) becomes the classical Picard integral equation formulation.

Suppose now that an approximate solution to (3) has been obtained by a low-order method. A measure of the quality of the approximation is given by the residual function And the error can be defined by However, in (5), is the exact solution of IVP (1), and we often cannot know it beforehand. Next, a relation between the residual function and the error will be deduced.

Substituting (5) into (3), (3) can be rewritten as then after some algebraic manipulation, it becomes

In (7), once the residual function is fixed, then a low-order method, such as fractional Adams method presented in [18], will be used to solve (7). In the following, we specify how the values are actually computed. For this, some stable and high-order accurate methods for interpolation and integration are required.

#### 3. Spectral Approximation of the Residual Function

In this section, a spectral method is designed for obtaining high-order numerical approximation of the residual function.

Suppose that are the Gauss-Legendre-Lobatto nodes on , where and . Noticing that the interval of IVP (1) is , we can obtain Gauss nodes on through the following linear transformation:

Now, a low-order method is used to solve IVP (1) and get the initial approximation . Here, we take the following fractional explicit Euler method; namely, for , where is the approximations of solution function at nodes (), the weight coefficients are computed by

After obtaining the numerical solutions , using the nodes as the nodes of Lagrange interpolation for the initial approximation and the right-hand side function , we have where is the Lagrange interpolation polynomial of order , given as

In specific computations, the fractional Riemann-Liouville integral of Lagrange interpolation polynomial is needed. To this end, should be transformed into following expressions: where the coefficients can be computed by its matrix form, namely, here is the identity matrix of order .

By (11), the fractional integral of is calculated as

Substituting (11) and (12) into (4) and using (16), the residual function (4) is approximated as follows:

#### 4. Spectral Deferred Correction Method

Once the residual function is computed by (17), the error equation (7) can be numerically solved by the fractional Adams method [18]; that is, for where is the so-called predictor, and are defined as with

Let the initial approximation vector , the error vector ; then the initial approximation solution is updated with

Based on the new solution , we can continue to compute the new residual function and the new error. And this procedure can be repeated until the high-accuracy solution is obtained. The pseudocode for spectral deferred correction method is given by the following.

*Step 1 (initialization). *Set a small parameter . Use fractional explicit Euler method (9) to compute an initial solution at nodes on the interval .

*Step 2. *Based on the initial approximation , compute the approximate residual function () by using (17).

*Step 3. *Use fractional Adams method (18) to solve the error equation and obtain the approximation ().

*Step 4. *Update the approximate solution (). If , then stop, and the approximation is the solution we get finally. If , let , and go to Step 2.

It can be checked that each correction procedure in this algorithm can improve the accuracy of the method, as long as such improvement has not gone beyond the degree of the underlying interpolating polynomial and the quadrature rules.

#### 5. Numerical Examples

In this section, we verify the performance and high accuracy of the proposed method by following two examples. In these computations, the small parameter . All codes are written in Matlab 2010b and run on a personal computer with Intel(R) Core(TM)2 Duo CPU P7350 processor 2.00 GHz, 2 GB memory.

*Example 1. *Consider the following FDEs:
with initial condition . The exact solution of this problem is given as

In Table 1, we list the number of iterations denoted by “Iter.,” the CPU time in second “Time[s]” and the errors in the maximum norm for different nodes and fractional order index . It demonstrates that when the new spectral deferred correction method is used to solve Example 1, only a relatively few nodes are used, and the high-order accuracy numerical solution is obtained with small computation complexity and computing time. To illustrate this point, we use fractional block-by-block method [21] for comparison. To achieve the accuracy of 10^{−9}, fractional block-by-block method needs about 320 nodes and 20.031599 seconds. Figure 1 shows that the error fast converge to machine precision, and it almost shows an exponential decay with increasing .

*Example 2. *Let one consider the following equations:
subject to the initial condition . The exact solution is

For numerical experiments of Example 2, compared with the Example 1, the similar numerical results can be obtained. However, from Table 2 and Figure 2, one should notice that the error is larger than that of Example 1’s, and its convergence speed is also relatively slow. We think the reason is that the exact solution in Example 1 is smoother than the solution in Example 2, because it is well known that the results of any numerical method often depend on the smoothness of a given problem.

#### 6. Conclusion

In this paper, a spectral deferred correction method is presented for fractional differential equations with initial value condition. Numerical experiments show it can obtain the high-order accuracy numerical solutions of FDEs without a huge computational cost caused by the nonlocality of fractional derivative. However, more efforts are needed to further the study such as detailed theoretical analysis and improve the algorithm for long-time simulation.

#### Acknowledgments

W. Zhao’s work was supported partially by National Natural Science Foundation of China (no. 11072120 and no. 11002075), and J. Zhu’s work was supported partially by Brazilian National Council for Scientific and Technological Development (CNPq).