Literature DB >> 25057507

A Legendre tau-spectral method for solving time-fractional heat equation with nonlocal conditions.

A H Bhrawy1, M A Alghamdi2.   

Abstract

We develop the tau-spectral method to solve the time-fractional heat equation (T-FHE) with nonlocal condition. In order to achieve highly accurate solution of this problem, the operational matrix of fractional integration (described in the Riemann-Liouville sense) for shifted Legendre polynomials is investigated in conjunction with tau-spectral scheme and the Legendre operational polynomials are used as the base function. The main advantage in using the presented scheme is that it converts the T-FHE with nonlocal condition to a system of algebraic equations that simplifies the problem. For demonstrating the validity and applicability of the developed spectral scheme, two numerical examples are presented. The logarithmic graphs of the maximum absolute errors is presented to achieve the exponential convergence of the proposed method. Comparing between our spectral method and other methods ensures that our method is more accurate than those solved similar problem.

Entities:  

Mesh:

Year:  2014        PMID: 25057507      PMCID: PMC4099168          DOI: 10.1155/2014/706296

Source DB:  PubMed          Journal:  ScientificWorldJournal        ISSN: 1537-744X


1. Introduction

In recent years, many engineering and physical phenomena can be successfully described by models of fractional differential equations (FDEs); see, for instance, [1-7]. Thus many researchers have been interested in studying the properties of fractional calculus and finding stable and robust numerical and analytical schemes for solving FDEs such as spectral tau method [8-10], Crank-Nicolson method [11], compact finite difference approximation [12], Legendre wavelets method [13], Haar wavelet operational matrix method [14], iterative Laplace transform method [15], Lie symmetry analysis method [16], and other methods [17-20]. Recently, spectral methods [21-23] have been applied to solve ordinary FDEs (see [24, 25]) while in [26, 27] the authors introduced the operational matrices of fractional derivatives with the help of the spectral methods to solve FDEs. This is not all; the partial FDEs are also investigated by using the spectral methods. In [28-31], the tau and collocation spectral methods are implemented in combination with the operational matrices of fractional integration for approximating the solution of some classes of space-fractional differential equations. The T-FHE is a generalization of the classical heat equation obtained by replacing the first order time derivative by a fractional derivative of order ν, 0 < ν ≤ 1. Ali and Jassim [32] used the homotopy perturbation method to solve the T-FHE, while in [33] the authors introduced a general iteration formula of variational iteration method for a solution of the T-FHE. Moreover, in [34] the differential transform method is applied to solve the T-FHE. In addition, Rostamy and Karimi [35] constructed the Bernstein operational matrix for the fractional derivatives and used it together with spectral method to solve the T-FHE. In this paper, we consider the T-FHE with the nonlocal condition [36]: subject to where 0 < ν ≤ 1, u(x, t) is the temperature as a function of space x and time t, and q(x, t) is known source term. Our main aim is to achieve highly accurate solution of the T-FHE with nonlocal conditions (1) and (2). The tau-spectral method is applied based on the shifted Legendre polynomials as a basis function with the help of the operational matrix of fractional integration of such polynomials. Two numerical examples are introduced and solved using the presented technique to show its accuracy and validity. Also, we introduce comparisons between our numerical results and those obtained using the implicit difference approximation (IDA). This paper is arranged in the following way: in Section 2 we introduce some definitions and notations of fractional calculus with some properties of Legendre polynomials. In Section 3 we apply our algorithm for the solution of the T-FHE with nonlocal condition. In Section 4 two numerical examples and comparisons between our results and those obtained by the IDA are introduced. Also in Section 5, a conclusion is presented.

2. Preliminaries and Notations

2.1. Fractional Calculus Definitions

Riemann-Liouville and Caputo fractional definitions are the two most used from other definitions of fractional derivatives which have been introduced recently.

Definition 1 .

The integral of order γ ≥ 0 (fractional) according to Riemann-Liouville is given by where is gamma function. The operator I satisfies the following properties:

Definition 2 .

The Caputo fractional derivative of order ν is defined by where m is the ceiling function of ν. The operator D satisfies the following properties:

