Volume 2014, Issue 1 381074
Research Article
Open Access

Solving Fractional Diffusion Equation via the Collocation Method Based on Fractional Legendre Functions

Muhammed Syam

Corresponding Author

Muhammed Syam

Department of Mathematical Sciences, United Arab Emirates University, Al Ain, UAE uaeu.ac.ae

Search for more papers by this author
Mohammed Al-Refai

Mohammed Al-Refai

Department of Mathematical Sciences, United Arab Emirates University, Al Ain, UAE uaeu.ac.ae

Search for more papers by this author
First published: 24 July 2014
Citations: 11
Academic Editor: Mikhail Tokar

Abstract

A formulation of the fractional Legendre functions is constructed to solve the generalized time-fractional diffusion equation. The fractional derivative is described in the Caputo sense. The method is based on the collection Legendre and path following methods. Analysis for the presented method is given and numerical results are presented.

1. Introduction

We consider the generalized time-fractional diffusion equation of the form
()
with initial and boundary conditions
()
where a, fC1([−1,1]×[0, T]), gC[−1,1], h1, h2C[0, T], T > 0, and 0 < α ≤ 1. For α = 1, the fractional diffusion equation is reduced to a conventional diffusion-reaction equation which is well studied, so we focus on 0 < α < 1. Some existence and uniqueness results of Problem (1)-(2) were established in [1]. In recent years, great interests were devoted to the analytical and numerical treatments of fractional differential equations (FDEs). Usually, FDEs appear as generalizations to existing models with integer derivative and they also present new models for some physical problems [2, 3]. In general, FDEs do not possess exact solutions in closed forms, and, therefore, numerical methods such as the variational iteration (VIM) [4, 5], the homotopy analysis method (HAM) [6, 7], and the Adomian decomposition method (ADM) [8, 9] have been implemented for several types of FDEs. Also, the maximum principle and the method of lower and upper solutions have been extended to deal with FDEs and obtain analytical and numerical results [10, 11]. The Tau method, the pseudospectral method, and the wavelet method based on the Legendre polynomials have been implemented for several types of FDEs [1214]. Kazem et al. [12] have constructed the Legendre functions of fractional order and discussed some of their properties. The resulting Legendre function operational and product matrices, together with the Tau method, have been implemented to solve linear and nonlinear fractional differential equations. The effectiveness of the approach has been examined through several examples. In [13], a fractional diffusion equation is considered, where the fractional derivative of order 1 < α ≤ 2 refers to the spatial variable x. The Legendre pseudospectral method is implemented to solve the problem, where the solution is expanded with regular Legendre polynomials. As a result, a system of linear equation has been obtained and integrated using the finite difference method. However, in solving fractional differential equations of order α using series expansions, it is common and more efficient to expand the solution with fractional functions of the form . Rawashdeh [14] has implemented the Legendre wavelets method for integrodifferential equations with fractional order.

The Legendre collocation method has been implemented for wide classes of differential equations and the effectiveness of the method is illustrated [15]. In the recent work, we intend to apply the collocation method based on the shifted fractional Legendre functions to integrate the Problem (1)-(2). To the best of our knowledge, the method has not been developed to integrate fractional diffusion equations of the form (1)-(2). We organize this paper as follows. In Section 2, we present basic definitions and results of fractional derivative. In Section 3, we present the numerical technique for solving Problem (1)-(2). In Section 4, we present some numerical results to illustrate the efficiency of the presented method. Finally we conclude with some comments in Section 5.

2. Preliminaries

In this section, we present the definition and some preliminary results of the Caputo fractional derivative, as well as the definition of the fractional-order Legendre functions and their properties.

Definition 1. A real function f(t), t > 0, is said to be in the space Cμ, , if there exists a real number p > μ, such that f(t) = tpf1(t), where f1(t) ∈ C[0, ), and it is said to be in the space if f(m)Cμ, .

Definition 2. The left Riemann-Liouville fractional integral of order δ ≥ 0, of a function fCμ, μ ≥ −1, is defined by

()

Definition 3. For δ > 0, m − 1 < δm, , t > 0, and , the left Caputo fractional derivative is defined by

