Geometrically, why must the gradient of the objective be parallel to the gradient of the constraint at a smooth optimum of subject to ?
Linear algebra and optimisation, Constrained optimisation
Level L2 Elementary. Length Short. Nature Th Theoretical.
What's being asked
Whether you grasp the geometry behind the Lagrange multiplier equation .
Key idea
At a constrained optimum , no feasible move tangent to the surface can decrease , so has zero component along the tangent plane and must point perpendicular to the surface—parallel to .
Steps
- Observe that is perpendicular (normal) to the constraint surface , because is constant along the surface.
- At an optimum , the directional derivative must be zero for every direction tangent to ; otherwise stepping along or would stay feasible to first order and reduce .
- Conclude that is also perpendicular to the tangent plane. Because is a single scalar constraint with , the normal space to the tangent plane is one-dimensional and spanned by , so for some scalar Lagrange multiplier .
Common mistakes
- Assuming at a constrained optimum. The unconstrained gradient is usually non-zero because the constraint stops you from moving further downhill.
- Forgetting the regularity assumption . If , the tangent plane may be ill-defined and the multiplier rule can fail.
How long your answer should be
3–5 sentences; 1–2 minutes.
Read this
Previous in Linear algebra and optimisation: How do you compute the factorisation (with unit diagonal in ) of , use it to solve , and explain when row pivoting () is needed?
Next in Linear algebra and optimisation: Starting from , perform two steps of gradient descent on with learning rate . Does the iterate overshoot the minimum, and do the iterates still converge?