Tutorials › Real Analysis › Proof of Lagrange Multipliers

Multivariable Analysis · Tutorial 812 of 1000

Proof of Lagrange Multipliers

Follow the proof from vanishing change along feasible directions to the multiplier equation, and see when the multipliers are uniquely determined.

Advanced 9 min read

What You'll Learn

  • Trace how the constrained Fermat condition leads to the multiplier equation
  • Use the tangent space and normal space of a regular level set in the proof
  • Explain why the rank condition is essential to the theorem
  • Prove that multipliers are unique when the constraint derivative has full rank
  • Solve and check multiplier equations for single and multiple constraints

The Proof as a Chain of Geometric and Linear-Algebraic Steps

The Lagrange Multipliers tutorial stated a necessary condition for a constrained local extremum. This tutorial proves that condition by making each step explicit. At a regular point of a level set, feasible curves have velocities in the kernel of the constraint derivative. At a constrained extremum, the objective has zero first-order change along every such velocity. The objective gradient must therefore lie in the normal space to the level set, which is the image of the transpose of the constraint derivative.

The proof uses the Tangent Space to a Regular Level Set Theorem, the Normal Space to a Regular Level Set Theorem, the Constrained Fermat Condition, and the Gradient Representation of the Derivative. These results supply the geometric and differential steps; the central task is to connect them carefully and interpret the resulting linear-algebra statement.

The Main Proof

Let \(F:U\to\mathbb{R}^k\) define the constraints \(F(x)=c\), and write \(M=F^{-1}(\{c\})\). At a feasible point \(a\), the condition that \(DF(a)\) has rank \(k\) says that the constraints are regular there. In particular, the level-set theorems apply at \(a\). The tangent space is \(\ker DF(a)\), and the normal space is its orthogonal complement, \(\operatorname{im}DF(a)^T\).

Theorem (Lagrange Multipliers): Let \(F:U\to\mathbb{R}^k\) be continuously differentiable on an open set \(U\subseteq\mathbb{R}^n\), and suppose \(a\in U\) satisfies \(F(a)=c\). Suppose \(DF(a)\) has rank \(k\), and let \(f:U\to\mathbb{R}\) be differentiable at \(a\). If \(a\) is a constrained local extremum of \(f\) on \(M=F^{-1}(\{c\})\), then there is \(\lambda\in\mathbb{R}^k\) such that $$ \nabla f(a)=DF(a)^T\lambda. $$

Proof. Since \(a\) is a constrained local extremum and \(F\) is continuously differentiable with \(DF(a)\) of rank \(k\), the Constrained Fermat Condition and the Tangent Space to a Regular Level Set Theorem give $$ Df(a)v=0 \qquad\text{for every }v\in\ker DF(a). $$ The Gradient Representation of the Derivative says \(Df(a)v=\nabla f(a)\cdot v\). Thus \(\nabla f(a)\) is orthogonal to every vector in \(\ker DF(a)\), so $$ \nabla f(a)\in(\ker DF(a))^\perp. $$ By the Normal Space to a Regular Level Set Theorem, $$ (\ker DF(a))^\perp=\operatorname{im}DF(a)^T. $$ Membership in this image means that there is a vector \(\lambda\in\mathbb{R}^k\) with \(\nabla f(a)=DF(a)^T\lambda\), as required. \(\square\)

Each hypothesis has a role. The constrained extremum and differentiability of \(f\) give vanishing first-order change along feasible directions. The regularity condition lets us identify those directions with the full kernel of \(DF(a)\) and use the stated normal-space description. Without regularity, the multiplier conclusion need not follow.

Reading the Matrix Equation

Write the component functions of \(F\) as \(F_1,\ldots,F_k\). The rows of \(DF(a)\) are the transposes of their gradients, so the matrix equation is equivalent to $$ \nabla f(a)=\lambda_1\nabla F_1(a)+\cdots+\lambda_k\nabla F_k(a). $$ Thus the objective gradient is a linear combination of the constraint gradients. The multipliers are the coefficients in this combination, and their order corresponds to the order in which the constraints are listed.

For one constraint \(g(x)=c\), the equation reduces to \(\nabla f(a)=\lambda\nabla g(a)\). For several constraints, the transpose in \(DF(a)^T\) matters: \(DF(a)\) maps directions in \(\mathbb{R}^n\) to changes in the \(k\) constraint values, while \(DF(a)^T\) maps coefficient vectors in \(\mathbb{R}^k\) back to combinations of the constraint gradients in \(\mathbb{R}^n\).

