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, satisfiesThe 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 LagrangianIts 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.
An integral constraint need not admit a normal Lagrange multiplier unless its first variation is nonzero. For the quadratic normalization in the title, the variation in direction has derivative , so the constraint is always regular at an admissible function. With free endpoint values this justifies the Euler-Lagrange equation for and its natural endpoint conditions. For , multiplication of the differential equation by gives .
For conjugate exponents , the constraint set is compact, so the continuous product has a maximum. Boundary endpoints have product zero, while is feasible with product one. An interior maximum therefore satisfies the Lagrange multiplier equations and . Multiplying by and respectively gives , since the multiplier is nonzero. Substitution in the constraint makes both powers equal one. Thus the maximum is one, attained uniquely at . The boundary check and compactness are what turn the necessary multiplier equations into a global conclusion.
For a closed right circular cylinder with radius , height , and total surface area , inscription in a sphere of radius gives . The Lagrange multiplier equations imply , so the positive aspect ratio is . The dimensions are and .
There is also an eigenvalue proof of global maximality. Set , so the constraint is , and write . This quadratic form has symmetric matrix with largest eigenvalue , the golden ratio. Its maximizing eigenvector lies in the positive quadrant, yielding the displayed area and aspect ratio.
Consider a cylinder of radius , height , and a hemispherical cap of the same radius, enclosing fixed volume . Let the cylindrical wall cost per area and the cap cost per area, with no floor cost. Then and . Eliminating gives , on .
For , its interior minimum satisfies the displayed formulas; the positive second derivative proves uniqueness. For , cost decreases throughout the feasible interval up to its endpoint, so the minimum has and is a hemisphere alone. At cap-to-wall cost ratio two, the optimal cylinder height is its diameter, . This boundary check is part of the constrained optimization, since a formal critical point can otherwise require negative height.
For a lidless rectangular parallelepiped with positive dimensions and prescribed external surface area , the largest volume is attained at . The arithmetic-geometric mean inequality applied to giveswith equality exactly when these three face-area terms are equal. This proves both the claimed global bound and its attainable equality case. Lagrange multipliers produce the same dimensions from the interior stationarity equations. The weighted open-box minimization is the corresponding fixed-volume formulation with general positive face weights.
For , a rectangular cross section of width and height , capped by a symmetric triangular roof at angle , has area . Its total sloping roof length is . A cost with has the same minimizing shape as this roof length, since the fixed wall term is constant.
The Lagrange multiplier equations for under the area constraint give . This is the first displayed condition; it also implies . Eliminating gives the second condition.
For a global check, the squared roof length is for . Its derivative has the sign of , a strictly increasing expression with one root in that interval. Thus this root is the unique minimum. The shape is independent of the positive roof-cost coefficient and the constant wall cost. If , every feasible shape has the same cost and these conditions are no longer necessary.
A rigid stick of negligible width can turn horizontally between perpendicular corridors of widths precisely when its length does not exceed the displayed value, allowing contact with the walls. A position touching the two outer walls and the inner corner has endpoint intercepts and with . Collinearity with the inner corner is equivalent to .
Minimize the squared intercept length under this optimization constraint. The Lagrange multiplier equations imply . Substituting gives , so the admissible point is , . There . Along the positive constraint branch tends to infinity at both ends and has this one stationary point, proving it is the minimum available clearance over orientations. That minimum is the maximum stick length which can pass through every intermediate orientation.
At a regular constrained stationary point of on , the Lagrange multiplier equations make the two gradients linearly dependent. Eliminating gives the displayed zero determinant. This condition is necessary, not sufficient for an extremum. At a singular constraint point where , the determinant is automatically zero even when no multiplier exists; for example and at the origin.
For , minimize a cylinder's volume over subject to . Set and . Then and . Minimizing volume is equivalent to maximizing on . Its unique interior maximum is at , , with divergence of volume at both endpoints. Thus the unique global optimum has
Suppose two adjustable inputs must deliver a prescribed total , and their combined cost is the quadratic form . These are chosen, dimensionless quantities; the coefficient makes concentrating an input in more expensive. Initially allow all real numbers , with the equality optimization constraint . The optimization Lagrangian with our chosen sign isThe stationary point equations give , , and . ConsequentlyFor , the unique global minimum is at , with cost and Lagrange multiplier . Equal allocation would cost ; assigning everything to would cost . At the optimum, the two marginal costs agree: . Moving a little input from one component to the other therefore has zero first-order effect on cost. When , this solution also meets the extra nonnegativity optimization constraints , so it remains optimal with those added.
Here the Lagrange multiplier equations locate a candidate, and a short independent check certifies it. On the entire feasible set, substitute and use completing the square:The squared term is nonnegative and vanishes only at . Thus the candidate is the unique global minimum; there is no global maximum on this unbounded feasible set, a line. This separates finding a stationary point from proving optimality. The geometric beauty is that equal marginal costs, parallel gradients, tangency of level sets, and completing the square identify the same allocation.
The chosen quadratic objective function above gives more than an optimal allocation: its Lagrange multiplier predicts how much the best cost changes when the required total changes. For this example,This is an explicit derivative of a constrained value function and an instance of the envelope theorem. At , one extra small unit of required output costs approximately units per unit of output, in the chosen normalized model. Increasing makes this equality-constrained minimization problem more expensive; it is not a gain from relaxing an upper resource limit. The sign and meaning depend on how the optimization constraint and optimization Lagrangian are written.[ref]
For an actual finite change , the cost difference is exactlyAt , the linear approximation predicts , while the exact increase is . The extra comes from the squared term in this polynomial, rather than numerical error. A Lagrange multiplier gives a local sensitivity analysis; treating it as a constant price over a large change generally loses the change in the optimum itself.
For a smooth optimizer of an equality problem , the short chain rule calculation explains the result: and imply . The differentiability and stationarity assumptions matter: an optimizer can fail to be unique or vary smoothly. The envelope theorem records when this interpretation is justified.
The nonzero gradient condition in the equality Lagrange multiplier rule cannot simply be dropped. Minimize subject to . The only feasible point is , so it is a global minimum and a global maximum of on that feasible set. Nevertheless,and no real number satisfies . The point is singular for this representation of the optimization constraint; the usual constraint qualification fails. The linearized equation permits every direction, even though the actual feasible set permits no motion at all. This example explains why blindly solving the multiplier equations can miss an optimum.
For an axis-aligned box, maximize subject to . The Lagrange multiplier equations imply . Boundary boxes have zero volume, so this gives the maximum. Arbitrary orientation cannot improve it: averaging the ellipsoid inequality over the eight vertices gives a sum of three squared transformed half-edge lengths at most one; the determinant bound and arithmetic-geometric mean bound their product by .
For radius and height , volume is and area including both ends is . The Lagrange multiplier equations give . Substituting the constraint gives the one-variable function , which tends to infinity at both ends and has its only stationary point at . This proves the stationary cylinder is the unique global minimizer.
For a smooth constrained maximum subject to , suppose smooth optimizers and multipliers satisfy . Differentiating the constraint gives , and the chain rule gives . Thus a Lagrange multiplier measures the marginal value of relaxing its corresponding constraint. A global supporting Lagrangian duality representation implies the needed stationarity, but local stationarity and smoothness alone suffice for this derivative identity.
For a minimization problem with and , the optimization Lagrangian is with and unrestricted equality Lagrange multipliers. Its infimum over the original variable domain gives a dual lower bound. For a maximization problem, use to obtain upper bounds. The Lagrangian sufficiency theorem combines a global extremum of this function with feasibility and complementary slackness. This is distinct from a Lagrangian density in variational physics.
For equality-constrained optimization, restrict the Hessian matrix of the optimization Lagrangian to feasible tangent directions. If the columns of form a basis of the nullspace of the constraint Jacobian matrix , the resulting quadratic form has matrix . Positive definiteness gives positive quadratic curvature in every nonzero tangent direction. Nonsingularity of this reduced matrix, together with full row rank of , characterizes nonsingularity of the corresponding equality-constrained saddle-point matrix.
Forsuppose the optimizer and multiplier vary smoothly and use . Differentiating the optimum value and using stationarity gives
For a topless rectangular box with dimensions , volume , and weighted face costan interior optimum equalizes the three terms:The same result and global minimality follow from the arithmetic-geometric mean inequality.
Articles by others on the same topic
There are currently no matching articles.

