Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-07T07:38:13.890Z Has data issue: false hasContentIssue false

Fast algorithms using orthogonal polynomials

Published online by Cambridge University Press:  30 November 2020

Sheehan Olver
Affiliation:
Department of Mathematics, Imperial College, London SW7 2AZ, UK E-mail: s.olver@imperial.ac.uk
Richard Mikaël Slevinsky
Affiliation:
Department of Mathematics, University of Manitoba, Winnipeg, Manitoba, Canada R3T 2M8 E-mail: Richard.Slevinsky@umanitoba.ca
Alex Townsend
Affiliation:
Department of Mathematics, Cornell University, Ithaca, NY 14853, USA E-mail: townsend@cornell.edu
Rights & Permissions [Opens in a new window]

Abstract

We review recent advances in algorithms for quadrature, transforms, differential equations and singular integral equations using orthogonal polynomials. Quadrature based on asymptotics has facilitated optimal complexity quadrature rules, allowing for efficient computation of quadrature rules with millions of nodes. Transforms based on rank structures in change-of-basis operators allow for quasi-optimal complexity, including in multivariate settings such as on triangles and for spherical harmonics. Ordinary and partial differential equations can be solved via sparse linear algebra when set up using orthogonal polynomials as a basis, provided that care is taken with the weights of orthogonality. A similar idea, together with low-rank approximation, gives an efficient method for solving singular integral equations. These techniques can be combined to produce high-performance codes for a wide range of problems that appear in applications.

Information

Type
Research Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Figure 0

Figure 2.1 The function $f(x) = \sum _{k=0}^5 2^{-k} \cos (({\pi }/{2})4^kx)$ approximated by a polynomial of degree $476$ to within machine precision, where the polynomial is represented using a Chebyshev expansion.

Figure 1

Table 2.1. The classical OPs on bounded and unbounded real intervals. Up to a linear change of variables, the classical OPs are the only univariate OPs whose derivatives are also OPs.

Figure 2

Figure 2.2 Jacobi polynomials $P^{(\alpha ,\beta )}$ for $\alpha ,\beta>-1$ are orthogonal with respect to $w(x) = (1-x)^\alpha (1+x)^\beta $. Along the diagonal $\alpha =\beta = \lambda -1/2$ the OPs are referred to as ultraspherical polynomials and are denoted by $C^{(\lambda )}$ for $\lambda> -{1}/{2}$, $\lambda \ne 0$.

Figure 3

Table 3.1. A brief survey of computing Gauss–Legendre quadrature. Originally, small Gauss–Legendre quadrature rules were calculated by brute-force hand calculations; today, a billion quadrature nodes and weights can be computed in a fraction of second on a standard laptop. The value N is the largest reported Gauss–Legendre quadrature rule in the publication.

Figure 4

Figure 3.1 The history of computing high-order Gauss–Legendre quadrature. A dot represents published work, located at the publication year and the largest Gauss–Legendre rule reported therein. A large red dot is a paper based on variants of the Golub–Welsch algorithm, and the circled red dot is the original paper by Golub and Welsch. GLR represents the Glaser, Liu and Rokhlin (2007) algorithm. Figure reproduced from Townsend (2015) with permission. Copyright © 2015 Society for Industrial and Applied Mathematics.

Figure 5

Table 4.1. Connection between the discrete cosine and sine transforms of various types and the evaluation of the four types of Chebyshev series at the four kinds of Chebyshev nodes. Equivalence of these transforms holds up to a diagonal scaling.

Figure 6

Figure 4.1 An illustration of the hierarchical decomposition of the Chebyshev–Legendre connection coefficients. The opacity illustrates the data-sparsity in the hierarchical decomposition.

Figure 7

Table 4.2. Calculation times, memory requirements and error of the Chebyshev–Legendre transform (and back), the archetype of the measure-perturbing connection problem, in single precision. $s_d$ stands for the memory requirements of a dense $N\times N$ matrix, $s_p$ stands for the memory requirements of the pre-computations, $t_p$ stands for the pre-computation time, $t_e$ stands for the execution time, averaged over ten trials, and $\epsilon _2$ stands for the $2$-norm relative error in transforming the coefficients $u_{\ell } = (\ell +1)^{-1}$, for $\ell = 0,\ldots ,N-1$, forward and backward over the ten trials.

Figure 8

Table 4.3. Calculation times, memory requirements and error of the Chebyshev–Legendre transform (and back), the archetype of the measure-perturbing connection problem, in double precision. $s_d$ stands for the memory requirements of a dense $N\times N$ matrix, $s_p$ stands for the memory requirements of the pre-computations, $t_p$ stands for the pre-computation time, $t_e$ stands for the execution time, averaged over ten trials, and $\epsilon _2$ stands for the $2$-norm relative error in transforming the coefficients $u_{\ell } = 1/(\ell +1)$, for $\ell = 0,\ldots ,N-1$, forward and backward over the ten trials.

Figure 9

Table 4.4. The $2$-norm and $\infty $-norm relative errors in a full spherical harmonic synthesis and analysis on an equiangular grid with pseudo-random expansion coefficients drawn from $U(-1,1)$.

Figure 10

Table 4.5. Calculation times, memory requirements and error of the associated Legendre transform $\tilde {P}_{2n}^{2n}(x)$ to $\tilde {P}_{2n}^0(x)$ (and back), in single precision. $s_d$ stands for the memory requirements of a dense $n\times n$ matrix, $s_p$ stands for the memory requirements of the pre-computations, $t_p$ stands for the pre-computation time, $t_e$ stands for the execution time, averaged over ten trials, and $\epsilon _2$ stands for the $2$-norm relative error in transforming the coefficient $u_0 = 1$ forward and backward over the ten trials.

