Lagrange multipliers theorem

A necessary first-order condition for constrained extrema under a regularity hypothesis
Lagrange multipliers theorem

Lagrange multipliers theorem: Let URnU\subseteq\mathbb{R}^n be open, let f:URf:U\to\mathbb{R} and g:URmg:U\to\mathbb{R}^m be C1C^1, and define the C={xU:g(x)=0}. C=\{x\in U: g(x)=0\}. Suppose xCx^\ast\in C is a of ff restricted to CC, and assume the constraint is at xx^\ast: rankDg(x)=m. \operatorname{rank} Dg(x^\ast)=m. Then there exists λRm\lambda\in\mathbb{R}^m such that f(x)=Dg(x)Tλ. \nabla f(x^\ast)=Dg(x^\ast)^{\mathsf T}\lambda.

This theorem explains the “ is normal to the constraint” principle and is a core technique in constrained optimization and geometry. See also .

Proof sketch: By the and the rank hypothesis, the constraint set CC is locally a smooth (nm)(n-m)-dimensional graph. Restrict ff to that local parameterization to obtain an unconstrained function of nmn-m variables; at an interior extremum its vanishes. Translating that condition back to the original coordinates yields the existence of λ\lambda with the stated relation.