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.
Keywords:
variable coefficients; crank-nicolson method; stability and convergence; richardson extrapolation MSC:
65M60; 65N12
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 []), biology [], chemistry [] and even finance []. 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. [] 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. [] proposed a spectral method for solving a fractional diffusion-absorption-reaction equation. She et al. [] studied and analysed the Crank-Nicolson time discretisation of one- and two-dimensional spatial fractional diffusion equations. Hao et al. [] studied the regularity of two-sided fractional diffusion equations with reaction terms and spectral methods. Li et al. [] studied the fractional spectral localisation discretization of optimal control problems governed by spatial fractional diffusion equations. Gunzburger et al. [] proposed a stable finite volume element method to approximate the coupled Stokes-Darcy problem. Ozbilge et al. [] considered a finite difference scheme for the inverse problem of time-fractional parabolic partial differential equations with non-local boundary conditions. Feng et al. [] developed a new fractional finite volume method based on the nodal basis functions for a two-sided space-fractional diffusion equation. Liu et al. [] 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. [] considered a fast finite difference method for a spatial fractional diffusion equation with fractional derivative boundary conditions. Lai et al. [] considered the numerical solution of a Riesz spatial fractional partial differential equation with second order time derivatives. Chen et al. [] 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. [] proposed a new signal smoothing equations, and they introduced generalized filters by use of memory effects of fractional derivatives. Shiri et al. [] proposed an interesting Neural Network method for solving diffusion equations. Qu et al. [] proposed a weight finite difference scheme for space fractional diffusion equations. There are some new papers in the fractional differential equations (see [,]). 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
where is the distribution function of the diffusing quantity, is the diffusion flux and is the source term. The classical Fick’s law can be extended as follows:
where and are non-negative diffusion coefficients. On the interval , is a monotonically decreasing function of x and is a monotonically increasing function of x. The kernel functions and are defined as follows
where . Combination of Equations (1) and (2), Chen et al. [] have derived the following nonlinear two-sided space fractional diffusion equation with variable coefficients.
where is the right Riemman-Liouville fractional derivatives, is the left Riemman-Liouville fractional derivatives (see [,] for details) defined by
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:
For this new one-dimensional two-sided spatial fractional diffusion equation, Chen et al. [] 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 , , for and for , where are the mesh-width in the time and space respectively, , , , , and . Let denote the exact and numerical solutions at the grid point respectively. The initial conditions are given by . Similarly, the Dirichlet zero boundary conditions are given by , for
To approximate and , we use shifted left and standard right Grünwald formulas [], respectively, at time . The formulas are as follows:
where is the normalized Grünwald weights. Its properties meet the following Lemma 1.
Lemma 1
(see []). Let , the Grünwald weights satisfy the properties:
- (i)
- .
- (ii)
- , for .
- (iii)
- for any .
- (iv)
- , for .
- (v)
- for any .
Thus, we obtain a CN difference scheme for the one-dimensional two-sided space-fractional diffusion equation at the point .
After some rearrangements, we can get CN scheme
Organize the above equation and write it in the following operators form
where the difference operators as
It can be further written in the matrix form as follows:
where I is identity matrix; ; ; and the matric , , is defined by
where .
Theorem 1.
Proof.
The Equation (4) can be rewritten as
We define the local truncation error term as , using Equations (9) and (13), we get
Thus, the classical CN method is consistent. □
3. Stability and Convergence of the Classical Fractional CN Method
Let be an approximate solution of with initial conditions in order to discuss the stability and convergence of the numerical method. Let , be defined with the corresponding vectors
Theorem 2.
On the interval , if monotonically decreases, and monotonically increases, the CN difference scheme defined by Equation (10) is uniquely solvable.
Proof.
Since and are both non-negative, is monotonically decreasing, and is monotonically increasing, we have , .
According to Lemma 1, then we have , , for Let 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
It follows from the above that the eigenvalues of a matrix A have negative real parts according to Gerschgorin’s theorem [], when is an eigenvalue of A only when is an eigenvalue of the matrix . Thus, the eigenvalue of the matrix A all contain negative real parts, which implicitly means that every eigenvalue of the matrix has a modulus large than 1. In addition, we can see that the spectral radius of the matrix is large than 1, so the matrix is reversible []. The difference scheme is unique and solvable. □
Theorem 3.
On the interval , if monotonically decreases, and monotonically increases, then the CN difference scheme defined by Equation (10) is unconditionally stable and convergent and exists in a positive constant such that .
Proof.
is an eigenvalue of the matrix A, if and only if is an eigenvalue of the matrix , if and only if is an eigenvalue of the matrix . We know that the eigenvalues of the matrix A all have negative real parts from Theorem 2, This implicity means that , and therefore the spectral radius of the matrix 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
By Equation (10) and the definition of , is invertible, we have
Further, we obtain
If we repeat the above equation times, we obtain the following equation
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 , we have
and
where , and is a positive constant.
Similarly, we have also developed
Repeating the above equation times, we have . Since , . □
Remark 1.
is the Richardson extrapolated solution (see [,]), then can be computed from , where x is a common grid point on both the fine and the coarse meshes, and are the CN solutions at the point x using the coarse grid (grid with h) and the fine grid (grid size ), 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 (see []), where and are positive constant independent of h. According to Richardson extrapolation method (see []), at a grid size h and , we apply the CN method, we can get the Richardson extrapolated solution , and Richardson extrapolated solution has local truncation error , according to Lax’s Equivalence Theorem (see []), 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 on the coarse grid.
- Step 2: On the spatially fine grid with the same , solve again using this CN difference format method to obtain the numerical solution on the fine grid.
- Step 3: The Richard extrapolation solution, which can be written in the following form .
□
4. Numerical Example
In this section, we carry out two numerical experiments to demonstrate the effectiveness of the second-order accurate finite difference method. the maximum error of the Crank-Nicolson numerical solution, the maximum error of the corresponding extrapolated Crank-Nicolson numerical solution.
Example 1
(Parabolic case []). The following two-sided space-fractional diffusion equation was considered
The finite domain is . The nonnegative diffusion coefficient , . The source term is given by
here
The exact solution to this problem is
which satisfies the initial function
and the Dirichlet boundary conditions are
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 at the time . The numerical solution matches the exact analytical solution of the fractional differential equation. It shows stability and a convergence order of . Figure 1 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where , at time . Figure 2 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where , at time . Figure 3 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 1, where , at time . The numerical solution compares well with the exact analytic solution to the fractional partial differential equation in this test case.
Table 1.
Error behaviors and rate with at time for Example 1.
Figure 1.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with , at time .
Figure 2.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with , at time .
Figure 3.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 1 with , at time .
To check the speed of convergence of this method, we start with . To obtain an extrapolated CN solution on this grid size, in the first step the problem is solved numerically on a coarse grid with 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 but halving h (,). The third step is to calculate the extrapolation solution for the points on the coarse grid as .
For Example 1 with and , 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 . 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 . Figure 4 shows the numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 1 with , at time .
Table 2.
Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 1 with at time .
Figure 4.
The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 1 with , at time .
Example 2
(Linear case []). The following two-sided space-fractional diffusion equation was considered
The finite domain is . The nonnegative diffusion coefficient , . The source term is given by
here
The exact solution to this problem is
which satisfies the initial function
and the Dirichlet boundary conditions are
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 at the time . 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 . Figure 5 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 2 with , at time . Figure 6 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 4.2 with , at time . Figure 7 shows the numerical solution in Crank-Nicolson format and the exact solution of Example 2 with , at time . The numerical solution compares well with the exact analytic solution to the fractional partial differential equation in this test case.
Table 3.
Error behaviors and rate with at time for Example 2.
Figure 5.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with , at time .
Figure 6.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with , at time .
Figure 7.
The numerical solution for the Crank-Nicolson scheme and exact solution for Example 2 with , at time .
Table 4 shows the absolute error in the numerical solution for Example 2 at time and . 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 . 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 . Figure 8 shows the numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and rate for Example 2 with , at time .
Table 4.
Error behaviors and rate for the Crank-Nicolson scheme and exact solution for Example 2 with at time .
Figure 8.
The numerical solution for the Crank-Nicolson scheme and the extrapolated Crank-Nicolson scheme and exact solution for Example 2 with , at time .
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 and 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
- Sokolov, L.M.; Klafer, J.; Blumen, A. Fractional kinetics. Phys. Today 2002, 55, 48–54. [Google Scholar] [CrossRef]
- Magin, R.L. Fractional Calculus in Bioengineering, Bioengineering; Begell House Publishers: Danbury, CT, USA, 2006. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Podlubny, I. Fractional Differential Equations; Academic Press: New York, NY, USA, 1999. [Google Scholar]
- Meerschaert, M.M.; Sikorskii, A. Stochastic Models for Fractional Calculus; De Gruyter: Berlin, Germany, 2012. [Google Scholar]
- 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]
- Samko, S.G.; Kilbas, A.A.; Marichev, O.I. Fractional Integrals and Derivatives, Theory and Applications; Gordon Breach: London, UK, 1993. [Google Scholar]
- Isaacson, E.; Keller, H.B.; Weiss, G.H. Analysis of Numerical Methods; Wiley: New York, NY, USA, 1966. [Google Scholar]
- 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]
- Richtmyer, R.D.; Morton, K.W. Difference Methods for Initial-Value Problems; Krieger Publishing: Malabar, FL, USA, 1994. [Google Scholar]
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. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).