Fourier Transform 6 | Fourier Series in L² [dark version]
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 defined via orthogonal projections onto the span of {1, cos(kx), sin(kx)} for k=1,…,n.
Briefing
Fourier series in the L² setting are built as orthogonal projections onto a finite-dimensional space spanned by sines and cosines. Once the inner product for 2π-periodic, square-integrable functions is fixed, the cosine and sine system becomes an orthonormal basis (with a specific scaling), turning the “best trigonometric approximation” problem into standard linear algebra: for each n, the projection onto the span of the first 2n+1 basis functions minimizes the L² distance to the target function.
Concretely, the construction starts with the space of 2π-periodic functions and the L² inner product (using complex conjugation for the first factor). With the chosen normalization, the constant function and the cosine/sine functions up to frequency n form an orthonormal system. For a fixed n, the relevant subspace U_n has dimension 2n+1, and the orthogonal projection of a function f onto U_n is a trigonometric polynomial F_n(f). The Fourier coefficients appear directly as inner products with the basis elements: the constant coefficient is computed by integrating f against the constant basis function, cosine coefficients a_k come from integrating f against cos(kx), and sine coefficients b_k come from integrating f against sin(kx). The Fourier series of f is then the sequence of these projections as n grows, and the key interpretation in L² is that each partial sum is the closest trigonometric polynomial of that degree in the L² norm.
The transcript also notes a boundary of the theory: the projection interpretation relies on L². For functions only in L¹, the coefficient formulas still make sense because sine and cosine are bounded, so the integrals defining the coefficients exist. But without the L² inner-product structure, the “orthogonal projection” meaning becomes harder to justify, leaving interpretation for later.
To make the machinery tangible, the discussion works through a piecewise constant 2π-periodic step function defined as f(x)=1 on [-π,0] and f(x)=0 on [0,π], extended periodically. Computing coefficients shows that all cosine terms vanish due to symmetry on the integration interval. The sine coefficients depend on parity: b_k is zero when k is even, and equals -2/(πk) when k is odd. The resulting Fourier series therefore consists of a constant term 1/2 plus only odd sine terms with coefficients -2/(πk). Visualizations then compare partial sums: stopping after the first term yields a constant plus a scaled sine component, and adding more odd frequencies introduces increasingly rapid oscillations that better approximate the step function in the L² (integral-distance) sense.
Overall, the central takeaway is that Fourier series in L² are not just formal expansions: each partial sum is the optimal trigonometric approximation (in L²) obtained by projecting onto the span of sines and cosines up to a fixed frequency.
Cornell Notes
In L², Fourier series are constructed as orthogonal projections onto the finite-dimensional space spanned by the constant function, cos(kx), and sin(kx) for k=1,…,n. With the correct 2π-periodic inner product (including complex conjugation and a normalization factor), these basis functions form an orthonormal system, so the projection F_n(f) is the unique trigonometric polynomial that minimizes the L² distance to f. The Fourier coefficients are computed directly as inner products: the constant term uses an integral of f against 1, cosine coefficients a_k use ∫ f(x)cos(kx) dx, and sine coefficients b_k use ∫ f(x)sin(kx) dx. For L¹ functions, the same coefficient formulas still exist because sine and cosine are bounded, but the projection/optimality interpretation is tied specifically to L². A step-function example yields only a constant plus odd sine terms, with cosine terms canceling by symmetry.
Why does the L² inner product matter for interpreting Fourier series as “best approximations”?
How are the Fourier coefficients determined in the L² framework?
What is the structure of the finite-dimensional space used for the projection?
In the step-function example f(x)=1 on [−π,0] and 0 on [0,π], why do all cosine terms disappear?
Why do only odd sine terms remain for the step function, and what are their coefficients?
Review Questions
- For a fixed n, what exactly is the subspace U_n and how many basis functions does it contain?
- How do the formulas for a_k and b_k relate to inner products with cos(kx) and sin(kx)?
- In the step-function example, what symmetry or parity feature forces cosine coefficients to vanish and sine coefficients to be zero for even k?
Key Points
- 1
Fourier series in L² are defined via orthogonal projections onto the span of {1, cos(kx), sin(kx)} for k=1,…,n.
- 2
With the chosen 2π-periodic L² inner product and normalization, the constant, cosine, and sine functions form an orthonormal system.
- 3
For each fixed n, the partial sum F_n(f) is the unique trigonometric polynomial in U_n that minimizes the L² distance to f.
- 4
Fourier coefficients are computed as inner products: the constant term uses ∫ f(x) dx, cosine terms use ∫ f(x)cos(kx) dx, and sine terms use ∫ f(x)sin(kx) dx (with the transcript’s scaling).
- 5
The projection/optimality interpretation is specific to L²; in L¹ the coefficient integrals can still be computed, but the geometric meaning is not immediate.
- 6
For the step function f(x)=1 on [−π,0] and 0 on [0,π], all cosine coefficients vanish and sine coefficients satisfy b_k=0 for even k and b_k=−2/(πk) for odd k, giving a series of the form 1/2 plus odd sine terms.
- 7
As more terms are added, partial sums approximate the step function in the L² (integral-distance) sense, even though pointwise behavior is not the main guarantee.