User:Andrebis
COMPLETED WORK
[edit]New Section in Lagrange Multipliers page: Multiple Constraints
[edit]Handling Multiple Constraints
[edit]

The method of Lagrange multipliers can also accommodate multiple constraints. To see how this is done, we need to reexamine the problem in a slightly different manner because the concept of “crossing” discussed above becomes rapidly unclear when we consider the types of constraints that are created when we have more than one constraint acting together.
As an example, consider a paraboloid with a constraint that is a single point (as might be created if we had 2 line constraints
that intersect). The level set (i.e. contour line) clearly appears to “cross” that point and its gradient is clearly not parallel
to the gradients of either of the two line constraints. Yet, it is obviously a maximum *and* a minimum because there is only one point
on the paraboloid that meets the constraint.
While this example seems a bit odd, it is easy to understand and is representative of the sort of “effective” constraint that appears
quite often when we deal with multiple constraints intersecting. Thus, we take a slightly different approach below to explain and derive
the Lagrange Multipliers method with any number of constraints.
Throughout this section, the independent variables will be denoted by and, as a group,
we will denote them as . Also, the function being analyzed will be denoted
by and the constraints will be denoted by
.
The basic idea remains essentially the same: if we consider only the points that satisfy the constraints (i.e. are in the constraints),
then a point is a stationary point (i.e. a point in a “flat” region) of if
and only if the constraints at that point do not allow movement in a direction where changes value. It is intuitive that
this is true because if the constraints allowed us to travel from this point to a (infinitesimally) near point with a different value,
then we would not be in a “flat” region (i.e. a stationary point).
Once we have located the stationary points, we need to do further tests to see if we have found a minimum, a maximum or just a stationary
point that is neither.
We start by considering the level set of at . The set of vectors
containing the directions in which we can move and still remain in the same level set are the
directions where the value of does not change (i.e. the change equals zero). Thus, for every vector
in , the following relation must hold:
Where the notation above means the -component of the vector .
The equation above can be rewritten in a more compact geometric form that helps our intuition:
This makes it clear that if we are at , then all directions from this point that do not change the value of
must be perpendicular to (the gradient of at ).
Now let us consider the effect of the constraints. Each constraint limits the directions that we can move from a particular point
and still satisfy the constraint. We can use the same procedure, to look for the set of vectors
containing the directions in which we can move and still satisfy the constraint. As above, for every vector
in , the following relation must hold:
From this, we see that at point , all directions from this point that will still satisfy this constraint must be
perpendicular to .
Now we are ready to refine our idea further and complete the method: a point on is a constrained stationary point if and only if the direction that changes violates at least one of the constraints. (We can see that this is true because if a
direction that changes did not violate any constraints, then there would a “legal” point nearby with a higher or lower
value for and the current point would then not be a stationary point.)
Single Constraint Revisited
For a single constraint, we use the statement above to say that at stationary points the direction that changes is in the same direction
that violates the constraint. To determine if two vectors are in the same direction, we note that if two vectors start from the same
point and are “in the same direction”, then one vector can always “reach” the other by changing its length and/or flipping to point the
opposite way along the same direction line. In this way, we can succinctly state that two vectors point in the same direction if and
only if one of them can be multiplied by some real number such that they become equal to the other. So, for our purposes, we require that:
If we now add another simultaneous equation to guarantee that we only perform this test when we are at a point that satisfies the
constraint, we end up with 2 simultaneous equations that when solved, identify all constrained stationary points:
Note that the above is a succinct way of writing the equations. Fully expanded, there are
simultaneous equations that need to be
solved for the
variables and :
Multiple Constraints
For more than one constraint, the same reasoning applies. If there is more than one constraint active together, each constraint
contributes a direction that will violate it. Together, these “violation directions” form a “violation space”, where infinitesimal
movement in any direction within the space will violate one or more constraints. Thus, to satisfy multiple constraints we can state
(using this new terminology) that at the stationary points, the direction that changes is in the “violation space” created by the
constraints acting jointly.
The “violation space” created by the constraints consists of all points that can be reached by adding any combination of scaled
and/or flipped versions of the individual violation direction vectors. In other words, all the points that are “reachable” when
we use the individual violation directions as the basis of the space. Thus, we can succinctly state that is in the space defined
by if and only if there exists a set of “multipliers” such that:
Which for our purposes, translates to stating that the direction that changes at is in the “violation space” defined by the
constraints if and only if:
As before, we now add simultaneous equation to guarantee that we only perform this test when we are at a point that satisfies every
constraint, we end up with simultaneous equations that when solved, identify all constrained stationary points:
The method is complete now (from the standpoint of solving the problem of finding stationary points) but as mathematicians delight in
doing, these equations can be further condensed into an even more elegant and succinct form. Lagrange must have cleverly noticed that
the equations above look like partial derivatives of some larger scalar function that takes all the
and all the
as inputs. Next,
he might then have noticed that setting every equation equal to zero is exactly what one would have to do to solve for the unconstrained
stationary points of that larger function. Finally, he showed that a larger function with partial derivatives that are
exactly the ones
we require can be constructed very simply as below:
Solving the equation above for its unconstrained stationary points generates exactly the same stationary points as solving for the
constrained stationary points of under the constraints .
In Lagrange’s honor, the function above is called a Lagrangian, the scalars
are called Lagrange Multipliers and this optimization
method itself is called The Method of Lagrange Multipliers.
The method of Lagrange multipliers is generalized by the Karush–Kuhn–Tucker conditions, which can also take into account inequality constraints of the form h(x) ≤ c.