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 .
Find the largest area with a Lagrangian. What does the multiplier say about a st meter of fence? The constraint is , so the Lagrangian is . The FOCs are The first two give . The constraint then gives , so , , and . The area is square meters. For the second-order check, , , , and . Only the middle term of the determinant formula is nonzero, so and the point is a maximum.
The multiplier predicts that one more meter of fence adds about square meters. With meters of fence the optimal area is , whose derivative at is . With meters the area is , a gain of .
(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.
Find the cost-minimizing inputs, check the second-order condition, and interpret . The problem is subject to . With the same sign convention, . The FOCs are Dividing the first by the second gives . The constraint then gives , so and . The cost is . The first condition gives .
For the second-order check, and . The cost is linear, so the second derivatives of come only from . At the solution they are , , and . The formula gives
which confirms a constrained minimum.The multiplier is the cost of one more delivery. For this technology the minimum cost of deliveries is . A st delivery therefore costs exactly more.
(Hard) A Quadratic on a Circle
Solve subject to , where the parameter is the squared radius of the circle.
Find all candidates, decide which are maxima and which are minima, and compute the bordered Hessian at each. . The FOCs are The first two give and . Combining them gives . The case forces , which violates the constraint. So , and there are two values of .
The Lagrangian is
If , then and . The constraint gives . The candidates are and , both with .
If , then and . The candidates are and , both with .
For the bordered Hessian, , , , and . Using , the formula gives
At the two points with , and , so . Both are constrained minima. At the two points with , and , so . Both are constrained maxima. The maximum value is with , and the minimum value is with . 7.3 Envelope Theorem checks that the derivative of each value with respect to equals its .
See Also
- 7.3 Envelope Theorem, which proves .
- 4.2. Lagrangian Duality, for inequality constraints and duality.
- 6.2.2 Utility Maximization, the main economic use of the method.
- 6.2.3 Corner Solutions, for consumer problems where the tangency point is not the optimum.