Let Ω ⊆ ℝᵖ be open and let f : Ω → ℝ be such that f and all its partial derivatives of order at most 2 exist and are continuous on Ω. If c ∈ Ω is a relative minimum point of f, then D²f(c)(w)² ≥ 0 for all w ∈ ℝᵖ. If c ∈ Ω is a relative maximum point of f, then D²f(c)(w)² ≤ 0 for all w ∈ ℝᵖ.
證明計畫 · 由所求想起 所求是二次式在 c 沿單位向量 w 不是負的。 第一步:在 c 周圍取一個小球,球裡的值都不小於 f(c),而且球落在 Ω 裡。 第二步:沿 w 走一小段,用 Taylor 定理展開到二次;一次項因為 c 是臨界點而消失,剩下的二次項必須不是負的,但它是在線段上某個中途點取值。 第三步:讓那一小段縮到零,中途點趨向 c,二階偏導數的連續性把不等式帶到 c。
Proof. Choose δ > 0 so small that the open ball B of radius δ about c lies in Ω and f(x) ≥ f(c) for all x ∈ B. By 39.9, f is differentiable at c, and since c is an interior relative minimum point, 42.2 gives Df(c) = 0.
這一步的所求:一個安全的工作範圍,以及一次項為零。relative minimum 的定義給出一個半徑;Ω open 又給出一個半徑,使球落在 Ω 裡;兩者取小的就是 δ。前提說一階偏導數在 Ω 上存在且連續,39.9 於是保證 f 在 c 可微;c 在 open 的 Ω 裡,是內點,42.2(可微的內點極值點,導數是零)說 Df(c) = 0。
Let 0 < t < δ. The segment from c to c + tw lies in B, so by Taylor's Theorem 40.9 with n = 2 there is τ with 0 < τ < t such that, with c_t = c + τw, f(c + tw) = f(c) + Df(c)(tw) + ½D²f(c_t)(tw)² = f(c) + ½t²D²f(c_t)(w)². Because f(c + tw) ≥ f(c), it follows that D²f(c_t)(w)² ≥ 0.
這張圖在說 42.4 證明第二、三步的中途點:例子是 f(x, y) = x⁴ + y²、c = (0, 0)、w = e₁,三條藍色線段是 t = 1、0.6、0.3 時從 c 到 c + tw 的線段(右端點標成 c + w 的是 t = 1 那條)。紅圈是 Taylor 定理給的中途點 c_t,它被夾在 c 與 c + tw 之間,t 縮小時只能跟著靠向 c——不論 c_t 的確切位置是什麼,這一點都成立。
Since ‖c_t − c‖ = τ < t, we have c_t → c as t → 0. The function x ↦ D²f(x)(w)² = Σᵢ Σⱼ Dᵢⱼ f(x)wᵢwⱼ is continuous on Ω, so D²f(c)(w)² = lim D²f(c_t)(w)² ≥ 0.
這一步的所求:把不等式從中途點搬回 c。c_t 在 c 與 c + tw 之間,離 c 不到 t,所以 t → 0 時 c_t → c。固定 w 之後,x ↦ D²f(x)(w)² 是有限多個連續函數 Dᵢⱼ f 乘上常數 wᵢwⱼ 再相加,由 20.6 是連續的。一列不小於零的數,極限也不小於零。這是前提「二階偏導數連續」用上的地方。
42.4 的結論是 ≥ 0,要反推回極小值,需要更強的假設:二次式在每個非零的 w 上都嚴格大於零。下面的定理正是這樣的部分逆命題,外加一條判斷 saddle point 的準則。
42.5 THEOREM
Let Ω ⊆ ℝᵖ be open, let f : Ω → ℝ be such that f and all its partial derivatives of order at most 2 exist and are continuous on Ω, and let c ∈ Ω be a critical point of f. (a) If D²f(c)(w)² > 0 for every nonzero w ∈ ℝᵖ, then c is a relative strict minimum point of f. (b) If D²f(c)(w)² < 0 for every nonzero w ∈ ℝᵖ, then c is a relative strict maximum point of f. (c) If D²f(c)(w)² is strictly positive for some w ∈ ℝᵖ and strictly negative for some other w ∈ ℝᵖ, then c is a saddle point of f.
二次式 w ↦ D²f(c)(w)² 在每個非零向量上都是正的,叫做 positive definite(正定);都是負的叫 negative definite(負定);正負都取得到叫 indefinite(不定)。三種情形分別給出 relative strict minimum、relative strict maximum 與 saddle point。剩下的情形——二次式不是負的、卻在某個非零向量上等於零(或反過來)——定理什麼都不說。
正例:f(x, y) = x² + xy + y² 在原點。D₁ f = 2x + y、D₂ f = x + 2y 在原點為零;D₁₁ f = D₂₂ f = 2、D₁₂ f = D₂₁ f = 1,D²f(0, 0)(w)² = 2w₁² + 2w₁w₂ + 2w₂² = (w₁ + w₂)² + w₁² + w₂²,非零的 w 都讓它是正的,由 (a) 原點是 relative strict minimum point。反例(針對「每個非零 w」):g(x, y) = x² + y³ 在原點,D²g(0, 0)(w)² = 2w₁²,在 w = e₂ 是零;(a) 不適用,而原點確實不是極小值點:g(0, y) = y³ < 0(y < 0)。
證明計畫 · 由所求想起 (a) 所求是 c 附近除了 c 以外的值都嚴格大於 f(c)。 第一步:二次式在單位球面上有一個正的最小值,因為單位球面是 compact。 第二步:二階偏導數連續,所以在 c 附近一個小球裡,同樣的二次式(改在附近的點取值)在單位向量上至少是那個最小值的一半。 第三步:Taylor 定理展開到二次,餘項在小球裡取值,因此是正的。 (b) 把 (a) 用在 −f 上。 (c) 沿一個讓二次式為正的方向走,函數值變大;沿另一個讓它為負的方向走,函數值變小。
Proof. (a) The set S is bounded, and it is closed, being the intersection of the closed unit ball with the complement of the open unit ball; by Heine–Borel it is compact. The function Q is continuous on ℝᵖ and strictly positive on S, so by 22.6 it attains a minimum value m on S, and m > 0.
這一步的所求:一個正的下界 m,在所有方向上同時有效。「每個方向都是正的」本身不夠:無窮多個方向,正數可以越來越小、逼近零。compact 把「每一個都是正的」升級成「有一個共同的正下界」:S 落在半徑 1 的 closed ball 裡,所以 bounded;它等於 closed ball 去掉 open ball,也就是 closed ball 與 open ball 的 complement 相交,兩者都是 closed(§9-2 例 6 與 §9-1 例 7),交集仍是 closed(9.6)。11.3 Heine–Borel 說它 compact。Q 是 w 的座標的多項式,由 20.6 連續;22.6 讓它在 S 上的某一點 w₀ 取得最小值 m = Q(w₀),而 w₀ ≠ 0,依假設 m > 0。拿正例看:Q(cos θ, sin θ) = 2 + 2 sin θ cos θ = 2 + sin 2θ,m = 1。
這張圖在說 42.5(a) 證明第一、二步,用正例 f(x, y) = x² + xy + y²:藍線是二次式在單位向量 (cos θ, sin θ) 上的值 2 + sin 2θ。單位圓 compact,所以它取得到最小值 m = 1(兩個紅點),整條藍線都在實線之上。第二步要的是:在 c 附近的點 x 改用 D²f(x),這條曲線仍然留在虛線 m/2 之上。(這個 f 的二階偏導數是常數,曲線根本不動;一般情形要靠連續性。)
Since each Dᵢⱼ f is continuous at c, there is δ > 0 such that the open ball B of radius δ about c lies in Ω and |Dᵢⱼ f(x) − Dᵢⱼ f(c)| < m/(2p²) for all x ∈ B and all i, j. For x ∈ B and w ∈ S, each |wᵢ| ≤ 1, so |D²f(x)(w)² − Q(w)| ≤ Σᵢ Σⱼ |Dᵢⱼ f(x) − Dᵢⱼ f(c)| < m/2, and therefore D²f(x)(w)² > m − m/2 = m/2.
這一步的所求:讓下界 m 從 c 擴散到 c 附近的每一點,代價是打個對折。Taylor 展開的餘項在中途點取值,所以只知道 c 的二次式不夠,要知道附近每一點的。p² 個二階偏導數各自在 c 連續,各給一個半徑,加上 Ω open 給的半徑,取最小的就是 δ。兩個二次式之差是 Σᵢ Σⱼ [Dᵢⱼ f(x) − Dᵢⱼ f(c)]wᵢwⱼ;單位向量的每個座標絕對值不超過 1,所以每一項不超過 m/(2p²),p² 項合起來不到 m/2。2p² 的分母就是為了這筆帳預先除好的。
Let 0 < ‖u‖ < δ, and write u = tw with t = ‖u‖ and w ∈ S. The segment from c to c + u lies in B, so by 40.9 with n = 2 there is a point z on that segment with f(c + u) − f(c) = Df(c)(u) + ½D²f(z)(u)² = ½t²D²f(z)(w)². Because z ∈ B, this is greater than ½t²·m/2 > 0. Hence f(x) > f(c) whenever 0 < ‖x − c‖ < δ, and c is a relative strict minimum point.
這一步的所求:附近的值都嚴格大於 f(c)。任何 x 都寫成 c + u,u 再拆成長度 t 乘上方向 w。因為 c 是臨界點,一次項是零;Taylor 定理的中途點 z 在線段上,離 c 不到 δ,所以落在 B 裡,上一步的估計 D²f(z)(w)² > m/2 適用。於是 f(c + u) − f(c) > mt²/4,而 t > 0,差是正的。拿正例看:m = 1,f(u) − f(0) = u₁² + u₁u₂ + u₂² ≥ ‖u‖²/2,確實大於 ‖u‖²/4。
(b) The function −f satisfies the same hypotheses, c is a critical point of −f, and D²(−f)(c)(w)² = −D²f(c)(w)² > 0 for w ≠ 0. By (a), −f(x) > −f(c) for x near c, x ≠ c, which is the claim.
這一步的所求:極大值的情形。函數變號,偏導數全部跟著變號,臨界點不變,negative definite 變成 positive definite;(a) 給出 −f 的嚴格極小值,就是 f 的嚴格極大值。
(c) Let w₊, w₋ be vectors with Q(w₊) > 0 and Q(w₋) < 0. Since x ↦ D²f(x)(w₊)² is continuous at c, there is δ₊ > 0 such that the ball of radius δ₊ about c lies in Ω and D²f(x)(w₊)² > 0 on it. If 0 < t‖w₊‖ < δ₊, then 40.9 gives a point z between c and c + tw₊ with f(c + tw₊) − f(c) = ½t²D²f(z)(w₊)² > 0. In the same way f(c + tw₋) < f(c) for all sufficiently small t > 0.
Every neighborhood of c contains an open ball about c, hence the points c + tw₊ and c + tw₋ for small t > 0. Thus every neighborhood contains points where f exceeds f(c) and points where f is below f(c), so c is a saddle point.
這一步的所求:對照 saddle point 的定義(臨界點,而且每個 neighborhood 都同時有更大與更小的值)。neighborhood 含有一個以 c 為心的 open ball;t 取得比球的半徑除以 ‖w₊‖、‖w₋‖ 都小,也比上一步的門檻小,兩個點就都在球裡,一個值較大、一個較小。