Next Article in Journal
An Efficient Numerical Method for Solving Generalized Time-Fractional Boussinesq Equation
Previous Article in Journal
Asymptotic Expansions and Sharp Decay Estimates for Multi-Order Tempered Fractional Cooperative Systems
Previous Article in Special Issue
A Residual-Adaptive Preconditioned ψ-Fractional Quantum Pseudo-Spectral Method: Delay-Memory Differential Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Spectral Galerkin Framework for the Fractional Reaction–Subdiffusion Equation Using Legendre Cardinal Functions

by
Haifa Bin Jebreen
Mathematics Department, College of Science, King Saud University, Riyadh 11451, Saudi Arabia
Mathematics 2026, 14(17), 3183; https://doi.org/10.3390/math14173183
Submission received: 6 August 2026 / Revised: 28 August 2026 / Accepted: 1 September 2026 / Published: 3 September 2026

Abstract

In this work, we introduce an efficient spectral Galerkin method for solving one-dimensional time-fractional reaction–subdiffusion equations. Traditional fractional operators often pose severe computational challenges and exhibit weak singularities near the initial time. To address these issues, we analytically transform the governing differential equation into a weakly singular Volterra integral equation. The numerical solution is then constructed in a two-dimensional tensor-product space using orthogonal Legendre cardinal functions on both Gauss and Gauss–Lobatto grids. A major computational advantage of this cardinal basis is that it eliminates the need for expensive numerical quadratures when assembling the operational matrices. From a theoretical view, we establish a rigorous a priori error bound and a fully computable a posteriori error estimator based on the residual. The analysis confirms that the convergence rate is governed algebraically by the Sobolev regularity of the exact solution, naturally accelerating to exponential (spectral) convergence for sufficiently smooth profiles. Extensive numerical experiments validate these theoretical claims, demonstrating that the proposed framework offers significant improvements in accuracy and efficiency.

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 Λ × ( 0 , T ] , with the spatial interval being Λ = [ a , b ] . The governing equation reads
w ( ξ , τ ) τ = D τ 1 α 0 2 w ( ξ , τ ) ξ 2 w ( ξ , τ ) + q ( ξ , τ ) , 0 < α 1 .
We pair this with a known initial condition w ( ξ , 0 ) = w 0 ( ξ ) for ξ Λ , and enforce strict homogeneous Dirichlet boundaries such that w ( ξ , τ ) = 0 on Λ × [ 0 , T ] where Λ indicates the spatial boundary. Here, q ( ξ , τ ) is the continuous source term, and D τ 1 α 0 identifies the Riemann–Liouville fractional derivative of order 1 α .
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 τ = 0 . 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.

2. Legendre Cardinal Functions and Operational Matrices

We are going to build and use a discrete approximation space by using Legendre cardinal functions. It is well known that, most global spectral methods need heavy numerical quadrature to find expansion coefficients, but our method avoids this by using a cardinal basis. These basis functions let us interpolate the unknown solution directly at chosen grid nodes [39,40].
For a given resolution M N , we use the family of Legendre polynomials { L k } k = 0 M on [ a , b ] . Their roots { ξ k , i } i = 0 k 1 are real, simple, and lie strictly inside the interval [31]. Depending on how we handle boundary constraints, we generate the cardinal basis using either the Legendre–Gauss grid or the Legendre–Gauss–Lobatto grid.

2.1. Nodal Distributions and Cardinality

2.1.1. Legendre–Gauss Grid

If we do not need to enforce boundary conditions at the nodes, we build the basis using the interior roots of L M + 1 . Considering ξ = 2 ( t a ) b a 1 , the k-th Legendre–Gauss cardinal function is defined with standard Lagrange interpolation as follows:
B k ( ξ ) = L M + 1 ( ξ ) d d ξ ( L M + 1 ( ξ M + 1 , k ) ) ( ξ ξ M + 1 , k ) , k = 0 , 1 , , M , ξ [ a , b ] .

2.1.2. Legendre–Gauss–Lobatto Grid

For Dirichlet problems requiring conditions at the domain endpoints, the Gauss–Lobatto grid is optimal. It uses the extrema of L M together with the endpoints a and b.
The Lobatto cardinal functions for these nodes are
B k ( ξ ) = ( 1 ξ 2 ) d d ξ ( L M ( ξ ) ) d d ξ ( 1 ξ M + 1 , k 2 ) d d ξ ( L M ( ξ M + 1 , k ) ) ( ξ ξ M + 1 , k ) , k = 0 , 1 , , M ,
We define the node set as
{ ξ M + 1 , k } k = 0 M : = ξ ^ M , k k = 0 M 2 { a , b } , where d d ξ ( L M ( ξ ^ M , k ) ) = 0 .

2.1.3. Approximation

Unlike standard orthogonal polynomial bases that require dense numerical integration for Galerkin projections, this strict cardinality acts as the primary mechanism for a completely quadrature-free matrix assembly. Regardless of the nodal distribution, this design satisfies the Kronecker delta property across the grid, B k ( ξ M + 1 , j ) = δ k , j . As a result, any sufficiently smooth function w ( ξ ) can be interpolated exactly. The projection onto the polynomial space is
w ( ξ ) P M ( w ( ξ ) ) = k = 0 M w ( ξ M + 1 , k ) B k ( ξ ) .
These individual cardinal functions are assembled into a global basis vector Ψ M ( ξ ) R M + 1 , where [ Ψ M ] k + 1 ( ξ ) = B k ( ξ ) .

2.2. Matrix-Based Expression of the Derivative Operator

