Next Article in Journal
A New Discretization Scheme for the Non-Isotropic Stockwell Transform
Previous Article in Journal
Prediction of Tool Remaining Useful Life Based on NHPP-WPHM
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Second-Order Accurate Numerical Approximation for a Two-Sided Space-Fractional Diffusion Equation

1
School of Science, Shaoyang University, Shaoyang 422000, China
2
School of Mathematics and Statistics, Central South University, Changsha 410083, China
3
Eastern Institute for Advanced Study, Yongriver Institute of Technology, Ningbo 315201, China
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(8), 1838; https://doi.org/10.3390/math11081838
Submission received: 13 February 2023 / Revised: 10 March 2023 / Accepted: 10 April 2023 / Published: 12 April 2023
(This article belongs to the Topic Fractional Calculus: Theory and Applications)

Abstract

:
In this paper, we investigate a practical numerical method for solving a one-dimensional two-sided space-fractional diffusion equation with variable coefficients in a finite domain, which is based on the classical Crank-Nicolson (CN) method combined with Richardson extrapolation. Second-order exact numerical estimates in time and space are obtained. The unconditional stability and convergence of the method are tested. Two numerical examples are also presented and compared with the exact solution.

1. Introduction

In recent years, fractional differential equations have been of great interest for their use in modelling problems in physics (for an excellent review, see [1]), biology [2], chemistry [3] and even finance [4]. Numerical methods have become the main way to solve fractional-order equations, since we cannot easily obtain explicit analytical solutions to fractional-order equations. Several authors have proposed some effective numerical methods. Liu et al. [5] proposed a novel spatial second-order exact semi-implicit alternating direction method for the two-dimensional fractional FitzHugh-Nagumo single-domain model. Li et al. [6] proposed a spectral method for solving a fractional diffusion-absorption-reaction equation. She et al. [7] studied and analysed the Crank-Nicolson time discretisation of one- and two-dimensional spatial fractional diffusion equations. Hao et al. [8] studied the regularity of two-sided fractional diffusion equations with reaction terms and spectral methods. Li et al. [9] studied the fractional spectral localisation discretization of optimal control problems governed by spatial fractional diffusion equations. Gunzburger et al. [10] proposed a stable finite volume element method to approximate the coupled Stokes-Darcy problem. Ozbilge et al. [11] considered a finite difference scheme for the inverse problem of time-fractional parabolic partial differential equations with non-local boundary conditions. Feng et al. [12] developed a new fractional finite volume method based on the nodal basis functions for a two-sided space-fractional diffusion equation. Liu et al. [13] considered the problem of minimising a non-convex integral function in control, which is a solution to a control system described by fractional differential equations with mixed non-convex constraints on the control. Jia et al. [14] considered a fast finite difference method for a spatial fractional diffusion equation with fractional derivative boundary conditions. Lai et al. [15] considered the numerical solution of a Riesz spatial fractional partial differential equation with second order time derivatives. Chen et al. [16] considered a compact difference scheme for a second-order backward differential formulation of the fractional-order Volterra equation with a truncation error of order 4 in time and order 4 in space. Ma et al. [17] proposed a new signal smoothing equations, and they introduced generalized filters by use of memory effects of fractional derivatives. Shiri et al. [18] proposed an interesting Neural Network method for solving diffusion equations. Qu et al. [19] proposed a weight finite difference scheme for space fractional diffusion equations. There are some new papers in the fractional differential equations (see [20,21]). Based on the fractional-order Fick’s law, a fractional-order diffusion model is derived for the space of variable coefficients with two-sided derivatives in the conserved form. The continuum equation in one-dimensional form can be written according to the mass conservation law as
p ( x , t ) t + Q ( x , t ) x = f ( x , t ) ,
where p ( x , t ) is the distribution function of the diffusing quantity, Q ( x , t ) is the diffusion flux and f ( x , t ) is the source term. The classical Fick’s law can be extended as follows:
Q ( x , t ) = C ( x ) x a x K + ( x , ξ ) p ( ξ , t ) d ξ D ( x ) x x b K ( x , ξ ) p ( ξ , t ) d ξ ,
where C ( x ) and D ( x ) are non-negative diffusion coefficients. On the interval [ a , b ] , C ( x ) is a monotonically decreasing function of x and D ( x ) is a monotonically increasing function of x. The kernel functions K + ( x , ξ ) and K ( x , ξ ) are defined as follows
K + ( x , ξ ) = 1 Γ ( 1 α ) ( x ξ ) α a ξ x , K ( x , ξ ) = 1 Γ ( 1 α ) ( ξ x ) α x ξ b ,
where 0 < α < 1 . Combination of Equations (1) and (2), Chen et al. [22] have derived the following nonlinear two-sided space fractional diffusion equation with variable coefficients.
p ( x , t ) t = x ( C ( x ) α p ( x , t ) x α D ( x ) α p ( x , t ) ( x ) α ) + f ( x , t ) , a x b , 0 < α < 1 , 0 < t T ,
where α p ( x , t ) α ( x ) is the right Riemman-Liouville fractional derivatives, α p ( x , t ) α x is the left Riemman-Liouville fractional derivatives (see [23,24] for details) defined by
α p ( x , t ) ( x ) α = 1 Γ ( 1 α ) x x b p ( s , t ) ( s x ) α d s ,
α p ( x , t ) x α = 1 Γ ( 1 α ) x a x p ( s , t ) ( x s ) α d s .
In this paper, we consider the above one-dimensional fractional two-sided space-fractional diffusion Equation (4) with the following initial value conditions and Dirichlet boundary conditions:
p ( x , 0 ) = ϕ ( x ) , a x b ,
p ( a , t ) = p ( b , t ) = 0 , 0 t T .
For this new one-dimensional two-sided spatial fractional diffusion equation, Chen et al. [22] gave a fast semi-implicit difference method. However, the method is only first order accuracy. To the best of our knowledge, there is limited research on the numerical computation of this equation with high accuracy based on the classical Crank-Nicolson scheme. This motivates us to propose in this paper an approach to this equation based on the classical Crank-Nicolson scheme and combined with a Richard space extrapolation. Our method is second order accuracy in time and space.
The remaining work is structured as follows. In Section 2, we present the classical Crank-Nicolson difference method for the one-dimensional two-sided spatial fractional diffusion equation and analyse its consistency. In Section 3, we prove the stability and convergence of the method. The method is then combined with spatial extrapolation. The convergence accuracy is improved to second order accuracy in time and space. In Section 4, two numerical experiments are given in order to verify the theoretical analysis of the method.

