Fourier Transform 6 | Fourier Series in L²
Based on The Bright Side of Mathematics's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Fourier series in L² are obtained by orthogonally projecting a 2π-periodic function onto the span of {1, cos(kx), sin(kx)} up to frequency n.
Briefing
Fourier series in the square-integrable setting are built by projecting a function onto a finite-dimensional space spanned by orthonormal trigonometric functions. The key move is to work in L²: for 2π-periodic functions, the inner product lets cosine and sine (and the constant function) behave like an orthonormal basis, so the “best” trigonometric polynomial approximation is not guesswork—it is the orthogonal projection, which automatically minimizes the L² distance.
The construction starts by recalling the L² framework for 2π-periodic functions: functions are treated as equivalence classes, and the inner product is defined using an integral over one period. With a specific normalization factor (chosen so the constant, cos(kx), and sin(kx) become orthonormal), the family forms an orthonormal system in L². For a fixed n, the span of these functions up to frequency n produces a (2n+1)-dimensional subspace. Linear algebra then supplies the projection: for any f in L², the orthogonal projection onto this subspace is a trigonometric polynomial, denoted F_N f, whose coefficients are computed directly from inner products with the basis functions.
Those coefficients become the Fourier coefficients. The constant term comes from the inner product with the constant function, while each cosine coefficient a_k comes from the inner product with cos(kx), and each sine coefficient b_k comes from the inner product with sin(kx). Once these coefficients are defined for every n, the Fourier series is the sequence of these trigonometric polynomials as n grows. Importantly, the orthogonal-projection interpretation relies on L²: the approximation is “best” specifically with respect to the L² norm (the distance measured by the square-integral). The transcript notes that the coefficient formulas can still be written for functions in L¹ because cosine and sine are bounded, but the geometric meaning as an orthogonal projection becomes unclear there.
To make the machinery concrete, the example uses a 2π-periodic step function: f(x)=1 on (−π,0] and f(x)=0 on (0,π], extended periodically. Because the function is piecewise constant, the Fourier coefficients can be computed by straightforward integrals. Symmetry forces the cosine coefficients to vanish, leaving only a constant term and sine terms. The sine coefficients depend on whether the harmonic index is even or odd: even indices contribute zero, while odd indices contribute values proportional to −1/k. The resulting Fourier series is therefore a constant plus a sum of scaled sine functions at odd frequencies.
Finally, the approximation is visualized by truncating the series after a small number of terms. Each truncation produces the orthogonal projection onto a larger subspace, so the approximation improves in the L² sense—meaning the integral of squared error decreases—even if pointwise behavior is not yet the focus. The step function’s jumps lead to oscillatory partial sums, and increasing the number of terms adds more oscillations that better mimic the original shape in the L² framework.
Cornell Notes
Fourier series in L² are constructed by projecting a 2π-periodic function f onto a finite-dimensional subspace spanned by an orthonormal set: the constant function, cos(kx), and sin(kx) for k=1,…,n. For each fixed n (so the subspace has dimension 2n+1), the orthogonal projection F_N f is the trigonometric polynomial that minimizes the L² distance to f. The Fourier coefficients are computed as inner products: the constant coefficient uses the inner product with 1, cosine coefficients a_k use the inner product with cos(kx), and sine coefficients b_k use the inner product with sin(kx). The series is the sequence of these projections as n increases, and the “best approximation” meaning is tied specifically to L².
Why does the orthogonal-projection viewpoint require L² rather than just L¹?
How is the finite-dimensional subspace chosen, and what is its dimension?
What formulas determine the Fourier coefficients a_k and b_k?
In the step-function example, why do all cosine coefficients vanish?
How do the sine coefficients depend on whether k is even or odd?
Review Questions
- For a fixed n, what set of basis functions spans U_n, and how does that determine the dimension of the subspace?
- Which norm and inner product make the orthogonal projection the “best” approximation, and why is that tied to L²?
- In the step-function example, what parity condition on k determines whether the sine coefficient b_k is zero?
Key Points
- 1
Fourier series in L² are obtained by orthogonally projecting a 2π-periodic function onto the span of {1, cos(kx), sin(kx)} up to frequency n.
- 2
With the right normalization, the constant, cosine, and sine functions form an orthonormal system under the L² inner product over [−π,π].
- 3
For each fixed n, the projection F_N f is a trigonometric polynomial whose coefficients are computed as inner products with the basis functions.
- 4
The “best approximation” property is specifically about minimizing L² distance (square-integral error), not pointwise error.
- 5
Fourier coefficient formulas can be written for L¹ functions because cosine and sine are bounded, but the orthogonal-projection interpretation is not guaranteed there.
- 6
For the step function f(x)=1 on (−π,0] and 0 on (0,π], cosine coefficients vanish and sine coefficients are nonzero only for odd k, with b_k=−2/(πk).