1. Introduction
For many centuries, classical integer-order calculus was the primary tool for modeling physical processes in mathematics. However, scientists faced limitations in understanding anomalous transport phenomena. When particles move through highly porous underground rocks, become trapped inside dense biological cells, or drift in viscoelastic fluids, they do not follow the simple, predictable paths of traditional Brownian motion. Instead, they exhibit heavy-tailed waiting times and complex, long-range spatial correlations. To better capture these behaviors, researchers turned away from integer-order derivatives and began using fractional calculus. Fractional partial differential equations (FPDEs) incorporate a system’s entire history directly into the equations that describe it, providing a more accurate representation of physics that depends on memory [
1,
2,
3]. Podlubny [
4] established the foundational theory of fractional differential equations for these historical processes, while Kilbas et al. [
5] expanded the core mathematical frameworks. Later, these models were successfully adapted to discrete random-walk formulations to capture anomalous transport [
6].
The reaction–subdiffusion equation is one of the most important fractional partial differential equations (FPDEs) in modern applied mathematics. It describes a subtle physical balance: molecules that undergo chemical reactions at specific rates while also experiencing slow, anomalous diffusion. This type of dynamics frequently appears in environmental engineering, such as tracking groundwater contamination, or in biological contexts, like modeling the delayed spread of viral infections in heterogeneous populations [
7]. Henry and Wearne [
8] introduced the foundational mathematical formulations governing fractional reaction–diffusion balances, which Langlands et al. [
9] subsequently extended to model multispecies linear reaction dynamics in complex biological contexts.
In this study, we address a 1D time-fractional reaction–subdiffusion problem. Our domain is continuously defined as
, with the spatial interval being
. The governing equation reads
We pair this with a known initial condition
for
, and enforce strict homogeneous Dirichlet boundaries such that
on
where
indicates the spatial boundary. Here,
is the continuous source term, and
identifies the Riemann–Liouville fractional derivative of order
.
While the physics behind this model is undeniably precise, the non-local mathematical structure effectively prevents standard numerical solvers. Since fractional operators require the entire history of the function at each time step, conventional methods quickly run into memory limitations and accumulate truncation errors. Additionally, solutions often feature a sharp, weak singularity near
. To overcome these computational challenges, researchers have developed a variety of localized numerical approaches. Early efforts by Yuste [
10] and Murio [
11] introduced weighted average and fully implicit finite difference schemes to handle fractional time-stepping. Sun and Wu [
12] created a robust, fully discrete difference framework tailored to fractional diffusion-wave systems. For higher spatial resolution, Cui [
13] designed a high-order compact finite difference method, while Zhuang et al. [
14] introduced new analytical techniques to support implicit numerical solvers for anomalous subdiffusion. Building on these efforts, researchers have taken a closer look at adaptive frameworks and spline-based methods. For example, Maji and Natesan [
15] introduced adaptive-grid techniques specifically designed for fractional boundary-value problems, while Kammappa and Awasthi [
16] recently used a trigonometric cubic B-spline collocation approach to tackle time-fractional diffusion equations. Additionally, Ebrahimi et al. [
17] expanded these numerical methods to solve complex inverse source problems in fractional diffusion-wave systems. Recently, researchers have introduced a wide range of advanced computational techniques to address the unique challenges posed by fractional operators. For example, local meshless collocation methods have proven highly effective for solving time-dependent fractional integral equations, including two-dimensional fractional evolution models [
18]. Likewise, two-dimensional Haar wavelet methods now provide a reliable approach for handling fractional Volterra integral equations [
19]. Other successful strategies include hybrid models, such as combining Laplace transforms with spectral methods to accurately simulate time-fractional wave equations [
20]. Ultimately, these recent advancements reflect a shared goal within the scientific community: achieving high-order accuracy without sacrificing computational efficiency. This drive directly motivates the Legendre cardinal Galerkin framework proposed in this study. Meshless techniques are also becoming more adaptable. For instance, recent studies successfully used a local radial basis function collocation method to simulate complex, grid-free scenarios like soil collapse [
21]. The mathematical theory behind these discrete fractional models is also maturing. Recent research on Liouville–Caputo fractional difference equations establishes the core existence and uniqueness proofs required to build stable numerical solvers [
22].
Alternative mathematical schemes have also proven very useful. Chen et al. [
23] employed a Fourier approach to model subdiffusive behavior smoothly. More recently, Dimitrov et al. [
24] introduced more accurate, direct methods for approximating the Caputo derivative to better handle singular points. Finite element methods have also been carefully examined. Jin et al. [
25] provided solid error estimates for semi-discrete finite element techniques applied to parabolic equations. Zeng et al. [
26] combined finite difference time-stepping with finite elements to tackle fractional subdiffusion. In complex multidimensional systems, researchers have introduced creative techniques: Salama et al. [
27] suggested an efficient explicit group method for advection-diffusion-reaction equations, while Abbaszadeh and Dehghan [
28] avoided reliance on grids by merging an alternating direction implicit (ADI) approach with a meshless element-free Galerkin method. Galerkin methods continue to evolve for complex transient systems as well. A recent Numerov–Galerkin framework showed how coupling standard spatial projections with advanced time-stepping can accurately model the transient dynamics of anisotropic plates [
29]. Finally, aiming for smooth, global approximations, Li and Xu [
30] highlighted the impressive accuracy achievable with space-time spectral formulations.
However, a persistent and frustrating challenge still exists. Despite the strong push for diversity, traditional methods like finite difference, finite element, and standard ADI frameworks often completely lose their expected convergence rates when encountering that initial temporal singularity. Even when they stay stable, they tend to produce very large, ill-conditioned algebraic systems that significantly slow down the simulations.
Spectral methods are an important alternative. They offer exponential convergence for smooth profiles because they use global basis functions, making them very attractive for fractional modeling. Shen et al. [
31] laid the essential mathematical groundwork for global spectral algorithms, while Zayernouri and Karniadakis [
32] successfully developed specialized fractional spectral collocation techniques that leverage this exponential convergence specifically for anomalous diffusion problems. A range of specialized spectral and wavelet approaches have been carefully developed and applied to address the severe nonlocality of fractional models. Chebyshev cardinal functions have been used in pseudospectral methods for fractional Sturm–Liouville problems and for complex eigenvalue problems. In these collocation methods, the basis is built on the roots of orthogonal polynomials. This avoids the need for intensive numerical integration and for converting fractional operators into matrix representations [
33,
34].
Researchers have developed multiwavelet spectral element techniques to better handle sharp singularities in integral formulations. These techniques divide the computational domain into smaller, manageable elements and use localized wavelet bases, achieving high accuracy in resolving generalized Cauchy models [
35]. Similarly, sparse wavelet Galerkin algorithms have been adapted to solve fractional Pantograph equations and delay differential systems. The natural sparsity of the wavelet operational matrices significantly reduces memory requirements while preserving the essential hereditary characteristics of the delayed dynamics [
36,
37].
In quantum mechanics and in relativistic wave equations, collocation methods using cardinal functions play a significant role. Chebyshev and Legendre cardinal expansions have been effectively used to develop accurate pseudospectral solvers for the fractional Dirac operator and the time-fractional Klein–Gordon equation [
38,
39]. Additionally, Legendre cardinal bases have recently shown remarkable stability when adapted for collocation schemes that tackle highly stiff fractional delay differential equations, eliminating the need for traditional numerical quadrature by leveraging the Kronecker delta property of the nodes [
40].
Despite significant methodological progress, a distinct research gap remains regarding the computational overhead of standard Galerkin discretizations for subdiffusive models. Traditional finite element and spectral methods rely heavily on expensive numerical quadrature to evaluate inner products, whereas our current work directly circumvents this bottleneck. We present a new spectral Galerkin framework based on orthogonal Legendre cardinal functions. Rather than discretizing the fractional derivative directly, we use an analytical transformation that converts the differential equation into a weakly singular Volterra integral form. This approach naturally handles the initial conditions and softens the singularities near zero. By combining this integral form with the properties of Legendre cardinal basis functions, we avoid numerical quadrature during matrix assembly. The result is a robust, highly efficient algorithm that achieves spectral accuracy and overcomes many traditional computational issues associated with subdiffusive simulations.
This article is structured as follows:
Section 2 details the Legendre cardinal functions and their key properties, including matrix representations of fractional integral and derivative operators.
Section 3 introduces the weakly singular Volterra integral formulation and the algebraic system derived from our Galerkin method.
Section 4 presents an a priori error analysis and a fully computable a posteriori error bound.
Section 5 presents numerical experiments and results, and
Section 6 concludes with remarks and a summary of the key findings.
4. A Priori and a Posteriori Error Estimates
In this section, we carefully develop a theoretical foundation that demonstrates that our numerical method consistently converges and yields reliable results. We establish an a priori error estimate to show spectral convergence, and then present a practical, fully calculable error estimate that accurately reflects the true error during implementation. Before establishing the error estimates, it is crucial to explicitly state the mathematical assumptions governing the exact solution, the fractional operator, and the forcing term. We assume the fractional order satisfies . Furthermore, we assume that the continuous source term and the initial condition are sufficiently regular so that the exact solution satisfies for an integer at any time . The approximation space is the finite-dimensional polynomial space of degree at most M.
4.1. Preliminaries and Error Decomposition
Let
be the finite-dimensional space of polynomials up to degree
M. To better understand the spatial operators involved in the Volterra integral, we explicitly define the Ritz projection operator
, such that for any continuous test function
, we have
It’s a well-established mathematical fact that for any sufficiently smooth solution
, this particular Ritz projection satisfies the spectral error bound
To better understand the overall simulation error,
, we break it down into two parts:
where
denotes the projection error associated with the chosen space dimension, and
represents the discrete error arising from the numerical evaluation algorithm.
4.2. Semi-Discrete a Priori Spatial Error Estimate
Theorem 1. Assume be the exact smooth solution to the Volterra Equation (24). Let be the numerical approximation obtained by the algorithm. The special discretization error satisfies the following bound for any point in time :where denotes a constant that is independent of the mesh parameter M. Proof. By applying spatial integration by parts to the continuous Laplacian operator and strictly enforcing the Dirichlet boundary conditions, the exact solution
w satisfies the weak Volterra equation:
The fully discrete approximation
similarly satisfies
Subtracting the discrete Equation (
39) from the continuous Equation (
38) and directly inserting the decomposition
yields
Thanks to the Ritz projection, defined in Equation (
34), the entire bracket on the right-hand side vanishes. This specific Ritz projection is chosen because its orthogonality with respect to the spatial differential operator forces the bracketed terms in Equation (
40) to vanish. This critical property decouples the spatial discretization error from the temporal evolution, enabling the direct application of standard polynomial approximation theory to yield the spectral error bound presented in Equation (
35). Thus, the error equation collapses to
Setting the test function to
produces the following strict energy equality:
A key property of the Riemann–Liouville fractional integral is that if you have a non-negative function
, then its fractional integral,
, will always be strictly positive. When we remove the explicitly positive fractional terms from the left side of the equation, we clearly see that there is a strict upper bound as follows:
Using the Cauchy–Schwarz inequality on the right side and subsequently dividing the relation by
yields the stability bound for the discrete error
Using the triangle inequality on the error term
gives us the bound
. When we incorporate the spectral projection limit from Equation (
35), we arrive at the following estimate:
□
Remark 4. The analysis presented in Theorem 1 rigorously establishes a semi-discrete spatial error bound. In the actual computational implementation, the fully discrete tensor-product framework naturally includes a temporal discretization component arising from the time-domain cardinal projection and the interpolation-based approximation of the fractional integration matrix . A comprehensive fully discrete analysis would bound the total space-time error by , where and denote the spatial and temporal Sobolev regularities of the exact solution, respectively. Because the temporal discretization utilizes the exact same orthogonal cardinal polynomial space, the temporal projection error similarly decays exponentially for smooth profiles, justifying the overall spectral convergence observed in our numerical results.
Remark 5. It is important to distinguish between theoretically established bounds and numerically observed behavior. Theorem 1 establishes that the theoretical convergence rate of the proposed Galerkin framework is strictly algebraic, bounded by , and is fundamentally limited by the Sobolev regularity index n of the exact solution. The exponential (spectral) convergence observed later in our numerical experiments is a direct consequence of testing the algorithm against infinitely smooth exact profiles (where ). For problems with lower regularity, the method will exhibit the algebraic convergence rate dictated by Theorem 1.
4.3. A Posteriori Error Estimate
While a priori bounds confirm the robust theoretical convergence rate as , practical computations benefit greatly from a posteriori error estimates. These estimates use the fully computable numerical residual to bound the physical error during the simulation.
We define the spatial residual of our discrete approximation
as
It is obvious that the exact theoretical solution
naturally produces a zero residual:
Subtracting (
47) from (
46) and invoking the definition of the global error,
, yields the following residual equation:
By taking the inner product with
and applying spatial integration by parts, we obtain
Taking into account the positivity of the Riemann–Liouville fractional integral applied to the non-negative squared norms, we can neglect the two fractional terms on the right-hand side to obtain the following inequality:
Applying the Cauchy–Schwarz inequality leads to
Finally, dividing the expression by
yields a computable a posteriori bound:
This shows that at any point in time, the overall
error produced by the numerical scheme is less than or equal to the
norm of the current computational residual.
To rigorously evaluate the accuracy of the numerical approximation, an a posteriori error estimator is introduced. By definition, an estimator is termed “computable” if it can be evaluated entirely using known quantities, namely, the computed numerical solution, the basis functions, and the problem’s source data, without requiring any knowledge of the true analytical solution.
Because the proposed Legendre cardinal framework mathematically reduces to a collocation scheme, the discrete residual is identically zero at the exact computational grid nodes (up to machine precision). Consequently, evaluating the residual using the discrete interpolation-based operational matrix would falsely yield a zero error. Therefore, in practice, the a posteriori residual is evaluated continuously. The numerical approximation is substituted back into the original fractional PDE, and the exact Riemann–Liouville (RL) integrals are computed analytically using continuous Gamma function formulations. The -norm of this continuous spatial residual is then measured using a high-order (100-point) Gaussian quadrature rule. This densely samples the domain, accurately capturing the non-zero inter-nodal continuous error.
The quality of this estimator is assessed through its reliability and its effectivity index. The estimator is considered “reliable” if it provides a guaranteed upper bound on the true error, mathematically satisfying for a constant , where e is the exact error and is the estimated residual. The sharpness of this bound is measured by the effectivity index, defined as the ratio of the estimated error to the true error ().
5. Numerical Experiments
Before sharing the experimental results, we describe the computational environment, the steps of our algorithm, and the mathematical ways we used to measure how well our framework works.
To rigorously quantify the accuracy of the Legendre cardinal Galerkin scheme, we measure the deviation between the exact analytical solution
and our numerical approximation
. Throughout these experiments, we track both the global continuous
-norm and the discrete maximum
-norm over the space-time grid. These error metrics are defined as follows:
To quantitatively evaluate the reliability of the proposed a posteriori error estimator, we define the Effectivity Index (EI) as the ratio of the computable residual bound to the actual error, specifically . An estimator is theoretically reliable if and computationally highly efficient when the index remains tightly bounded near 1.
For absolute clarity and reproducibility, the end-to-end numerical implementation of our method is summarized in Algorithm 1.
| Algorithm 1 Spectral Galerkin Method via Legendre Cardinal Functions |
Grid Initialization: Define the required space-time resolution M and generate the discrete nodal network and using either the Legendre–Gauss or Legendre–Gauss–Lobatto roots. Basis Construction: Assemble the spatial and temporal cardinal basis vectors and using the exact interpolation formulas. Operational Matrices: Analytically compute the spatial differentiation matrix and the Riemann–Liouville fractional integration matrix based on the selected grid. System Assembly: Evaluate the continuous source term and the initial physical state at the grid nodes to populate the discrete coefficient matrices and . Algebraic Formulation: Construct the core algebraic system . Boundary Enforcement: Overwrite the first and last rows of the left and right-hand side matrices to definitively lock in the physical Dirichlet constraints. Solution Extraction: Solve the resulting dense linear system via Gaussian elimination to extract the unknown spectral coefficient matrix , which directly yields the approximate values at the grid nodes.
|
Regarding the computational setup, all mathematical routines, matrix assemblies, and numerical simulations discussed in this section were executed on a personal computer equipped with an Intel Core i7-6700K CPU running at 4.00 GHz and 8 GB of RAM, utilizing the Maple 2022 and MATLAB R2022a software environments.
Example 1. The continuous transport process is governed by the following fractional partial differential equation:with homogeneous Dirichlet boundaries at both ends of the spatial intervaland the initial condition Here the analytical continuous source term is defined as This subdiffusion problem admits the following exact solution [41]: To verify the practical performance of our spectral framework, we evaluated Example 1 at different space-time resolutions, taking
. As shown in
Table 1, higher polynomial degrees give smaller maximum absolute errors with acceptable CPU times. To rigorously compare the proposed method with established numerical approaches,
Table 2 presents a head-to-head comparison of our framework and the meshless method [
41] using the same test problem and parameter settings. Rather than comparing error values alone, we assess computational complexity by the total degrees of freedom (DOFs). The meshless method exhibits an algebraic convergence rate, requiring more DOFs to reduce the error incrementally. In contrast, the proposed method’s spectral convergence rate achieves a maximum error of
with only 100 total DOFs. Combined with the minimal CPU times reported in
Table 1, this dramatic reduction in system size demonstrates vastly superior computational efficiency.
To explicitly quantify the observed convergence rate, we refer to the semi-logarithmic error profiles in
Figure 1 (left). In a spectral framework, exponential convergence takes the form
, which mathematically manifests as a strictly linear decrease when plotting
against the polynomial degree
M. The plotted results display this persistent linear decay, visually quantifying the exponential error reduction and confirming that the method achieves true spectral accuracy for this smooth profile, in perfect alignment with the a priori estimates in Theorem 1. Furthermore, the right panel of
Figure 1 and the time-evolution plots in
Figure 2 quantitatively support the proposed error estimator. By plotting both the actual
error and the a posteriori bound, the tightly preserved parallel gap between the curves visually confirms the Effectivity Index. Because the bound strictly upper-bounds the actual error, the condition
is satisfied across all time steps, validating the estimator’s reliability and low variance without the need for additional tabular data. Finally,
Figure 2 shows that the error estimator accurately captures localized variations across discrete time steps at higher resolutions, reinforcing the solver’s overall stability and mathematical soundness.
Example 2. To illustrate the performance of the proposed method, we consider the following fractional partial differential equation:with homogeneous Dirichlet boundariesand the initial condition Here, the analytical continuous source term is defined as This subdiffusion problem admits the following exact solution [42]: To further validate our Legendre cardinal Galerkin framework, we conducted additional numerical investigations using Example 2. As outlined in
Table 3, the maximum absolute errors across spatial and temporal resolutions demonstrate consistent high-order accuracy and stable computational performance for both the Jacobi and Lobatto grid configurations. To rigorously assess this efficiency,
Table 4 provides a direct comparison with the compact finite-difference approach [
42] using the exact same test problem and parameter settings (
). While the finite-difference scheme achieves only an algebraic convergence rate—requiring a massive computational complexity of approximately 80,000 DOFs to reach an error of
—the proposed spectral method achieves
accuracy with merely 121 DOFs. Supported by the low CPU times documented in
Table 3, this stark contrast confirms that the Legendre cardinal framework entirely circumvents the severe computational complexity of dense grid-based solvers.
Furthermore, the semi-logarithmic plots in
Figure 3 (left) explicitly quantify this convergence behavior. The persistent linear decrease in
as
M increases visually confirms the theoretical
spectral convergence rate, definitively distinguishing this framework from standard methods that yield only algebraic polynomial decay. Alongside this, the right panel of
Figure 3 and the detailed temporal profiles in
Figure 4 explicitly demonstrate the reliability of our a posteriori bound. The tightly preserved parallel alignment of the actual error and the residual bound across both Gauss and Lobatto grids confirms a highly stable Effectivity Index (
), proving that the computable residual serves as a tight, practical proxy for the true error. Finally, the physical impact of memory effects is clearly illustrated in
Figure 5, which depicts the solution profiles of
across a spectrum of fractional orders (
). As the fractional parameter
increases toward 1, the subdiffusive solution smoothly converges to the classical integer-order limit, visually confirming both the physical consistency and the mathematical stability of the proposed framework. Furthermore, because the temporal discretization uses exact analytical integration via the smooth Gamma function, the system encounters no mathematical singularities or stiffness as
or
. Consequently, the framework fully preserves its high-order spectral accuracy, stable matrix conditioning, and fixed computational runtime across the entire fractional domain without deterioration.
To summarize the computational efficiency demonstrated across both examples, we evaluate the CPU time, system size (total degrees of freedom), and the 2-norm condition number,
, of the global algebraic systems. As reported in
Table 1 and
Table 3, the CPU times for assembling and solving these equations remain strictly in the order of seconds. Furthermore, for any chosen resolution
M, the total degrees of freedom scale purely as
. Because the Legendre cardinal framework converges exponentially, exceptional accuracy is achieved with very small polynomial degrees (
), so the maximum global system size in our experiments never exceeds
. Although the condition number
of spectral collocation matrices inherently grows with
M, these extremely small system sizes ensure that it remains well within the safe operational limits of standard 64-bit double-precision arithmetic (typically
). This confirms that the proposed method achieves high accuracy without triggering the massive memory bottlenecks or severe ill-conditioning typical of dense grid-based solvers.
6. Conclusions
In this paper, we introduce a faster and more simple method for solving one-dimensional time-fractional reaction–subdiffusion equations. One of the main challenges in these simulations is addressing early-time singularities and complex numerical integrations, which can significantly slow down the process. We tackled this issue by transforming the original equation into a Volterra integral form, which effectively incorporates the initial conditions and smooths out early spikes. Furthermore, we utilized Legendre cardinal functions, taking advantage of their unique properties related to their nodes. This approach allowed us to construct our matrices directly, thus eliminating the time-consuming process of numerical integration.
Our test results support the theory with strong numerical evidence. The method demonstrated clear exponential convergence, with the error decreasing at a rate of . In practice, we achieved highly accurate results, with maximum errors around , using a very small system size of only 100 to 121 points (). Because the system remains compact, it only takes a few seconds to run, making it significantly faster than standard methods that rely on large space-time grids. Additionally, we confirmed that our error-checking tool operates reliably, maintaining an Effectivity Index (EI) of throughout the entire process.
Finally, as we adjusted the fractional power , the model smoothly transitioned back to standard diffusion as approached 1. While the proposed framework demonstrates significant computational advantages, it is important to acknowledge its current limitations. Presently, we have exclusively tested and validated this method for one-dimensional linear problems. Furthermore, because spectral collocation techniques inherently generate dense operational matrices, scaling the method to very high resolutions or multi-dimensional domains will inevitably increase memory requirements and computational overhead. However, since this approach successfully avoids extensive numerical integration and maintains exceptionally small matrix sizes for smooth problems, we believe it provides a solid, practical foundation. Future work will focus on extending this methodology to multidimensional and nonlinear fractional equations, potentially coupling it with sparse iterative solvers to manage the dense matrix constraints.