To convert the continuous derivative operator into a discrete algebraic system, the derivatives of the basis functions must be expressed in terms of themselves. This representation relies on the mathematical structure of Legendre polynomials.
The r-th derivative of the shifted Legendre polynomial is formulated as
d r d ξ r ( L M + 1 ) ( ξ ) = ρ M + 1 , r L M + 1 r ( ξ ) ,
where the scalar factor ρ M + 1 , r is analytically determined as [31]
ρ M + 1 , r = Γ ( M + r ) 2 r 1 ( b a ) Γ ( M ) .
By applying these coefficients, we can rewrite the cardinal functions (2) and (3) in a much simpler alternative form [40]
B k ( ξ ) = σ j = 0 , j k M ( ξ ξ j ) , k = 0 , 1 , , M , ξ [ a , b ] .
The scaling constant σ that has appeared is fully determined by the selected grid configuration. If you select the Gauss grid, we obtain it as
σ = κ M d d ξ ( L M + 1 ( ξ ) ) | ξ = ξ k ,
where κ M is the leading polynomial coefficient of L M + 1 ( ξ ) , defined as follows:
κ M = Γ ( 2 M + 1 ) ( b a ) M Γ ( M + 1 ) 2 .
Similarly, if the Lobatto grid is used, the constant evaluates to
σ = 4 ρ M + 1 , 1 Γ ( 2 M 1 ) ( M 2 ) ( b a ) M Γ ( M + 1 ) d d ξ ( 1 ξ 2 ) d d ξ ( L M ( ξ ) ) | ξ = ξ k .
Taking the derivative of both sides of (7), we generate the following exact summation formula
d d ξ ( B k ) ( ξ ) = σ l = 0 l k M j = 0 j k , l M ( ξ ξ j ) = l = 0 l k M B k ( ξ ) ξ ξ l .
We can then approximate this derivative by projecting it directly onto the basis functions
d d ξ ( B k ( ξ ) ) j = 0 M d d ξ ( B k ( ξ ) ) ξ = ξ j B j ( ξ ) .
By evaluating this derivative at our specified collocation points, we obtain the scalar entries needed to construct our differentiation matrix
d d ξ ( B k ( ξ ) ) ξ = ξ j = l = 0 l j M 1 ξ j ξ l , k = j , σ i = 0 i k , j M ( ξ j ξ i ) , k j .
Using this analytical formulation directly, the derivative operator is applied to the basis vector function Ψ M ( ξ ) introduced by the dense ( M + 1 ) × ( M + 1 ) operational matrix D ξ . Thus, we have
d d ξ Ψ M ( ξ ) D ξ Ψ M ( ξ ) .
It is critical to note that because the derivative of any cardinal basis function B k ( ξ ) Π M is a polynomial of degree M 1 , it remains entirely within the approximation space Π M . Consequently, the interpolation of this derivative at the grid nodes introduces zero truncation error, making the discrete operational matrix D ξ strictly exact for the basis functions.

2.3. Matrix-Based Expression of the Fractional Operator

Addressing the Riemann–Liouville fractional integral requires a different method. To construct the operational matrix for this operator, we need to first express the cardinal functions as a polynomial expansion. The previously mentioned product term (7) can be expanded into a power series [40]:
j = 0 j k M ( τ τ j ) = i = 0 M ϱ k , i τ M i ,
where we determine the weighting coefficients ϱ k , i recursively through the following relations:
ϱ k , 0 = 1 , ϱ k , i = 1 i r = 0 i v k , r ϱ k , i r , v k , r = l = 0 l k M ( τ l ) r , k , i = 0 , 1 , , M .
Consequently, any cardinal function B k ( τ ) satisfies the following clean representation:
B k ( τ ) = σ i = 0 M ϱ k , i τ M i , k = 0 , 1 , , M .
Now, we examine how the fractional integral applies to B k ( τ ) . Assuming integration starts at zero, which perfectly matches our chosen temporal domain ( 0 , T ] , the Riemann–Liouville fractional integral is defined as
I 0 + α ( τ ϑ ) = Γ ( ϑ + 1 ) Γ ( ϑ + α + 1 ) τ ϑ + α , α R + .
By applying this direct analytical rule directly to our expanded power series in Equation (15), we obtain the exact fractional integration of the cardinal function
I 0 + α ( B k ( τ ) ) = σ i = 0 M ϱ k , i Γ ( M i + 1 ) Γ ( M i + α + 1 ) τ M i + α .
To incorporate this fractional result into our discrete collocation framework, we approximate the continuous fractional integral directly using the cardinal basis functions:
I 0 + α ( B k ( τ ) ) j = 0 M I 0 + α ( B k ) ( τ j ) B j ( τ ) .
Thanks to this calculation, we introduce the operational matrix I α R ( M + 1 ) × ( M + 1 ) . The nonlocal behavior of the operator translates perfectly into a dense algebraic array I 0 + α ( Ψ M ( τ ) ) I α Ψ M ( τ ) , where the matrix entries are explicitly specified as
[ I α ] k + 1 , j + 1 = I 0 + α ( B k ) ( τ j ) .
This operational framework enables us to efficiently calculate the impact of the fractional integral using direct matrix-vector multiplication, saving significant computational time during the discrete solver stage.
Unlike classical differentiation, the Riemann–Liouville fractional integral of a polynomial introduces fractional powers (e.g., τ M i + α ), which do not inherently reside in the polynomial space Π M . Therefore, while the analytical integration formula in Equation (17) is exact, the operational matrix I α represents an approximate L 2 projection of these fractional terms back onto the cardinal basis.
Remark 1.
It is well known that evaluating fractional integrals via monomial expansions (as utilized in Equations (15)–(17)) can yield matrices that are highly ill-conditioned for moderate-to-large polynomial degrees M. However, because the proposed Legendre cardinal framework achieves exponential (spectral) convergence, exceptional accuracy is attained using very small degrees (typically M 15 ). Consequently, the operational matrix I α is generated without ever entering the highly ill-conditioned regime, ensuring computational stability in standard double-precision arithmetic.

2.4. Verification for Low-Order Basis Functions

To explicitly verify the derived operational matrices, consider the lowest-order practical approximation M = 1 on the standard spatial domain [ 1 , 1 ] using the Legendre–Gauss grid. The roots of L 2 ( ξ ) yield the nodes ξ 0 = 1 / 3 and ξ 1 = 1 / 3 .
Using the standard interpolation formula, the exact cardinal basis functions are
B 0 ( ξ ) = 3 2 ξ 1 3 , B 1 ( ξ ) = 3 2 ξ + 1 3 .
By taking the first derivative of these basis functions analytically, we obtain the constant values d d ξ B 0 ( ξ ) = 3 2 and d d ξ B 1 ( ξ ) = 3 2 . Evaluating these exact derivatives at the collocation nodes perfectly matches the proposed analytical matrix formulation in Equation (13), yielding the exact differentiation matrix:
D ξ = 3 2 3 2 3 2 3 2 .
This confirms that the recursive derivation successfully captures the exact discrete operators without relying on numerical quadratures.

3. Spectral Galerkin Method

Here is how we transform the governing fractional partial differential equation into a Volterra integral form. Next, we will describe how to set up our solvable algebraic system using an integrated Galerkin method.

3.1. Transformation to the Volterra Equation