2. The Classical CN Difference Scheme for the One-Dimensional Two-Sided Space-Fractional Diffusion Equation and Its Consistency

For the numerical approximation, define t n = n Δ t , 0 t n T , for n = 0 , 1 , 2 , , N and x i = a + i h for i = 0 , 1 , , M , where Δ t , h are the mesh-width in the time and space respectively, Δ t = T / N , h = ( b a ) / M , C i = C ( x i ) , D i = D ( x i ) , and f i n = f ( x i , t n ) . Let P i n , p i n denote the exact and numerical solutions at the grid point ( x i , t n ) respectively. The initial conditions are given by p i 0 = ϕ i = ϕ ( x i ) . Similarly, the Dirichlet zero boundary conditions are given by p 0 n = p M n = 0 , for n = 0 , 1 , , N .
To approximate α p ( x , t ) α ( x ) and α p ( x , t ) α x , we use shifted left and standard right Grünwald formulas [25], respectively, at time t n + 1 / 2 = 1 2 ( t n + t n + 1 ) . The formulas are as follows:
α p ( x i , t n + 1 / 2 ) α ( x ) = 1 ( h ) α s = 0 M i g s ( α ) P i + s n + 1 / 2 + O ( h ) ,
α p ( x i , t n + 1 / 2 ) α x = 1 ( h ) α s = 0 i + 1 g s ( α ) P i + 1 s n + 1 / 2 + O ( h ) ,
where g s ( α ) = ( 1 ) s α s is the normalized Grünwald weights. Its properties meet the following Lemma 1.
Lemma 1 
(see [26]). Let 0 < α < 1 , the Grünwald weights g s ( α ) satisfy the properties:
 (i) 
s = 0 g 0 ( α ) = 0 .
 (ii) 
g 0 ( α ) = 1 , g s ( α ) < 0  for  s 1 .
 (iii) 
s = 0 n g s ( α ) > 0  for any  n 1 .
 (iv) 
g s + 1 ( α ) g s ( α ) = g s + 1 ( α + 1 ) for  s 1 .
 (v) 
