上一篇的誤差公式藏著同樣一筆帳。‖f − Sₙ(f)‖₂² 是一個平方,不會是負的;而公式說它等於 ‖f‖₂² 扣掉 π 乘上前 n 個係數的平方和。所以不論 n 取多大,係數的平方和都分不到超過 ‖f‖₂²/π 的份量。這個看似平淡的上界,有一個本節之後反覆用到的推論:Fourier 係數一定趨於零。
本篇用到 §38-4 的系理(‖f − Sₙ(f)‖₂² = ‖f‖₂² − π[½a₀² + Σ_{k≤n} (aₖ² + bₖ²)])、§34-2 的 34.4(非負級數收斂 ⟺ 部分和有界,此時和是部分和的 sup)、§34-1 的 34.3(收斂級數的項趨於零)、§36-4 的部分和公式(t 不是 2π 的整數倍時 cos t + ⋯ + cos nt = [sin((n + ½)t) − sin(t/2)]/(2 sin(t/2)))。另借用和角與差角公式 sin(A + B) = sin A cos B + cos A sin B、cos(A − B) = cos A cos B + sin A sin B,以及對每個整數 n 都有 cos((n + ½)π) = 0。
38.4 BESSEL'S INEQUALITY
Let f ∈ PC(2π) have Fourier coefficients aₖ, bₖ. Then the series ½a₀² + Σ (aₖ² + bₖ²) converges, and ½a₀² + Σ (aₖ² + bₖ²) ≤ (1/π)‖f‖₂². In particular aₖ → 0 and bₖ → 0.
The terms of the series are nonnegative and its partial sums are bounded above by (1/π)‖f‖₂²; hence by 34.4 the series converges and its sum, being the supremum of the sₙ, does not exceed (1/π)‖f‖₂². By 34.3 the terms aₖ² + bₖ² tend to 0. Since |aₖ| ≤ (aₖ² + bₖ²)^(1/2) and |bₖ| ≤ (aₖ² + bₖ²)^(1/2), therefore aₖ → 0 and bₖ → 0.
Proof. By the addition formula, g(t) sin((n + ½)t) = [g(t) cos(t/2)] sin nt + [g(t) sin(t/2)] cos nt.
這一步的所求:把非整數頻率拆成整數頻率。sin((n + ½)t) = sin(nt + t/2),和角公式給 sin nt cos(t/2) + cos nt sin(t/2)。乘上 g 之後,括號裡的 g(t) cos(t/2) 與 g(t) sin(t/2) 都不含 n——n 只出現在整數頻率的 sin nt 與 cos nt 裡,這正是 Fourier 係數的形狀。例行的三角恆等式。
Let g₁ and g₂ be the functions with period 2π that agree on (−π, π] with g(t) cos(t/2) and g(t) sin(t/2) respectively. They belong to PC(2π), and they differ from the bracketed functions on [−π, π] at most at t = −π. Hence ∫ g(t) sin((n + ½)t) dt = πbₙ(g₁) + πaₙ(g₂).
天氣網站上的「七日平均氣溫」是把今天和前六天的氣溫各乘上一個權重再相加。Fourier 部分和也可以寫成這種形狀:把 f 在 x 附近每一點的值乘上一個權重、積分起來。權重只依賴「離 x 多遠」,不依賴 f——它是一個固定的函數,叫做 Dirichlet 核。
38.6 LEMMA · THE DIRICHLET KERNEL
Let f ∈ PC(2π) and n ≥ 0, and put Dₙ(t) = ½ + Σ cos kt, k from 1 to n. Then for every x Sₙ(f)(x) = (1/π)∫ f(x + t)Dₙ(t) dt over [−π, π]. Moreover Dₙ(t) = sin((n + ½)t)/(2 sin(t/2)) when t is not a multiple of 2π, and Dₙ(0) = n + ½. The integral of Dₙ over [−π, π] is π, and over each of [0, π] and [−π, 0] it is π/2.
部分和在 x 的值,是 f(x + t) 乘上權重 Dₙ(t)/π、對 t 積分。Dₙ 是一個偶的三角多項式,在 t = 0 有一個高 n + ½ 的尖峰,兩側快速振盪;閉式說它的振盪是 sin((n + ½)t),振幅被 1/(2 sin(t/2)) 調節。權重的總量 (1/π)∫ Dₙ 恰好是 1,左右兩半各占一半。可是 Dₙ 會取負值,所以部分和不是一個真正的「平均」——有些點的 f 值是被減掉的。這是 Fourier 部分和難以控制的根源。
Proof. Inserting the definitions of aₖ and bₖ and using linearity, Sₙ(f)(x) = (1/π)∫ f(t)[½ + Σ (cos kx cos kt + sin kx sin kt)] dt = (1/π)∫ f(t)Dₙ(t − x) dt, because cos kx cos kt + sin kx sin kt = cos k(t − x).
這一步的所求:把部分和寫成一個積分。Sₙ(f)(x) = ½a₀ + Σ (aₖ cos kx + bₖ sin kx),每個係數都是一個積分,而 cos kx、sin kx 對積分變數 t 而言是常數,可以搬進積分號裡;有限多個積分相加併成一個(§29-5 的 29.5)。差角公式把 x 與 t 黏成一個整體 t − x:權重只看 t 離 x 多遠。數字檢查:n = 1、f = cos、x = 0,右邊是 (1/π)∫ cos t(½ + cos t) dt = (1/π)(0 + π) = 1 = S₁(cos)(0)。
By the translation rule (b) of the lemma in 38-1 with c = x, ∫_{−π}^{π} f(t)Dₙ(t − x) dt = ∫_{−π−x}^{π−x} f(x + s)Dₙ(s) ds. Since s ↦ f(x + s)Dₙ(s) belongs to PC(2π), part (c) of that lemma replaces the last interval by [−π, π], which proves the representation.
這一步的所求:讓權重以 0 為中心。令 t = x + s:§38-1 的引理 (b) 把積分區間整段平移 x,被積函數改寫成 s 的函數。新的區間 [−π − x, π − x] 長度仍是 2π;被積函數是 PC(2π) 函數的乘積(平移的 f 乘上三角多項式 Dₙ,引理 (a)),所以引理 (c) 把它挪回 [−π, π]。例行簿記。
If t is not a multiple of 2π, the partial sum formula of 36-4 gives Dₙ(t) = ½ + [sin((n + ½)t) − sin(t/2)]/(2 sin(t/2)) = sin((n + ½)t)/(2 sin(t/2)), while Dₙ(0) = ½ + n. By the first step of the orthogonality proof, ∫ cos kt = 0 over [−π, π] and also ∫₀^π cos kt dt = (sin kπ)/k = 0 for k ≥ 1; hence the integrals of Dₙ are those of ½, namely π and π/2, and the integral over [−π, 0] is π − π/2 = π/2.
這一步的所求:閉式與三個積分。§36-4 的部分和公式已經算好了 cos t + ⋯ + cos nt,加上 ½ 時 −sin(t/2)/(2 sin(t/2)) 恰好是 −½,兩者抵銷,只剩一個分數。t = 0 時每個 cos kt 都是 1,直接相加得 n + ½。積分的部分:每一個 cos kt(k ≥ 1)在整個週期上、在半個週期 [0, π] 上積分都是零,所以 Dₙ 的積分與常數 ½ 的積分相同;左半由整段減右半得到。拿 n = 1、t = π 對一次閉式:sin(3π/2)/(2 sin(π/2)) = −½。
這張圖在說 38.6 的權重長什麼樣:灰色虛線是 f,藍色實線是以 x 為中心的 D₆(t − x)。部分和 S₆(f)(x) 是兩者乘積的積分除以 π:尖峰附近的 f 值權重最大,遠處的值被忽正忽負的振盪交替加減。
係數的積分代進部分和,差角公式把權重併成只看 t − x 的 Dₙ,平移讓它以 0 為中心;閉式來自 36 節的部分和公式,積分由每個 cos kt 在一個週期與半個週期上積分為零讀出。∎
例 3D₁ 與 D₄:尖峰越來越高,兩側振盪
Dirichlet 核隨 n 變化時長什麼樣?把兩個小的 n 實際算出來,對照閉式。
D₁(t) = ½ + cos t:在 0 是 1.5,在 ±π 是 −½,在 t = ±2π/3 過零。閉式 sin(3t/2)/(2 sin(t/2)) 在 t = 2π/3 是 sin π/(2 sin(π/3)) = 0,對上。
D₄(t) = ½ + cos t + cos 2t + cos 3t + cos 4t:D₄(0) = 4.5;D₄(π) = ½ − 1 + 1 − 1 + 1 = ½,閉式給 sin(4.5π)/(2 sin(π/2)) = ½。