本篇用到 §27-1 的 27.1(導數;定義只要求 c 是定義域的 cluster point,所以閉區間的端點也有導數,只是差商只能從一側取)、§27-3 的 27.6 均值定理(f 在 [a, b] 上連續、在 (a, b) 內可微時,f(b) − f(a) = f′(c)(b − a) 對某個 c ∈ (a, b) 成立)、§30-6 的 30.10 分部積分(兩個函數在 [a, b] 上可微、導數連續時,∫ FG′ = F(b)G(b) − F(a)G(a) − ∫ F′G),以及 §30-5 的 30.8 微積分基本定理。三角函數的性質沿用 §38-2 開頭的借用清單。
DEFINITION · PIECEWISE CONTINUOUS DERIVATIVE
Let f: ℝ → ℝ be continuous with period 2π. We write f′ ∈ PC(2π), and say that f has a piecewise continuous derivative, if there is φ ∈ PC(2π) such that every bounded interval contains only finitely many points outside of which f is differentiable with f′(x) = φ(x). The Fourier coefficients Aₙ, Bₙ of φ are then called the Fourier coefficients of f′.
LEMMA · ONE-SIDED SLOPES OF A PIECEWISE SMOOTH FUNCTION
Let f be continuous with period 2π and f′ ∈ PC(2π), with φ as in the definition. Call x exceptional if f is not differentiable at x, or f′(x) ≠ φ(x), or φ is discontinuous at x. (a) For every real c, the quotient (f(c + h) − f(c))/h tends to φ(c+) as h → 0 through positive values and to φ(c−) as h → 0 through negative values. (b) If α < β and (α, β) contains no exceptional point, then the restriction of f to [α, β] is differentiable at every point of [α, β], its derivative is continuous on [α, β], and it agrees with φ on (α, β).
證明計畫 · 由所求想起 所求是右側差商的極限。 第一步:在 c 右邊找一小段完全沒有例外點的區間,在那一段裡用均值定理,把差商換成 φ 在 c 與 c + h 之間某一點的值。 第二步:那一點被夾著趨向 c,所以它的 φ 值趨向右極限 φ(c+)。 第三步:(b) 是把 (a) 用在一段區間的兩個端點上。
Proof. (a) Fix c. Since [c, c + 1] contains only finitely many exceptional points, there is h₀ > 0 such that (c, c + h₀) contains none. Let 0 < h < h₀. Then f is continuous on [c, c + h] and differentiable on (c, c + h) with f′ = φ there, so by 27.6 there is ξ_h ∈ (c, c + h) with (f(c + h) − f(c))/h = φ(ξ_h).
這一步的所求:把一個差商換成 φ 的一個值。h₀ 的取法:[c, c + 1] 裡的例外點有限,若 c 右邊(在 c + 1 之前)有例外點,就取 h₀ 為最近那一個與 c 的距離,否則取 h₀ = 1——c 本身是不是例外點無關緊要,因為區間 (c, c + h₀) 不含 c。在 [c, c + h] 上,§27-3 的 27.6 均值定理的兩個前提都成立:連續來自 f 處處連續,可微來自區間內沒有例外點。拿 f = v、c = 0 走一次:h₀ = 1,對每個 0 < h < 1,差商是 1,中間點隨便取都有 φ(ξ_h) = u(ξ_h) = 1。
Let ε > 0. Because φ(c+) exists, there is δ > 0 with |φ(x) − φ(c+)| < ε whenever c < x < c + δ. If 0 < h < min{h₀, δ}, then c < ξ_h < c + δ, and therefore |(f(c + h) − f(c))/h − φ(c+)| = |φ(ξ_h) − φ(c+)| < ε.
這一步的所求:讓 φ(ξ_h) 的去向接上 φ(c+)。關鍵是 ξ_h 被夾在 c 與 c + h 之間,而且總在 c 的右側,所以 h 一小,它就落進右極限的定義所給的那一段 (c, c + δ)。我們不知道 ξ_h 確切在哪,也不需要知道——只要知道它在哪一段裡。左側時 ξ_h 落在 c 的左側,接上的就是 φ(c−)。
這張圖在證 (a):一個在 c 折角的連續函數,從 (c, f(c)) 往右畫的割線(紅色虛線)斜率就是右側差商。均值定理在 c 與 c + h 之間找到一點,那裡的切線與割線平行;h 縮小時那一點被擠向 c,切線斜率跟著趨向右側的極限斜率 φ(c+)。
(b) For x ∈ (α, β), x is not exceptional, so f′(x) = φ(x), and restricting the domain to [α, β] does not affect the limit of the difference quotient at an interior point. At α the difference quotient of the restriction only uses h > 0, so by (a) the derivative there exists and equals φ(α+); likewise the derivative at β is φ(β−). Since φ is continuous on (α, β) and tends to φ(α+) and φ(β−) at the ends, this derivative is continuous on [α, β].
如果 Fourier 級數可以逐項求導,aₙ cos nx 的導數是 −naₙ sin nx,bₙ sin nx 的導數是 nbₙ cos nx——導數的 cos 係數應該是 nbₙ、sin 係數應該是 −naₙ。我們還不知道級數能不能逐項求導,甚至不知道它收不收斂。可是係數之間的這個關係,用不著級數就能直接證:它只是分部積分。
THEOREM · FOURIER COEFFICIENTS OF THE DERIVATIVE
Let f be continuous with period 2π and f′ ∈ PC(2π); let aₙ, bₙ be the Fourier coefficients of f and Aₙ, Bₙ those of f′. Then A₀ = 0, and Aₙ = nbₙ, Bₙ = −naₙ for every n ≥ 1.
證明計畫 · 由所求想起 所求是把 φ 的係數積分換成 f 的係數積分。 第一步:在每一段 [x_{i−1}, xᵢ] 上,f 的導數連續,分部積分可用,每一段都換出一個邊界項加上 f 的積分。 第二步:把各段加起來——因為 f 連續,相鄰兩段的邊界項逐一對消,最後只剩兩端,而兩端因為週期相同而抵銷。 第三步:sin 係數與 n = 0 同理。
Proof. By the lemma, part (b), the restriction of f to [x_{i−1}, xᵢ] has a continuous derivative ψᵢ that equals φ on the open interval. Applying 30.10 to cos nt and f on this interval, and replacing ψᵢ by φ at the two end points by means of the finite-change lemma of 30-3, we get ∫_{x_{i−1}}^{xᵢ} φ(t) cos nt dt = [f(t) cos nt]_{x_{i−1}}^{xᵢ} + n∫_{x_{i−1}}^{xᵢ} f(t) sin nt dt.
這一步的所求:每一段上把「φ 乘 cos」換成「f 乘 sin」。§30-6 的 30.10 需要兩個函數在閉區間上都有連續的導數:cos nt 顯然有;f 在這一段上有,靠的是剛證的引理 (b),這正是先排好例外點的理由。代入 ∫ (cos nt) f′ = [f cos nt] − ∫ (−n sin nt) f,負負得正。最後把導數 ψᵢ 換回 φ:兩者只在兩個端點上可能不同,§30-3 的引理說積分不變。拿 f = v、n = 1 在 [0, π] 上對一次:左邊 ∫₀^π cos t dt = 0;右邊 [t cos t]₀^π + ∫₀^π t sin t dt = −π + π = 0。
Summing over i = 1, …, m and using 29.6(a), the boundary terms telescope because f is continuous at each xᵢ: Σ [f(t) cos nt]_{x_{i−1}}^{xᵢ} = f(π) cos nπ − f(−π) cos(−nπ) = 0, since f(π) = f(−π) and cos is even. Hence ∫ φ(t) cos nt dt = n∫ f(t) sin nt dt, and dividing by π gives Aₙ = nbₙ.
這一步的所求:讓所有邊界項消失。第 i 段的邊界項是 f(xᵢ) cos nxᵢ − f(x_{i−1}) cos nx_{i−1},第 i + 1 段的是 f(x_{i+1}) cos nx_{i+1} − f(xᵢ) cos nxᵢ。兩者共用的 f(xᵢ) cos nxᵢ 一正一負對消——這裡用的是 f 在 xᵢ 只有一個值,也就是 f 連續;若 f 在 xᵢ 跳躍,兩段各自用的是左極限與右極限,就消不掉了。一路消下去只剩頭尾兩項,週期讓 f(π) = f(−π),cos 的偶性讓 cos nπ = cos(−nπ),頭尾也相消。右邊的積分由 29.6(a) 併成整段。
In the same way, applying 30.10 to sin nt and f on each piece gives ∫ φ(t) sin nt dt = −n∫ f(t) cos nt dt, the boundary terms now being f(xᵢ) sin nxᵢ, which telescope to f(π) sin nπ − f(−π) sin(−nπ) = 0; so Bₙ = −naₙ. Finally, by 30.8 the integral of ψᵢ over [x_{i−1}, xᵢ] is f(xᵢ) − f(x_{i−1}); these telescope to f(π) − f(−π) = 0, so A₀ = 0.
這一步的所求:另外兩條關係,走同一條路。sin 的情形,分部積分換出來的是 −n∫ f cos nt(sin nt 的導數是 n cos nt,帶一個負號移過去),邊界項 f(xᵢ) sin nxᵢ 同樣逐段對消,頭尾兩項本身就是零。n = 0 時不必分部積分:§30-5 的 30.8 直接給每一段上 ψᵢ 的積分是 f 的兩端之差,加起來對消成 f(π) − f(−π),由週期為零。例行核對。
例外點把一個週期切成有限多段,每段上 f 的導數連續,分部積分把 φ 的係數換成 n 乘 f 的係數;f 連續讓邊界項逐段對消,週期讓頭尾抵銷。∎