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

Fourier Transform 6 | Fourier Series in L²

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

The “best approximation” claim depends on measuring distance with the L² norm, which comes from the L² inner product (integral of |f|² over one period). In L², the cosine/sine family is orthonormal, so the projection onto span{1, cos(kx), sin(kx)} is well-defined and guarantees minimal L² error. In L¹, the coefficient integrals still exist because cos and sin are bounded, but the geometric meaning as an orthogonal projection—and thus the L² minimization property—doesn’t automatically carry over.

How is the finite-dimensional subspace chosen, and what is its dimension?

For a fixed cutoff n, the subspace U_n is spanned by the constant function plus cosine and sine functions up to frequency n: {1, cos(x), cos(2x), …, cos(nx), sin(x), sin(2x), …, sin(nx)}. That gives 1 + n + n = 2n+1 basis functions, so dim(U_n)=2n+1. The orthogonal projection onto U_n is the truncated Fourier approximation F_N f.

What formulas determine the Fourier coefficients a_k and b_k?

Each coefficient is an inner product with the corresponding basis function. The constant term is computed from the inner product with 1, giving a factor like (1/π)∫_{−π}^{π} f(x)·(constant) dx with the normalization built in. For k≥1, the cosine coefficient a_k uses (1/π)∫_{−π}^{π} f(x)cos(kx) dx, and the sine coefficient b_k uses (1/π)∫_{−π}^{π} f(x)sin(kx) dx (again with the normalization consistent with the chosen orthonormal system). These come directly from projecting f onto the basis.

In the step-function example, why do all cosine coefficients vanish?

The function equals 1 on (−π,0] and 0 on (0,π], extended periodically. On the integration interval, the cosine terms integrate to zero due to symmetry properties of cos(kx) over (−π,0] relative to the step’s support. The transcript also notes an alternative viewpoint: using the sign function as an equivalent representation leads to the same conclusion that the cosine integrals produce zero.

How do the sine coefficients depend on whether k is even or odd?

For the step function, the sine coefficients come from integrating sin(kx) against the function’s support, which reduces to evaluating an antiderivative involving cos(kx) at the endpoints. The result splits by parity: when k is even, the boundary terms cancel so b_k=0; when k is odd, the coefficient becomes b_k = −2/(πk). This produces a series with only odd sine harmonics.

Review Questions

  1. For a fixed n, what set of basis functions spans U_n, and how does that determine the dimension of the subspace?
  2. Which norm and inner product make the orthogonal projection the “best” approximation, and why is that tied to L²?
  3. In the step-function example, what parity condition on k determines whether the sine coefficient b_k is zero?

Key Points

  1. 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. 2

    With the right normalization, the constant, cosine, and sine functions form an orthonormal system under the L² inner product over [−π,π].

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

    The “best approximation” property is specifically about minimizing L² distance (square-integral error), not pointwise error.

  5. 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. 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).

Highlights

Orthogonal projection in L² turns Fourier truncations into mathematically guaranteed best approximations in the square-integral sense.
The Fourier coefficients are nothing more than inner products with the orthonormal basis: constant term, cosine terms a_k, and sine terms b_k.
In the step-function example, symmetry kills the cosine coefficients entirely, leaving only a constant plus odd sine harmonics.
Even harmonics contribute zero to the sine coefficients, while odd harmonics produce b_k=−2/(πk).

Topics

Mentioned

  • L2