We rely on the fundamental relationship in calculus that connects the Riemann–Liouville fractional derivative to its corresponding integral [5]
D τ 1 α 0 ν ( ξ , τ ) = τ I 0 + α ν ( ξ , τ ) .
Applying the first-order time integral, denoted as I 0 + 1 , to the entire Equation (1) results in
I 0 + 1 w ( ξ , τ ) τ = I 0 + 1 τ I 0 + α 2 w ( ξ , τ ) ξ 2 w ( ξ , τ ) + I 0 + 1 q ( ξ , τ ) .
Evaluating the left-side integral with the Fundamental Theorem of Calculus incorporates the initial condition into our main equation, while the integral remains just in front of q on the right-hand side:
w ( ξ , τ ) w 0 ( ξ ) = I 0 + α 2 w ( ξ , τ ) ξ 2 w ( ξ , τ ) + I 0 + 1 q ( ξ , τ ) .
Rearranging the components of this equation produces the Volterra integral equation:
w ( ξ , τ ) I 0 + α 2 w ( ξ , τ ) ξ 2 + I 0 + α w ( ξ , τ ) = I 0 + 1 q ( ξ , τ ) + w 0 ( ξ ) .

3.2. Galerkin Implementation via Gram Matrices

To build our fully discrete numerical model, we approximate the unknown continuous function using a two-dimensional tensor-product expansion. Using the basis vectors applied to the spatial domain, represented by Ψ M ( ξ ) R ( M + 1 ) × 1 , and the temporal domain, represented by Ψ M ( ξ ) R ( M + 1 ) × 1 , we express the numerical solution as
w M ( ξ , τ ) = Ψ M T ( ξ ) W Ψ M ( τ ) .
Since we use a cardinal basis, the matrix W R ( M + 1 ) × ( M + 1 ) is more than just an abstract set of spectral weights. Its entries, W k , j , directly relate to the approximate solution values at the intersections of the spatial and temporal grids, specifically at ( ξ k , τ j ) .
We carefully incorporate this functional expansion into the Volterra integral equation. By translating the continuous spatial and temporal operators into the introduced discrete operational matrix forms, we obtain
2 w M ξ 2 Ψ M T ( ξ ) ( D ξ 2 ) T W Ψ M ( τ ) ,
and
I 0 + α w M Ψ M T ( ξ ) W I α Ψ M ( τ ) .
We similarly approximate the known continuous source term and initial conditions onto the grid network to create their respective ( M + 1 ) × ( M + 1 ) coefficient matrices Q and W 0 .
Substituting these approximations back into the equivalent Volterra equation allows us to define the continuous residual, R M ( ξ , τ ) , of our numerical approximation:
R M ( ξ , τ ) = Ψ M T ( ξ ) W ( D ξ 2 ) T W I α + W I α Q I 1 W 0 Ψ M ( τ ) .
To carefully minimize this error residual and identify the unknown coefficient matrix W , we use the well-established Galerkin projection method. This reliable mathematical technique requires that the residual be exactly orthogonal to every test function within our finite-dimensional approximation space. In practical terms, this involves calculating the double integral of the residual against the product of the spatial and temporal basis functions B k ( ξ ) B j ( τ ) :
0 T a b R M ( ξ , τ ) B k ( ξ ) B j ( τ ) d ξ d τ = 0 .
To make this integration more relatable, we multiply the residual by the outer product of our basis vectors, Ψ M ( ξ ) Ψ M T ( τ ) , and integrate over the entire space-time domain
0 T a b Ψ M ( ξ ) Ψ M T ( ξ ) W ( D ξ 2 ) T W I α + W I α Q I 1 W 0 Ψ M ( τ ) Ψ M T ( τ ) d ξ d τ = 0 .
Since the algebraic coefficient matrices within the large parentheses do not depend on the variables of integration, ξ and τ , they can be taken outside the integrals. This allows us to define the symmetric spatial and temporal Gram matrices, known in the literature as mass matrices, denoted by G ξ and G τ . These ( M + 1 ) × ( M + 1 ) matrices capture the standard inner products of the cardinal basis functions in the continuous setting
G ξ = a b Ψ M ( ξ ) Ψ M T ( ξ ) d ξ , and G τ = 0 T Ψ M ( τ ) Ψ M T ( τ ) d τ .
Replacing the Gram matrices in Equation (28) reduces the original two-dimensional integral into a matrix block system
G ξ W ( D ξ 2 ) T W I α + W I α Q I 1 W 0 G τ = 0 .
Since Legendre cardinal functions form a set of linearly independent basis vectors, a fundamental property in functional linear algebra is that their associated Gram matrices G ξ and G τ are always positive-definite and therefore invertible. By multiplying the entire relation from the left by G ξ 1 and from the right by G τ 1 , we can remove these mass matrices. This transforms the complicated continuous Volterra equation into an algebraic matrix equation:
W ( D ξ 2 ) T W I α + W I α = Q I 1 + W 0 .
Remark 2.
It is important to clarify the mathematical nature of this reduction. By introducing the continuous Gram matrices through the standard Galerkin inner product and subsequently eliminating them via multiplication by their inverses, the discrete residual is effectively forced to be identically zero at the grid nodes. Consequently, this specific Legendre cardinal Galerkin framework reduces to, and is mathematically equivalent to, a pseudospectral collocation scheme. Furthermore, if the continuous Gram matrices G ξ and G τ were numerically evaluated using the exact Gauss (or Gauss–Lobatto) quadrature rules corresponding to their respective grid nodes, the strict Kronecker delta property of the cardinal basis would render them exactly diagonal. However, by analytically eliminating these mass matrices from the final algebraic system (Equation (31)), our formulation completely bypasses the need to compute, store, or invert these diagonal matrices, maximizing computational efficiency.
As a final step, the physical Dirichlet boundaries are incorporated into the algebraic system. Let the unmodified discrete system in Equation (31) be denoted as A W = F , where A is the spatial coefficient matrix and F is the right-hand side matrix. The physical system demands w ( a , τ ) = 0 and w ( b , τ ) = 0 . To enforce this within the discrete functional expansion, the cardinal basis vector is evaluated explicitly at the exact domain boundaries, yielding the boundary constraint vectors Ψ M T ( a ) and Ψ M T ( b ) . The system is then modified by exactly replacing the first (index 0) and last (index M) rows of the system matrices to enforce these constraints.
The exact algebraic manipulation depends on the chosen grid:
  • Legendre–Gauss–Lobatto Grid: The nodes naturally include the endpoints ( ξ 0 = a , ξ M = b ). By the Kronecker delta property, Ψ M T ( a ) = [ 1 , 0 , , 0 ] and Ψ M T ( b ) = [ 0 , , 0 , 1 ] . The boundary enforcement simplifies to replacing the first and last rows of A with exact identity constraints, and zeroing the corresponding rows of F :
    A 0 , j = δ 0 , j , A M , j = δ M , j , and F 0 , : = 0 , F M , : = 0 ,
    where δ is the Kronecker delta.
  • Legendre–Gauss Grid: The nodes are strictly interior, so the evaluated vectors Ψ M T ( a ) and Ψ M T ( b ) are completely dense. The PDE collocation equations at the first and last interior nodes ( ξ 0 and ξ M ) are sacrificed by replacing those algebraic rows in A with the dense boundary evaluations:
    A 0 , j = B j ( a ) , A M , j = B j ( b ) , and F 0 , : = 0 , F M , : = 0 ,
    for j = 0 , 1 , , M .
