Lagrange Multipliers

The method of Lagrange multipliers finds the candidates for a maximum of over subject to equality constraints , with . The vector holds parameters that the optimizer takes as given.

The Lagrange multiplier theorem gives a necessary condition. Let be a local solution. Assume and every are continuously differentiable near . Assume also that the Jacobian of the constraints, with in row and column , has maximal rank . Then there are numbers , the Lagrange multipliers, such that is a critical point of the Lagrangian

The first-order conditions are

They are equations in the unknowns . The parameters are not chosen, so there is no first-order condition for them. A constraint written as enters the Lagrangian as . With and , dividing the two conditions for and gives the tangency condition

For and , the bordered Hessian is the Hessian of in the variables :

At a point that satisfies the first-order conditions, is sufficient for a strict local constrained maximum, and for a strict local constrained minimum. The multiplier of a constraint is the rate at which the optimal value changes with the constant, . The proof is in 7.3 Envelope Theorem. Inequality constraints are treated in 4.2. Lagrangian Duality.

Critical Point of the Lagrangian

The lecture states that maximizes the Lagrangian, and it writes the sum as starting from . The sum starts at . The precise statement is that every partial derivative of is zero at . For subject to , the solution is with . The Lagrangian has Hessian in , so is a saddle point of and not its maximum.

Intuition

A constraint restricts the choice to a curve or a surface. When the constraint can be solved for one variable, substitution turns the problem into an unconstrained one. For example, subject to becomes over alone. Many constraints cannot be solved this way. The constraint has no closed-form solution for , so substitution fails for subject to it.

A graph shows what a solution looks like. Take subject to . The level curves are hyperbolas, and a larger lies further from the origin. A level curve that crosses the circle, such as , cannot be optimal. Moving along the circle between the two crossing points reaches higher level curves. A level curve that misses the circle, such as , is out of reach. The best feasible level curve, , touches the circle at without crossing it. By symmetry is also a maximum. At the touching point the two curves have the same slope. The Lagrange conditions state this tangency with derivatives.

\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=3.4cm,y=3.4cm,>=latex]
\draw[->] (0,0) -- (1.75,0) node[right] {$x$};
\draw[->] (0,0) -- (0,1.75) node[above] {$y$};
\draw[very thick,cold] (1,0) arc (0:90:1);
\node[cold,left] at (-0.02,1.0) {$h(x,y) = 0$};
\draw[thick,mid,domain=0.125:1.6,samples=60] plot (\x,{0.2/\x});
\draw[thick,hot,domain=0.3125:1.6,samples=60] plot (\x,{0.5/\x});
\draw[thick,mid,domain=0.5:1.6,samples=60] plot (\x,{0.8/\x});
\node[mid,right] at (1.6,0.125) {$xy = 0.2$};
\node[hot,right] at (1.6,0.3125) {$xy = 0.5$};
\node[mid,right] at (1.6,0.5) {$xy = 0.8$};
\draw[thick,hot,dashed] (0.42,0.994) -- (0.994,0.42);
\filldraw (0.7071,0.7071) circle (1.6pt);
\node[below left] at (0.69,0.69) {$\left(\frac{1}{\sqrt{2}},\frac{1}{\sqrt{2}}\right)$};
\filldraw[mid] (0.979,0.2043) circle (1.3pt);
\filldraw[mid] (0.2043,0.979) circle (1.3pt);
\node[mid,right] at (1.0,0.265) {\small crossing point};
\end{tikzpicture}
\end{document}

In consumer theory is utility and the constraint is the budget line. Tangency then says that the MRS equals the price ratio, as in 6.2.2 Utility Maximization. The same method with the roles of objective and constraint swapped gives 6.2.5 Expenditure Minimization. In utility maximization the multiplier equals the marginal utility of income, a fact used in 6.2.4 Indirect Utility Function.

Properties

(Reading the Multiplier) The product approximates the change in the optimal value, and the sign of depends on the Lagrangian convention.

With the minus sign in , a positive means that raising raises the maximum. Writing instead flips the sign of every and leaves unchanged. The units of are units of per unit of . For a budget constraint , is utility per dollar. For a firm that minimizes cost subject to an output target, is the extra cost of one more unit of output. The estimate is first-order, so it is accurate only for small .

(Lagrangian Curvature) The lower-right block of the bordered Hessian holds second derivatives of , which include the curvature of the constraint.

Each entry is . For a linear constraint, such as a budget line, and the block equals the Hessian of . For a curved constraint the term matters. The function is convex, yet on the circle it has constrained maxima. Expanding the determinant along its first row gives a formula for quick use:

The signs in the border do not matter. Replacing by multiplies one row and one column by , which leaves the determinant unchanged.

(Rank Condition) If the constraint gradient vanishes at the optimum, the Lagrange conditions can miss it.

Take subject to . Feasible points satisfy , so and the maximum is at . There , so the rank condition fails. The condition reads at the origin. No multiplier exists, and a search that relies on the first-order conditions never finds the solution. Points where must be checked separately. For a budget constraint this never happens, since .

(Candidates, Then Classify) A maximization and a minimization with the same constraint have the same first-order conditions.

Solving the conditions gives all constrained critical points, maxima and minima together, and the bordered Hessian classifies each one locally. When the problem is known to have a maximum, compare the values of at all candidates and at any points where the rank condition fails. The largest value is the global maximum. A minimization problem, such as cost minimization, is set up the same way, with the objective first and the constraint term subtracted. A candidate with is a strict local minimum.

Derivation

We want to see where the Lagrange conditions come from, for and . Take subject to . Assume is continuously differentiable with at the solution. By the implicit function theorem, the constraint defines near the solution, with

Substitution turns the problem into the unconstrained problem . By the chain rule, its FOC is

Replacing gives . When , this rearranges to the tangency condition . Now define at the solution. Then holds by definition, and the previous equation gives . These are the conditions and . The third condition, , is the constraint itself. The rank condition of the theorem is here. It lets the implicit function theorem solve the constraint for one of the variables.

Examples

(Easy) Fencing a Garden Against a Wall

A gardener has meters of fence for a rectangular plot along a wall. The wall forms one side of the rectangle. The fence covers the opposite side, of length , and the two sides of length . The area is .

(Medium) Cheapest Way to Make 20 Deliveries

A delivery firm makes deliveries per day from driver hours and van hours. A driver hour costs and a van hour costs . The firm wants deliveries at the lowest cost. The problem has the same structure as expenditure minimization.

(Hard) A Quadratic on a Circle

Solve subject to , where the parameter is the squared radius of the circle.

See Also