The Trigonometric Basis
In Lesson 2 we established that L²([−π, π]) is a Hilbert space — a complete inner product space. Now we ask: does it have an orthonormal basis? The answer is yes, and the basis is the trigonometric system.
Define the functions φ₀(t) = 1/√(2π) and, for n ≥ 1, φ_n^c(t) = cos(nt)/√π and φ_n^s(t) = sin(nt)/√π. These are pairwise orthogonal under the L² inner product ⟨f, g⟩ = ∫₋π^π f(t)g(t) dt, and each has unit norm. Together they form a countably infinite orthonormal set that is also complete — no nonzero function is orthogonal to all of them.
Fourier Coefficients as Inner Products
Because the trigonometric system is a complete orthonormal set in L²([−π, π]), every f ∈ L² can be expanded as an infinite series. The expansion coefficients are precisely the inner products of f with each basis function:
The Fourier series is the resulting infinite expansion:
Partial Sums as Orthogonal Projections
The N-th partial sum Sₙf = a₀/2 + Σᵢ₌₁ᴺ [aᵢ cos(it) + bᵢ sin(it)] is not just a truncation — it is the orthogonal projection of f onto the finite-dimensional subspace Vₙ = span{1, cos t, sin t, …, cos(Nt), sin(Nt)}.
By the Projection Theorem, Sₙf is the unique element of Vₙ closest to f in the L² norm. No other linear combination of the first N+1 harmonics can do better. This geometric interpretation explains why Fourier series are the natural tool for approximating functions with periodic structure.
The Residual is Orthogonal to the Subspace
A key property of orthogonal projection: the error f − Sₙf satisfies ⟨f − Sₙf, g⟩ = 0 for every g ∈ Vₙ. This means the error has no component in the directions we have already approximated. Each additional harmonic we include captures a bit of the remaining error, and that captured piece is always orthogonal to everything already included.
Complex Fourier Series
Working with complex exponentials eⁱⁿᵗ simplifies the algebra considerably. Define ψₙ(t) = eⁱⁿᵗ/√(2π) for n ∈ ℤ. These form a complete orthonormal set in the complex L²([−π, π]) equipped with the inner product ⟨f, g⟩ = ∫₋π^π f(t)g̅(t) dt (where g̅ is the complex conjugate).
Convergence and the Gibbs Phenomenon
L² convergence — the norm of the error going to zero — is a global statement about average accuracy. For smooth functions, the Fourier series also converges uniformly (the error goes to zero everywhere). For functions with jump discontinuities, the story is more subtle.
Pointwise Convergence
The Dirichlet theorem states: if f is piecewise smooth on [−π, π], then the Fourier series converges at every point of continuity to f(t), and at each jump discontinuity x₀ to the average (f(x₀⁺) + f(x₀⁻))/2. This is a pointwise statement, stronger than L² convergence but requiring more smoothness.
Gibbs Phenomenon
Near a jump discontinuity, the partial sums overshoot by approximately 9% of the jump height, no matter how many terms are included. This overshoot — the Gibbs phenomenon — is a fundamental limitation: the partial sum Sₙf is the best L² approximation from Vₙ, but "best in L²" does not mean "small everywhere." Adding more terms moves the overshoot closer to the jump but does not eliminate it.
The Gibbs phenomenon explains why ideal lowpass filtering (which sets all Fourier coefficients beyond frequency N to zero) produces ringing at sharp signal edges. In practice, windowed Fourier methods (Hamming, Hanning, Blackman windows) taper the coefficients smoothly to zero, trading some approximation accuracy for elimination of ringing. This tradeoff is the frequency-domain incarnation of orthogonal projection onto a smoothed subspace.
The Discrete Fourier Transform
In practice, signals are sampled at N discrete time points t_k = 2πk/N for k = 0, 1, …, N−1. The N-dimensional complex vector space ℂᴺ has its own discrete analogue of the trigonometric system: the DFT basis vectors w_n = (1, ωⁿ, ω²ⁿ, …, ω^((N−1)n))/√N where ω = e^(i2π/N).
The DFT is exactly the finite-dimensional version of the Fourier series. The signal vector x ∈ ℂᴺ plays the role of f ∈ L², and the DFT coefficients X = Fx are the coordinates of x in the DFT orthonormal basis. Parseval's theorem in this setting becomes ‖X‖² = ‖x‖², the preservation of the Euclidean norm under unitary transformation.
Applications Revisited Through Linear Algebra
Spectral Analysis
Computing the power spectral density of a signal is computing ‖Px‖² for each projection Px onto the subspace spanned by a single DFT basis vector. The power spectrum is the squared magnitude of the coordinates in the DFT basis. Linear algebra makes clear why power spectra are non-negative (they are squared norms) and why they add across orthogonal subspaces (Parseval).
Circular Convolution as Diagonal Multiplication
In the DFT basis, circular convolution becomes pointwise multiplication: F(x ⊛ h) = √N · (Fx) ⊙ (Fh), where ⊙ is the componentwise product. The √N is the price of the unitary 1/√N normalization we adopted for F; with the unnormalized DFT the factor disappears and the identity reads F(x ⊛ h) = (Fx) ⊙ (Fh), which is the form you will usually see quoted. Either way, the structural fact is the same, and it holds because the DFT basis vectors are the eigenvectors of every circular convolution operator. Applying a filter is therefore: (1) project onto DFT basis, (2) scale each component by the filter's frequency response, (3) project back. This is diagonalization — the most important operation in linear algebra, now applied to signal processing.
OFDM in One Equation
OFDM modulates independent data symbols X[0], X[1], …, X[N−1] onto the DFT basis vectors, then transmits the time-domain signal x = F⁻¹X. At the receiver, the channel applies a circular convolution with h. The received signal y = h * x + noise satisfies Fy = (Fh) ⊙ (Fx) + F(noise). After removing the cyclic prefix, the receiver applies F, yielding Y[k] = H[k] X[k] + W[k] — N independent scalar channels, each with its own complex gain H[k]. This one-tap equalization is possible precisely because the DFT diagonalizes circular convolution.
Matched Filtering as Inner Product
In radar and communications, a matched filter computes the inner product ⟨received signal, template⟩ for each possible template (delay, Doppler shift). The output is the projection of the received signal onto the template. Choosing the template that maximizes this inner product is exactly maximum likelihood detection — finding the closest point in the signal space to the observed data.
The Fourier series is orthogonal projection: each coefficient aₙ or bₙ is an inner product in L², and the N-th partial sum is the closest element of the N-harmonic subspace to f. Complex exponentials form a complete orthonormal basis; the DFT is the finite-dimensional version with a unitary change-of-basis matrix. Circular convolution is diagonalized by the DFT — filtering is changing basis, scaling by eigenvalues, and changing back. The Gibbs phenomenon shows that L² optimality does not mean pointwise accuracy at discontinuities. This unification — Fourier analysis as linear algebra — is the conceptual bridge between abstract inner product theory and practical signal processing.