1.2.11 · D5Calculus & Optimization Basics
Question bank — Lagrange multipliers for constrained optimization
Recall the setup we are testing: optimize subject to , using the Lagrangian , whose stationarity condition is .
True or false — justify
Setting alone is enough to solve a constrained problem.
False — that gives equations (one per component of ) for unknowns (the components plus ); you still need , which is just the constraint , to close the system.
At a constrained optimum, must equal .
False — need only be parallel to , not zero; the constraint surface holds you away from the free optimum where .
At a constrained optimum, and point in the same direction.
Careful — they are parallel, but can be negative, so may point opposite to ; "same line" is guaranteed, "same direction" is not.
A larger always means a "more important" constraint.
Only after fixing the scaling — measures sensitivity of the optimal value per unit of , so rescaling the constraint (e.g. vs ) halves without changing the problem; and where is non-differentiable no single need exist. Compare importances only for constraints written in the same units.
The Lagrange condition distinguishes maxima from minima.
False — it is a stationarity condition satisfied at maxima, minima, and saddles alike; you need convexity or a second-order test to classify.
If is convex and is linear, any stationary point of is the global optimum.
True — a convex objective over a convex (here affine) feasible set has a unique minimum, and the single stationary point is it.
Changing to changes the optimal .
False — it only flips the sign of ; the location is identical because both encode the same parallel-gradient condition.
The value is dimensionless.
False — since approximates , carries units of (objective per unit of constraint), e.g. "profit per dollar."
Spot the error
"To maximize with , I set and got ."
Error — they dropped ; the correct condition is , giving and then from the constraint.
"I formed (no ), solved , and I'm done."
Error — omitting is harmless for (the constant vanishes) but you still forgot the equation that reinstates .
" at my candidate point, but , so no works — therefore no optimum exists here."
Error — a point where is a degenerate (non-regular) constraint point; the multiplier method's assumption fails there, so you must check it separately, not declare the optimum nonexistent.
"Two constraints, so I'll use one shared for both."
Error — each equality constraint gets its own multiplier: ; one cannot balance against two independent gradient directions.
"The constraint is , so I'll just write as usual."
Error — inequalities require the KT Conditions with and complementary slackness; equality-style Lagrange multipliers apply only when the constraint is active and even then need the sign restriction.
Why questions
Why must have no component tangent to the constraint surface at an optimum?
Because a nonzero tangential component would let you slide along the surface (staying feasible) in a direction that raises or lowers — contradicting optimality.
Why does the minus sign in not affect where the optimum sits?
Because reads ; flipping the sign just relabels , leaving the geometric parallel-gradient equation unchanged.
Why can't we simply substitute the constraint into and minimize freely instead?
We often can for simple explicit constraints, but Lagrange multipliers avoid solving for one variable (sometimes impossible or messy) and hand us the sensitivity for free.
Why does equal the sensitivity of the optimal value?
By the envelope theorem: write ; differentiating with the chain rule, the - and -terms vanish because and at the optimum, leaving only — this is the shadow price.
Why does each new constraint require balancing against another gradient?
Each constraint carves away one tangent direction of allowed motion; must be neutralized in every remaining feasible direction, forcing it into the span of all the .
Why is this the same math seen in Support Vector Machines and Regularization?
SVMs minimize under margin constraints, and ridge-style penalties are the Lagrangian dual of a norm constraint — both are constrained optimizations whose multipliers become the weights or the penalty strength.
Edge cases
What happens when the constraint gradient at a feasible point?
Regularity (the constraint qualification defined above) fails: no may satisfy even at a true optimum, so such points must be examined directly.
What if already at a feasible point?
Then works — the unconstrained optimum happens to sit on the constraint, so the constraint is not binding and has zero shadow price.
What if the constraint surface is empty (no satisfies )?
There is no feasible set, so the problem is infeasible; the Lagrangian machinery produces meaningless "solutions" and must not be trusted — always check feasibility first.
What if is linear and the feasible region is unbounded?
The optimum may be with no finite stationary point; can still have solutions on the boundary but there may be no true extremum — the method finds candidates, not a guarantee of existence.
What if two constraint gradients are parallel to each other at a point?
The constraints are locally dependent (regularity's linear-independence condition fails); their multipliers are not uniquely determined, so the standard sensitivity interpretation of each breaks down.
For an equality constraint, can be negative — and does that break anything?
Yes, may be any sign for equality constraints (unlike inequality ones where ); a negative merely means tightening raises the optimal objective, which is perfectly valid.
How to classify a stationary point (the third leg)
Once is solved, decide max vs min vs saddle:
Restrict attention to feasible directions — vectors tangent to the constraint, i.e. — and test the bordered Hessian of (the Hessian evaluated on that tangent space).
What does definiteness on the tangent space tell you?
If for all feasible (positive definite on the tangent space) the point is a local minimum; if (negative definite) a local maximum; mixed signs mean a saddle.
When can you skip the second-order test entirely?
When is convex and the feasible set is convex (e.g. quadratic-convex with linear constraints): every stationary point is then the global minimum by Convex Optimization, so no Hessian check is needed.
Recall Two-line self-test
Verdict-plus-reason: " classifies extrema." ::: False — it is stationarity only; classification needs convexity or a second-order (bordered-Hessian) check. Verdict-plus-reason: "For an active inequality constraint I can reuse equality-style multipliers with no sign rule." ::: False — inequalities demand and complementary slackness (KT Conditions).