Solving Fractional Diffusion Equation via the Collocation Method Based on Fractional Legendre Functions
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
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 f ∈ Cμ, μ ≥ −1, is defined by
Definition 3. For δ > 0, m − 1 < δ ≤ m, , t > 0, and , the left Caputo fractional derivative is defined by
- (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:
- (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.
- (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.
- (1)
, t ∈ (0,1),
- (2)
, for i⩾1,
- (3)
and ,
- (4)
and .
The following result is important, since it facilitates applying the collection method.
Theorem 5. Let u ∈ C1[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 u ∈ C1[−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 u ∈ C1[0,1] and u′′(t) is a piecewise continuous function on [0,1],
3. Collocation Method
4. Numerical Results
In this section, we implement the proposed numerical technique for four examples.
Example 1. Consider the fractional diffusion equation:
α | 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 |





Example 2. Consider the fractional diffusion equation:
Table 2 presents the error for different values of α.
α | 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 |





Example 3. Consider the fractional diffusion equation presented in [17]:
α = 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 |


Example 4. Consider the fractional diffusion equation presented in [18]:
α | 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.