2.2. Shifted Legendre Polynomials

Assuming that the Legendre polynomial of degree j is denoted by P (z) (defined on the interval (−1,1)), then P (z) may be generated by the recurrence formulae Considering z = 2x − 1, Legendre polynomials are defined on the interval (0,1) that may be called shifted Legendre polynomials P *(x) that were generated using the following recurrence formulae: The orthogonality relation is The explicit analytical form of shifted Legendre polynomial P *(x) of degree j may be written as and this in turn enables one to get Any square integrable function u(x) defined on the interval (0,1) may be expressed in terms of shifted Legendre polynomials as from which the coefficients a are given by If we approximate u(x) by the first (N + 1)-terms, then we can write which alternatively may be written in the matrix form with Similarly, let u(x, t) be an infinitely differentiable function defined on 0 < x ≤ 1 and 0 < t ≤ 1. Then it may be expressed as with

Theorem 3 .

The first derivative of the shifted Legendre vector Ψ(x) may be expressed as where D is the (N + 1) × (N + 1) operational matrix of derivative given by Repeated use of (21) enables one to write where q is a natural number and D means matrix power.

Theorem 4 .

The Riemann-Liouville fractional integral of order ν of the shifted Legendre polynomial vector Ψ(t) is given by where P is the (M + 1) × (M + 1) operational matrix of fractional integral of order ν and is defined by where (See [37] for proof.)

3. Legendre tau-Spectral Method

In this section, the Legendre operational matrix of fractional integrals is applied with the help of Legendre tau-spectral method to solve the T-FHE with the nonlocal condition. Consider the T-FHE with the nonlocal condition We integrate (27) of order ν and making use of (7), we have In order to use tau-spectral method based on the shifted Legendre operational matrix for fractional integrals to solve the fully integrated problem (28), we approximate (x, t), f(x), and q(x, t) by the shifted Legendre polynomials as where U is the unknown coefficients (M + 1) × (N + 1) matrix and F and Q are known matrices that can be written as where f and q are given as in (14) and (20), respectively. Using (29), it is easy to write where V is a (M + 1) × (N + 1) matrix that can be written as Making use of (23), (24), and (29) enables one to write In addition, if we use (24) and (29), we obtain Equations (31) and (34) enable one to write the residual R (x, t) for (28) in the form As in a typical tau method (see [22, 38, 39]) we generate (M + 1)(N − 1) linear algebraic equations in the unknown expansion coefficients, u , i = 0,1,…, M; j = 0,1,…, N − 2, namely; and the rest of linear algebraic equations are obtained from the boundary conditions, as where t , i = 0,1,…, M are the roots of P *(t). The number of the unknown coefficients u is equal to (M + 1)(N + 1) and can be obtained from (36) and (37). Consequently u (x, t) given in (29) can be calculated.

4. Numerical Experiments

In order to highlight the accuracy of the presented scheme, we implement it to solve two numerical examples, and also comparisons between their exact solutions with the approximate solutions achieved using the presented scheme and with those achieved using other methods are made.

Example 1 .

We consider the following problem [36]: with exact solution u(x, t) = t 2sin(2πx). Karatay et al. [36] introduced this problem and applied the IDA method to approximate its solution at various choices of time and space nodes M and N. We apply our numerical scheme for this problem. In order to show that our scheme is more accurate than the IDA method, in Table 1, we compare the maximum absolute errors (MAEs) achieved using our scheme with those obtained using the IDA [36] method at different values of N, (N = M). Moreover, Figure 1 plots the absolute error function at M = N = 18, while Figure 2 plots the absolute error function for t = 0.5 at M = N = 18.
Table 1

Comparison of our scheme with the IDA [36] at various choices of N, (N = M) for Example 1.

Our scheme IDA [36]
N = M MAEs N = M MAEs
6 2.541507 · 10−2 42.297695 · 10−1
8 8.774320 · 10−4 85.383793 · 10−2
10 2.118341 · 10−5 161.391800 · 10−2
12 1.832678 · 10−6 323.843610 · 10−3
14 1.037991 · 10−6 641.152111 · 10−3
16 6.590323 · 10−7 1283.844224 · 10−4
18 4.383403 · 10−7 2561.447756 · 10−4
Figure 1

