Abstract
In this paper, a new L2 (NL2) scheme is proposed to approximate the Caputo temporal fractional derivative, leading to a time-stepping scheme for the time-fractional diffusion equation (TFDE). Subsequently, the space derivative of the resulting system is discretized using a specific finite difference method, yielding a fully discrete system. We then establish the -norm stability and convergence of the time-stepping scheme on uniform meshes for the TFDE. In particular, we prove that the proposed scheme has th-order accuracy, where () is the order of the time-fractional derivative. Finally, numerical experiments for several test problems are carried out to validate the obtained theoretical results.
MSC:
65M06; 26A33; 65M12
1. Introduction
In this paper, we consider numerical methods for the time-fractional diffusion equation with variable coefficients:
where and , is the source term, and is the Caputo derivative of order with respect to t, i.e.,
Here, is the function.
Fractional partial differential equations (FPDEs) have extensive applications in diverse fields, as illustrated in references [1,2,3,4,5,6,7,8]. Specifically, the time-fractional diffusion equation (TFDE) overcomes the limitations of traditional integer-order calculus. It offers a general mathematical framework for depicting complex systems exhibiting non-locality, long-range correlations, and memory effects. The time-fractional diffusion equation poses a significant challenge since it is an integro-differential equation, whose analytical solution is often difficult to derive. Consequently, numerical methods are necessary for its solution. Several approaches have been developed to solve the TFDE. For example, Ahmad et al. [8] introduced Monte Carlo-based physics-informed neural networks with the cuckoo search (PINN-CS) algorithm for addressing fractional partial differential equations. Sun and Wu [9] introduced and analyzed a finite difference scheme for the fractional diffusion wave equation. Lin and Xu [10] proposed a numerical scheme using a finite difference scheme in time and Legendre spectral methods in space. Zhang and Sun [11] presented an alternating direction implicit scheme. Sun et al. [12] devised finite difference schemes for a variable-order time fractional diffusion equation. Yan, Pal, and Ford [13] developed a th-order method by directly discretizing the fractional differential operator. Li and Liao [14] analyzed the well-known differential equations by applying the corresponding inverse operators.
Recently, research on numerical methods for Caputo fractional derivatives has increased significantly; see, e.g., [15,16,17,18,19,20,21,22,23]. Gao et al. developed a novel difference analog of the Caputo fractional derivative, known as the L1-2 formula [24]. Alikhanov used piecewise quadratic polynomial interpolation to derive the L2-1 formula for approximating the Caputo fractional derivative at specific points [25]. The schemes proposed in [17,20,23,24,25] have been proven to have order accuracy for th-order Caputo fractional derivatives. Notably, Quan and Wu [23] established -norm stability and convergence for an L2 scheme on general nonuniform meshes when applied to the subdiffusion equation. We noticed that the discrete form of these schemes at the first step or the last step differs from the unified form for the rest of the steps. As an example, in [20], the approximation of the first time step is obtained by using the L1-formula on the time layer with step size . To address this issue and preserve the order of convergence, we propose a scheme using piecewise quadratic polynomial interpolation, which computes approximate values in pairs. We call it the new L2 (NL2) discretization. We showed that the NL2 scheme’s discretization matrix is a block lower triangular Toeplitz matrix with two-by-two blocks and proved its -norm stability and convergence. Numerical experiments show that the NL2 scheme has better accuracy than the L2 schemes proposed in [17,20].
The rest of this paper is organized as follows: In Section 2, we propose a novel piecewise quadratic polynomial interpolation method, referred to as the new L2 scheme (NL2 for short), to approximate the Caputo fractional derivative. Subsequently, we derive the key properties of the NL2 scheme, including its consistency and the features of the discretization matrix. Section 3 presents a difference scheme based on the NL2 scheme, deriving its -norm stability. In Section 4, we conduct numerical experiments to verify the theoretical findings of the proposed scheme. Finally, Section 5 offers concluding remarks.
2. A Novel L2 Scheme for the Caputo Derivative
Let and be a function in . Consider approximating the Caputo fractional derivative of order defined by (2).
2.1. A New L2 Scheme
Let M be a positive integer and . Define a uniform grid
Denote by and the quadratic interpolation polynomial of at the points , and by . We have
Assume , then we have
where , and depends on We arrive at
where
Now, we introduce the discretization of the Caputo derivative. It is easy to obtain
and
for
From the above expression, we approximate by making use of on the interval . Firstly, we have
where
Let
and let
Then, we have
Based on the above discussion, we obtain
and
Finally, from (3), we obtain
where
and
Similarly, from (4), we obtain
for
Let
and B be a matrix defined by
Then, we obtain the matrix form of the NL2 scheme for the Caputo fractional derivative
where It can be seen that B is a block lower triangular Toeplitz matrix with blocks.
2.2. Basic Properties of Relevant Coefficients
In this subsection, we establish certain properties of the coefficients in the NL2 scheme, which are useful in analyzing the convergence and stability of the NL2 scheme.
We need the following results. Assuming and , we have
where and for . Moreover,
where and for . We obtain
for .
Lemma 1.
(Properties of , , and ). The following properties of the coefficients of the NL2 scheme in (7) and (8) hold:
(1)
(2)
(3)
(4)
(5)
Proof.
(1) By (5), the conclusion is easy to obtain from for .
(2) From , we see that for , and it follows from (6) that for . Furthermore, we have
Therefore, is a strictly monotonically decreasing function with respect to r. In particular, for , . By (6) again, we obtain for
(3) From (1) and (2), we obtain
and
for .
(4) For , by using (9) and (10), we have
Now, we consider the monotonicity of , . We have
for . By using (9)–(11), we have
(5) Obviously, for , and
Let , , then
Hence, the function is a monotonically decreasing function with respect to , and . Consequently for . □
2.3. Consistency of the NL2 Scheme
In this subsection, we prove the consistency of the NL2 scheme for the Caputo derivative, and it can achieve th-order accuracy.
Theorem 1.
Let , and , then
3. A Difference Scheme for the TFDE Based on the NL2 Scheme
In this section, we introduce the NL2 scheme for the time-fractional diffusion equation with variable coefficients Equation (1).
Let and be the size of spatial grid and the length of time step, respectively, where N and M are positive integers. Define the following spatial and temporal grids:
In the following, we use the notations
Applying the new L2 scheme to discretize the temporal derivative, the TFDE (1) is written as
where , , and for
Lemma 2
([25]). Let and , then the following equality holds true:
We use the above finite difference method in the spatial direction; then, we construct an NL2 scheme for Equation (15) with an accuracy of order .
3.1. The Positive Definiteness of
In this subsection, we study the positive definiteness of the symmetric part of matrix B, equivalently, the positive definiteness of .
Lemma 3
([21]). Given an arbitrary symmetric matrix with positive elements. If S satisfies the following properties:
(P1)
(P2)
(P3)
- then S is positive definite.
Theorem 2.
The matrix is positive definite, and the bilinear form defined by
is positive definite.
Proof.
Let
We split B as , where
and
Here, denotes the Kronecker tensor product of A and B: let , then . It can be easily checked that
and
The positive definiteness of can be ensured if G and S are both positive definite, where and .
We first consider the symmetric matrix :
Notice that
For ,
From (16) and the property (3) of Lemma 1, we have
Combining with we have
Similarly, by using (16) and the properties of , in Lemma 1, we obtain
Therefore, G is diagonally dominant with positive diagonal entries, and it follows that G is positive definite.
Secondly, we prove the positive definiteness of the symmetric matrix by using Lemma 3.
(i) According to Lemma 1, it is easily seen that S satisfies (P1) of Lemma 3:
(ii) To prove that S satisfies (P2) of Lemma 3, we need to prove
For , we have
From (9)–(11), we obtain
Since for , we have
Moreover, by (18) and (19), we obtain
Therefore, S satisfies (P2) of Lemma 3:
(iii) To prove that S satisfies (P3) of Lemma 3, we need to prove
For , it holds
Notice that for fixed and , is a convex function for , we have
Hence,
It follows that
In the following, we prove that for . By using (9)–(11), we have
where
We have
We now prove that
It is easy to verify that for ,
Therefore, when j is odd and , we have
It is obvious that for , . Therefore, when j is even and , we have
Therefore, (24) is correct.
3.2. -Stability and Convergence
Based on the consistency and -stability of the NL2 scheme, we can derive the convergence results of the method. In the following discussion, we prove the -norm stability of the scheme by using the positive definiteness of the bilinear form .
Define . represents the continuous norm of x on its domain. In the following, we present the proof of -stability.
Theorem 3.
Assume that is a bounded variation function in time and , then the numerical solution () of the NL2 scheme (15) satisfies the following -stability
where
with , , and is a constant that depends on .
Proof.
By multiplying (15) with for , integrating over , and summing up the derived equations over terms, we obtain
where , and . Applying the Cauchy–Schwarz inequality gives
where with
and
where the supremum is taken over all finite partitions of .
Combining (28) with (29) and using the positive definiteness of the bilinear form (cf. Theorem 2), we obtain
It follows that
By making use of the triangle inequality of the norm:
we have
From (30) and (32), we obtain
Combining (31) and (33), we obtain
where . Obviously, satisfies inequality (34). Therefore,
which indicates
The proof is completed. □
According to the consistency and -norm stability properties of the NL2 scheme, we can obtain the convergence result of the proposed method. Let and , and define the discrete inner product
and the discrete -norm
Let the error in the numerical solution at be defined by , and let the maximal error of all time steps be defined by . The following theorem shows that the NL2 scheme has accuracy of order in time and of order 2 in space.
4. Numerical Results
In this section, we conduct numerical experiments to validate the theoretical findings discussed in previous sections. In Examples 1 and 2, we demonstrate the accuracy of the NL2 scheme for homogeneous and inhomogeneous boundary conditions, respectively. Then, in Example 3, we compare the numerical results of the NL2 scheme with the L2 schemes proposed in [17,20].
Example 1.
Consider problem (1) with , , , , and the exact solution
Table 1 shows the numerical results for different ’s when , equivalently, . It can be seen that the order of the accuracy is about , which is consistent with the conclusion of Theorem 1. Table 2 shows numerical results for different with . We can see that the order of the accuracy is higher than . Moreover, compared to Table 1, we see that for the same and , Table 2 gives more accurate results, which implies that a smaller spatial grid can generate more accurate results. Therefore, we provide results for different ’s with in Table 3. Again, we observe that the order of the accuracy is higher than .
Table 1.
The error and the temporal convergence order of the NL2 scheme in norm for different values of ’s with at for Example 1.
Table 2.
The error and the temporal convergence order of the NL2 scheme in norm for different values of ’s with at t = 1 for Example 1.
Table 3.
The error in norm and the temporal convergence order of the NL2 scheme for different values of ’s with at t = 1 for Example 1.
Table 1, Table 2 and Table 3 show that for the NL2 scheme, the accuracy order at the final time step may be significantly higher than . The following Table 4 shows the maximum -norm errors over all time steps for different values with . It can be seen from Table 4 that the accuracy order of the NL2 scheme is slightly higher than .
Table 4.
The maximum -norm errors over all time steps and the temporal convergence order of the NL2 scheme for different ’s with for Example 1.
In the following Example 2, we investigate numerically the accuracy of the NL2 scheme for TFDE with an inhomogeneous boundary condition.
Example 2.
Consider problem (1) with , and , and the exact solution is set to
As clearly illustrated in Table 5, Table 6 and Table 7, the NL2 scheme is effective to the TFDE with inhomogeneous boundary conditions as well. Moreover, the accuracy order is also about .
Table 5.
The error in norm and the temporal convergence order of the NL2 scheme for different values of ’s with at for Example 2.
Table 6.
The error in the norm and the temporal convergence order of the NL2 scheme for different values of ’s with at for Example 2.
Table 7.
The maximum -norm errors over all time steps and the temporal convergence order of the NL2 scheme for different ’s with for Example 2.
In the following Example 3, we compare the numerical results of the NL2 scheme with the L2 schemes from [17,20], denoted as L2(1) and L2(2), respectively. Notice that both coefficients p and q are time-dependent.
Example 3.
Consider problem (1) with , , , and . The source term f and the initial condition are selected such that the exact solution of the problem is .
The error of the numerical solutions and the CPU time (seconds) of the three schemes for Example 3 are summarized in Table 8 and Table 9, indicating that the NL2 scheme, the L2(1) scheme, and the L2(2) scheme are stable and convergent. Moreover, the L2(2) scheme often requires the minimal CPU time while the corresponding numerical solution has the largest error. Considering both accuracy and CPU time comprehensively, the NL2 scheme performs the best among the three schemes.
Table 8.
Comparison of errors and CPU times of NL2 scheme, L2(1) scheme, and scheme L2(2) with different ’s for at for Example 3.
Table 9.
Comparison of errors and CPU times of the NL2 scheme, the L2(1) scheme, and the scheme L2(2) with different ’s for at for Example 3.
Notably, Table 10 shows that the maximum -norm error of the numerical solution of the L2(2) scheme is significantly larger than those of other schemes; see also Figure 1. It is interesting that if we modify the first step of the L2(2) scheme, that is, replace it by that of the NL2 scheme (we call it the L2(2)* scheme), then the accuracy of the modified scheme L2(2)* is significantly higher than that of the L2(2) scheme in terms of the maximum -norm; see Figure 1 and Figure 2. Therefore, the accuracy of the numerical solution at the first time step has a substantial impact on the accuracy of the numerical solution at subsequent time steps. It can also be observed that the numerical solutions obtained by the NL2 scheme are better than those obtained by the L2(1) scheme, the L2(2) scheme, and the scheme.
Table 10.
Comparison of the maximum -norm errors over all time steps and the temporal convergence order of the NL2, L2(1), and L2(2) schemes for different ’s with for Example 3.
Figure 1.
Maximum -norm Errors of the NL2 scheme, the L2(1) scheme, and the L2(2) scheme for Example 3.
Figure 2.
Maximum -norm Errors of the NL2 scheme, the L2(1) scheme, and the scheme for Example 3.
5. Concluding Remarks
This paper proposes a new L2 (NL2) scheme for time fractional diffusion equations by combining the new L2 scheme with the finite difference method. By analyzing the positive definiteness of the symmetric part of the coefficient matrix B, we prove that the proposed NL2 scheme possesses -norm stability and achieves the temporal th-order accuracy. Numerical experiments are presented to illustrate the accuracy and efficiency of the proposed method. The proposed scheme can be applied to a nonhomogeneous Dirichlet boundary condition directly by updating the right-hand sides of the fully discrete linear systems. On the other hand, although the NL2 scheme can be applied to other types of boundary conditions, e.g., the Neumann boundary condition, the convergence and stability properties need more research. In future work, we will consider applications of the proposed NL2 scheme to other types of boundary conditions and to non-uniform meshes.
Author Contributions
Conceptualization, C.-Y.H. and F.-R.L.; methodology, C.-Y.H. and F.-R.L.; writing—original draft preparation, C.-Y.H.; writing—review and editing, F.-R.L.; visualization, F.-R.L.; supervision, F.-R.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the National Natural Science Foundation of China (11771265) and the Guangdong Basic and Applied Basic Research Foundation, Guangdong Province of China (2023A1515030199).
Data Availability Statement
Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Chukbar, K.V. Stochastic transport and fractional derivatives. Zh. Eksp. Toer. Fiz. 1995, 108, 1875–1884. [Google Scholar]
- Podlubny, I. Fractional Differential Equations; Academic Press: New York, NY, USA, 1999. [Google Scholar]
- Raberto, M.; Scalas, E.; Mainardi, F. Waiting-times and returns in high-frequency financial data: An empirical study. Phys. A Stat. Mech. Appl. 2022, 314, 749–755. [Google Scholar] [CrossRef]
- Agrawal, O.P. A general formulation and solution scheme for fractional optimal control problems, Nonlinear Dynam. Zh. Eksp. Toer. Fiz. 2004, 38, 191–206. [Google Scholar]
- Benson, D.A.; Wheatcraft, S.W.; Meerschaert, M.M. Application of a fractional advection-dispersion equation. Water Resour. Res. 2006, 36, 1403–1412. [Google Scholar] [CrossRef]
- Meerschaert, M.M.; Tadjeran, C. Finite difference approximations for fractional advection-dispersion flow equations. J. Comput. Appl. Math. 2004, 172, 65–77. [Google Scholar] [CrossRef]
- Oldham, K.B. Fractional differential equations in electrochemistry. Adv. Eng. Softw. 2010, 41, 9–12. [Google Scholar] [CrossRef]
- Ahmad, T.; Sulaiman, M.; Bassir, D.; Alshammari, F.S.; Laouini, G. Enhanced numerical solutions for fractional PDEs using Monte Carlo PINNs coupled with cuckoo search optimization. Fractal Fract. 2025, 9, 225. [Google Scholar] [CrossRef]
- Sun, Z.; Wu, X. A fully discrete difference scheme for a diffusion-wave system. Appl. Numer. Math. 2006, 56, 193–209. [Google Scholar] [CrossRef]
- Lin, Y.; Xu, C. Finite difference/spectral approximations for the time-fractional diffusion equation. J. Comput. Phys. 2007, 225, 1533–1552. [Google Scholar] [CrossRef]
- Zhang, Y.; Sun, Z. Alternating direction implicit schemes for the two-dimensional fractional sub-diffusion equation. J. Comput. Phys. 2011, 230, 8713–8728. [Google Scholar] [CrossRef]
- Sun, H.; Chen, W.; Li, C.; Chen, Y. Finite difference schemes for variable-order time fractional diffusion equation. Internat. J. Bifur. Chaos. 2012, 22, 1250085. [Google Scholar] [CrossRef]
- Yan, Y.; Pal, K.; Ford, N.J. Higher order numerical methods for solving fractional differential equations. BIT Numer. Math. 2014, 54, 555–584. [Google Scholar] [CrossRef]
- Li, C.K.; Liao, W.Y. Applications of inverse operators to a fractional partial integro-differential equation and several well-known differential equations. Fractal Fract. 2025, 9, 200. [Google Scholar] [CrossRef]
- Jiang, S.D.; Zhang, J.W.; Zhang, Q.; Zhang, Z.M. Fast evaluation of the Caputo fractional derivative and its applications to fractional diffusion equations. Commun. Comput. Phys. 2017, 21, 650–678. [Google Scholar] [CrossRef]
- Yan, Y.G.; Sun, Z.Z.; Zhang, J.W. Fast evaluation of the Caputo fractional derivative and its applications to fractional diffusion equations: A second-order scheme. Commun. Comput. Phys. 2017, 22, 1028–1048. [Google Scholar] [CrossRef]
- Wang, Y.M.; Ren, L. A high-order L2-compact difference method for Caputo-type time-fractional sub-diffusion equations with variable coefficients. Appl. Math. Comput. 2019, 342, 71–93. [Google Scholar] [CrossRef]
- Mokhtari, R.; Mostajeran, F. A high order formula to approximate the Caputo fractional derivative. Com. Appl. Math. Comput. 2020, 2, 1–29. [Google Scholar] [CrossRef]
- Shen, J.Y.; Li, C.P.; Sun, Z.Z. An H2N2 interpolation for Caputo derivative with order in (1,2) and its application to time-fractional wave equations in more than one space dimension. J. Sci. Comput. 2020, 83, 38. [Google Scholar] [CrossRef]
- Alikhanov, A.A.; Huang, C.M. A high-order L2 type difference scheme for the time-fractional diffusion equation. Appl. Math. Comput. 2021, 411, 126545. [Google Scholar] [CrossRef]
- Quan, C.Y.; Tang, T.; Yang, J. How to define dissipation-preserving energy for time-fractional phase-field equations. CSIAM Trans. Appl. Math. 2020, 1, 478–490. [Google Scholar] [CrossRef]
- Fang, Z.W.; Zhang, J.L.; Sun, H.W. A fast finite volume method for spatial fractional diffusion equations on nonuniform meshes. Comput. Math. Appl. 2022, 1, 478–490. [Google Scholar] [CrossRef]
- Quan, C.Y.; Wu, X. H1-norm stability and convergence of an L2-type method on nonuniform meshes for subdiffusion equation. SIAM J. Numer. Anal. 2023, 5, 2106–2132. [Google Scholar] [CrossRef]
- Gao, G.H.; Sun, Z.Z.; Zhang, H.W. A new fractional numerical differentiation formula to approximate the Caputo fractional derivative and its applications. J. Comput. Phys. 2014, 259, 33–50. [Google Scholar] [CrossRef]
- Alikhanov, A.A. A new difference scheme for the time fractional diffusion equation. J. Comput. Phys. 2015, 280, 424–438. [Google Scholar] [CrossRef]
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. |
© 2025 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/).