5.2 Kissing Contours and Lagrange Multipliers: Deriving Cu = λu Geometrically
How does a constrained optimization problem turn into an eigenvalue problem? The bridge is Lagrange's method of multipliers, which rests on a vivid geometric principle: at an extremum on a constraint surface, the level contour of the objective function must kiss the constraint surface tangentially, forcing their gradients to line up.
In this microlearning, we derive the matrix gradients and from first principles and watch their alignment produce .
In this Article
1. Why Kissing Contours Have Parallel Gradients
Recall from multivariable calculus that the gradient is always perpendicular to the level curve , and points in the direction of steepest ascent. Suppose you are restricted to walk on the unit circle :
- If is not parallel to the circle normal , then has a non-zero component tangent to the circle. Moving slightly along that tangent increases , so you are not at a maximum!
- Therefore, at any constrained maximum or minimum on the unit circle, can have zero tangential component—it must be purely normal to the circle, meaning for some scalar multiplier .
NOT OPTIMAL (Crossing Contours): OPTIMAL (Kissing Contours at Eigenvector):
Grad f ^ Grad f = 2 C u ^
/ | Grad g = 2 u
/---> Tangent component != 0 | ^
-----------*----------- (Circle Tangent) ---------------------*--|----------------
| (Zero tangent component!)
v Grad g 2 C u = lambda (2 u)
2. Deriving ∇(uᵀCu) = 2Cu and ∇(uᵀu) = 2u Coordinate by Coordinate
You do not need to memorize mysterious matrix calculus tables—let us verify both derivatives directly from partial derivatives:
1. Gradient of :
Differentiating with respect to coordinate gives . Stacking all partial derivatives into a column vector yields .
2. Gradient of (with ):
Differentiating with respect to picks up from the first index and from the second index: . Stacking into a column vector gives .
3. Setting Up the Lagrangian and Canceling the Factor of 2
Combining the objective and constraint into the Lagrangian and setting immediately yields:
The factor of from both quadratic derivatives cancels cleanly, leaving the exact eigenvalue equation!
4. Worked Gradient Alignment Check in 2D
Let . Let us compare the gradients and at two points on the unit circle:
- At non-eigenvector : , while . Because is not a scalar multiple of , the gradients are misaligned and increasing increases variance.
- At eigenvector : , and . The gradients are strictly parallel with multiplier !
5. Active Recall Check and Key Takeaways
Quick Check: Test Your Understanding
Question: If we wrote the Rayleigh quotient and differentiated with respect to using the quotient rule, what equation would produce?
Answer: Setting gives , which is the exact same eigenvalue equation with !
- Geometric Meaning of Lagrange Multiplier: Kissing level sets require .
- Quadratic Derivative Rule: For symmetric , .
- Canonical References: See Wikipedia Reference on Matrix Calculus Identities.
Take a Quiz Based on This Article
Test your understanding with AI-generated questions tailored to this content
Adaptive Learning with SynLearn
Explore this article through guided practice that adapts to your answers