When Are the Multipliers Unique?

The theorem guarantees at least one multiplier. Full rank gives more: when the number of constraints is \(k\) and \(DF(a)\) has rank \(k\), the multipliers are unique. This conclusion concerns the coefficients in the gradient equation; it does not claim that the constrained extremum itself is unique.

Theorem (Uniqueness of Lagrange Multipliers at a Regular Point): If \(DF(a)\) has rank \(k\), there is at most one \(\lambda\in\mathbb{R}^k\) satisfying \(\nabla f(a)=DF(a)^T\lambda\).

Proof. Suppose \(\lambda\) and \(\mu\) both satisfy the equation. Subtracting gives $$ DF(a)^T(\lambda-\mu)=0. $$ The rows of \(DF(a)\) are linearly independent because its rank is \(k\). The equation above says that the linear combination of those rows with coefficients \(\lambda_1-\mu_1,\ldots,\lambda_k-\mu_k\) is zero. Linear independence forces every coefficient to be zero. Hence \(\lambda=\mu\). \(\square\)

This proof also identifies the exact algebraic reason for uniqueness. It is not a general property of multiplier equations at singular points: if the constraint gradients are dependent, different coefficient vectors can represent the same gradient. Regularity prevents that dependence.

Worked Examples

Worked Example: Minimum Distance to a Plane

Find the constrained stationary point of \(f(x,y,z)=x^2+y^2+z^2\) subject to \(g(x,y,z)=x+2y+2z=5\). The constraint gradient is \(\nabla g=(1,2,2)\), which is nonzero everywhere, so the constraint is regular. The multiplier equation is $$ (2x,2y,2z)=\lambda(1,2,2),\qquad x+2y+2z=5. $$

The first three equations give \(x=\lambda/2\), \(y=\lambda\), and \(z=\lambda\). Substitution into the constraint gives $$ \frac{\lambda}{2}+2\lambda+2\lambda=\frac{9\lambda}{2}=5, $$ so \(\lambda=10/9\). The resulting point is \((5/9,10/9,10/9)\). Checking the equation directly, its objective gradient is \((10/9,20/9,20/9)\), which equals \((10/9)(1,2,2)\), and its constraint value is \(5/9+20/9+20/9=5\).

The equations give a candidate; here we can also verify it is a minimum. Every feasible point has the form \((x,y,z)\) with \(x+2y+2z=5\). The multiplier point \(a=(5/9,10/9,10/9)\) satisfies \(a=(5/9)(1,2,2)\). For any feasible \(q\), \(q-a\) is orthogonal to \((1,2,2)\), since both \(q\) and \(a\) have constraint value \(5\). Therefore \(a\cdot(q-a)=0\), and $$ \|q\|_2^2=\|a+(q-a)\|_2^2 =\|a\|_2^2+\|q-a\|_2^2\geq \|a\|_2^2. $$ Equality holds only when \(q=a\). Finally, \(\|a\|_2^2=25/81+100/81+100/81=25/9\), so this point is the unique constrained minimum.

Worked Example: A Linear Objective on an Ellipse

Find the constrained stationary points of \(f(x,y)=x+y\) subject to \(g(x,y)=x^2+3y^2=12\). The gradient \((2x,6y)\) of the constraint is nonzero on the ellipse: if both coordinates were zero, the constraint value would be \(0\), not \(12\). The multiplier equations are $$ (1,1)=\lambda(2x,6y),\qquad x^2+3y^2=12. $$

The equations \(1=2\lambda x\) and \(1=6\lambda y\) imply \(\lambda\neq0\) and \(y=x/3\). Substituting into the constraint gives $$ x^2+3\left(\frac{x}{3}\right)^2=\frac{4x^2}{3}=12, $$ so \(x^2=9\). Thus the candidates are \((3,1)\) and \((-3,-1)\). At the first point, \(\lambda=1/6\), and \((1,1)=(1/6)(6,6)\). At the second, \(\lambda=-1/6\), and \((1,1)=(-1/6)(-6,-6)\). Both points satisfy the constraint, and their objective values are \(4\) and \(-4\), respectively.