s = 0 n g s ( α + 1 ) < 0  for any  n 1 .
Thus, we obtain a CN difference scheme for the one-dimensional two-sided space-fractional diffusion equation at the point ( x i , t n + 1 / 2 ) .
p i n + 1 p i n Δ t 1 h ( C ( x ) α p ( x , t n + 1 / 2 ) x α D ( x ) α p ( x , t n + 1 / 2 ) ( x ) α ) | x i 1 x i + f i n + 1 / 2 = 1 h ( C i α p ( x i , t n + 1 / 2 ) x α D i α p ( x i , t n + 1 / 2 ) ( x ) α ) 1 h ( C i 1 α p ( x i 1 , t n + 1 / 2 ) x α D i 1 α p ( x i 1 , t n + 1 / 2 ) ( x ) α ) + f i n + 1 / 2 1 2 h α + 1 [ ( C i s = 0 i + 1 g s ( α ) p i + 1 s n + 1 + C i s = 0 i + 1 g s ( α ) p i + 1 s n ) ( C i 1 s = 0 i g s ( α ) p i s n + 1 + C i 1 s = 0 i g s ( α ) p i s n ) ] 1 2 h α + 1 [ ( D i s = 0 M i g s ( α ) p i + s n + 1 + D i s = 0 M i g s ( α ) p i + s n ) ( D i 1 s = 0 M i + 1 g s ( α ) p i + s 1 n + 1 + D i 1 s = 0 M i + 1 g s ( α ) p i + s 1 n ) ] = 1 2 h α + 1 [ ( s = 0 i + 1 ( C i g i + 1 s ( α + 1 ) C i 1 g i s ( α + 1 ) ) p s n + 1 + C i g 0 ( α ) p i + 1 n + 1 ) + ( s = 0 i + 1 ( C i g i + 1 s ( α + 1 ) C i 1 g i s ( α + 1 ) ) p s n + C i g 0 ( α ) p i + 1 n ) ] + p i + 1 n 1 2 h α + 1 [ s = i M ( D i 1 g s + 1 i ( α ) D i g s i ( α ) ) p s n + 1 + D i 1 g 0 ( α ) p s n + 1 ) + ( s = i M ( D i 1 g s + 1 i ( α ) D i g s i ( α ) ) p s n + D i 1 g 0 ( α ) p s i 1 ) ] .
After some rearrangements, we can get CN scheme
p i n + 1 p i n Δ t = 1 2 h α + 1 [ ( s = 0 i + 1 C i g i + 1 s ( α + 1 ) p s n + 1 + s = 0 i + 1 C i g i s ( α ) p s n ) + ( s = 0 i ( C i C i 1 ) g i s ( α ) p s n + 1 + s = 0 i ( C i C i 1 ) g i s ( α ) p s n ) ] 1 2 h α + 1 [ ( s = i 1 M D i 1 g s + 1 i ( α + 1 ) p s n + 1 + s = i 1 M D i 1 g s + 1 i ( α + 1 ) p s n ) + ( s = i M ( D i 1 D i ) g s i ( α ) p s n + 1 + s = i M ( D i 1 D i ) g s i ( α ) p s n ) ] .
Organize the above equation and write it in the following operators form
( 1 δ α , x ) p i n + 1 = ( 1 + δ α , x ) p i n + Δ t f i n + 1 / 2 ,
where the difference operators as
δ α , x p i n = Δ t 2 h α + 1 [ ( s = 0 i ( C i g i + 1 s ( α ) C i 1 g i s ( α ) ) p s n ) + C i g 0 ( α ) p i + 1 n ] + Δ t 2 h α + 1 [ ( s = i M ( D i 1 g s + 1 i ( α ) D i g s i ( α ) ) p s n ) + D i 1 g 0 ( α ) p i 1 n ] .
It can be further written in the matrix form as follows:
( I A ) P n + 1 = ( I + A ) P n + Δ t F n + 1 / 2 ,
where I is ( M 1 ) × ( M 1 ) identity matrix; P n = ( p 1 n , p 2 n , , p M 1 n ) ; F n + 1 / 2 =   ( f 1 n + 1 / 2 , f 2 n + 1 / 2 , , f M 1 n + 1 / 2 ) ; and the matric A = ( A i , s ) , i , s = 1 , 2 , , M 1 , is defined by
A i , s = η ( D i 1 g s i + 1 ( α ) D i g s i ( α ) ) when s > i + 1 , η ( C i g 0 ( α ) + D i 1 g 2 ( α ) D i g 1 ( α ) ) when s = i + 1 , η ( C i g 1 ( α ) C i 1 g 0 ( α ) + D i 1 g 1 ( α ) D i g 0 ( α ) ) when s = i , η ( C i g 2 ( α ) C i 1 g 0 ( α ) + D i 1 g 0 ( α ) ) when s = i 1 , η ( C i g i + 1 s ( α ) C i 1 g i s ( α ) ) when s < i 1 ,
where  η = Δ t 2 h α + 1 .
Theorem 1. 
The classical CN method defined by Equation (9) is consistent with Equation (4) of order  O ( ( Δ t ) 2 + h ) .
Proof. 
The Equation (4) can be rewritten as
p ( x , t ) t = d C ( x ) d x α p ( x , t ) x α + C ( x ) α + 1 p ( x , t ) x α + 1 d D ( x ) d x α p ( x , t ) ( x ) α + D ( x ) α + 1 p ( x , t ) ( x ) α + 1 + f ( x , t ) .
We define the local truncation error term as R i n , using Equations (9) and (13), we get
R i n = P i n + 1 P i n Δ t 1 2 h α + 1 [ ( s = 0 i + 1 C i g i + 1 s ( α + 1 ) P s n + 1 + s = 0 i + 1 C i g i s ( α ) P s n ) + ( s = 0 i ( C i C i 1 ) g i s ( α ) P s n + 1 + s = 0 i ( C i C i 1 ) g i s ( α ) P s n ) ] 1 2 h α + 1 [ ( s = i 1 M D i 1 g s + 1 i ( α + 1 ) P s n + 1 + s = i 1 M D i 1 g s + 1 i ( α + 1 ) P s n ) + ( s = i M ( D i 1 D i ) g s i ( α ) P s n + 1 + s = i M ( D i 1 D i ) g s i ( α ) P s n ) ] f i n + 1 / 2 = P i n + 1 P i n Δ t p ( x , t ) t | i n + 1 / 2 1 2 h α [ s = 0 i ( C i C i 1 ) h g i s ( α ) ( P s n + 1 + P s n ) d C ( x ) d x α p ( x , t ) x α | i n + 1 / 2 ] [ 1 2 h α + 1 s = 0 i + 1 C i g i + 1 s ( α + 1 ) ( P s n + 1 + P s n ) ( C ( x ) α + 1 p ( x , t ) x α + 1 ) | i n + 1 / 2 ] + 1 2 h α [ s = i M ( D i D i 1 ) h g s i ( α ) ( P s n + 1 + P s n ) d D ( x ) d x α p ( x , t ) ( x ) α | i n + 1 / 2 ] [ 1 2 h α + 1 s = i 1 M D i 1 g i + 1 s ( α + 1 ) ( P s n + 1 + P s n ) ( D ( x ) α + 1 p ( x , t ) ( x ) α + 1 ) | i n + 1 / 2 ] = O ( ( Δ t ) 2 + h ) .
Thus, the classical CN method is consistent. □