In both configurations, combining these boundary constraints with the remaining ( M 1 ) × ( M 1 ) interior principal submatrix preserves the full rank of the modified system, guaranteeing a uniquely solvable linear equation for the unknown matrix W .
To find the system solution, we use the standard Gaussian elimination solver. However, if we increase the spatial and temporal resolutions to very high levels, more robust iterative algorithms like the Generalized Minimal Residual (GMRES) method can be conveniently used instead to handle the computational demands.
Remark 3.
While a rigorous theoretical proof of discrete well-posedness for this fully coupled space-time fractional Volterra system is highly complex, we operate under the standard assumption that the discrete projection inherits the well-posedness of the continuous physical operator. Specifically, because the continuous fractional reaction–subdiffusion model is rigorously known to be well-posed (see, for instance, the foundational analyses in [3,25]), we assume the resulting discrete global coefficient matrix remains strictly non-singular for a sufficiently high resolution M. Under this assumption, the orthogonal nature of the Legendre cardinal basis and the positive-definite properties of the underlying Gram matrices guarantee that the modified algebraic system yields a unique, stable solution for the unknown matrix W .

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 0 < α < 1 . Furthermore, we assume that the continuous source term q ( ξ , τ ) and the initial condition w 0 ( ξ ) are sufficiently regular so that the exact solution satisfies w ( · , τ ) H n ( Λ ) H 0 1 ( Λ ) for an integer n 1 at any time τ [ 0 , T ] . The approximation space is the finite-dimensional polynomial space Π M of degree at most M.

4.1. Preliminaries and Error Decomposition

Let Π M 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 P M : H 0 1 ( Λ ) Π M , such that for any continuous test function ν H 0 1 ( Λ ) , we have
( ν P M ν ) , ν M + ν P M ν , ν M = 0 , ν M Π M .
It’s a well-established mathematical fact that for any sufficiently smooth solution ν H n ( Λ ) H 0 1 ( Λ ) , this particular Ritz projection satisfies the spectral error bound
| | ν P M ν | | L 2 ( Λ ) C M n | | ν | | H n ( Λ ) .
To better understand the overall simulation error, e M ( ξ , τ ) = w ( ξ , τ ) w M ( ξ , τ ) , we break it down into two parts:
e M = η 1 + η 2 ,
where η 1 = w P M w denotes the projection error associated with the chosen space dimension, and η 2 = P M w w M Π M represents the discrete error arising from the numerical evaluation algorithm.

4.2. Semi-Discrete a Priori Spatial Error Estimate

