Get AI summaries of any video or article — Sign up free
Fourier Transform 6 | Fourier Series in L² [dark version] thumbnail

Fourier Transform 6 | Fourier Series in L² [dark version]

5 min read

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.

TL;DR

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”?

The orthogonal projection interpretation depends on measuring distance with the L² norm, which is derived from the L² inner product. For each fixed n, the projection F_n(f) onto U_n minimizes the L² distance ||f − F_n(f)||₂ among all trigonometric polynomials in that subspace. If only L¹ is available, the coefficient integrals can still be defined, but the orthogonality/projection optimality in the L² sense no longer applies.

How are the Fourier coefficients determined in the L² framework?

Each coefficient is an inner product with the corresponding orthonormal basis element. The constant coefficient comes from integrating f against the constant basis function (with the transcript’s normalization). For k≥1, the cosine coefficient a_k is proportional to ∫_{−π}^{π} f(x)cos(kx) dx, and the sine coefficient b_k is proportional to ∫_{−π}^{π} f(x)sin(kx) dx. These integrals produce the linear combination that defines the projection F_n(f).

What is the structure of the finite-dimensional space used for the projection?

For a fixed n, the subspace U_n is spanned by 2n+1 orthonormal functions: the constant function plus cos(x), cos(2x), …, cos(nx) and sin(x), sin(2x), …, sin(nx). That gives dimension 2n+1. The projection onto U_n is therefore a trigonometric polynomial with frequencies up to n.

In the step-function example f(x)=1 on [−π,0] and 0 on [0,π], why do all cosine terms disappear?

The cosine coefficients involve integrals over [−π,0] (since f is zero on [0,π]). On that interval, the symmetry properties of cosine lead the integral ∫_{−π}^{0} f(x)cos(kx) dx to cancel to zero for every k. The transcript also notes an alternative viewpoint using an antiderivative approach that yields the same cancellation.

Why do only odd sine terms remain for the step function, and what are their coefficients?

The sine coefficients b_k come from integrating sin(kx) over the region where f=1, i.e., from −π to 0. Evaluating the resulting antiderivative at 0 and −π produces a parity-dependent result: b_k=0 when k is even, and b_k=−2/(πk) when k is odd. Thus the Fourier series becomes 1/2 plus a sum of odd-frequency sine terms with coefficients −2/(πk).

Review Questions

  1. For a fixed n, what exactly is the subspace U_n and how many basis functions does it contain?
  2. How do the formulas for a_k and b_k relate to inner products with cos(kx) and sin(kx)?
  3. 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. 1

    Fourier series in L² are defined via orthogonal projections onto the span of {1, cos(kx), sin(kx)} for k=1,…,n.

  2. 2

    With the chosen 2π-periodic L² inner product and normalization, the constant, cosine, and sine functions form an orthonormal system.

  3. 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. 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. 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. 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. 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.

Highlights

Each partial Fourier sum F_n(f) is the L²-optimal trigonometric approximation obtained by projecting onto a 2n+1-dimensional sine-cosine space.
The Fourier coefficients are nothing more than inner products with the orthonormal basis elements: integrate f against 1, cos(kx), and sin(kx).
For the step function on [−π,0], cosine terms cancel by symmetry, leaving only odd sine terms with coefficients −2/(πk).

Topics

Mentioned

  • L2
  • L1