3. Stability and Convergence of the Classical Fractional CN Method

Let p ˜ i n ( i = 1 , 2 , , M 1 ) be an approximate solution of p i n with initial conditions p ˜ i 0 in order to discuss the stability and convergence of the numerical method. Let ε i n = p i n p ˜ i n , e i n = P i n p i n be defined with the corresponding vectors
ε n = ( ε 1 n , ε 2 n , , ε M 1 n ) ,
e n = ( e 1 n , e 2 n , , e M 1 n ) .
Theorem 2. 
On the interval  [ a , b ] ,  if  C ( x ) 0  monotonically decreases, and   D ( x ) 0  monotonically increases, the CN difference scheme defined by Equation (10) is uniquely solvable.
Proof. 
Since C ( x ) and D ( x ) are both non-negative, C ( x ) is monotonically decreasing, and D ( x ) is monotonically increasing, we have C i 1 C i 0 , D i D i 1 0 , i = 1 , 2 , , M 1 .
According to Lemma 1, then we have C i g j + 1 α C i g j ( α ) C i 1 g j ( α ) , D i 1 g j + 1 ( α ) D i 1 g j ( α ) D i g j ( α ) , for j 2 . Let r i be the sum of the absolute values of all the elements of row i of the matrix A excluding the diagonal elements, then we have
r i = s = 1 , s i M 1 | A i , s | = η [ s = 1 i 2 | C i g i + 1 s ( α ) C i 1 g i s ( α ) | + | C i g 2 ( α ) C i 1 g 0 ( α ) + D i 1 g 0 ( α ) | + | C i g 0 ( α ) + D i 1 g 2 ( α ) + D i g 1 ( α ) | + s = i + 2 M 1 | D i 1 g s i + 1 ( α ) D i g s i ( α ) | ] = η [ s = 1 i 2 ( C i g i + 1 s ( α ) C i 1 g i s ( α ) ) + ( C i g 2 ( α ) C i 1 g 0 ( α ) + D i 1 g 0 ( α ) ) + ( C i g 0 ( α ) + D i 1 g 2 ( α ) + D i g 1 ( α ) ) + s = i + 2 M 1 ( D i 1 g s i + 1 ( α ) D i g s i ( α ) ) ] = η [ C i ( s = 0 i g s ( α ) g 1 ( α ) ) C i 1 ( s = 0 i 1 g s ( α ) g 0 ( α ) ) + D i 1 ( s = 0 M i g s ( α ) g 1 ( α ) ) D i ( s = 0 M i g s ( α ) g 0 ( α ) ) ] = η [ ( C i C i 1 ) s = 0 i 1 g s ( α ) + C i g i ( α ) C i g i ( α ) + C i 1 g i ( α ) ( D i D i 1 ) s = 0 M 1 g s ( α ) + D i 1 g M i ( α ) D i 1 g 1 ( α ) + D i g 0 ( α ) C i g i ( α ) + C i 1 g i ( α ) D i 1 g 1 ( α ) + D i g 0 ( α ) ] = A i , i .
It follows from the above that the eigenvalues of a matrix A have negative real parts according to Gerschgorin’s theorem [27], when λ is an eigenvalue of A only when 1 λ is an eigenvalue of the matrix I A . Thus, the eigenvalue of the matrix A all contain negative real parts, which implicitly means that every eigenvalue of the matrix I A has a modulus large than 1. In addition, we can see that the spectral radius of the matrix I A is large than 1, so the matrix I A is reversible [28]. The difference scheme is unique and solvable. □
Theorem 3. 
On the interval [ a , b ] , if C ( x ) 0 monotonically decreases, and D ( x ) 0 monotonically increases, then the CN difference scheme defined by Equation (10) is unconditionally stable and convergent and exists in a positive constant C > 0 such that e n     C ( ( Δ t ) 2 + h ) .
Proof. 
λ is an eigenvalue of the matrix A, if and only if 1 λ is an eigenvalue of the matrix I A , if and only if ( 1 + λ ) / ( 1 λ ) is an eigenvalue of the matrix ( I A ) 1 ( I + A ) . We know that the eigenvalues of the matrix A all have negative real parts from Theorem 2, This implicity means that | ( 1 + λ ) / ( 1 λ ) | < 1 , and therefore the spectral radius of the matrix ( I A ) 1 ( I + A ) can be obtained to be less than 1. In addition, according to the relationship between the two-norm of the matrix and the spectral radius of the matrix, we obtain
( I A ) 1 ( I A ) 2 = ρ ( ( I A ) 1 ( I A ) ) < 1 .
By Equation (10) and the definition of ε n , I A is invertible, we have
ε n + 1 = ( I A ) 1 ( I A ) ε n ,
Further, we obtain
ε n + 1 2 = ( I A ) 1 ( I A ) ε n 2 ( I A ) 1 ( I + A ) 2 ε n 2 < ε n 2 .
If we repeat the above equation n + 1 times, we obtain the following equation
ε n + 1 2 < ε 0 2 .
Thus, the CN difference scheme defined by Equation (10) is unconditionally stable.
We then consider the convergence of the CN difference scheme. From Equation (10) and the definition of e n , we have
( I A ) e n + 1 = ( I + A ) e n + Δ t R n ,
and
e 0 = 0 ,
where R n = ( R 1 n , R 2 n , , R M 1 n ) T , R n 2 C 1 ( ( Δ t ) 2 + h ) and C 1 is a positive constant.
Similarly, we have also developed
e n + 1 2 < e n 2 + Δ t R n 2 .
Repeating the above equation n + 1 times, we have e n 2 < n ( Δ t ) C 1 ( ( Δ t ) 2 + h ) . Since n ( Δ t ) T , e n C ( ( Δ t ) 2 + h ) . □
Remark 1. 
p x t n  is the Richardson extrapolated solution (see [27,28]), then can be computed from  p x t n = 2 p x , h / 2 t n p x , h t n where x is a common grid point on both the fine and the coarse meshes, and  p x , h t n , p x , h / 2 t n  are the CN solutions at the point x using the coarse grid (grid with h) and the fine grid (grid size  h / 2 ), respectively. In this way, we can obtain second-order accuracy both in space and time.
Proof. 
The error in the right-shifted and left standard Grunwald formulas are K 1 h + K 2 ( h ) 2 + O ( ( h ) 3 ) (see [25]), where K 1 and K 2 are positive constant independent of h. According to Richardson extrapolation method (see [27]), at a grid size h and h / 2 , we apply the CN method, we can get the Richardson extrapolated solution p x t n = 2 p x , h / 2 t n p x , h t n , and Richardson extrapolated solution has local truncation error C ( ( Δ t ) 2 + h 2 ) , according to Lax’s Equivalence Theorem (see [29]), we obtain second-order accuracy both in time and space. The detailed steps to get Richardson’s extrapolated solution are as follows:
  • Step 1: On the spatially coarse grid h, solve using this CN difference format method to obtain the numerical solution p x , h t n on the coarse grid.
  • Step 2: On the spatially fine grid h / 2 with the same Δ t , solve again using this CN difference format method to obtain the numerical solution p x , h / 2 t n on the fine grid.
  • Step 3: The Richard extrapolation solution, which can be written in the following form p x t n = 2 p x , h / 2 t n p x , h t n .

