Let Ω ⊆ ℝᵖ be open, let f, h₁, …, h_k : Ω → ℝ belong to C¹(Ω), and let c ∈ Ω satisfy h₁(c) ≥ 0, …, h_k(c) ≥ 0. Suppose there is a neighborhood U ⊆ Ω of c such that either f(x) ≤ f(c) for all x ∈ U with h₁(x) ≥ 0, …, h_k(x) ≥ 0, or f(x) ≥ f(c) for all such x. Then there exist real numbers μ, λ₁, …, λ_k, not all 0, with μ∇f(c) = λ₁∇h₁(c) + ⋯ + λ_k∇h_k(c), and they can be chosen so that λᵢ = 0 for every i with hᵢ(c) > 0.
不起作用的約束在 c 附近根本沒有限制,乘數取為零,它從等式裡消失。只剩起作用的約束時,結論與 42.9 的形式相同。所有約束都不起作用(c 在區域內部)時,等式只剩 μ∇f(c) = 0,而 μ 必不為零,於是 ∇f(c) = 0:內部的極值點是臨界點,與 42.2 一致。等式約束 g = 0 可以寫成兩個不等式 g ≥ 0、−g ≥ 0,所以這個定理也涵蓋混合的情形。
證明計畫 · 由所求想起 所求是一組不全為零的乘數,不起作用的那些為零。 第一步:縮小到 c 周圍一個小球,在球裡不起作用的約束自動成立,可以丟掉。 第二步:把 f 與起作用的約束並排成一個 C¹ 函數。 第三步:它在 c 的導數不映成——否則滿射映射定理在 c 附近找得到一個所有約束都成立、函數值更大的點。 第四步:法向量引理給出乘數,不起作用的約束補上零。
Proof. Each hᵢ with i > r is continuous and positive at c, so there is ρ > 0 such that the open ball B of radius ρ about c lies in U and hᵢ(x) > 0 for all x ∈ B and all i > r. Thus a point x ∈ B satisfies all k constraints as soon as h₁(x) ≥ 0, …, h_r(x) ≥ 0.
這一步的所求:讓不起作用的約束退場。每個 hᵢ(i > r)在 c 是正的,由連續性在 c 周圍某個小球裡保持為正;有限多個半徑,再加上 U 給的半徑,取最小的就是 ρ。在這個球裡,不起作用的約束不管怎樣都成立,可行與否只看起作用的那 r 個。拿正例的 f₂ = x² + y² 看:c = (0, 0)、h(c) = 1 > 0,r = 0,半徑 1 的球裡每一點都可行。
Define F : Ω → ℝ^{r+1} by F(x) = (f(x), h₁(x), …, h_r(x)); as in 42.9, F ∈ C¹(Ω), and F(c) = (f(c), 0, …, 0).
這一步的所求:並排的函數。理由與 42.9 第一步相同:座標引理給出可微與逐座標的導數,41.2 給出 C¹。起作用的約束在 c 的值都是零,所以 F(c) 後面 r 個座標是零。r = 0 時 F 就是 f,值在 ℝ¹。
Suppose DF(c) maps ℝᵖ onto ℝ^{r+1}, and let m, α be as in 41.6. For 0 < s < min{α, ρ}/(2m) there is x ∈ Ω with F(x) = (f(c) + s, 0, …, 0) and ‖x − c‖ ≤ 2ms < ρ. Then x ∈ B and h₁(x) = ⋯ = h_r(x) = 0, so x satisfies all the constraints, while f(x) = f(c) + s > f(c); this is impossible. Hence DF(c) is not onto.
這一步的所求:DF(c) 不映成,走反證。和 42.9 的差別只在可行點的樣子:這裡可行點不必讓 h₁, …, h_r 等於零,只要不是負的。反證時找到的 x 讓它們恰好等於零,當然不是負的,而不起作用的約束在球 B 裡自動成立,所以 x 是可行點,函數值卻比 f(c) 大,與前提矛盾。
By the lemma there are μ, ν₁, …, ν_r, not all 0, with μDf(c)(v) + ν₁Dh₁(c)(v) + ⋯ + ν_rDh_r(c)(v) = 0 for every v. Put λᵢ = −νᵢ for i ≤ r and λᵢ = 0 for i > r. As in 42.9, the gradient corollary gives μ∇f(c) = λ₁∇h₁(c) + ⋯ + λ_k∇h_k(c), and μ, λ₁, …, λ_k are not all 0.
In addition to the hypotheses of 42.12, suppose that the gradients ∇hᵢ(c) with hᵢ(c) = 0 are linearly independent. Then the multipliers of 42.12 can be taken with μ = 1: ∇f(c) = λ₁∇h₁(c) + ⋯ + λ_k∇h_k(c) with λᵢ = 0 whenever hᵢ(c) > 0. If f(x) ≤ f(c) for every x ∈ U satisfying the constraints, then every λᵢ ≤ 0; if f(x) ≥ f(c) for every such x, then every λᵢ ≥ 0.
證明計畫 · 由所求想起 所求有兩件:μ 可取為 1;以及在極大值點,每個乘數都不是正的。 第一步:μ ≠ 0,論證與 42.10 相同。 第二步:起作用的約束並排成一個函數,它在 c 的導數映成。 第三步:固定一個起作用的約束,用滿射映射定理找一列可行點:那個約束取一個小的正值,其他起作用的約束都是零。 第四步:在這些點上比較 f 與 f(c),用可微的誤差估計展開,讀出那個乘數的正負號。
Proof. Take μ, λ₁, …, λ_k as in 42.12, with λᵢ = 0 for i > r. If μ = 0, then λ₁∇h₁(c) + ⋯ + λ_r∇h_r(c) = 0 with (λ₁, …, λ_r) ≠ 0, contradicting the independence. Hence μ ≠ 0, and after dividing by μ we have ∇f(c) = λ₁∇h₁(c) + ⋯ + λ_r∇h_r(c).
If r = 0 there is nothing more to prove. Otherwise let H = (h₁, …, h_r) : Ω → ℝʳ; then H ∈ C¹(Ω) and H(c) = 0. If DH(c) were not onto ℝʳ, the lemma would give n ≠ 0 in ℝʳ with Σᵢ nᵢDhᵢ(c)(v) = 0 for all v, hence Σᵢ nᵢ∇hᵢ(c) = 0, again contradicting the independence. So DH(c) is onto; let m, α be the numbers that 41.6 provides for H at c.
這一步的所求:一個能精確控制每個起作用約束的值的工具。把起作用的約束並排成 H,它是 C¹ 的(理由同 42.9)。導數映成,正是「起作用梯度線性獨立」換個說法:不映成會給出一個法向量 n,經梯度推論換成 Σ nᵢ∇hᵢ(c) 與每個 v 正交,於是它是零向量,又是一個非平凡的線性關係。映成之後,41.6 就能在 c 附近找到 H 取指定值的點。
Fix j ≤ r and ε > 0. By 39.2 there is δ > 0 such that ‖x − c‖ < δ implies |R₀(x)| ≤ ε‖x − c‖ and |Rᵢ(x)| ≤ ε‖x − c‖ for i ≤ r, where R₀(x) = f(x) − f(c) − Df(c)(x − c) and Rᵢ(x) = hᵢ(x) − hᵢ(c) − Dhᵢ(c)(x − c). Let 0 < s < min{α, ρ, δ}/(2m). By 41.6 there is x_s ∈ Ω with H(x_s) = s·eⱼ and ‖x_s − c‖ ≤ 2ms. Then x_s ∈ B, hⱼ(x_s) = s > 0, hᵢ(x_s) = 0 for the other i ≤ r, and hᵢ(x_s) > 0 for i > r; so x_s satisfies the constraints and f(x_s) ≤ f(c).
Since Df(c) = Σᵢ λᵢDhᵢ(c) (sum over i ≤ r) and Dhᵢ(c)(x_s − c) = hᵢ(x_s) − Rᵢ(x_s), we get f(x_s) − f(c) = Σᵢ λᵢ[hᵢ(x_s) − Rᵢ(x_s)] + R₀(x_s) = λⱼs − Σᵢ λᵢRᵢ(x_s) + R₀(x_s). The error terms are at most ε‖x_s − c‖ ≤ 2mεs in absolute value, so with Λ = |λ₁| + ⋯ + |λ_r| + 1, 0 ≥ f(x_s) − f(c) ≥ λⱼs − 2mεΛs. Dividing by s gives λⱼ ≤ 2mεΛ. Because ε > 0 was arbitrary and m, Λ do not depend on ε, λⱼ ≤ 0.