Absolute error function at N = M = 18 for Example 1.

Figure 2

Absolute error function at N = M = 18 with t = 0.5 for Example 1.

Example 2 .

Consider the following problem: with exact solution u(x, t) = t 2ln⁡(1 + x(1 − x)). Karatay et al. [36] introduced this problem and solved it for two choices of ν, ν = 0.45,0.95 at different values of N and M. Table 2 lists the MAEs for ν = 0.45, 0.95 using our scheme at N = M = 4,6, 8,10,12,14,16,18 and a comparison with those obtained in [36] at M = 16, N = 2,4, 8,16,32,64,128,256 and N = 16, M = 2,4, 8,16,32,64,128,256. Figures 3 and 4 plot the absolute error functions at M = N = 20 with ν 1 = 0.45 and ν = 0.95, respectively. Finally, in order to demonstrate the convergence of the proposed method, in Figure 5, we plot the logarithmic graphs of the maximum absolute errors (log10Error) at two choices of ν, ν = 0.45, 0.95 and various choices of N, (N = M), by using the presented algorithm.
Table 2

Comparison of our scheme with the IDA [36] at various choices of N and M for Example 2.

Our scheme IDA [36]
N ν = 0.45ν = 0.95 M = 16 N = 16
N ν = 0.45ν = 0.95 M ν = 0.45ν = 0.95
4 1.08 · 10−3 1.10 · 10−3 21.46 · 10−2 7.45 · 10−3 23.88 · 10−2 4.30 · 10−2
6 5.84 · 10−5 5.86 · 10−5 47.59 · 10−3 4.06 · 10−3 49.51 · 10−3 9.47 · 10−3
8 6.33 · 10−6 5.01 · 10−6 84.03 · 10−3 2.30 · 10−3 83.65 · 10−3 2.96 · 10−3
101.86 · 10−6 1.15 · 10−6 162.24 · 10−3 1.41 · 10−3 162.24 · 10−3 1.41 · 10−3
129.03 · 10−7 5.12 · 10−7 321.35 · 10−3 9.59 · 10−4 321.89 · 10−3 1.02 · 10−3
145.07 · 10−7 2.81 · 10−7 649.02 · 10−4 7.33 · 10−4 641.81 · 10−3 9.31 · 10−4
163.06 · 10−7 1.69 · 10−7 1286.78 · 10−4 6.19 · 10−4 1281.78 · 10−3 9.07 · 10−4
181.95 · 10−7 1.69 · 10−7 2565.66 · 10−4 5.62 · 10−4 2561.78 · 10−3 9.01 · 10−4
Figure 3

Absolute error function at N = M = 20 with γ = 0.45 for Example 2.

Figure 4

Absolute error function at N = M = 20 with γ = 0.95 for Example 2.

Figure 5

Absolute error function at N = M = 20 with γ = 0.95 for Example 2.

From Tables 1 and 2 and Figures 1 and 2 introduced above, it is shown that the proposed scheme is more accurate than the IDA method introduced by Karatay et al. [36].

5. Conclusion

An effective and accurate numerical scheme was developed to approximate the solution of the T-FHE with the nonlocal condition. The developed approach is based on the Legendre tau-spectral method combined with the operational matrix of fractional integration (described in the Riemann-Liouville sense) for orthogonal polynomials. A good approximation of the exact solution was achieved by using a limited number of the basis function. The logarithmic graphs of the maximum absolute errors were presented to achieve the exponential convergence of the proposed method. Comparisons between our approximate solutions of test problems with their exact solutions and the approximate solutions achieved by the IDA method were introduced to confirm the validity and accuracy of our scheme.
  1 in total

1.  Lie symmetry analysis and explicit solutions of the time fractional fifth-order KdV equation.

Authors:  Gang Wei Wang; Tian Zhou Xu; Tao Feng
Journal:  PLoS One       Date:  2014-02-11       Impact factor: 3.240

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.