4. Numerical Example

In this section, we carry out two numerical experiments to demonstrate the effectiveness of the second-order accurate finite difference method. e h N the maximum error of the Crank-Nicolson numerical solution, e h N e x the maximum error of the corresponding extrapolated Crank-Nicolson numerical solution.
Example 1 
(Parabolic case [22]). The following two-sided space-fractional diffusion equation was considered
p ( x , t ) t = x ( C ( x ) α p ( x , t ) x α D ( x ) α p ( x , t ) ( x ) α ) + f ( x , t ) , a x b , 0 < α < 1 , 0 t T .
The finite domain is [ 0 , 1 ] . The nonnegative diffusion coefficient C ( x ) = 1 x 2 2 , D ( x ) = 1 + x 2 2 . The source term f ( x , t ) is given by
f ( x , t ) = e t [ x 2 ( 1 x ) 2 x q ( x , α ) + 1 x 2 2 q ( x , 1 + α ) x q ( 1 x , α ) + 1 + x 2 2 q ( 1 x , 1 + α ) ] ,
here
q ( x , t ) = Γ ( 5 ) Γ ( 5 α ) x 4 α 2 Γ ( 4 ) Γ ( 4 α ) x 3 α + Γ ( 3 ) Γ ( 3 α ) x 2 α .
The exact solution to this problem is
p ( x , t ) = e t x 2 ( 1 x ) 2 ,
which satisfies the initial function
ϕ ( x ) = x 2 ( 1 x ) 2 ,
and the Dirichlet boundary conditions are
p ( 0 , t ) = p ( 1 , t ) = 0 .
In the numerical experiments, we consider four different α in the case, respectively.
Table 1 shows the convergence rates of the numerical solutions of Example 1 with α = 0.2 , 0.4 , 0.6 at the time T = 1 . The numerical solution matches the exact analytical solution of the fractional differential equation. It shows stability and a convergence order of O ( ( Δ t ) 2 + h ) . Figure 1 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where α = 0.2 , Δ t = h = 2 7 at time T = 1 . Figure 2 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where α = 0.4 , Δ t = h = 2 7 at time T = 1 . Figure 3 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where α = 0.6 , Δ t = h = 2 7 at time T = 1 . The numerical solution compares well with the exact analytic solution to the fractional partial differential equation in this test case.
To check the speed of convergence of this method, we start with Δ t = h = 2 3 . To obtain an extrapolated CN solution on this grid size, in the first step the problem is solved numerically p x , h t n on a coarse grid with Δ t = h = 2 3 and in the second step a finer grid size is created using the same and in the second step a finer grid size is created using the same Δ t but halving h ( Δ t = 2 3 , h = 2 4 ). The third step is to calculate the extrapolation solution for the points on the coarse grid as p x t n = 2 p x , h / 2 t n p x , h t n .
For Example 1 with T = 1 and α = 0.8 , Table 2 shows the absolute error in the numerical solution. The second column shows the absolute value of the maximum error in the numerical solution. The third column shows the rate of reduction of the error as the mesh is refined. It shows the order of convergence as O ( ( Δ t ) 2 + h ) . The fourth column shows the maximum absolute error for the Crank-Nicholson extrapolation. The last column shows the error rate of these extrapolated solutions. We note that the order of convergence is second order O ( ( Δ t ) 2 + h 2 ) . Figure 4 shows the numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 1 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .
Example 2 
(Linear case [22]). The following two-sided space-fractional diffusion equation was considered
p ( x , t ) t = x ( C ( x ) α p ( x , t ) x α D ( x ) α p ( x , t ) ( x ) α ) + f ( x , t ) , a x b , 0 < α < 1 , 0 t T .
The finite domain is [ 0 , 1 ] . The nonnegative diffusion coefficient C ( x ) = 2 x , D ( x ) = 2 + x . The source term f ( x , t ) is given by
f ( x , t ) = e t [ x 2 ( 1 x ) 2 q ( x , α ) + ( 2 x ) q ( x , 1 + α ) q ( 1 x , α ) + ( 2 + x ) q ( 1 x , 1 + α ) ] ,
here
q ( x , t ) = Γ ( 5 ) Γ ( 5 α ) x 4 α 2 Γ ( 4 ) Γ ( 4 α ) x 3 α + Γ ( 3 ) Γ ( 3 α ) x 2 α .
The exact solution to this problem is
p ( x , t ) = e t x 2 ( 1 x ) 2 ,
which satisfies the initial function
ϕ ( x ) = x 2 ( 1 x ) 2 ,
and the Dirichlet boundary conditions are
p ( 0 , t ) = p ( 1 , t ) = 0 .
In the numerical experiments, we consider four different α values in the case, respectively.
Table 3 shows the convergence rates for the numerical solutions of Example 2 with α = 0.2 , 0.4 , 0.6 at the time T = 1 . In this test case the numerical solution agrees well with the exact analytical solution of the fractional order partial differential equation. It shows stability and a convergence order of O ( ( Δ t ) 2 + h ) . Figure 5 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 2 with α = 0.2 , Δ t = h = 2 7 at time T = 1 . Figure 6 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 4.2 with α = 0.4 , Δ t = h = 2 7 at time T = 1 . Figure 7 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 2 with α = 0.6 , Δ t = h = 2 7 at time T = 1 . The numerical solution compares well with the exact analytic solution to the fractional partial differential equation in this test case.
Table 4 shows the absolute error in the numerical solution for Example 2 at time T = 1 and α = 0.8 . The second column shows the absolute value of the maximum error in the numerical solution. The third column shows the rate of reduction of the error as the mesh is refined. It shows the order of convergence as O ( ( Δ t ) 2 + h ) . The fourth column shows the maximum absolute error for the Crank-Nicholson extrapolation. The last column shows the error rate of these extrapolated solutions. We note that the order of convergence is second order O ( ( Δ t ) 2 + h 2 ) . Figure 8 shows the numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 2 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .

