University⏱ 5 min
Lagrange Multipliers
Constrained optimization
○Not Started
Lagrange Multipliers Explained
Constraint
g(x,y) = x/a + y/b − 1 = 0
a1.50
b1.50
Solution
Optimal point(0.750, 0.750)
f(x*,y*)1.1250
λ2.2500
∇f = λ · ∇g
Gradients are parallel at the optimum
💡 Geometric intuition
The optimum occurs where a contour of f is tangent to the constraint g. At that point ∇f and ∇g are parallel – if they weren't, we could move along the constraint and improve f.