Lagrange multiplier Created 2026-09-24 Updated 2026-10-13
For continuously differentiable functions on an open subset of , suppose is a local extremum of subject to , with . Then a real number , the Lagrange multiplier, satisfies
The nonzero gradient assumption excludes singular points of the optimization constraint. With several equality optimization constraints, require their gradients to be linearly independent; the gradient of is then a linear combination of them. These are necessary conditions, not automatic certificates of a global maximum or global minimum.
Why can the gradient be nonzero at an optimum? In unconstrained optimization, every direction is available at an interior local extremum, so all directional derivatives vanish and . On a regular equality feasible set, only directions in its tangent space are available to first order. The gradient of must be perpendicular to those directions, so it is parallel to the gradient of . In two dimensions this explains the tangency of their level sets. See MIT, Lagrange multipliers and contour geometry.
For the product example, set and use the optimization Lagrangian
Its partial derivatives give , , and . Hence . At , : increasing both inputs would help, but is infeasible. Along the allowed direction , the directional derivative is zero. The endpoints must still be checked because of the nonnegativity optimization constraints; completing the square establishes the unique global maximum.
The sign convention matters: writing instead gives . Neither equality Lagrange multiplier has a universal nonnegativity requirement. Also, the displayed is unbounded above along , so stationarity here does not meet the global hypothesis of the Lagrangian sufficiency theorem.
The Lagrange multiplier also measures the value of extra resources. For a positive budget , the optimizer is , the optimum value is , and . At , an extra units predicts a gain of ; the exact gain is . This is the envelope theorem in a computed sensitivity analysis: the multiplier translates a binding budget constraint into a marginal benefit.
Capital and labour are nonnegative inputs. On the budget line, and . Both endpoints give zero output, whereas every interior point has positive output, so the maximum is interior. The Lagrangian with the sign convention of part (i) is
Its stationarity equations are and . Dividing by the positive output gives and , hence . Together with the budget constraint this yields
To verify the unique global maximum, maximize the logarithm of the Cobb–Douglas production function along the budget line:
Its unique stationary point is therefore the unique maximum, including comparison with the zero-output boundary points.
Writing and , the optimal output is . The Lagrange multiplier obtained from the first stationarity equation is . Direct differentiation verifies the envelope theorem identity:
For clarity, the global dual-supremum premise of part (i) need not hold for every exponent pair allowed here. If , along the unrestricted Lagrangian is , which tends to infinity for every finite . Thus the verification above is by constrained stationarity and direct differentiation, and remains valid even when that stronger global Lagrangian duality representation fails.
For fixed , put . Feasibility gives . The assumed Lagrangian duality representation says this value is the unrestricted supremum of , so is also an unconstrained global maximizer of this continuously differentiable function. Its first derivative vanishes:
Differentiate the identity using the assumed smooth dependence of the optimizer:
The chain rule now gives the envelope theorem
Thus
Each Lagrange multiplier is the marginal change in optimal value per unit relaxation of its constraint. The proof only uses the resulting stationarity and smooth feasibility identities; it does not require differentiating the maximizer explicitly or differentiating the multiplier.