()
where Γ is the well-known Gamma function.

The Caputo derivative defined in (4) is related to the Riemann-Liouville fractional integral, Iδ, of order , by Dδf(t) = Imδf(m)(t). The Caputo fractional derivative satisfies the following properties for fCμ, μ ≥ −1, and α ≥ 0 (see [16]):
  • (1)

    DαIαf(t) = f(t),

  • (2)

    ,

  • (3)

    Dαc = 0, where c is constant,

  • (4)

    ,

  • (5)

    , where c1, c2, …, cm are constants.

The basic concept of this paper is the Legendre polynomials. For this reason, we study some of their properties.

Definition 4. The Legendre polynomials {Lk(x) : k = 0,1, 2, …} are the eigenfunctions of the Sturm-Liouville problem:

()

Among the properties of the Legendre polynomials we list the following [19]:
  • (1)

    , where ,

  • (2)

    Li+1(x) = ((2i + 1)/(i + 1))xLi(x)−(i/(i + 1))Li−1(x), for i⩾1,

  • (3)

    Li(±1) = (±1) i.

In order to use these polynomials on the interval [0,1], we define the shifted Legendre polynomials by Si(x) = Li(2x − 1). Using the change of variable z = 2x − 1, Si(x) has the following properties:
  • (1)

    ,

  • (2)

    Si+1(x) = ((2i + 1)/(i + 1))(2x − 1)Si(x)−(i/(i + 1))Si−1(x), for i⩾1,

  • (3)

    Si(0) = (−1) i and Si(1) = 1.

The analytic closed form of the shifted Legendre polynomials of degree i is given by
()
One of the common and efficient methods for solving fractional differential equations of order α > 0 is using series expansion of the form . For this reason, we define the fractional-order Legendre function by . Using the properties of the shifted Legendre polynomials, it is easy to verify that [20]
  • (1)

    , t ∈ (0,1),

  • (2)

    , for i⩾1,

  • (3)

    and ,

  • (4)

    and .

In addition, are orthogonal functions with respect to the weight function w(t) = tα−1 on (0,1) with
()
The closed form of is given by
()
Using properties (4) and (5) of the Caputo fractional derivative, we have
()

The following result is important, since it facilitates applying the collection method.

Theorem 5. Let uC1[0,1] and let u′′(t) be a piecewise continuous function on [0,1]. Then,

  • (i)

    u(t) can be represented by infinite series expansion as , where

    ()

  • (ii)

    converges uniformly on [0,1] to Dαu(t), where and , for k = 0,1, 2, … and j = k + 1, k + 2, … .

Proof. (i) Since uC1[−1,1] and u′′(x) is a piecewise continuous function on [−1,1],   converges uniformly to u(x) on [−1,1], where {vk} can be computed by the orthogonality relation of the Legendre polynomials; see [11]. Since r : [0,1]→[−1,1], defined by r(t) = 2tα − 1, is a bijection continuous function, the infinite series converges uniformly to u(t) on [0,1], where the value of uk follows from the orthogonality relation of with respect to the weight function w(t) = tα−1 on [0,1], which completes the proof.

(ii) Let for n = 0,1, 2, …. From Part (i), Pn(t) converges uniformly to u(t) on [0,1]. Since uC1[0,1] and u′′(t) is a piecewise continuous function on [0,1],

()
and (d/dt)Pn(t) converges uniformly to (d/dt)u(t) on [0,1]. Thus, converges uniformly to on [0,1] which gives the result of the second part. The value of ajk follows from the orthogonality relation of with respect to the weight function w(t) = tα−1 on [0,1].

3. Collocation Method