Theorem 1.
Assume w ( ξ , τ ) be the exact smooth solution to the Volterra Equation (24). Let w M ( ξ , τ ) Π M be the numerical approximation obtained by the algorithm. The special discretization error e M ( ξ , τ ) satisfies the following bound for any point in time τ [ 0 , T ] :
| | e M ( · , τ ) | | L 2 ( Λ ) C M n | | w ( · , τ ) | | H n ( Λ ) ,
where C > 0 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:
w , ν + I 0 + α w , ν + I 0 + α w , ν = I 0 + 1 q , ν + w 0 , ν , ν H 0 1 ( Λ ) .
The fully discrete approximation w M Π M similarly satisfies
w M , ν M + I 0 + α w M , ν M + I 0 + α w M , ν M = I 0 + 1 q , ν M + w 0 , ν M , ν M Π M .
Subtracting the discrete Equation (39) from the continuous Equation (38) and directly inserting the decomposition e M = η 1 + η 2 yields
η 2 , ν M + I 0 + α η 2 , ν M + I 0 + α η 2 , ν M = η 1 , ν M I 0 + α η 1 , ν M + η 1 , ν M .
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
η 2 , ν M + I 0 + α η 2 , ν M + I 0 + α η 2 , ν M = η 1 , ν M .
Setting the test function to ν M = η 2 ( τ ) Π M produces the following strict energy equality:
| | η 2 ( τ ) | | L 2 ( Λ ) 2 + I 0 + α | | η 2 ( τ ) | | L 2 ( Λ ) 2 + I 0 + α | | η 2 ( τ ) | | L 2 ( Λ ) 2 = η 1 ( τ ) , η 2 ( τ ) .
A key property of the Riemann–Liouville fractional integral is that if you have a non-negative function μ ( τ ) 0 , then its fractional integral, I 0 + α μ ( τ ) , 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:
| | η 2 ( τ ) | | L 2 ( Λ ) 2 η 1 ( τ ) , η 2 ( τ ) .
Using the Cauchy–Schwarz inequality on the right side and subsequently dividing the relation by | | η 2 ( τ ) | | L 2 ( Λ ) yields the stability bound for the discrete error
| | η 2 ( τ ) | | L 2 ( Λ ) | | η 1 ( τ ) | | L 2 ( Λ ) .
Using the triangle inequality on the error term e M = η 1 + η 2 gives us the bound | | e M | | L 2 2 | | η 1 | | L 2 . When we incorporate the spectral projection limit from Equation (35), we arrive at the following estimate:
| | e M ( · , τ ) | | L 2 ( Λ ) 2 C M n | | w ( · , τ ) | | H n ( Λ ) = C M n | | w ( · , τ ) | | H n ( Λ ) .
   □
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 I α . A comprehensive fully discrete analysis would bound the total space-time error by O ( M n ξ + M n τ ) , where n ξ and n τ 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 O ( M n ) , 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 n ). 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 M , 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 w M as
R M ( ξ , τ ) = w M ( ξ , τ ) I 0 + α 2 w M ( ξ , τ ) ξ 2 + I 0 + α w M ( ξ , τ ) I 0 + 1 q ( ξ , τ ) w 0 ( ξ ) .
It is obvious that the exact theoretical solution w ( ξ , τ ) naturally produces a zero residual:
0 = w ( ξ , τ ) I 0 + α 2 w ( ξ , τ ) ξ 2 + I 0 + α w ( ξ , τ ) I 0 + 1 q ( ξ , τ ) w 0 ( ξ ) .
Subtracting (47) from (46) and invoking the definition of the global error, e M = w w M , yields the following residual equation:
R M ( ξ , τ ) = e M ( ξ , τ ) I 0 + α 2 e M ( ξ , τ ) ξ 2 + I 0 + α e M ( ξ , τ ) .
By taking the inner product with e M ( τ ) and applying spatial integration by parts, we obtain
R M ( τ ) , e M ( τ ) = | | e M ( τ ) | | L 2 ( Λ ) 2 + I 0 + α | | e M ( τ ) | | L 2 ( Λ ) 2 + I 0 + α | | e M ( τ ) | | L 2 ( Λ ) 2 .
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:
| | e M ( τ ) | | L 2 ( Λ ) 2 R M ( τ ) , e M ( τ ) .
Applying the Cauchy–Schwarz inequality leads to
| | e M ( τ ) | | L 2 ( Λ ) 2 | | R M ( τ ) | | L 2 ( Λ ) | | e M ( τ ) | | L 2 ( Λ ) .
Finally, dividing the expression by | | e M ( τ ) | | L 2 ( Λ ) yields a computable a posteriori bound:
| | e M ( · , τ ) | | L 2 ( Λ ) | | R M ( · , τ ) | | L 2 ( Λ ) .
This shows that at any point in time, the overall L 2 error produced by the numerical scheme is less than or equal to the L 2 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 I α 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 L 2 -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 e C η for a constant C > 0 , 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 ( E I = η / e ).

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 w ( ξ , τ ) and our numerical approximation w M ( ξ , τ ) . Throughout these experiments, we track both the global continuous L 2 -norm and the discrete maximum L -norm over the space-time grid. These error metrics are defined as follows:
E 2 = 0 T a b | w ( ξ , τ ) w M ( ξ , τ ) | 2 d ξ d τ 1 / 2 ,
E = max 0 i M 0 j M | w ( ξ i , τ j ) w M ( ξ i , τ j ) | .
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 E I = | | R M | | L 2 / E 2 . An estimator is theoretically reliable if E I 1 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 { ξ i } i = 0 M and { τ j } j = 0 M using either the Legendre–Gauss or Legendre–Gauss–Lobatto roots.
  • Basis Construction: Assemble the spatial and temporal cardinal basis vectors Ψ M ( ξ ) and Ψ M ( τ ) using the exact interpolation formulas.
  • Operational Matrices: Analytically compute the spatial differentiation matrix D ξ and the Riemann–Liouville fractional integration matrix I α based on the selected grid.
  • System Assembly: Evaluate the continuous source term q ( ξ , τ ) and the initial physical state w 0 ( ξ ) at the grid nodes to populate the discrete coefficient matrices Q and W 0 .
  • Algebraic Formulation: Construct the core algebraic system W ( D ξ 2 ) T W I α + W I α = Q I 1 + W 0 .
  • 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 W , 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:
w ( ξ , τ ) τ = D τ 1 α 0 1 π 8 2 w ( ξ , τ ) ξ 2 α 2 4 w ( ξ , τ ) + q ( ξ , τ ) , ( ξ , τ ) [ 0 , 1 ] × ( 0 , 1 ] .
with homogeneous Dirichlet boundaries at both ends of the spatial interval
w ( 0 , τ ) = 0 , w ( 1 , τ ) = 0 , τ [ 0 , 1 ] ,
and the initial condition
w ( ξ , 0 ) = 0 , ξ [ 0 , 1 ] .
Here the analytical continuous source term q ( ξ , τ ) is defined as
q ( ξ , τ ) = 2 τ ξ 2 ( 1 ξ ) 2 ( ξ 2 ( 1 ξ ) 2 1 + α 2 τ α 4 Γ ( 2 + α ) 4 τ α π 8 Γ ( 2 + α ) ( 14 ξ 2 14 ξ + 3 ) ) .
This subdiffusion problem admits the following exact solution [41]:
w ( ξ , τ ) = τ 2 ξ 4 ( 1 ξ ) 4 .
To verify the practical performance of our spectral framework, we evaluated Example 1 at different space-time resolutions, taking α = 0.5 . 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 O ( 10 9 ) 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 O ( e c M ) , which mathematically manifests as a strictly linear decrease when plotting log 10 ( E ) 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 E 2 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 E I 1 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:
w ( ξ , τ ) τ = D τ 1 α 0 2 w ( ξ , τ ) ξ 2 w ( ξ , τ ) + q ( ξ , τ ) , ( ξ , τ ) [ 0 , 1 ] × ( 0 , 1 ] .
with homogeneous Dirichlet boundaries
w ( 0 , τ ) = 0 , w ( 1 , τ ) = 0 , τ [ 0 , 1 ] ,
and the initial condition
w ( ξ , 0 ) = 0 , ξ [ 0 , 1 ] .
Here, the analytical continuous source term q ( ξ , τ ) is defined as
q ( ξ , τ ) = ( α + 2 ) t α + 1 ξ 2 ( 1 ξ ) 2 + Γ ( 3 + α ) 2 + 2 α τ 1 + 2 α ( ξ 4 2 ξ 3 11 ξ 2 + 12 ξ 2 ) .
This subdiffusion problem admits the following exact solution [42]:
w ( ξ , τ ) = ξ 2 ( 1 ξ ) 2 τ α + 2 .
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 ( α = 0.8 ). 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 O ( 10 5 ) —the proposed spectral method achieves O ( 10 8 ) 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 log 10 ( E 2 ) as M increases visually confirms the theoretical O ( e c M ) 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 ( E I 1 ), 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 w ( 0.4 , τ ) across a spectrum of fractional orders ( α = 0.2 , 0.4 , 0.6 , 0.8 , 1 ). 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 α 0 + or α 1 . 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, κ ( A ) , 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 ( M + 1 ) 2 . Because the Legendre cardinal framework converges exponentially, exceptional accuracy is achieved with very small polynomial degrees ( M 15 ), so the maximum global system size in our experiments never exceeds 256 × 256 . Although the condition number κ ( A ) 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 κ < 10 7 ). 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 O ( e c M ) . In practice, we achieved highly accurate results, with maximum errors around O ( 10 8 ) , using a very small system size of only 100 to 121 points ( M 10 ). 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 E I 1 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.

