Notes on the discrete Fourier transform (DFT) eli.thegreenplace.net · 17 points ...
HN Best 200 @best
Notes on the discrete Fourier transform (DFT) eli.thegreenplace.net · 17 points · 4 comments · HN thread
TL;DR Eli Bendersky's blog post explains the Discrete Fourier Transform for finite digital signals by treating the samples as one period of a periodic signal, which ties the DFT to the DTFS and to the Fourier matrix built from roots of unity. It shows the matrix form of the forward and inverse transforms, a worked triangle-wave example, and spectral leakage when the samples cover only part of a cycle. The post is a follow-up in a series that defers the FFT algorithm to a later article.
- The DFT is derived by assuming N finite samples represent one period of a periodic signal, so the DTFS reconstructs them exactly.
- The DFT equals the matrix product of the Fourier matrix F[k,n] = W_N^(k*n) with the signal vector, where W_N = exp(-2πi/N).
- The inverse DFT is the conjugate matrix divided by N; the post derives it both from DTFS and from the orthogonality of the rows of F, and gets the same formula.
- The DFT can be seen as equally spaced samples of the DTFT at frequencies 2πk/N.
- Using a 12-sample triangle wave, the DFT coefficients show conjugate symmetry, and the IDFT reconstructs the signal up to floating point error.
- When only 10 samples of the triangle are used, the coefficients spread across several bins (spectral leakage), though reconstruction stays exact; window functions are the usual remedy.
Discussion The thread is short and mostly technical. Commenters add to the post's linear algebra argument, with one asking how to prove the DFT is always invertible and another pointing out the simpler route via the conjugate transpose. A second commenter praises the post for separating the DFT from the FFT. The remaining comment is off-topic, asking whether the blog has turned to AI-generated content, and it draws no reply. Overall the mood is positive and appreciative.
- Invertibility follows directly from the matrix formulation (some): Commenters note that proving the Fourier matrix is invertible establishes that the DFT can always be reversed. One suggests checking that the determinant is nonzero or that the columns are linearly independent. Another says the adjoint is the inverse, so U^H U = I, with a caveat about scaling conventions.
- Appreciates separating DFT from FFT (a few): One commenter values that the post keeps the DFT, the computed quantity, distinct from the FFT, the family of algorithms used to compute it.
- Asks whether the blog is AI-generated (a few): One commenter recalls the author's older articles fondly, then asks whether the site has become AI-generated content like some other technical blogs. The comment gets no replies and is not answered in the thread.
#signalProcessing #fourierTransform #linearAlgebra #numericalComputing #mathematics