Minimize f(x) subject to g(x)=0. Form the Lagrangian:
L(x,λ)=f(x)−λg(x)
Stationarity requires:
∇xL=∇f−λ∇g=0⟹∇f=λ∇g
The objective's gradient must be parallel to the constraint's gradient; λ is the exchange rate between them. For inequality constraints g(x)≤0, the KKT conditions add:
λ≥0,λg(x)=0(complementary slackness)
The key theorem — the envelope theorem — gives λ its universal meaning. If p⋆(c) is the optimal value when the constraint is g(x)=c, then:
λ=∂c∂p⋆
The multiplier is the marginal value of the constraint. Every field below is a reading of this one equation. Duality is then the statement that solving the "prices problem" (maxλminxL) recovers the same optimum as the "primal" (minxmaxλL)—equal under convexity (strong duality).
Here λ is purely geometric: the level set of f must be tangent to the constraint surface at the optimum, else you could slide along the constraint and improve.
An investor maximizes utility/return subject to a budget or risk constraint. The multiplier is the shadow price: the marginal return per extra dollar of budget or unit of risk.
Physics → ML intuition: A support vector is a bead on a wire. The margin is a taut string; the SVM weights αi are literally the tensions holding the boundary in equilibrium. If a support vector "pushes harder," the boundary moves—just as a stiffer constraint force reshapes a mechanical system.
Economics → optimization intuition: The multiplier is a price you'd pay to loosen a rule. If λ=0, the constraint is free (non-binding, slack). This makes complementary slackness obvious: you only pay for what binds.
Duality as a computational gift: The primal SVM has as many variables as features; the dual has as many as data points—and only the kernel appears. Choosing which side to solve is choosing which "price space" is smaller. Same trick reprices portfolios and solves mechanics.
The transferable slogan:Every hard constraint is a soft penalty at the right price. Find the price (λ), and constrained problems become unconstrained ones.