In this section, we use the fractional-order Legendre collocation method to discretize Problem (1)-(2). For simplicity, we assume that a(x, t) = a(x) and T = 1. If T ≠ 1, we use the change of variable τ = t/T to make the t-domain (0,1). Expand the solution u(x, t) in terms of the fractional-order Legendre function as follows:
()
Thus,
()
where for k = 0,1, …, N. Therefore, for UN(x, t), the residual is given by
()
Orthogonalize the residual with respect to the Dirac delta function as follows:
()
where xj are the collocation points. We choose the collocation points to be the roots of . Therefore, (15) leads to the elementwise equation:
()
or
()
Let
()
Thus, we can rewrite (17) in the matrix form as
()
where
()
Since for k = 0,1, …, N, it is easy to see that U(2)(t) = A3U(t), where A3 is (N + 1)×(N + 3) matrix. Therefore, System (19) becomes
()
Now, we study the boundary conditions on the variable x. From (12), one can see that
()
which implies that
()
where . From Systems (21) and (23), we obtain the following fractional system:
()
where
()
From (2) and (12), we see that
()
Using the orthogonality property of the Legendre polynomials, we get
()
Therefore, our initial fractional value problem becomes
()
()
where
()
To solve the System (28)-(29), we use the fractional-order Legendre collocation method. Approximate the solution U(t) in terms of the fractional-order Legendre function as follows:
()
Thus,
()
where , and , for k = 0,1, 2, …, M and j = k + 1, k + 2, …, M + 1. Therefore, for VM(t), the residual is given by
()
Orthogonalize the residual with respect to the Dirac delta function as follows:
()
where tj are the collocation points. We choose the collocation points to be
()
where t0, t1, …, tM are the roots of . Therefore, (34) leads to the elementwise equation:
()
or
()
Let
()
Thus, we can rewrite (37) in the matrix form as
()
where
()
Since , it is easy to see that V(α) = C5V, where
()
and for k = 0,1, 2, …, M and j = k + 1 : M + 1. Therefore, System (19) becomes
()
Now, we study the initial condition on the variable x. From (29), one can see that
()
which implies that
()
where C6 = . From Systems (21) and (23), we obtain the following linear system:
()
where
()
Finally, we use Mathematica to solve the above linear system.

4. Numerical Results

In this section, we implement the proposed numerical technique for four examples.

Example 1. Consider the fractional diffusion equation:

()
where Eα(t) is the Mittag-Leffler function. Since for 0 < α < 1, it is easy to see that the exact solution is
()
The exact solution for α = 1 is
()
The approximate solutions generated by the proposed method are presented in Figure 1, for different values of α and N = M = 10. Figure 2 depicts the exact solution (red) and the approximate solution (green) for α = 1, and N = M = 10. Define the error
()
where uapp(x, t) is the approximate solution generated by the proposed method for N = M = 10. Table 1 presents the error for different values of α.

Table 1. Error for Example 1.
α Er
0.5 4.4 ∗ 10−9
0.9 8.9 ∗ 10−10
0.99 6.1 ∗ 10−10
0.9999 5.2 ∗ 10−12
Details are in the caption following the image
The approximate solutions of Example 1.
Details are in the caption following the image
The approximate solutions of Example 1.
Details are in the caption following the image
The approximate solutions of Example 1.
Details are in the caption following the image
The approximate solutions of Example 1.
Details are in the caption following the image
Exact solution (red) and approximate solution (green) of Example 1.

Example 2. Consider the fractional diffusion equation:

()
where u(x, t) = t3x2 is the exact solution. The approximate solutions generated by the proposed method are presented in Figure 3 for different values of α and N = M = 6. Figure 4 depicts the exact solution (red) and the approximate solution (green) for α = 1 and N = M = 6.

Table 2 presents the error for different values of α.

Table 2. Error for Example 2.
α Er
0.5 7.2 ∗ 10−10
0.9 3.3 ∗ 10−11
0.99 4.1 ∗ 10−12
0.9999 7.2 ∗ 10−13
Details are in the caption following the image
The approximate solutions of Example 2.
Details are in the caption following the image
The approximate solutions of Example 2.
Details are in the caption following the image
The approximate solutions of Example 2.
Details are in the caption following the image
The approximate solutions of Example 2.
Details are in the caption following the image
Exact solution (red) and approximate solution (green) for Example 2.

Example 3. Consider the fractional diffusion equation presented in [17]:

()
The exact solution is
()
To apply the proposed method, we shall do the following change of variable X = 2x − 1. In this case, the x-domain becomes [−1,1]. The approximate solutions generated by the proposed method and the exact solution are presented in Figure 5 for α = 0.92 and α = 0.98 at t = 0.01 and N = M = 10. Table 3 presents a comparison between the error in our results and the ones obtained by the finite difference method (FDM) [17] for α = 0.92,0.98 and t = 0.01.

