Legendre-Galerkin Discretization
- Legendre-Galerkin discretization is a spectral Galerkin method that uses finite-dimensional polynomial spaces based on Legendre polynomials to enforce boundary or initial conditions exactly.
- It produces structured operator matrices—often sparse—with engineered derivative properties that enable efficient, adaptive, and conservation-preserving numerical solutions.
- The methodology is applied in variational settings for elliptic and time-dependent PDEs, offering robust frameworks for handling nonlinearities, preconditioning, and adaptive refinement.
Searching arXiv for recent and foundational papers on Legendre-Galerkin discretization to ground the article. Legendre-Galerkin discretization is a spectral Galerkin methodology in which the trial and test spaces are finite-dimensional polynomial spaces generated by Legendre polynomials or by modified Legendre combinations chosen to satisfy boundary or initial conditions exactly. In the formulations represented across current work, the continuous problem is first written in weak form and then restricted to spaces such as , tensor-product polynomial spaces on , or Petrov-Galerkin pairs tailored to initial value problems; the resulting semidiscrete or fully discrete systems are governed by mass, stiffness, and differentiation matrices whose structure depends strongly on the basis design (Kong et al., 2022, Diao et al., 2020, Liu et al., 2016). A central theme is that Legendre-based bases can be engineered so that derivative operators become diagonal or even the identity, while at the same time preserving exact boundary constraints, enabling sparse or structured linear systems, and supporting adaptive, conservation-preserving, and data-driven variants (Kong et al., 2022, Canuto et al., 2012, Ko et al., 2022).
1. Variational setting and finite-dimensional polynomial spaces
The common starting point is a weak formulation posed on a Hilbert space adapted to the PDE and its constraints. For second-order elliptic problems on , one representative form is
with in the Dirichlet case and a suitable -based space in the Neumann case (Ko et al., 2022). For self-adjoint elliptic problems on ,
and the Legendre-Galerkin approximation seeks satisfying the same identity for all (Diao et al., 2020). For time-dependent problems, the same principle appears either in semidiscrete form,
0
or as a space-time formulation in which time itself is discretized spectrally (Płociniczak, 2021, Kong et al., 2022).
A general Galerkin truncation may be written as
1
with mass matrix 2 and reduced system
3
This coefficient-space representation is the basic algebraic form into which Legendre-Galerkin discretizations fit naturally when 4 are Legendre polynomials or modified Legendre functions satisfying the required constraints (Hilliard et al., 2023).
In initial value problems, the Legendre dual-Petrov-Galerkin construction uses different trial and test spaces. For the first-order model problem
5
the approximation is written as
6
with dual test space
7
and Petrov-Galerkin formulation
8
This distinguishes the Legendre dual-Petrov-Galerkin framework from conforming symmetric Galerkin formulations used for elliptic PDEs (Kong et al., 2022).
2. Basis construction and exact enforcement of constraints
A defining feature of Legendre-Galerkin discretization is the use of modified Legendre bases that encode the boundary or initial conditions directly. For homogeneous Dirichlet conditions on 9, a standard choice is
0
which satisfies 1 because 2; this yields
3
and extends by tensor products in two and three dimensions (Diao et al., 2020). A normalized Shen-type variant used for the two-dimensional Schrödinger equation is
4
again chosen so that 5 (Liu et al., 2016).
Other problems motivate different Legendre subspaces. For the degenerate climatology model, the approximation space is
6
with basis
7
so that 8 and
9
The convenience of this choice follows directly from the degenerately weighted operator (Płociniczak, 2021).
For 1D elliptic Dirichlet and Neumann problems, another widely used modified basis is
0
with coefficients selected to satisfy the boundary conditions exactly. The explicit choices are
1
for the Dirichlet case, and
2
for the Neumann case (Ko et al., 2022).
In adaptive Legendre-Galerkin theory, the Babuška-Shen basis plays an analogous role for 3: 4 with
5
This gives an 6-orthonormal modal basis in one dimension and underlies coefficient-space residual estimates and adaptive algorithms (Canuto et al., 2012).
The initial-value setting admits yet another specialized basis design. For the first-order dual-Petrov-Galerkin scheme,
7
which produces the relation
8
This basis choice is not merely a convenience; it is the mechanism by which the highest derivative matrix becomes the identity (Kong et al., 2022).
3. Matrix structures, sparsity, and spectral algebra
The algebraic structure of a Legendre-Galerkin discretization is determined by the interaction between the PDE operator and the selected basis. Several recurrent patterns appear.
| Setting | Legendre-based basis | Induced matrix structure |
|---|---|---|
| First-order LDPG IVP | 9 with 0 | derivative matrix 1, mass matrix tridiagonal |
| 1D elliptic Dirichlet/Neumann | 2 | stiffness matrix diagonal, mass matrix symmetric penta-diagonal |
| 2D Schrödinger spatial discretization | 3 tensor products | derivative inner products diagonal, tensor-product mass/stiffness form |
| Variable-coefficient elliptic problem | 4 tensor products | exact Galerkin matrix dense and ill-conditioned |
| Adaptive 5 setting | Babuška-Shen basis 6 | coefficient norm representation; sparse mass matrix in 1D |
In the first-order LDPG scheme, writing
7
yields
8
The matrix 9 is tridiagonal and nonsymmetric, and 0 is exactly the Jacobi matrix associated with the three-term recurrence of the generalized Bessel polynomials 1 for 2 and 3. Consequently, the eigenvalues of 4 are exactly the negatives of the zeros of 5, the eigenvectors are obtained by polynomial evaluation, and the eigenvalues are simple, conjugate-symmetric, and located in the open right half-plane (Kong et al., 2022). For second-order IVPs, the analogous matrix is penta-diagonal and satisfies
6
where 7 is the Jacobi matrix for 8 (Kong et al., 2022).
For elliptic problems discretized with Legendre combinations satisfying boundary constraints, sparsity can be equally pronounced. In the ULGNet discretization of 9, the discrete system is
0
with
1
Here the stiffness matrix is diagonal,
2
while the mass matrix is symmetric penta-diagonal with explicitly listed nonzero bands (Ko et al., 2022). In the two-dimensional Schrödinger problem, the normalized Shen basis satisfies
3
while the one-dimensional mass matrix 4 is sparse and tridiagonal-like (Liu et al., 2016).
These sparse structures are not universal. For the non-separable elliptic equation
5
the exact Legendre-Galerkin matrix 6 is dense and ill-conditioned when the coefficients are variable and non-separable (Diao et al., 2020). This is a recurring correction to the common assumption that Legendre orthogonality alone guarantees simple linear algebra. A plausible implication is that basis orthogonality controls only part of the operator representation; variable coefficients can still destroy sparsity unless additional approximation or preconditioning is introduced.
4. Time-dependent formulations and space-time discretization
Legendre-Galerkin discretization is used in both semidiscrete-in-space and fully space-time settings. In the two-dimensional Schrödinger equation, after mapping the physical square to 7 and subtracting a boundary-lifting function, the homogeneous problem is discretized in the tensor-product space
8
The expansion
9
produces the matrix ODE
0
or, after vectorization,
1
Time integration is then performed by an implicit Runge-Kutta method (Liu et al., 2016).
The LDPG framework goes further by discretizing time spectrally. For a linear evolutionary system
2
the time approximation
3
leads to
4
Two solvers are emphasized. Matrix diagonalization uses 5 and decouples the problem into
6
This is fully parallel, but 7 is extremely ill-conditioned and is practical only for modest 8. The alternative is a QZ or generalized Schur decomposition, which is more stable for large 9 because it avoids explicit inversion and reduces the system by backward substitution (Kong et al., 2022).
For nonlinear and nonlocal parabolic equations, the spatial Legendre-Galerkin discretization is combined with a weighted 0-scheme, extrapolation, and quadrature for the memory term. The fully discrete method is
1
with
2
Here 3 gives a Crank-Nicolson-type scheme with second-order time accuracy, and the extrapolation makes the scheme linear at each time step (Płociniczak, 2021).
5. Elliptic operators, preconditioning, and adaptive Legendre-Galerkin methods
For non-separable variable-coefficient elliptic operators, the principal difficulty is not the polynomial approximation itself but the linear system generated by it. The preconditioned Legendre spectral Galerkin method addresses
4
on 5, 6, with the Dirichlet-adapted basis 7. The exact system is symmetric positive definite but dense and ill-conditioned. The proposed preconditioner 8 is built by approximating 9 and 0 with truncated Legendre series, producing a banded or block-banded matrix whose bandwidth depends on the truncation degrees rather than on 1. Fast matrix-vector multiplication is performed without explicit formation of the dense matrix by using backward discrete Legendre transforms, pointwise multiplication at Legendre-Gauss nodes, forward discrete Legendre transforms, and short recurrences. The resulting complexity is
2
for operator application, while the ILU(0)-based approximate preconditioner solve costs
3
and the total PCG complexity is also
4
for 5 (Diao et al., 2020).
A distinct development concerns adaptive Legendre-Galerkin methods. In one dimension, the Babuška-Shen basis gives a coefficient representation of the 6-norm and permits residual-based adaptivity for
7
The Galerkin approximation on
8
satisfies residual-error equivalence, and the ideal adaptive algorithm based on Dörfler marking yields the contraction
9
A predictor-corrector version augments the marked set by enrichment and then applies coarsening; it also satisfies linear convergence and is proved optimal in cardinality relative to Gevrey-type sparsity classes (Canuto et al., 2012).
In multiple dimensions, tensorized Babuška-Shen functions are no longer directly usable as an 00-orthogonal basis. The multidimensional adaptive theory therefore introduces a quasi-orthonormalization that constructs a nearly-orthonormal Babuška-Shen basis 01 from the tensorized basis. This yields norm equivalences
02
which enable feasible residual computation, Dörfler marking, enrichment, coarsening, and contraction: 03 This places multidimensional adaptive Legendre-Galerkin discretization within the framework of nonlinear approximation and Gevrey-type sparsity (Canuto et al., 2014).
6. Conservation, stability pathologies, and related hybrid formulations
One persistent issue is that standard Galerkin truncation does not in general preserve the first integrals of the underlying PDE. In the general reduced system
04
the Galerkin RONS modification enforces invariants 05 by solving the constrained problem
06
which yields
07
The correction term is chosen so that
08
holds at the continuous-time reduced level. Since the paper does not specialize to Legendre polynomials, this is a general Galerkin framework, but it applies directly when the basis 09 is Legendre or Legendre-like (Hilliard et al., 2023).
Stability questions can also be more subtle than approximation estimates alone suggest. For the 1D homogeneous wave equation discretized by a classical Legendre-Galerkin semidiscretization, the high-frequency numerical modes are spurious from the point of view of wave propagation and destroy uniform boundary observability. The paper states that, for the standard scheme,
10
Three remedies are studied numerically: spectral filtering, a mixed formulation, and Nitsche’s method. Each recovers a uniform positive lower bound on the observability constant, but none appears to restore a uniform direct or trace inequality (Gagnon et al., 2016). This directly counters the misconception that spectral accuracy alone guarantees stable control-theoretic behavior.
A further line of development uses Legendre-Galerkin discretization as the finite-dimensional backbone of neural methods. In unsupervised Legendre-Galerkin neural networks, the solution is expanded as
11
and the network is trained to predict 12 by minimizing the residual of the discrete linear system
13
The population loss is exactly the squared algebraic residual, and the analysis proves that the empirical minimizer converges to the Legendre-Galerkin weak solution 14 under the stated assumptions (Ko et al., 2022). This suggests that, in this setting, the neural component parameterizes the coefficient map rather than replacing the underlying spectral discretization.
A related but distinct methodology appears in discontinuous Galerkin discretizations based on hierarchical Legendre polynomial basis functions. In the 15-version SIPDG setting, the Legendre basis is modal, orthogonal in 16, and hierarchical, so prolongation between polynomial levels is the natural injection and the mass matrix is diagonal. The paper explicitly characterizes this as “Legendre-Galerkin-like” while emphasizing that the formulation remains discontinuous and element-local rather than conforming (Lei et al., 17 Sep 2025). This establishes a clear boundary of the topic: hierarchical Legendre modal structure can persist beyond conforming Galerkin methods, but the continuity constraints and bilinear forms change fundamentally.
Legendre-Galerkin discretization therefore encompasses more than a single scheme. Across current formulations it denotes a family of modal polynomial Galerkin constructions in which Legendre-based trial and test spaces are adapted to operator structure, constraints, and computational objectives. Depending on the problem, the method may deliver exact derivative identities, sparse or structured operator matrices, spectral convergence, adaptive contraction, conservation corrections, or stable space-time solvers; it may also exhibit dense matrices, ill-conditioning, or high-frequency pathologies that require preconditioning, filtering, or reformulation (Kong et al., 2022, Diao et al., 2020, Gagnon et al., 2016).