Figure 11

Table 4.6. Calculation times, memory requirements and error of the associated Legendre transform $\tilde {P}_{2n}^{2n}(x)$ to $\tilde {P}_{2n}^0(x)$ (and back), in double precision. $s_d$ stands for the memory requirements of a dense $n\times n$ matrix, $s_p$ stands for the memory requirements of the pre-computations, $t_p$ stands for the pre-computation time, $t_e$ stands for the execution time, averaged over ten trials, and $\epsilon _2$ stands for the $2$-norm relative error in transforming the coefficient $u_0 = 1$ forward and backward over the ten trials.

Figure 12

Figure 5.1 A spy plot of the sparsity structure for Clenshaw’s integral reformulation and the ultraspherical spectral method (a) compared to the p-finite element method (b), for a $20 \times 20$ discretization for the Airy operator ${\mathcal D}^2 - x$.

Figure 13

Figure 5.2 The computed coefficients for the Airy equation (a) and the time taken to solve the Airy equation using the ultraspherical spectral methods with the adaptive QR method (b). The degrees of freedom needed to resolve the solution are proportional to $\epsilon ^{-1}$.

Figure 14

Figure 5.3 A depiction of the Pearcey integral, computed using the ultraspherical spectral method applied to a third-order differential equation in x for each y value.

Figure 15

Figure 5.4 (a) Solutions to the stochastic Airy equation (5.1) with three choices of $\epsilon $, computed using the p-FEM. (b) The timings in seconds for building, computing the QR factorization, and inverting using the pre-computed QR factorization.

Figure 16

Figure 5.5 A solution of the beam equation using the p-finite element method. We use $N = 1000$ spatial discretization with a time-step of $0.01$ with Rodas 5.

Figure 17

Figure 5.6 The first 50 eigenstates of the Schrödinger equation with potential $V(x) = |x|$ computed using the p-FEM, with two elements.

Figure 18

Table 5.1. The first four computed eigenvalues of (5.8) with $r=1$ in $256$-bit extended precision, computed using the method of Aurentz and Slevinsky (2020) and rounded to fit this page.

Figure 19

Figure 5.7 The first ten generalized eigenvalues of (5.8) as functions of the thickness parameter r. Figure reproduced from Aurentz and Slevinsky (2020) with permission. Copyright © 2020 Elsevier.

Figure 20

Figure 6.1 The solution to the screened Poisson equation using the ultraspherical spectral method.

Figure 21

Figure 6.2 Navier–Stokes simulation using spectral methods at time slices $t = 0,30,60,90,120,150$.

Figure 22

Figure 6.3 The sparsity pattern of the Laplacian $\Delta _{(0,0,0)}^{(2,2,2)}$ (a), the weighted Laplacian $\Delta _W$ (b) and the weighted variable coefficient Helmholtz operator $\Delta _W + S_{(0,0,0)}^{(1,1,1)} v(X, Y) L_{(1,1,1)}^{(0,0,0)}$ with $V(x,y) = x y^2$ (c). The weak Laplacian in p-FEM has the same sparsity structure as (b) and (c), with the added benefit of symmetry in the coefficients. Figure reproduced from Olver et al. (2019) with permission. Copyright © 2019 Society for Industrial and Applied Mathematics. All rights reserved.

Figure 23

Figure 6.4 The ‘good’ with $k=-50^2$ (a), Poisson with $k = 0$ (b) and ‘bad’ with $k = 50^2$ (c) solutions to the inhomogeneous Helmholtz equation (6.4).

Figure 24

Figure 6.5 The coefficients for the ‘good’ with $k = -200^2$ (a), Poisson with $k = 0$ (b) and ‘good’ with $k = 200^2$ (c) solutions to the inhomogeneous Helmholtz equation (6.4).

Figure 25

Figure 6.6 The timings for the ‘good’ with $k = -200^2$ (a), Poisson with $k = 0$ (b) and ‘bad’ with $k = 200^2$ (c) solutions to build, factorize and invert the inhomogeneous Helmholtz equation (6.4). For $k \leq 0$ the operator is symmetric negative definite and a Cholesky factorization is used, while for $k> 0$ the operator is only symmetric and an $LDL^{\top }$ factorization is used.

Figure 26

Figure 6.7 A solution to the Helmholtz equation on a polygon. Figure reproduced from Olver et al. (2019) with permission. Copyright © 2019 Society for Industrial and Applied Mathematics. All rights reserved.

Figure 27

Figure 7.1 The Cauchy transform of ${\mathrm {e}}^x$ over $[-1,1]$ computed using Legendre polynomials (a) compared to Gauss–Legendre quadrature (b). The Legendre polynomial-based approximation is uniformly accurate to roughly machine precision up to and on the interval. In contrast, the quadrature-based approach is not accurate on the contour itself, and has introduced artificial poles.

Figure 28

Figure 7.2 The solution to the Laplace equation with a single point source at $0.2 {\mathrm {i}}$ as described in Section 7.4.1 (a), and the coefficients of the solution for $\epsilon =0.1,0.01,0.001$ (b). This figure demonstrates the benefits of an $O({N})$ algorithm when the forcing term is challenging to resolve.

Figure 29

Figure 7.3 Acoustic scattering off an interval with many nearby point scatterers (a) and off a metal sheet model of Great Britain (b). Figure reproduced from Slevinsky and Olver (2017) with permission. Copyright © 2017 Elsevier.