Picture a hiking trail drawn on a hilly map. You want the highest point you reach while staying on the trail, which is usually not the top of the hill. At that point the trail runs along a contour line instead of crossing it, and that simple picture is the whole idea behind Lagrange multipliers.
Key terms
Constrained extrema
Definition Let be defined on a set containing , where is the set of points that satisfy one or more equations, the constraints. The function has a local maximum on at a point of if there is a ball centered at with for every in , and an absolute maximum on if for every in . Minima are defined with the inequalities reversed. Only points of are compared.
In plain words You are allowed to move only along the constraint. A constrained maximum is the best you can do there, even if is larger elsewhere.
Example Maximize on the line . Substituting gives , which is largest at . The constrained maximum is , although has no maximum at all on the whole plane. Substitution works here because the constraint is easy to solve, which is often not the case.
Parallel gradients
Definition Let and have continuous first partial derivatives on an open set in , and let . If restricted to has a local extremum at and , then there is a number , called a Lagrange multiplier, with
So candidates are found by solving the equations and for the unknowns . The multiplier may be zero, which happens when .
Here is why the condition holds. Take any curve in with . Differentiating at gives , and since has a local extremum at , also . Because , the implicit function theorem shows that such curves reach every vector orthogonal to as a velocity . So is orthogonal to everything that is orthogonal to, and that forces it to be a multiple of .
In plain words At a constrained high or low point, moving along the constraint does not change to first order. So has no component along the constraint and must point straight across it, in the same direction as or the opposite one.
Example Find the extreme values of on the circle . Here is nonzero on the circle, and the system is
The first equation shows and , so dividing is allowed and . Then , which gives the points and with values and . The circle is closed and bounded and is continuous, so the maximum is and the minimum is .
Several equality constraints
Definition Let with have continuous first partial derivatives on an open set in , and let be the set of points of with . If restricted to has a local extremum at and the vectors are linearly independent, then there are numbers with
Together with the constraints this gives equations for unknowns.
In plain words With two constraints in space you move along a curve, the intersection of two surfaces. At an extremum, must lie in the plane spanned by the two constraint gradients.
Example Find the highest and lowest points on the ellipse where the cylinder meets the plane , so . The system is
The third component gives , and then and . So and , hence . The points are and . The ellipse is closed and bounded, so the highest value of is and the lowest is .
Independent constraint gradients
Definition A point of the constraint set is regular when are linearly independent. For one constraint this means . For two constraints in it means
By the implicit function theorem, near a regular point the constraint set is smooth of dimension (a curve, a surface or a higher dimensional analogue), and its tangent directions are exactly the vectors orthogonal to every . This is the hypothesis that makes the multiplier theorem true.
In plain words Independence makes sure the constraints really cut the space down by one dimension each, so the set you move on has a well defined tangent plane or tangent line. Always check it before trusting the multiplier equations.
Example In the cylinder and plane problem,
This is zero only when , and no such point lies on the cylinder . So every point of the ellipse is regular and the two candidates found above are the only possible extrema.
Singular constraint points
Definition A point of the constraint set where the constraint gradients are linearly dependent, for one constraint a point where , is a singular point of the constraint. The multiplier theorem says nothing there, so an extremum may occur at a singular point without any satisfying the Lagrange equations. Singular points must be added to the list of candidates, together with any points where or fails to have continuous partial derivatives.
In plain words Where the constraint curve has a cusp or crosses itself, the picture of a smooth trail breaks down. Check those points by hand.
Example Minimize on the cusp curve , so . Both functions have continuous partial derivatives everywhere, so the only extra candidates are singular points. The equations and force , so , then from the curve, and the first equation becomes . There are no Lagrange solutions at all. Yet every point of the curve has , hence , so the minimum is , reached only at the origin, where . The origin is a singular point, and the extremum sits exactly there. There is no maximum, since is unbounded on the curve.
Feasible boundaries
Definition The feasible set is the set of all points that satisfy every constraint. If some constraints are inequalities, such as or , the feasible set can have interior points, smooth boundary pieces and points where those pieces meet. The full candidate list then contains the critical points of in the interior, the Lagrange points on each smooth boundary piece given by an equation with nonzero gradient, and the endpoints, corners and singular points of the boundary.
In plain words Lagrange multipliers handle the smooth parts of an edge. The inside of the region and the places where edges meet still need their own checks.
Example Find the extreme values of on the disk . Inside, is zero only at , where . On the circle , with , the equations are
If then , so and , with . If then , with . Keeping the case instead of dividing by is what finds these points. The maximum is at and the minimum is at the origin.
Candidate verification
Definition The Lagrange conditions are necessary, not sufficient. A point that satisfies them may be a maximum, a minimum or neither. To finish a problem, collect all candidates (Lagrange points, singular points, interior critical points and boundary endpoints or corners) and then justify which is which. If the feasible set is closed and bounded and is continuous there, the extreme value theorem guarantees an absolute maximum and minimum, and comparing the values of at the candidates identifies them. If the feasible set is not compact, existence must be argued separately, for instance with an inequality or the behavior of far away.
In plain words The method hands you suspects, not verdicts. Compactness lets you decide by comparing numbers, and without it you need a reason.
Example Look at on the hyperbola . The equations and give , so the candidates are with and with . The hyperbola is not bounded. On the branch with the values are , and on the branch with they are at most and go to . So is a local minimum on the constraint and a local maximum, and has no absolute maximum or minimum. The local maximum value is even smaller than the local minimum value.
Check yourself
- Find the extreme values of on the ellipse .
Show the answer
The constraint gradient is nonzero on the ellipse. The equations are and . If then , which is not on the ellipse, so and gives , that is . Then , so . The maximum is at and , and the minimum is at and , since the ellipse is closed and bounded.
- Find the minimum of on the hyperbola and justify that it is a minimum.
Show the answer
The constraint gradient is never zero on the hyperbola. The equations and give , so , and with this means . Both points give the value . The hyperbola is not bounded, so comparing values is not enough. The inequality gives for every point of the hyperbola, so is the minimum. There is no maximum.
- Find the extreme values of on the quarter circle with and .
Show the answer
On the open arc the constraint gradient is nonzero, and gives . Of the two solutions on the circle only the one with lies on the arc, so the point is with . The arc has endpoints and , with and . The arc is closed and bounded, so the maximum is and the minimum is at the endpoint , a point the multiplier equations alone would miss.