Skip to main content
QUICK REVIEW

[Paper Review] Fast and highly accurate computation of Chebyshev expansion coefficients of analytic functions

Haiyong Wang, Daan Huybrechs|arXiv (Cornell University)|Apr 9, 2014
Iterative Methods for Nonlinear EquationsMathematics19 references4 citations
TL;DR

This paper presents a novel method for computing Chebyshev expansion coefficients of analytic functions using contour integrals in the complex plane, achieving machine precision relative error. By optimizing the contour radius for each coefficient, the method ensures high accuracy even for very small coefficients, enabling near-machine-precision computation of high-order derivatives and roots of derivatives without loss of accuracy.

ABSTRACT

Chebyshev expansion coefficients can be computed efficiently by using the FFT, and for smooth functions the resulting approximation is close to optimal, with computations that are numerically stable. Given sufficiently accurate function samples, the Chebyshev expansion coefficients can be computed to machine precision accuracy. However, the accuracy is only with respect to absolute error, and this implies that very small expansion coefficients typically have very large relative error. Upon differentiating a Chebyshev expansion, this relative error in the small coefficients is magnified and accuracy may be lost, especially after repeated differentiation. At first sight, this seems unavoidable. Yet, in this paper, we focus on an alternative computation of Chebyshev expansion coefficients using contour integrals in the complex plane. The main result is that the coefficients can be computed with machine precision relative error, rather than absolute error. This implies that even very small coefficients can be computed with full floating point accuracy, even when they are themselves much smaller than machine precision. As a result, no accuracy is lost after differentiating the expansion, and even the 100th derivative of an analytic function can be computed with near machine precision accuracy using standard floating point arithmetic. In some cases, the contour integrals can be evaluated using the FFT, making the approach both highly accurate and fast.

Motivation & Objective

  • To address the loss of accuracy in standard FFT-based Chebyshev coefficient computation, particularly for small coefficients and their derivatives.
  • To develop a method that achieves machine precision relative error rather than absolute error in coefficient computation.
  • To enable accurate high-order derivative computation of analytic functions using standard floating-point arithmetic.
  • To extend the stability and accuracy of spectral methods to high-order derivatives and root-finding in smooth functions.
  • To provide a framework for computing Chebyshev coefficients with optimal contour radii per coefficient, ensuring robustness and precision.

Proposed method

  • The method computes Chebyshev expansion coefficients via contour integrals in the complex plane using the trapezoidal rule for numerical quadrature.
  • For each coefficient $ a_n $, an optimal radius $ \rho^*(n) $ is selected to minimize relative error, ensuring high accuracy even for very small coefficients.
  • The contour integral formulation allows the use of the FFT when the same radius is used for all coefficients, maintaining computational efficiency.
  • When optimal radii are used per coefficient, the method avoids the relative error amplification that occurs in standard FFT-based approaches after differentiation.
  • The method leverages complex analysis and Cauchy integral formulas, similar to Bornemann’s approach for Taylor coefficients, adapted to Chebyshev expansions.
  • Derivatives of the function are computed by differentiating the Chebyshev expansion, using recurrence relations for the coefficients of the derivatives.

Experimental results

Research questions

  • RQ1Can Chebyshev expansion coefficients of analytic functions be computed with machine precision relative error rather than absolute error?
  • RQ2Does using an optimal contour radius for each coefficient significantly improve accuracy in high-order derivative computation?
  • RQ3Can the proposed method maintain high accuracy for the 100th derivative of an analytic function using standard floating-point arithmetic?
  • RQ4Is it possible to compute the roots of high-order derivatives accurately by using coefficient computation with optimal radii?
  • RQ5How can the optimal radius for each coefficient be determined efficiently and automatically?

Key findings

  • The proposed method computes Chebyshev coefficients with machine precision relative error, even for coefficients much smaller than machine epsilon.
  • High-order derivatives, including the 100th derivative, can be computed with near-machine-precision accuracy using standard floating-point arithmetic.
  • Using an optimal radius $ \rho^*(n) $ for each coefficient $ a_n $ ensures that relative error remains small, preventing amplification during differentiation.
  • Numerical experiments show that computing each coefficient with its own optimal radius yields significantly lower errors in the roots of derivatives compared to using a fixed radius for all coefficients.
  • The method maintains computational efficiency when the same radius is used for all coefficients, allowing FFT-based acceleration.
  • The approach enables accurate root-finding of high-order derivatives, such as maxima and inflection points, by accurately computing the coefficients of the derivative expansions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.