Funding

Ongoing Research Funding program, (ORF-2026-210), King Saud University, Riyadh, Saudi Arabia.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

During the preparation of this work, the author used Grammarly to polish the writing and improve the English phrasing. After using this tool, the author carefully reviewed and edited the content as needed and take full responsibility for the final content of the publication.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Diethelm, K. The Analysis of Fractional Differential Equations; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
  2. Mainardi, F. Fractional Calculus and Waves in Linear Viscoelasticity; Imperial College Press: London, UK, 2010. [Google Scholar]
  3. Luchko, Y. Anomalous diffusion models and their analysis. Fract. Calc. Appl. Anal. 2012, 15, 141–146. [Google Scholar] [CrossRef] [Scilit]
  4. Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
  5. Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier B.V.: Amsterdam, The Netherlands, 2006. [Google Scholar]
  6. Gorenflo, R.; Mainardi, F.; Moretti, D.; Pagnini, G.; Paradisi, P. Discrete random walk models for space-time fractional diffusion. Chem. Phys. 2002, 284, 521–541. [Google Scholar] [CrossRef] [Scilit]
  7. Metzler, R.; Klafter, J. The random walk’s guide to anomalous diffusion: A fractional dynamics approach. Phys. Rep. 2000, 339, 1–77. [Google Scholar] [CrossRef] [Scilit]
  8. Henry, B.I.; Wearne, S.L. Fractional reaction-diffusion. Phys. A Stat. Mech. Its Appl. 2000, 276, 448–455. [Google Scholar] [CrossRef] [Scilit]
  9. Langlands, T.A.M.; Henry, B.I.; Wearne, S.L. Anomalous subdiffusion with multispecies linear reaction dynamics. Phys. Rev. E Stat. Nonlinear Soft Matter Phys. 2008, 77, 021111. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Yuste, S.B. Weighted average finite difference methods for fractional diffusion equations. J. Comput. Phys. 2006, 216, 264–274. [Google Scholar] [CrossRef] [Scilit]
  11. Murio, D.A. Implicit finite difference approximation for time fractional diffusion equations. Comput. Math. Appl. 2008, 56, 1138–1145. [Google Scholar] [CrossRef] [Scilit]
  12. Sun, Z.; Wu, X. A fully discrete difference scheme for a diffusion-wave system. Appl. Numer. Math. 2006, 56, 193–209. [Google Scholar] [CrossRef] [Scilit]
  13. Cui, M. Compact finite difference method for the fractional diffusion equation. J. Comput. Phys. 2009, 228, 7792–8004. [Google Scholar] [CrossRef] [Scilit]
  14. Zhuang, P.; Liu, F.; Anh, V.; Turner, I. New solution and analytical techniques of the implicit numerical method for the anomalous subdiffusion equation. SIAM J. Numer. Anal. 2008, 46, 1079–1095. [Google Scholar] [CrossRef] [Scilit]
  15. Maji, S.; Natesan, S. Adaptive-grid technique for the numerical solution of a class of fractional boundary-value-problems. Comput. Methods Differ. Equ. 2010, 12, 338–349. [Google Scholar]
  16. Kammappa, Z.; Awasthi, A. Trigonometric cubic B-spline collocation method for time fractional diffusion equation. Comput. Methods Differ. Equ. 2025, in press. [Google Scholar] [CrossRef] [Scilit]
  17. Ebrahimi, M.; Matinfar, M.; Babaei, A. Numerical solution for an inverse source problem of a fractional order diffusion-wave equation. Comput. Methods Differ. Equ. 2025, in press. [Google Scholar] [CrossRef] [Scilit]
  18. Radmanesh, M.; Ebadi, M.J. A local mesh-less collocation method for solving a class of time-dependent fractional integral equations: 2D fractional evolution equation. Eng. Anal. Bound. Elem. 2020, 113, 372–381. [Google Scholar] [CrossRef] [Scilit]
  19. Abdollahi, Z.; Moghadam, M.M.; Saeedi, H.; Ebadi, M.J. A computational approach for solving fractional Volterra integral equations based on two-dimensional Haar wavelet method. Int. J. Comput. Math. 2022, 99, 1488–1504. [Google Scholar] [CrossRef] [Scilit]
  20. Zeeshan Ali, K.; Mahariq, I.; Ebadi, M.J. A hybrid Laplace-spectral method for time-fractional wave equations: Numerical modelling. Int. J. Numer. Model. 2025, 38, e70129. [Google Scholar] [CrossRef] [Scilit]
  21. Hong, A.; Liao, X.; Hui, H. Simulation of soil collapse based on the local radial basis function collocation method. Eng. Anal. Bound. Elem. 2026, 186, 106687. [Google Scholar] [CrossRef] [Scilit]
  22. Li, X.; Tian, H.; Zhang, P.; Liu, X. Existence, Uniqueness, and Continuous Dependence on Initial/Final Values for Liouville–Caputo Fractional Difference Equations. Fractal Fract. 2026, 10, 504. [Google Scholar] [CrossRef] [Scilit]
  23. Chen, S.; Liu, F.; Turner, I.; Anh, V. A Fourier method for the fractional diffusion equation describing sub-diffusion. J. Comput. Phys. 2007, 227, 886–897. [Google Scholar] [CrossRef] [Scilit]
  24. Dimitrov, Y.; Georgiev, S.; Todorov, V. Approximation of Caputo Fractional Derivative and Numerical Solutions of Fractional Differential Equations. Fractal Fract. 2023, 7, 750. [Google Scholar] [CrossRef] [Scilit]
  25. Jin, B.; Lazarov, R.; Zhou, Z. Error estimates for a semidiscrete finite element method for fractional order parabolic equations. SIAM J. Numer. Anal. 2013, 51, 445–466. [Google Scholar] [CrossRef] [Scilit]
  26. Zeng, F.; Li, C.; Liu, F.; Turner, I. The use of finite difference/element approaches for solving the time-fractional subdiffusion equation. SIAM J. Sci. Comput. 2013, 35, A2976–A3000. [Google Scholar] [CrossRef] [Scilit]
  27. Salama, F.M.; Balasim, A.T.; Ali, U.; Khan, M.A. Efficient numerical simulations based on an explicit group approach for the time fractional advection-diffusion reaction equation. Comput. Appl. Math. 2023, 42, 168. [Google Scholar] [CrossRef] [Scilit]
  28. Abbaszadeh, M.; Dehghan, M. A meshless numerical procedure for solving fractional reaction subdiffusion model via a new combination of alternating direction implicit (ADI) approach and interpolating element free Galerkin (EFG) method. Comput. Math. Appl. 2015, 70, 2493–2512. [Google Scholar] [CrossRef] [Scilit]
  29. Adeoye, A.S.; Omole, E.O.; Omolofe, B.; Fayose, T.S.; Smerat, A. A Numerov–Galerkin Framework for the Transient Dynamics of Anisotropic Plates on Vlasov Foundations. Algorithms 2026, 19, 578. [Google Scholar] [CrossRef] [Scilit]
  30. Li, X.; Xu, C. A space-time spectral method for the time fractional diffusion equation. SIAM J. Numer. Anal. 2009, 47, 2108–2131. [Google Scholar] [CrossRef] [Scilit]
  31. Shen, J.; Tang, T.; Wang, L.L. Spectral Methods: Algorithms, Analysis, Applications; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  32. Zayernouri, M.; Karniadakis, G.E. Fractional spectral collocation method. SIAM J. Sci. Comput. 2013, 36, A40–A62. [Google Scholar] [CrossRef] [Scilit]
  33. Afarideh, A.; Dastmalchi Saei, F.; Lakestani, M.; Saray, B.N. Pseudospectral method for solving fractional Sturm-Liouville problem using Chebyshev cardinal functions. Phys. Scr. 2021, 96, 125267. [Google Scholar] [CrossRef] [Scilit]
  34. Afarideh, A.; Dastmalchi Saei, F.; Saray, B.N. Eigenvalue problem with fractional differential operator: Chebyshev cardinal spectral method. J. Math. Model. 2021, 11, 343–355. [Google Scholar]
  35. Asadzadeh, M.; Saray, B.N. On a multiwavelet spectral element method for integral equation of a generalized Cauchy problem. BIT Numer. Math. 2022, 62, 383–416. [Google Scholar] [CrossRef] [Scilit]
  36. Shi, L.; Saray, B.N.; Soleymani, F. Sparse wavelet Galerkin method: Application for fractional Pantograph problem. J. Comput. Appl. Math. 2024, 451, 116081. [Google Scholar] [CrossRef] [Scilit]
  37. Hadi, M.S.; Lakestani, M.; Saray, B.N. The wavelet Galerkin method for fractional delay differential equations. Calcolo 2025, 62, 48. [Google Scholar] [CrossRef] [Scilit]
  38. Shahriari, M.; Saray, B.N.; Mohammadalipour, B.; Saeidian, S. Pseudospectral method for solving the fractional one-dimensional Dirac operator using Chebyshev cardinal functions. Phys. Scr. 2023, 98, 055205. [Google Scholar] [CrossRef] [Scilit]
  39. Liu, T.; Ding, B.; Saray, B.N.; Juraev, D.A.; Elsayed, E.E. On the pseudospectral method for solving the fractional Klein-Gordon equation using Legendre cardinal functions. Fractal Fract. 2025, 9, 177. [Google Scholar] [CrossRef] [Scilit]
  40. Mahshidnia, M.; Mahmoudi, Y.; Saray, B.N.; Rad, M.J. A novel collocation method for fractional delay differential equations with Legendre cardinal functions. Phys. Scr. 2026, 101, 015207. [Google Scholar] [CrossRef] [Scilit]
  41. Dehghan, M.; Abbaszadeh, M.; Mohebbi, A. Error estimate for the numerical solution of fractional reaction-subdiffusion process based on a meshless method. J. Comput. Appl. Math. 2015, 280, 14–36. [Google Scholar] [CrossRef] [Scilit]
  42. Cao, J.; Li, C.; Chen, Y. Compact difference method for solving the fractional reaction-subdiffusion equation with Neumann boundary value condition. Int. J. Comput. Math. 2015, 92, 167–180. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Evolution of the actual L 2 error demonstrating the strictly linear (exponential) spectral convergence rate for different choices of grid (left), and a comparison between the actual E 2 error and the a posteriori error bound explicitly verifying the Effectivity Index E I 1 (right), for Example 1.
