Spectral Derivatives
Pavel Komarov
TL;DR
The paper surveys spectral-derivative techniques, detailing how differentiation can be carried out efficiently in the Fourier domain and how to extend these ideas to Chebyshev bases for nonperiodic data. It covers discrete and continuous transforms, interpolation schemes, and the subtleties of endpoint handling and Gibbs phenomena, then presents Chebyshev-derivative strategies via Fourier reduction and series recurrence. Practical aspects include multidimensional extensions, domain mappings, and noise-robust filtering, with explicit caveats about Runge effects and edge sensitivity in polynomial bases. The result is a comprehensive framework for accurate, efficient spectral differentiation across domains and representations, with attention to numerical stability and applicability to real data with noise.
Abstract
One of the happiest accidents in all math is the ease of transforming a function to and taking derivatives in the Fourier frequency domain. But in order to exploit this extraordinary fact without serious artefacting, and in order to be able to use a computer, we need quite a bit of extra knowledge and care. This document sets out the math behind the spectral-derivatives Python package. I touch on fundamental signal processing and calculus concepts as necessary and build upwards.
