LESSON 2.35 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Constrained optimization and Lagrange multipliers
Watch a constraint move the lowest point, and a number λ price it.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 2.35 · CONSTRAINT BAYm = (1.5, 1) · F = 0 · ∇F = (0, 0)
01
Stage 1 of 6 · Free minimum
With no limits, gradient descent walks to m = (1.5, 1). There ∇f = 0 and f = 0.
Explain it simply
The map shows f, a long bowl. Each gray line joins points with the same f. With no rules on x and y, gradient descent rolls downhill along the teal trail to m, the bottom. Any point is allowed, so this is unconstrained optimization.
A contour map of f(x, y) = (x − 1.5)² + 2(y − 1)². A gradient descent trail starts at (−0.5, −0.5) and ends at m = (1.5, 1). The chart shows f falling to 0 step by step.
inputs x, y and their pathsconstraint g, budget c, ∇g and λvalues of f and the minimum∇f and slopes of fcontour lines
Toy: f(x, y) on a 6 × 6 map · one constraint g ≤ c
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
With no constraint, the minimum is where the gradient is zero.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.