A new banded Petrov--Galerkin spectral method
Ouyuan Qin, Lu Cheng, Kuan Xu
TL;DR
This work introduces a banded Petrov--Galerkin spectral method for variable-coefficient ODEs by designing recombined trial and test bases from Chebyshev and ultraspherical (and, more generally, Jacobi) polynomials. The key idea is that the resulting matrix $A$ can be written as $A = Q^{T} \Omega L R$, with $L$ formed from a structured combination of differentiation, multiplication, and conversion operators, yielding a strictly banded system that can be assembled and solved in $O(N^2 m n)$ time and $O(n)$ per solve step for fixed $m$ and $N$. The paper shows that Mortensen’s MPG is a special case within a Jacobi-based generalization, unifying existing banded Galerkin approaches and enabling fast construction, including aggressive acceleration of the ultraspherical method. Numerical experiments on a simple variable-coefficient ODE and the Airy equation demonstrate linear-time scaling and substantial speedups over MPG and US, while maintaining spectral accuracy; an overarching Jacobi-based framework also clarifies the relationship among prior methods. The authors provide symbolic tools and code for basis recombination, enabling robust, automated generation of recombined bases under general boundary constraints. The practical impact is a flexible, fast, and unifying approach to sparse Galerkin spectral methods for a broad class of ODEs.
Abstract
We propose a Petrov--Galerkin spectral method for ODEs with variable coefficients. When the variable coefficients are smooth, the new method yields a strictly banded linear system, which can be efficiently constructed and solved in linear complexity. The performance advantage of our method is demonstrated through benchmarking against Mortensen's Galerkin method and the ultraspherical spectral method. Furthermore, we introduce a systematic approach for designing the recombined basis and establish that our new method serves as a unifying framework that encompasses all existing banded Galerkin spectral methods. This significantly addresses the ongoing challenge of developing recombined bases and sparse Galerkin spectral method. Additionally, the accelerating techniques presented in this paper can also enhance the performance of the ultraspherical spectral method.
