functions: sin, cos, sqrt, abs, log, exp · power: ^ · constants: pi, e
Lagrange Multipliers
probe position
(x, y)—
f(x, y)—
g(x, y)—
∇f—
∇g—
arrows lined up?
—
Drag the probe along the gold curve. Watch the two arrows — when they line up (cos ≈ ±1), you're at an optimum.
level curves of f (soft blue)
constraint g = c (gold)
∇f at probe (blue arrow)
∇g at probe (gold arrow)
probe · drag me along the curve
Drag the probe along the gold constraint curve. Watch for the moment the two arrows align — that's the optimum.