5. Conclusions

In this paper, we have considered a two-sided spatial fractional order diffusion equation with variable diffusion coefficients from a fractional Fick’s law. Although finite difference estimates for the fractional order derivatives have been elusive, a high precision convergence method for the superdiffusion equation is feasible by applying the extrapolation to the Crank-Nicolson method and the Richardson method, in combination with the Grünwald estimates using shifts. We can obtain second-order accurate numerical estimates in time and space using the CN and Richardson extrapolation methods. We then consider more general cases, such as the case where C ( x ) and D ( x ) are not monotonic, or higher accuracy differential methods. We also look at numerical solutions of this equation for different boundary conditions, such as fractional boundary conditions.

Author Contributions

Conceptualization, T.L.; Investigation, T.L., X.Y. and M.H.; Methodology, T.L.; Software, T.L. and Y.C.; Formal analysis, T.L. and X.Y.; Writing-original draft, T.L. and X.Y.; Writing-review & editing, T.L., X.Y. and Y.C.; Visualization, X.Y.; Supervision, M.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Natural Science Foundation of Hunan Province (Grant No.2022JJ50229 and No.2022JJ30673), the Fundamental Research Funds for Central University of Central South University (Grant No.2022zyts0611), the Key Program of National Social Science Foundation of China (Grant No.22ATJ008), the Shaoyang Science and Technology Innovation Guidance Project (Grant No.2022GZ4060), and the General projects of Shaoyang Federation of Social Sciences (Grant No.22YBB22).

Data Availability Statement

Data sharing is not applicable.

Acknowledgments

