LEMMA · CONTINUOUS APPROXIMATION IN THE MEAN SQUARE
Let f ∈ PC(2π) and ε > 0. Then there is a continuous function f* with period 2π such that ‖f*‖_∞ ≤ ‖f‖_∞ and ‖f − f*‖₂ < ε.
任何一個分段連續的週期函數,在平方平均的意義下都可以被連續的週期函數任意逼近,而且逼近的函數不會比原函數更高。造法就是開場的斜坡:每個斷點兩側各留寬 η 的一小段,在那裡把 f 換成連接兩端函數值的線段。這件事在均勻的意義下做不到:f* 連續,跳躍附近總有一點與 f 相差將近半個跳躍——正如 §38-7 例 2 對部分和所說的。
這張圖在說引理的造法:灰色是方波,藍線是 u*。每個斷點兩側各寬 η 的小窗裡,藍線是一段斜線;窗外藍線與方波完全重合。差只活在窗裡,而窗可以要多窄有多窄。
PROOF
記 M = ‖f‖_∞。若 f 已經連續,取 f* = f 即可;以下設 f 在 (−π, π] 裡的斷點是 c₁ < ⋯ < c_N,N ≥ 1(於是 f 不是零函數,M > 0)。全部的斷點是 E = {cⱼ + 2kπ : 1 ≤ j ≤ N, k ∈ ℤ};令 γ > 0 是 E 裡相鄰兩點距離的最小值(只要比較 c₁, ⋯, c_N, c₁ + 2π 之間的 N 個間距)。
證明計畫 · 由所求想起 第一步:在每個斷點兩側開一個小窗,窗內換成線段,窗外不動;窗夠窄就互不重疊。 第二步:核對新函數有週期、連續、不比原函數高。 第三步:差只活在窗裡,差的平方不超過 (2M)²,一個週期裡有 N 個窗,總寬 2Nη。
Proof. Choose η with 0 < η < γ/2 and 8NηM² < ε². For e ∈ E put W_e = [e − η, e + η]; these windows are pairwise disjoint because distinct points of E are at least γ > 2η apart. Define f* to equal f outside all windows, and on each W_e to be the linear function that takes the values f(e − η) and f(e + η) at the two end points.
Since E + 2π = E and f has period 2π, so does f*. The end points e ± η are not in E, so f is continuous there; therefore f*, which coincides with f just outside each window and is linear inside with matching end values, is continuous at e ± η. Off the closed windows f has no discontinuity and f* = f on an open set, and inside the open windows f* is linear; hence f* is continuous everywhere. Each value of f* on a window lies between f(e − η) and f(e + η), so |f*| ≤ M.
By part (c) of the lemma in 38-1 we may integrate over I = [c₁ − η, c₁ − η + 2π] instead of [−π, π]. On I the difference f − f* vanishes except on the windows about c₁, …, c_N (the window about c₁ + 2π meets I only at its end point), and on each of them |f − f*| ≤ 2M. By 29.6 and 30.5, ‖f − f*‖₂² ≤ N · 2η · (2M)² = 8NηM² < ε².
給定 ε > 0。目標是找 N,使 m ≥ N 時 ‖f − S_m(f)‖₂ < ε。三段距離各分到 ε/3。
證明計畫 · 由所求想起 第一步:斜坡引理給一個連續週期函數,離 f 不到 ε/3。 第二步:24.5 給一條連續折線,均勻地貼近它;把折線稍微傾斜,讓兩端等高,才能週期延拓。折線的導數是階梯,分段連續。 第三步:38.9 讓這條週期折線的 Fourier 部分和均勻收斂,均勻再換成平方平均。 第四步:三段距離相加,得到一個離 f 不到 ε 的三角多項式;最佳逼近讓 S_m(f) 至少一樣近。
Proof. By the preceding lemma there is a continuous f* with period 2π and ‖f − f*‖₂ < ε/3.
這一步的所求:先把斷點抹掉。剛證的引理直接給出,ε 換成 ε/3。
Let η = ε/(9√(2π)). By 24.5 there is a continuous piecewise linear g on [−π, π] with |f*(x) − g(x)| < η there. Put f**(x) = g(x) + ((x + π)/(2π))(g(−π) − g(π)) on [−π, π]. Then f** is continuous and piecewise linear, f**(−π) = f**(π), and since f*(−π) = f*(π) we have |g(−π) − g(π)| < 2η, hence |f* − f**| < 3η on [−π, π]. Extend f** with period 2π: it is continuous, and its derivative exists except at finitely many corners per period and is a step function there, so f**′ ∈ PC(2π). By (a) of the lemma in 38-7, ‖f* − f**‖₂ ≤ √(2π) · 3η = ε/3.
By 38.9 the Fourier series of f** converges uniformly to f**, so there is N with ‖f** − S_m(f**)‖_∞ < ε/(3√(2π)) for every m ≥ N; then ‖f** − S_m(f**)‖₂ < ε/3.
For m ≥ N, the triangle inequality (c) of the lemma in 38-7 gives ‖f − S_m(f**)‖₂ ≤ ‖f − f*‖₂ + ‖f* − f**‖₂ + ‖f** − S_m(f**)‖₂ < ε. Since S_m(f**) is a trigonometric polynomial of degree at most m, the corollary of 38-4 yields ‖f − S_m(f)‖₂ ≤ ‖f − S_m(f**)‖₂ < ε for every m ≥ N. Therefore ‖f − Sₙ(f)‖₂ → 0.
這一步的所求:把三段距離接起來,再換回 f 自己的部分和。三角不等式讓三段各 ε/3 的距離相加,S_m(f**) 離 f 不到 ε。可是 S_m(f**) 是 f** 的部分和,不是 f 的。這時 §38-4 的系理 出場:在次數不超過 m 的三角多項式之中,S_m(f) 離 f 最近,所以它不會比 S_m(f**) 遠。我們從頭到尾不必知道 S_m(f) 長什麼樣,只要知道同次數裡有某一個三角多項式夠近。
這張圖在證整個證明的結構:從 f 出發,經過連續的 f*、週期折線 f**,到達三角多項式 S_m(f**),每一段的平方平均距離都不超過 ε/3。最後那條虛線是最佳逼近:同次數之中,S_m(f) 離 f 至少一樣近。
斜坡、折線、均勻收斂三段各給 ε/3,三角不等式相加得到一個次數不超過 m、離 f 不到 ε 的三角多項式;最佳逼近讓 S_m(f) 至少一樣近,對每個 m ≥ N 都成立。∎
Proof. By the corollary of 38-4, ‖f − Sₙ(f)‖₂² = ‖f‖₂² − πsₙ. By 38.10 the left side tends to 0, so πsₙ → ‖f‖₂²; that is, the series ½a₀² + Σ (aₖ² + bₖ²) has sum (1/π)‖f‖₂².