
We give a new method of finding extrema.

Throughout this course, we hope it has become apparent that when given a problem:

There is more than one way to solve it.

The method of Lagrange multipliers tells us that to maximize a function constrained to a curve, we need to find where the gradient of the function is perpendicular to the curve.

Previously, when we were finding extrema of functions $F:\R ^n\to \R$ when constrained to some curve, we had to find an explicit formula for the curve. Consider this example from the previous section:

The first step for solving this problem was to find an explicit formula that drew the curve $C$. In the case above, we choose: However, finding a function that draws the constraining set could be very difficult or even impossible! If our constraining set had been our previous method will not work, as we (at least this author!) cannot find an explicit formula describing the set above. Nevertheless, there is another way. It is called the method of Lagrange multipliers. This method is named after the mathematician Joseph-Louis Lagrange. This method relies on the geometric properties of the gradient vector. Recall: There are three things you must know about the gradient vector:

• $\grad F = \vector {\pp [F]{x_1},\pp [F]{x_2},\dots ,\pp [F]{x_n}}$.
• $\grad F(\vec {x})$ points in the direction that one must leave $\vec {x}$ in order to see the initial greatest increase in $F$.
• $\grad F(\vec {x})$ points in the direction that is perpendicular to any level surface of $F$.

It is the last two facts that we will think about now. Below we see level curves for some function $F:\R ^2\to \R$ along with a constraining curve that we will call $S$:

Let’s add vectors to our graph that point in the direction of $\grad F(x,y)$. Since we know that the gradient vector is perpendicular to level curves, we can do this without computation.

If for some point $(x,y)$ on $S$ the gradient $\grad F(x,y)$ points in the “general” direction of the tangent vectors of $S$, then $(x,y)$ cannot give an extremal value of $F$, as moving along $S$ will either increase or decrease the value of $F$. Here’s the upshot:

The only candidates for local extrema occur when the gradient of $F$ is perpendicular to $S$.

How do we find these points? To do this, we will imagine that $S$ is a level curve for some other function $G:\R ^2\to \R$, and define $S$ as: now, the candidates for extrema of $F$ when constrained to a curve $S$ are found by finding $(x,y)$ such that since $(x,y)$ that satisfy this equation are those where the gradient vectors of $F$ are perpendicular to the level curve $G(x,y)= c$. This is the essence of the method of Lagrange multipliers.

The first step for solving a constrained optimization problem using the method of Lagrange multipliers is to write down the equations needed to solve the problem.

### Working with geometry

Lagrange multipliers tell us that to maximize a function $F:\R ^2\to \R$ along a curve defined by $G(x,y) = c$, we need to find where $\grad F$ is perpendicular to $G$. In essence we are detecting geometric behavior using the tools of calculus.