Home › Trigonometry › Lesson 10

Parseval's Identity and the Gibbs Phenomenon

Lesson 10 of 12

Key idea of this section

(1/π) ∫₋ππ |f|² = a₀²/2 + ∑ₙ₌₁∞ (aₙ² + bₙ²)        for every f ∈ L²(−π, π)
Near a jump of size J, the partial sums overshoot by about 0.0895 J, however many terms are taken.

Completeness and Parseval's identity

Theorem 10.1. The system {1, cos nx, sin nx : n ≥ 1} is complete in L²(−π, π): if f ∈ L² has all Fourier coefficients zero, then f = 0 almost everywhere. Consequently Sₙf → f in L² and Parseval's identity holds.

Proof. By Fejér's theorem, every continuous periodic function is a uniform limit of trigonometric polynomials; continuous periodic functions are dense in L²; hence trigonometric polynomials are dense in L². If f is orthogonal to all of them it is orthogonal to a dense subspace, so f = 0. For an orthonormal basis of a Hilbert space, the partial sums of the expansion converge in norm, and Bessel's inequality becomes an equality. ∎

In the language of harmonic analysis, the map f ↦ (f̂(n))ₙ∈ℤ with f̂(n) = (1/(2π))∫ f e−inx dx is a unitary isomorphism L²(𝕋) → ℓ²(ℤ), and Parseval reads (1/(2π))∫|f|² = ∑ |f̂(n)|². The polarised form (1/π)∫ fg = a₀α₀/2 + ∑ (aₙαₙ + bₙβₙ) holds for two functions with coefficients (aₙ, bₙ) and (αₙ, βₙ).

Evaluating series

Applied to the sawtooth f(x) = x, with bₙ = 2(−1)ⁿ⁺¹/n:

(1/π) ∫₋ππ x² dx = 2π²/3 = ∑ 4/n²,   so  ∑ 1/n² = π²/6.

Applied to f(x) = x², with a₀ = 2π²/3 and aₙ = 4(−1)ⁿ/n²:

(1/π) ∫₋ππ x⁴ dx = 2π⁴/5 = (2π²/3)²/2 + ∑ 16/n⁴ = 2π⁴/9 + 16 ∑ 1/n⁴,

so 16 ζ(4) = 2π⁴/5 − 2π⁴/9 = 8π⁴/45 and ζ(4) = π⁴/90. Continuing with x⁴, x⁶, … (or using the cotangent series of Lesson 8) yields Euler's formula ζ(2k) = (−1)ᵏ⁺¹ B₂ₖ (2π)²ᵏ/(2(2k)!), with Bernoulli numbers B₂ₖ. By contrast, nothing comparable is known for ζ(3); Apéry proved in 1978 that ζ(3) is irrational.

The isoperimetric inequality

Hurwitz's proof (1901) is a famous application of Parseval. Let a closed C¹ curve of length 2π be parametrised by arc length as z(s) = x(s) + iy(s), 0 ≤ s ≤ 2π, with Fourier coefficients cₙ. Then |z′| = 1 gives (1/(2π))∫ |z′|² = ∑ n²|cₙ|² = 1, while the enclosed area is A = (1/2) Im ∫ z̄ z′ ds = π ∑ n|cₙ|². Hence

π − A = π ∑ (n² − n)|cₙ|² ≥ 0,

with equality only if cₙ = 0 for all n ∉ {0, 1}, that is, only for a circle. Scaling, every closed curve of length L encloses area at most L²/(4π).

The Gibbs phenomenon

Let f be the 2π-periodic square wave equal to 1 on (0, π) and −1 on (−π, 0). Its coefficients are bₙ = (2/π)∫₀π sin nx dx = 2(1 − (−1)ⁿ)/(πn), so

f(x) ∼ (4/π) (sin x + sin 3x/3 + sin 5x/5 + ⋯).

By Dirichlet's theorem the partial sums converge to f at every x ≠ kπ and to 0 at the jumps. The convergence, however, is not uniform, and in a striking way. Consider the partial sum with the first N odd harmonics,

S(x) = (4/π) ∑ₖ₌₁ᴺ sin((2k − 1)x)/(2k − 1).

Its derivative is S′(x) = (4/π) ∑ cos((2k−1)x) = (2/π) sin(2Nx)/sin x, so the first positive critical point is x = π/(2N). There, putting tₖ = (2k − 1)π/(2N),

S(π/(2N)) = (2/π) ∑ₖ₌₁ᴺ (sin tₖ/tₖ) · (π/N),

which is a midpoint Riemann sum for an integral, so

S(π/(2N)) → (2/π) ∫₀π (sin t)/t dt = (2/π) Si(π) = 1.17897974…

as N → ∞, where Si(π) = 1.85193705… is the sine integral. The partial sums therefore overshoot the value 1 by about 0.179, which is 8.95% of the jump of size 2, and the overshoot does not shrink: it only moves closer to the discontinuity. This is the Gibbs phenomenon, first observed by Henry Wilbraham in 1848 and rediscovered and explained by J. Willard Gibbs in 1898–99 after A. A. Michelson's harmonic analyser displayed the overshoot. By localisation, the same overshoot, (1/π) Si(π) − 1/2 ≈ 0.0895 times the jump, occurs at every jump discontinuity of a piecewise smooth function.

The Gibbs phenomenon matters in signal processing (ringing artefacts in truncated spectra, JPEG compression around sharp edges). It disappears under Fejér summation: since the Fejér kernel is non-negative with integral 1, the Cesàro means of a function with values in [−1, 1] stay in [−1, 1]. Smoother summation methods (Lanczos σ-factors, Riesz means) are used in practice for the same reason.

Exercise

  • (a)
    Use Parseval for f(x) = |x| to evaluate ∑ₖ₌₁∞ 1/(2k − 1)⁴.
  • (b)
    Let g be 1 on [−1, 1] and 0 on the rest of [−π, π]. Use Parseval to show ∑ₙ₌₁∞ sin²n/n² = (π − 1)/2.
  • (c)
    Compute the limit of the overshoot percentage at the jump of the sawtooth f(x) = x at x = π.
Show solution

Answers: (a) (1/π)∫x² = 2π²/3 = π²/2 + ∑ 16/(π²(2k−1)⁴), so ∑ 1/(2k−1)⁴ = (π²/6) · (π²/16) = π⁴/96. (b) a₀ = 2/π and aₙ = 2 sin n/(πn), so 2/π = 2/π² + (4/π²)∑ sin²n/n²; multiply by π²/4 to get π/2 = 1/2 + ∑ sin²n/n². (c) The jump is 2π, and the overshoot tends to 0.0895 × 2π ≈ 0.562 above π: again about 8.95% of the jump, as for any jump.

V.3.1