1024 Lagrange Multipliers
1024 Lagrange Multipliers
1024 Lagrange Multipliers
g1 (x, s, t) = x − 1 − s2 = 0
g2 (x, s, t) = 2 − x − t2 = 0
Squaring the new variables insures that these terms are non-negative, thereby
capturing the inequality constraints. The variables s and t are called slack
variables because they take up the slack in the inequalities.
The revised problem is: minimize f (x) = x2 subject to g1 (x, s, t) =
x − 1 − s2 = 0 and g2 (x, s, t) = 2 − x − t2 = 0.
The Lagrange multiplier formulation is: solve
g1 (x, s, t) = x − 1 − s2 = 0
g2 (x, s, t) = 2 − x − t2 = 0
∇f (x) = λ1 ∇g1 (x, s, t) + λ2 ∇g2 (x, s, t)
The gradient operates on the three variables (x, s, t); i.e., ∇ = h∂x , ∂s , ∂t i.
Hence,
∇f = h2x, 0, 0i
∇g1 = h1, −2s, 0i
∇g2 = h−1, 0, −2ti
1
Of course, the minimum occurs at x = 1.
1
Hence, the five Lagrange multiplier equations are
x − 1 − s2 = 0 (1)
2 − x − t2 = 0 (2)
2x = λ1 − λ2 (3)
0 = −2sλ1 (4)
0 = −2tλ2 (5)
Hence, according to equations (1), (2), (4) and (5), just one of the following
is possible:
Case I: x = 1.
Case II: x = 2.
In Case III, equation (3) forces x = (λ1 − λ2 )/2 = 0, violating 1 < x < 2. So
III is impossible.
Which of I and II gives the lower value to f ? Of course, it’s Case I; x = 1
gives f (x) = x2 its minimum value on 1 ≤ x ≤ 2.
Checking points to eliminate impossibilities and to locate the actual ex-
tremum is typical of Lagrange multipliers.