Geometrically, why must the gradient of the objective be parallel to the gradient of the constraint at a smooth optimum of min⁡xf(x) subject to g(x)=0?

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 ∇f(x∗)+λ∇g(x∗)=0.

Key idea

At a constrained optimum x∗, no feasible move tangent to the surface g(x)=0 can decrease f, so ∇f(x∗) has zero component along the tangent plane and must point perpendicular to the surface—parallel to ∇g(x∗).

Steps

  1. Observe that ∇g(x∗) is perpendicular (normal) to the constraint surface g(x)=0, because g is constant along the surface.
  2. At an optimum x∗, the directional derivative ∇f(x∗)⊤d must be zero for every direction d tangent to g(x)=0; otherwise stepping along +d or −d would stay feasible to first order and reduce f.
  3. Conclude that ∇f(x∗) is also perpendicular to the tangent plane. Because g(x)=0 is a single scalar constraint with ∇g(x∗)≠0, the normal space to the tangent plane is one-dimensional and spanned by ∇g(x∗), so ∇f(x∗)=−λ∇g(x∗) for some scalar Lagrange multiplier λ∈R.

Common mistakes

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 LU factorisation (with unit diagonal in L) of A=(21−1450−2811), use it to solve Ax=(−1−112), and explain when row pivoting (PA=LU) is needed?
Next in Linear algebra and optimisation: Starting from w0=3, perform two steps of gradient descent on f(w)=2(w−1)2+5 with learning rate η=0.4. Does the iterate overshoot the minimum, and do the iterates still converge?