This work was supported by High Performance Computing Center at Eastern Institute for Advanced Study. The authors are grateful to four reviewers for their constructive comments and suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sokolov, L.M.; Klafer, J.; Blumen, A. Fractional kinetics. Phys. Today 2002, 55, 48–54. [Google Scholar] [CrossRef]
  2. Magin, R.L. Fractional Calculus in Bioengineering, Bioengineering; Begell House Publishers: Danbury, CT, USA, 2006. [Google Scholar]
  3. Kirchner, J.W.; Feng, X.; Neal, C. Fractal stream chemistry and its implications for contaminant transport in catchments. Nature 2000, 403, 524–527. [Google Scholar] [CrossRef]
  4. Raberto, M.; Scalas, E.; Mainardi, F. Waiting-times and returns in high-frequency financial data: An empirical study. Phys. Stat. Mech. Its Appl. 2002, 314, 749–755. [Google Scholar] [CrossRef] [Green Version]
  5. Liu, F.; Zhuang, P.; Turner, I.; Anh, V.; Burrage, K. A semi-alternating direction method for a 2-D fractional FitzHugh-Nagumo monodomain model on an approximate irregular domain. J. Comput. Phys. 2015, 293, 252–263. [Google Scholar] [CrossRef] [Green Version]
  6. Li, S.; Cao, W.; Wang, Y. On spectral Petrov-Galerkin method for solving optimal control problem governed by a two-sided fractional diffusion equation. Comput. Math. Appl. 2022, 107, 104–116. [Google Scholar] [CrossRef]
  7. She, Z.H.; Qu, H.D.; Liu, X. Stability and convergence of finite difference method for two-sided space-fractional diffusion equations. Comput. Math. Appl. 2021, 89, 78–86. [Google Scholar] [CrossRef]
  8. Hao, Z.P.; Lin, G.; Zhang, Z.Q. Error estimates of a spectral Petrov-Galerkin method for two-sided fractional reaction-diffusion equations. Appl. Math. Comput. 2020, 374, 125045. [Google Scholar] [CrossRef]
  9. Li, S.; Zhou, Z. Fractional spectral collocation method for optimal control problem governed by space fractional diffusion equation. Appl. Math. Comput. 2019, 350, 331–347. [Google Scholar] [CrossRef]
  10. Gunzburger, M.; Wang, J. Error analysis of fully discrete finite element approximations to an optimal control problem governed by a time-fractional PDE. SIAM J. Control. Optim. 2019, 57, 241–263. [Google Scholar] [CrossRef]
  11. Ozbilge, E.; Kanca, F.; Zbilge, E. Inverse Problem for a Time Fractional Parabolic Equation with Nonlocal Boundary Conditions. Mathematics 2022, 10, 1479. [Google Scholar] [CrossRef]
  12. Feng, L.B.; Zhuang, P.; Liu, F.; Turner, I. Stability and convergence of a new finite volume method for a two-sided space-fractional diffusion equation. Appl. Math. Comput. 2015, 257, 52–65. [Google Scholar] [CrossRef] [Green Version]
  13. Liu, X.Y.; Liu, Z.H.; Fu, X. Relaxation in nonconvex optimal control problems described by fractional differential equations. J. Math. Anal. Appl. 2014, 409, 446–458. [Google Scholar] [CrossRef]
  14. Jia, J.; Wang, H. Fast finite difference methods for space-fractional diffusion equations with fractional derivative boundary conditions. J. Comput. Phys. 2015, 293, 359–369. [Google Scholar] [CrossRef]
  15. Lai, J.J.; Liu, H.Y. On a Novel Numerical Scheme for Riesz Fractional Partial Differential Equations. Mathematics 2021, 9, 1–14. [Google Scholar] [CrossRef]
  16. Chen, H.B.; Gan, S.Q.; Xu, D.; Liu, Q.W. A second-order BDF compact difference scheme for fractional-order Volterra equation. Int. J. Comput. Math. 2016, 93, 1140–1154. [Google Scholar] [CrossRef]
  17. Ma, C.Y.; Shiri, B.; Wu, G.C.; Baleanu, D. New fractional signal smoothing equations with short memory and variable order. Optik 2020, 218, 164507. [Google Scholar] [CrossRef]
  18. Shiri, B.; Kong, H.; Wu, G.C. Adaptive Learning Neural Network Method for Solving Time-Fractional Diffusion Equations. Neural Comput. 2022, 34, 971–990. [Google Scholar] [CrossRef]
  19. Qu, W.; Lei, S.L.; Vong, S.W. A note on the stability of a second order finite difference scheme for space fractional diffusion equations, Numerical Algebra. Control. Optim. 2014, 4, 317–325. [Google Scholar]
  20. Sitho, S.; Ntouyas, S.K.; Sudprasert, C.; Tariboon, J. Integro-Differential Boundary Conditions to the Sequential -Hilfer and -Caputo Fractional Differential Equations. Mathematics 2023, 11, 867. [Google Scholar] [CrossRef]
  21. Hakkar, N.; Dhayal, R.; Debbouche, A.; Torres, D.F.M. Approximate Controllability of Delayed Fractional Stochastic Differential Systems with Mixed Noise and Impulsive Effects. Fractal Fract. 2023, 7, 104. [Google Scholar] [CrossRef]
  22. Chen, S.; Liu, F.; Jiang, X.; Turner, I.; Anh, V. A fast semi-implicit difference method for a nonlinear two-sided space-fractional diffusion equation with variable diffusivity coefficient. Appl. Math. Comput. 2015, 257, 591–601. [Google Scholar] [CrossRef] [Green Version]
  23. Podlubny, I. Fractional Differential Equations; Academic Press: New York, NY, USA, 1999. [Google Scholar]
  24. Meerschaert, M.M.; Sikorskii, A. Stochastic Models for Fractional Calculus; De Gruyter: Berlin, Germany, 2012. [Google Scholar]
  25. Tadjeran, C.; Meerschaert, M.M. Finite difference approximations for two-sided space-fractional partial differential equations. Appl. Numer. Math. 2006, 56, 80–90. [Google Scholar]
  26. Samko, S.G.; Kilbas, A.A.; Marichev, O.I. Fractional Integrals and Derivatives, Theory and Applications; Gordon Breach: London, UK, 1993. [Google Scholar]
  27. Isaacson, E.; Keller, H.B.; Weiss, G.H. Analysis of Numerical Methods; Wiley: New York, NY, USA, 1966. [Google Scholar]
  28. Tadjeran, C.; Meerschaert, M.M.; Scheffler, P. A second-order accurate numerical approximation for the fractional diffusion equation. J. Comput. Phys. 2006, 213, 205–213. [Google Scholar] [CrossRef]
  29. Richtmyer, R.D.; Morton, K.W. Difference Methods for Initial-Value Problems; Krieger Publishing: Malabar, FL, USA, 1994. [Google Scholar]