To check the classification, set \(X=x\) and \(Y=\sqrt{3}y\). The constraint becomes \(X^2+Y^2=12\), and the objective is \(X+Y/\sqrt{3}\). The Cauchy–Schwarz inequality gives $$ \left|X+\frac{Y}{\sqrt{3}}\right| \leq \sqrt{X^2+Y^2}\sqrt{1+\frac{1}{3}} =\sqrt{12}\sqrt{\frac{4}{3}}=4. $$ Equality occurs when \((X,Y)\) is a scalar multiple of \((1,1/\sqrt{3})\). On the circle \(X^2+Y^2=12\), these points are \((3,\sqrt{3})\) and \((-3,-\sqrt{3})\), corresponding to \((x,y)=(3,1)\) and \((-3,-1)\). Thus the candidates are the maximum and minimum.

Worked Example: Two Constraints and a Unique Multiplier Pair

Minimize \(f(x,y,z)=x^2+y^2+z^2\) subject to \(F_1(x,y,z)=x+y=1\) and \(F_2(x,y,z)=y+z=2\). The derivative matrix has rows \((1,1,0)\) and \((0,1,1)\), which are independent, so the constraints are regular. The multiplier equations are $$ (2x,2y,2z)=\lambda(1,1,0)+\mu(0,1,1), \qquad x+y=1,\quad y+z=2. $$

The first and third coordinates give \(2x=\lambda\) and \(2z=\mu\); the middle gives \(2y=\lambda+\mu\). The constraints express \(x=1-y\) and \(z=2-y\). Substituting these into the objective yields $$ f(1-y,y,2-y)=(1-y)^2+y^2+(2-y)^2=3y^2-6y+5 =3(y-1)^2+2. $$ Hence the unique minimum occurs at \(y=1\), giving \((x,y,z)=(0,1,1)\). At this point, the multiplier equations require \(\lambda=0\) and \(\mu=2\); the middle equation checks as \(2=0+2\). The uniqueness theorem also guarantees that no other multiplier pair can represent this gradient.

What the Proof Does—and Does Not—Establish

The proof is a necessary-condition argument. It shows that a constrained local extremum at a regular point must satisfy the multiplier equations. It does not show that every solution of those equations is an extremum, or that an extremum must be global. To classify candidates, one needs additional information, such as a direct comparison on the constraint set or a suitable second-order test.

The rank condition must also be checked at the point being studied. For example, if the single constraint is \(g(x,y)=x^2+y^2=0\), the feasible set consists only of the origin, and \(f(x,y)=x\) has both a constrained maximum and a constrained minimum there. But \(\nabla f(0,0)=(1,0)\) while \(\nabla g(0,0)=(0,0)\), so the multiplier equation cannot hold. The constraint derivative has rank zero at the origin, and the Lagrange Multiplier Theorem does not apply. This example shows why regularity is a genuine hypothesis, not a formality.

A reliable proof and application follow the same order: identify the feasible level set, verify the rank condition, use tangent directions to obtain vanishing first-order change, and then use the normal-space description to obtain the multiplier equation. Only after solving those equations should one decide whether the candidates are actually extrema.

1
Identify feasible tangent directions.
At a regular point, the Tangent Space to a Regular Level Set Theorem gives \(T_aM=\ker DF(a)\).
2
Apply the constrained extremum condition.
The Constrained Fermat Condition makes \(Df(a)v=0\) for each tangent vector \(v\).
3
Convert to a normal-space statement.
The gradient is perpendicular to the tangent space, hence lies in \((\ker DF(a))^\perp\).
4
Express the normal vector using constraint gradients.
The Normal Space to a Regular Level Set Theorem identifies that normal space with \(\operatorname{im}DF(a)^T\), yielding the multipliers.

Check Your Understanding

Use the proof and examples to answer the following questions.

  1. Which theorem identifies the tangent space of a regular level set with the kernel of its derivative?
  2. Why does vanishing of \(Df(a)v\) for every tangent vector imply that \(\nabla f(a)\) belongs to the normal space?
  3. What does the full-rank condition imply about the uniqueness of the multiplier vector?
  4. In the plane example, why is the multiplier point the unique minimum rather than merely a stationary candidate?
  5. What role does the transpose of the constraint derivative play in the multiplier equation?
  6. Why can the multiplier conclusion fail when the constraint derivative is not full rank?