Table 3. Errors in FDM [17] and the proposed method at t = 0.01.
α =   0.92 α = 0.98
x Error in FDM Er Error in FDM Er
0.1 1.7 ∗ 10−6 3.1 ∗ 10−11 1.4 ∗ 10−6 2.9 ∗ 10−11
0.2 3.1 ∗ 10−6 4.2 ∗ 10−11 2.5 ∗ 10−6 2.9 ∗ 10−11
0.3 4.0 ∗ 10−6 4.7 ∗ 10−11 3.3 ∗ 10−6 3.1 ∗ 10−11
0.4 4.6 ∗ 10−6 4.9 ∗ 10−11 3.8 ∗ 10−6 3.3 ∗ 10−11
0.5 4.8 ∗ 10−6 5.2 ∗ 10−11 4.0 ∗ 10−6 3.6 ∗ 10−11
0.6 4.6 ∗ 10−6 3.9 ∗ 10−11 3.8 ∗ 10−6 3.3 ∗ 10−11
0.7 4.0 ∗ 10−6 3.2 ∗ 10−11 3.3 ∗ 10−6 3.1 ∗ 10−11
0.8 3.1 ∗ 10−6 2.8 ∗ 10−11 2.5 ∗ 10−6 2.2 ∗ 10−11
0.9 1.7 ∗ 10−6 2.1 ∗ 10−11 1.4 ∗ 10−6 1.9 ∗ 10−11
Details are in the caption following the image
Exact and approximate solutions of Example 3.
Details are in the caption following the image
Exact and approximate solutions of Example 3.

Example 4. Consider the fractional diffusion equation presented in [18]:

()
The exact solution is
()
To apply the proposed method, we will do the following change of variable X = 2x − 1. In this case, the x-domain becomes [−1,1]. To make a comparison with the results of [18], assume that eI, eII, and eIII are the errors in [18] using uniform mesh, quasiuniform mesh, and nonuniform mesh for T = 1. Let epro be the error in the proposed method for T = 1 and N = M = 10. Results are presented in Table 4.

Table 4. Results of the method in [18] and the proposed method.
α Number of mesh points in [18] eI eII eIII Er
  0.25 10 3.5*10−4 2.4*10−4 1.9*10−4 2.3*10−11
20 1.1*10−4 7.2*10−5 5.0*10−5
40 3.5*10−5 2.2*10−5 1.3*10−5
80 1.1*10−5 6.5*10−6 3.5*10−6
  
0.5 10 1.3*10−3 8.9*10−4 6.1*10−4 4.1*10−12
20 4.8*10−4 3.1*10−4 1.9*10−4
40 1.7*10−4 1.1*10−4 5.8*10−5
80 6.1*10−5 3.8*10−5 1.9*10−5
  
0.75 10 3.8*10−3 2.7*10−3 1.9*10−3  6.7*10−11
20 1.6*10−3 1.1*10−3 7.4*10−4
40 6.9*10−4 4.7*10−4 2.9*10−4
80 2.9*10−4 2.0*10−4 1.2*10−4

5. Conclusion

In this paper, we use series expansion based on the shifted fractional Legendre functions to solve fractional diffusions equations of Caputo’s type. We write the coefficients of the fractional derivative in terms of the shifted fractional Legendre functions as indicated in Theorem 5 and give explicit relationship between them. Then, we use the collocation method to compute these coefficients. To the best of our knowledge, the method has not been developed to integrate fractional diffusion equations of the form (1)-(2). We test the proposed technique for several examples and present four of them in this paper. These examples show the efficiency and the accuracy of the proposed method, where in few terms we achieved accuracy up to 10−10. In Examples 3 and 4, we compare our results with the ones obtained by FDM in [17, 18]. Both examples show that the proposed method works more efficiently and accurately than the methods in [17, 18].

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgment

The authors would like to express their sincere appreciation to United Arab Emirates University for the financial support of Grant no. 21S074.

      The full text of this article hosted at iucr.org is unavailable due to technical difficulties.