An Optimal Complexity Spectral Solver for the Poisson Equation
摘要
We propose a spectral solver for the Poisson equation on a square domain, achieving optimal complexity through the ultraspherical spectral method and the alternating direction implicit (ADI) method. Compared with the state-of-the-art spectral solver for the Poisson equation by Fortunato and Townsend (IMA J Numer Anal 40(3):1994–2018 (2019)), our method not only eliminates the need for conversions between Chebyshev and Legendre bases but also is applicable to more general boundary conditions while maintaining spectral accuracy. We prove that, for solutions with sufficient smoothness, a fixed number of ADI iterations suffices to meet a specified tolerance, yielding an optimal complexity of