The Lagrange Condition — One Constraint
We showed that at a constrained minimum, . In most situations (when ), both null spaces have the same dimension , so they must be equal.
Two row vectors with the same null space must be scalar multiples of each other (basic linear algebra). So for some scalar .
Equivalently: . The gradients are parallel. Geometrically: the -isosurface and the constraint surface are tangent to each other at — they touch and share a tangent plane.
Intuition: if you were hiking and had to stay on a contour of , you reach a highest or lowest -contour exactly when the -contours become tangent to your allowed path. At that point, you cannot move along without crossing -contours in both directions.
The scalar is called a Lagrange multiplier. We do not particularly care about its value — we just care that it exists.
Formal View
This is a necessary condition only — not every point satisfying it is a constrained minimum. Such points are called Lagrange points; constrained optima must be among them.
Interactive Visualization
Lagrange Multiplier Visualizer
Why This Matters
The Lagrange condition converts a constrained optimization problem into a system of equations — which can be solved to find all candidate optima.
- Finding shortest path on a surface (geodesic problems)
- Maximizing utility subject to a budget constraint in economics
- Principal component analysis: finds the eigenvector of the covariance matrix
- Proving symmetric matrices have eigenvalues (spectral theorem — next section)
Quiz
The Lagrange condition means:
How many equations does the Lagrange condition give (for )?
Every point satisfying the Lagrange condition is a constrained minimum.
Geometrically, the Lagrange condition at means:
Why does it not matter what value takes?
Common Mistakes
- Solving and reporting those points as the answer without checking them against the constraint .
- Treating as meaningful — it is just the proportionality constant, often discarded.
- Forgetting the necessary vs. sufficient direction: the Lagrange condition is necessary for a minimum, not sufficient.