Key idea of this section
f(x) ∼ a₀/2 + ∑ₙ₌₁∞ (aₙ cos nx + bₙ sin nx), aₙ = (1/π)∫₋ππ f(x) cos nx dx, bₙ = (1/π)∫₋ππ f(x) sin nx dx If f is piecewise C¹, the series converges at every x to (f(x⁺) + f(x⁻))/2.
Orthogonality
For integers m, n ≥ 0, the product-to-sum formulas give:
∫₋ππ cos mx cos nx dx = π δₘₙ (m, n ≥ 1), ∫₋ππ sin mx sin nx dx = π δₘₙ, ∫₋ππ sin mx cos nx dx = 0,
and ∫₋ππ 1 dx = 2π. Equivalently, the exponentials eₙ(x) = einx, n ∈ ℤ, are orthonormal in L²(−π, π) with the inner product ⟨f, g⟩ = (1/(2π)) ∫ f ḡ. If a trigonometric polynomial f = a₀/2 + ∑ (aₙ cos nx + bₙ sin nx) is given, its coefficients are recovered by the formulas in the key idea box; for a general integrable 2π-periodic f those formulas define the Fourier coefficients, and the partial sums are Sₙf(x) = a₀/2 + ∑ₖ₌₁ⁿ (aₖ cos kx + bₖ sin kx).
Two basic lemmas
Lemma 9.1 (Bessel). For f ∈ L²(−π, π), a₀²/2 + ∑ (aₙ² + bₙ²) ≤ (1/π)∫ f². In particular aₙ, bₙ → 0.
Proof. Sₙf is the orthogonal projection of f onto the span of 1, cos kx, sin kx (k ≤ n), so ‖Sₙf‖² ≤ ‖f‖². ∎
Lemma 9.2 (Riemann–Lebesgue). For f ∈ L¹(a, b), ∫ₐᵇ f(x) eiλx dx → 0 as λ → ±∞.
Proof. For a step function this is a direct computation (each step contributes O(1/|λ|)). Step functions are dense in L¹, and the integral is a bounded linear functional with norm at most 1 for each λ. ∎
The Dirichlet kernel representation
Substituting the coefficients into the partial sum and using the identity of Lesson 8,
Sₙf(x) = (1/π) ∫₋ππ f(x + t) Dₙ(t) dt, Dₙ(t) = sin((n + ½)t)/(2 sin(t/2)),
with (1/π)∫₋ππ Dₙ = 1 (integrate the cosine sum term by term), and (1/π)∫₀π Dₙ = 1/2.
Theorem 9.3 (Dirichlet, 1829). Let f be 2π-periodic and piecewise C¹ (finitely many points where f or f′ jumps, with one-sided limits of f and f′ everywhere). Then for every x,
Sₙf(x) → (f(x⁺) + f(x⁻))/2.
Proof. Write Sₙf(x) − f(x⁺)/2 − f(x⁻)/2 = (1/π)∫₀π (f(x+t) − f(x⁺)) Dₙ(t) dt + (1/π)∫₋π0 (f(x+t) − f(x⁻)) Dₙ(t) dt. In the first integral the function g(t) = (f(x+t) − f(x⁺))/(2 sin(t/2)) is integrable on (0, π), because the numerator is O(t) by the one-sided derivative and 2 sin(t/2) ≥ 2t/π there. The integral equals (1/π)∫₀π g(t) sin((n + ½)t) dt, which tends to 0 by Riemann–Lebesgue. The second integral is treated the same way. ∎
If moreover f is continuous and piecewise C¹, the convergence is uniform, since then ∑ (|aₙ| + |bₙ|) < ∞ (by Cauchy–Schwarz and Bessel applied to f′, whose coefficients are naₙ and nbₙ up to sign and order).
Two fundamental examples
The sawtooth. Let f(x) = x on (−π, π), extended 2π-periodically. f is odd, so aₙ = 0, and integration by parts gives bₙ = (2/π)∫₀π x sin nx dx = 2(−1)ⁿ⁺¹/n. Hence
x = 2 (sin x − sin 2x/2 + sin 3x/3 − ⋯) (−π < x < π),
with the series summing to 0 = (π + (−π))/2 at x = ±π. At x = π/2 this is the Leibniz series π/4 = 1 − 1/3 + 1/5 − ⋯. Replacing x by π − x yields (π − x)/2 = ∑ₙ₌₁∞ sin nx/n for 0 < x < 2π; at x = 1 we get the curious evaluation ∑ sin n/n = (π − 1)/2.
The parabola. Let f(x) = x² on [−π, π]. It is even and continuous with f(π) = f(−π), so the series converges uniformly. Here a₀ = 2π²/3 and aₙ = 4(−1)ⁿ/n², so
x² = π²/3 + 4 ∑ₙ₌₁∞ (−1)ⁿ cos nx/n² (−π ≤ x ≤ π).
At x = π: π² = π²/3 + 4∑ 1/n², giving ∑ 1/n² = π²/6. At x = 0: ∑ (−1)ⁿ⁺¹/n² = π²/12.
Divergence and deeper theorems
Continuity alone does not ensure convergence: du Bois-Reymond (1873) constructed a continuous function whose Fourier series diverges at a point, and Kolmogorov (1926) an L¹ function whose Fourier series diverges everywhere. On the positive side, Carleson's theorem (1966) asserts that the Fourier series of every f ∈ L²(−π, π) converges almost everywhere, extended to Lᵖ, p > 1, by Hunt (1968). Fejér's theorem (1900) gives a robust remedy: the Cesàro means σₙ = (S₀f + ⋯ + Sₙf)/(n + 1) converge uniformly to f for every continuous periodic f, because they are convolutions with the Fejér kernel Fₙ(t) = sin²((n+1)t/2)/(2(n+1) sin²(t/2)), which, unlike Dₙ, is non-negative. As a corollary, trigonometric polynomials are uniformly dense in C(𝕋), a trigonometric form of the Weierstrass approximation theorem.
Exercise
- (a)Find the Fourier series of f(x) = |x| on [−π, π] and deduce ∑ₖ₌₁∞ 1/(2k − 1)².
- (b)Let f be the odd 2π-periodic function equal to x(π − x) on [0, π]. Show that bₙ = 8/(πn³) for odd n and 0 for even n.
- (c)Deduce from
- (b)that 1 − 1/3³ + 1/5³ − 1/7³ + ⋯ = π³/32.
Show solution
Answers: (a) a₀ = π, aₙ = 2((−1)ⁿ − 1)/(πn²), so |x| = π/2 − (4/π) ∑ₖ cos((2k−1)x)/(2k−1)². At x = 0, π/2 = (4/π)∑ 1/(2k−1)², so the sum is π²/8. (b) bₙ = (2/π)∫₀π x(π − x) sin nx dx; integrating by parts twice gives ∫₀π x(π − x) sin nx dx = 2(1 − (−1)ⁿ)/n³, hence bₙ = 4(1 − (−1)ⁿ)/(πn³). (c) f is continuous and piecewise C¹, so at x = π/2, π²/4 = (8/π) ∑ over odd n of sin(nπ/2)/n³ = (8/π)(1 − 1/3³ + 1/5³ − ⋯); multiply by π/8.