For unconstrained smooth functions, the standard method for finding extrema is naturally to take derivatives (gradients) and set them to zero. But what about extremum problems with equality constraints? Many readers are likely familiar with them as well: the standard method is the method of Lagrange multipliers. However, Lagrange multipliers often feel like a purely algebraic trick, lacking the intuitive feel of perturbation analysis found in unconstrained optimization.
In this article, we will give it a try: what results do we obtain if we carry through the perturbation mindset of unconstrained extrema into constrained optimization?
Stationary Point Condition #
First, let us review why a zero gradient is the necessary condition (stationary point condition) for an unconstrained extremum. Consider the objective function
If
. The same discussion holds for a maximum, so this is the common stationary point condition for both maxima and minima. When the stationary point condition holds, the next leading term of the approximation expansion is
By the same principle, for
Of course, this discussion is not a rigorous mathematical proof, but rather a heuristic derivation.
Equality Constraints #
Now let us see what changes occur in the perturbation process once equality constraints are introduced. Consider
where
Similarly,
Notice that
where
where
Lagrange #
Now let us compare it with the method of Lagrange multipliers. The method of Lagrange multipliers introduces undetermined coefficients
and then turns to seeking the stationary points of the unconstrained objective
Notice that for the pseudoinverse,
Conversely, can Equation
This demonstrates that the conditions given by the two approaches are completely mathematically equivalent. Of course, the formulation using Lagrange multipliers looks somewhat cleaner, but I feel that the perturbation idea is conceptually more consistent with the unconstrained case, so I prefer this perspective.
Moreover, the simplicity of the method of Lagrange multipliers is merely formal; truly understanding it is no easier than taking the perturbation perspective. Readers can entirely regard the progression from the perturbation idea to the projected gradient as one way of deriving the method of Lagrange multipliers.
Two Examples #
We deepen our understanding through the following two examples.
Spherical Constraint #
For the first example, consider the simple spherical extremum problem
It is easy to compute
The final expression is precisely the projection of the gradient onto the tangent space of the sphere.
Orthogonality Constraint #
Another example is an optimization problem on the Stiefel manifold
If one merely wants to find the stationary point condition, using the method of Lagrange multipliers would be considerably faster; nonetheless, here we will still derive the projected gradient in its entirety. The difficulty here lies in the fact that
To address this, we adopt a linear operator perspective. Taking the first-order approximation of
Next, we need to derive
From this, we can read off
If
Let
where
Second-Order Conditions #
Under equality-constrained optimization, then, is there a method for determining minima/maxima similar to whether
For any stationary point
Here,
Now only the second-order term remains, so
By the arbitrariness of
Of course, whether in unconstrained or constrained optimization, determining maxima/minima via the positive or negative definiteness of the Hessian matrix usually only has theoretical value. In practice, one typically filters out all locations satisfying the stationary point condition and then analyzes them case by case.
Summary #
This article applies the perturbation analysis idea from unconstrained extrema to equality-constrained optimization and derives the projected gradient on the tangent space; the stationary point condition for an extremum is simply setting the corresponding projected gradient to zero. Finally, we also prove that it gives the same conclusions as the method of Lagrange multipliers.