Figure 1. Evolution of the actual L 2 error demonstrating the strictly linear (exponential) spectral convergence rate for different choices of grid (left), and a comparison between the actual E 2 error and the a posteriori error bound explicitly verifying the Effectivity Index E I 1 (right), for Example 1.
Mathematics 14 03183 g001
Figure 2. Evolution of the actual L 2 error and the a posteriori error bound over continuous time τ , taking M = 15 . Results using the Legendre–Gauss grid (left) and Legendre–Gauss–Lobatto grid (right) for Example 1, confirming the stability of the error estimator and the tight Effectivity Index across discrete time steps.
Figure 2. Evolution of the actual L 2 error and the a posteriori error bound over continuous time τ , taking M = 15 . Results using the Legendre–Gauss grid (left) and Legendre–Gauss–Lobatto grid (right) for Example 1, confirming the stability of the error estimator and the tight Effectivity Index across discrete time steps.
Mathematics 14 03183 g002
Figure 3. Evolution of the actual L 2 error quantifying the spectral convergence rate for different choices of grid (left), and a direct comparison between the actual E 2 error and the a posteriori error bound visually demonstrating the Effectivity Index (right), for Example 2.
Figure 3. Evolution of the actual L 2 error quantifying the spectral convergence rate for different choices of grid (left), and a direct comparison between the actual E 2 error and the a posteriori error bound visually demonstrating the Effectivity Index (right), for Example 2.
Mathematics 14 03183 g003
Figure 4. Evolution of the actual L 2 error and the a posteriori error bound over time τ , taking M = 15 . Results using the Legendre–Gauss grid (left) and Legendre–Gauss–Lobatto grid (right) for Example 2, confirming that the residual acts as a reliable proxy for the true error.
Figure 4. Evolution of the actual L 2 error and the a posteriori error bound over time τ , taking M = 15 . Results using the Legendre–Gauss grid (left) and Legendre–Gauss–Lobatto grid (right) for Example 2, confirming that the residual acts as a reliable proxy for the true error.
Mathematics 14 03183 g004
Figure 5. Behavior of the numerical solution w ( 0.4 , τ ) for Example 2 under various fractional orders α . The plot explicitly demonstrates the smooth physical transition from fractional subdiffusive memory dynamics ( α < 1 ) to the classical integer-order diffusion limit ( α = 1 ).
Figure 5. Behavior of the numerical solution w ( 0.4 , τ ) for Example 2 under various fractional orders α . The plot explicitly demonstrates the smooth physical transition from fractional subdiffusive memory dynamics ( α < 1 ) to the classical integer-order diffusion limit ( α = 1 ).
Mathematics 14 03183 g005
Table 1. The maximum absolute errors ( E ) evaluated with different M values for Example 1.
Table 1. The maximum absolute errors ( E ) evaluated with different M values for Example 1.
Gauss GridLobatto Grid
τ M 9131591315
0.1 1.16 × 10−101.69 × 10−104.00 × 10−118.07 × 10−102.08 × 10−112.02 × 10−10
0.2 9.91 × 10−101.53 × 10−115.66 × 10−113.88 × 10−102.93 × 10−105.18 × 10−11
0.3 1.32 × 10−101.17 × 10−101.41 × 10−113.03 × 10−98.58 × 10−122.14 × 10−10
0.4 1.32 × 10−102.32 × 10−115.14 × 10−112.34 × 10−94.34 × 10−102.17 × 10−11
0.5 7.26 × 10−101.02 × 10−102.02 × 10−112.15 × 10−102.03 × 10−121.70 × 10−10
0.6 5.07 × 10−105.21 × 10−114.54 × 10−113.81 × 10−102.20 × 10−103.57 × 10−11
0.7 5.52 × 10−116.73 × 10−112.29 × 10−112.56 × 10−92.67 × 10−101.15 × 10−10
0.8 5.44 × 10−107.33 × 10−114.74 × 10−111.62 × 10−95.55 × 10−115.54 × 10−11
0.9 4.60 × 10−108.12 × 10−112.00 × 10−112.56 × 10−102.62 × 10−101.43 × 10−10
1.0 1.44 × 10−92.01 × 10−109.33 × 10−111.26 × 10−91.80 × 10−108.51 × 10−11
CPU time 0.938 6.016 16.797 0.766 5.937 17.047
Table 2. Comparison of total degrees of freedom (DOFs) and E error for Example 1 with existing meshless methods [41].
Table 2. Comparison of total degrees of freedom (DOFs) and E error for Example 1 with existing meshless methods [41].
MethodTotal DOFs E Error
Meshless method with h = 1 / 2 , τ = 1 / 4 ≈151.86 × 10−3
Meshless method with h = 1 / 4 , τ = 1 / 8 ≈454.26 × 10−4
Meshless method with h = 1 / 8 , τ = 1 / 16 ≈1532.16 × 10−5
Presented Method with Gauss grid ( M = 9 )1001.44 × 10−9
Presented Method with Lobatto grid ( M = 9 )1003.03 × 10−9
Table 3. The maximum absolute errors ( E ) evaluated with different M values for Example 2.
Table 3. The maximum absolute errors ( E ) evaluated with different M values for Example 2.
Gauss GridLobatto Grid
τ M 9131591315
0.1 8.34 × 10−85.46 × 10−93.28 × 10−95.22 × 10−78.77 × 10−81.41 × 10−8
0.2 3.38 × 10−85.13 × 10−95.37 × 10−107.12 × 10−77.60 × 10−83.55 × 10−8
0.3 2.87 × 10−84.47 × 10−98.46 × 10−104.36 × 10−77.13 × 10−84.12 × 10−8
0.4 4.80 × 10−83.02 × 10−91.02 × 10−95.59 × 10−78.87 × 10−83.06 × 10−8
0.5 1.29 × 10−82.00 × 10−97.48 × 10−104.68 × 10−75.44 × 10−82.87 × 10−8
0.6 3.27 × 10−86.01 × 10−107.78 × 10−103.39 × 10−71.95 × 10−81.62 × 10−8
0.7 3.28 × 10−85.13 × 10−107.48 × 10−105.82 × 10−72.85 × 10−81.56 × 10−8
0.8 9.78 × 10−99.15 × 10−101.21 × 10−98.09 × 10−83.56 × 10−81.46 × 10−8
0.9 1.62 × 10−81.46 × 10−91.18 × 10−93.95 × 10−72.35 × 10−82.76 × 10−8
1.0 1.38 × 10−71.52 × 10−86.42 × 10−92.27 × 10−71.66 × 10−85.87 × 10−9
CPU time 0.610 4.812 11.219 0.641 4.312 10.531
Table 4. Comparison of total degrees of freedom (DOFs), the E and E 2 errors for Example 2 with existing Compact difference methods [42], taking α = 0.8 .
Table 4. Comparison of total degrees of freedom (DOFs), the E and E 2 errors for Example 2 with existing Compact difference methods [42], taking α = 0.8 .
MethodTotal DOFs E Error E 2 Error
Difference method with h = 1 / 1000 , τ = 1 / 20 ≈20,0002.45 × 10−41.70 × 10−4
Difference method with h = 1 / 1000 , τ = 1 / 40 ≈40,0001.08 × 10−47.51 × 10−5
Difference method with h = 1 / 1000 , τ = 1 / 80 ≈80,0004.73 × 10−53.29 × 10−5
Presented Method with Gauss grid ( M = 10 )1217.24 × 10−81.77 × 10−8
Presented Method with Lobatto grid ( M = 10 )1214.24 × 10−71.44 × 10−7
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

Jebreen, H.B. A Spectral Galerkin Framework for the Fractional Reaction–Subdiffusion Equation Using Legendre Cardinal Functions. Mathematics 2026, 14, 3183. https://doi.org/10.3390/math14173183

AMA Style

Jebreen HB. A Spectral Galerkin Framework for the Fractional Reaction–Subdiffusion Equation Using Legendre Cardinal Functions. Mathematics. 2026; 14(17):3183. https://doi.org/10.3390/math14173183

Chicago/Turabian Style

Jebreen, Haifa Bin. 2026. "A Spectral Galerkin Framework for the Fractional Reaction–Subdiffusion Equation Using Legendre Cardinal Functions" Mathematics 14, no. 17: 3183. https://doi.org/10.3390/math14173183

APA Style

Jebreen, H. B. (2026). A Spectral Galerkin Framework for the Fractional Reaction–Subdiffusion Equation Using Legendre Cardinal Functions. Mathematics, 14(17), 3183. https://doi.org/10.3390/math14173183

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