Computing with functions in spherical and polar geometries I. The sphere

Alex Townsend, Heather Wilber, Grady B. Wright · DOI

Abstract

A collection of algorithms is described for numerically computing with smooth functions defined on the unit sphere. Functions are approximated to essentially machine precision by using a structure-preserving iterative variant of Gaussian elimination together with the double Fourier sphere method. We show that this procedure allows for stable differentiation, reduces the oversampling of functions near the poles, and converges for certain analytic functions. Operations such as function evaluation, differentiation, and integration are particularly efficient and can be computed by essentially one-dimensional algorithms. A highlight is an optimal complexity direct solver for Poisson's equation on the sphere using a spectral method. Without parallelization, we solve Poisson's equation with 100 million degrees of freedom in one minute on a standard laptop.

Introduction

Numerical computing on a sphere is notoriously tricky. Whether modeling global weather patterns, gravitational fields, or seismic waves, researchers eventually encounter the "pole problem." Standard longitude-latitude coordinates $(\lambda, \theta)$ create artificial singularities at the poles and lead to massive oversampling—where the computational grid is unnecessarily dense at the poles but sparse at the equator.

This paper introduces a powerful framework for representing and manipulating smooth functions on the unit sphere. By combining a classic mapping technique with modern low-rank approximation algorithms, the authors create a system that achieves machine precision while remaining computationally efficient.

Methodology

The framework synthesizes two primary techniques: the Double Fourier Sphere (DFS) method and structure-preserving low-rank approximations.

The Double Fourier Sphere (DFS) Method

The DFS method "doubles up" a function on the sphere to create a related function on a periodic rectangular domain. This allows the use of standard Fourier-based tools, like the Fast Fourier Transform (FFT), while maintaining the underlying geometry and avoiding pole singularities.

The transition from (a) a function on the sphere to (b) its standard longitude-latitude representation and (c) its doubled representation in the DFS method.

Low-Rank Approximation and BMC Structure

Instead of storing a massive $N \times N$ grid of values, a function $f(\lambda, \theta)$ is represented as a sum of $K$ rank-1 products: $f \approx \sum_{j=1}^K d_j c_j(\theta) r_j(\lambda)$.

Standard low-rank algorithms usually destroy the specific symmetries required for a function to be smooth on a sphere. The authors developed a structure-preserving Gaussian Elimination using $2 \times 2$ pivots. This ensures the approximation maintains "Block-Mirror-Centrosymmetric" (BMC) symmetry, which is the mathematical requirement for the function to be well-behaved at the poles.

Symmetry relations in the doubled domain required to maintain smoothness at the poles.

Performance and Results

The algorithms consistently reach machine precision (~15-16 digits of accuracy) for smooth functions. By reducing 2D operations like integration and differentiation to a series of 1D operations on the low-rank slices, the framework achieves significant speedups.

A highlight of the work is an optimal complexity direct solver for Poisson’s equation. The solver handled 100 million degrees of freedom in just 60 seconds on a standard laptop without parallelization. This efficiency stems from a spectral method that results in a Sylvester matrix equation, solvable in $O(N)$ complexity.

The authors validated these methods using synthetic smooth functions, global Earth topography data, and Rossby-Haurwitz waves—a standard benchmark for atmospheric equations.

Conclusion

The presented framework, implemented as spherefun in the Chebfun library, successfully addresses the "pole problem" through a combination of DFS and low-rank structures. It enables high-performance vector calculus and spectral solvers on the sphere. A companion paper extends these ideas to the unit disk.

Reference: Townsend, A., Wilber, H., & Wright, G. B. (2016). Computing with functions in spherical and polar geometries I. The sphere. SIAM Journal on Scientific Computing.

Summary updated

Abstract

A collection of algorithms is described for numerically computing with smooth functions defined on the unit sphere. Functions are approximated to essentially machine precision by using a structure-preserving iterative variant of Gaussian elimination together with the double Fourier sphere method. We show that this procedure allows for stable differentiation, reduces the oversampling of functions near the poles, and converges for certain analytic functions. Operations such as function evaluation, differentiation, and integration are particularly efficient and can be computed by essentially one-dimensional algorithms. A highlight is an optimal complexity direct solver for Poisson's equation on the sphere using a spectral method. Without parallelization, we solve Poisson's equation with $100$ million degrees of freedom in one minute on a standard laptop. Numerical results are presented throughout. In a companion paper (part II) we extend the ideas presented here to computing with functions on the disk.
BibTeX
@article{townsend2016computing,
  author = {Alex Townsend and Heather Wilber and Grady B. Wright},
  title = {{Computing with functions in spherical and polar geometries I. The sphere}},
  journal = {SIAM J. Sci. Comput.},
  year = {2016},
  doi = {10.1137/15m1045855},
}
Figure