Figure 1. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.2 , Δ t = h = 2 7 at time T = 1 .
Figure 1. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.2 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g001
Figure 2. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.4 , Δ t = h = 2 7 at time T = 1 .
Figure 2. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.4 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g002
Figure 3. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.6 , Δ t = h = 2 7 at time T = 1 .
Figure 3. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.6 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g003
Figure 4. The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 1 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .
Figure 4. The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 1 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .
Mathematics 11 01838 g004
Figure 5. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.2 , Δ t = h = 2 7 at time T = 1 .
Figure 5. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.2 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g005
Figure 6. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.4 , Δ t = h = 2 7 at time T = 1 .
Figure 6. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.4 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g006
Figure 7. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.6 , Δ t = h = 2 7 at time T = 1 .
Figure 7. The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.6 , Δ t = h = 2 7 at time T = 1 .
Mathematics 11 01838 g007
Figure 8. The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and exact solution for Example 2 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .
Figure 8. The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and exact solution for Example 2 with α = 0.8 , Δ t = h = 2 6 at time T = 1 .
Mathematics 11 01838 g008
Table 1. Error behaviors and rate with α = 0.2 , 0.4 , 0.6 at time T = 1 for Example 1.
Table 1. Error behaviors and rate with α = 0.2 , 0.4 , 0.6 at time T = 1 for Example 1.
α = 0.2 α = 0.4 α = 0.6
Δ t = h e h N Rate e h N Rate e h N Rate
2 3 7.5340 ×   10 3 -4.2000 ×   10 3 -1.9000 ×   10 3 -
2 4 4.2214 ×   10 3 1.782.4000 ×   10 3 1.751.2000 ×   10 3 1.83
2 5 2.2199 ×   10 3 1.901.3000 ×   10 3 1.856.565 ×   10 4 1.58
2 6 1.1356 ×   10 3 1.956.4325 ×   10 4 2.023.4039 ×   10 4 1.93
2 7 5.7351 ×   10 4 1.983.2425 ×   10 4 1.981.7301 ×   10 4 1.97
Table 2. Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.8 at time T = 1 .
Table 2. Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 1 with α = 0.8 at time T = 1 .
Δ t = h e h N Rate e h N ex Rate
2 3 7.7198 ×   10 4 -7.4596 ×   10 4 -
2 4 4.0338 ×   10 4 1.911.7406 ×   10 4 4.29
2 5 2.4992 ×   10 4 1.614.1151 ×   10 5 4.23
2 6 1.3734 ×   10 4 1.829.7767 ×   10 6 4.21
Table 3. Error behaviors and rate with α = 0.2 , 0.4 , 0.6 at time T = 1 for Example 2.
Table 3. Error behaviors and rate with α = 0.2 , 0.4 , 0.6 at time T = 1 for Example 2.
α = 0.2 α = 0.4 α = 0.6
Δ t = h e h N Rate e h N Rate e h N Rate
2 3 8.3000 ×   10 3 -3.8000 ×   10 3 -1.3000 ×   10 3 -
2 4 5.0000 ×   10 3 1.662.3000 ×   10 3 1.759.1101 ×   10 4 1.43
2 5 2.7000 ×   10 3 1.851.2000 ×   10 3 1.855.1674 ×   10 4 1.76
2 6 1.4000 ×   10 3 1.936.4069 ×   10 4 2.022.7250 ×   10 4 1.90
2 7 7.1602 ×   10 4 1.963.2564 ×   10 4 1.981.3953 ×   10 4 1.95
Table 4. Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.8 at time T = 1 .
Table 4. Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 2 with α = 0.8 at time T = 1 .
Δ t = h e h N Rate e h N ex Rate
2 3 7.1922 ×   10 4 -6.5386 ×   10 4 -
2 4 1.8018 ×   10 4 3.991.5769 ×   10 4 4.15
2 5 1.3921 ×   10 4 1.293.7662 ×   10 5 4.19
2 6 8.2345 ×   10 5 1.698.2345 ×   10 5 4.57
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, T.; Yin, X.; Chen, Y.; Hou, M. A Second-Order Accurate Numerical Approximation for a Two-Sided Space-Fractional Diffusion Equation. Mathematics 2023, 11, 1838. https://doi.org/10.3390/math11081838

AMA Style

Liu T, Yin X, Chen Y, Hou M. A Second-Order Accurate Numerical Approximation for a Two-Sided Space-Fractional Diffusion Equation. Mathematics. 2023; 11(8):1838. https://doi.org/10.3390/math11081838

Chicago/Turabian Style

Liu, Taohua, Xiucao Yin, Yinghao Chen, and Muzhou Hou. 2023. "A Second-Order Accurate Numerical Approximation for a Two-Sided Space-Fractional Diffusion Equation" Mathematics 11, no. 8: 1838. https://doi.org/10.3390/math11081838

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop