Fast Fourier Transform#
Consider performing the discrete Fourier transform (DCT) \(\tilde{f}_{m}\) of a periodic function tabulated at \(N\) equally spaced points \(f_n = f(x_n)\):
\[\begin{gather*}
\tilde{f}_{m} = \sum_{n} \underbrace{e^{-2\pi \I mn/N}}_{F_{mn} = [\mat{F}]_{mn}}f_n, \qquad
m, n \in {0,1,\dots, N-1}.
\end{gather*}\]
Naïvely, this is simply matrix multiplication, which requires \(O(N^2)\) operations.
The fast-Fourier transform (FFT)