Repository navigation
18. Constrained Optimization
In an earlier lab, we created a mountain range with a hiking path:
There are two natural, distinct optimization problems here:
- What are the high and low points of elevation on the mountain range? Or, what are the maximum/minimum values of the surface
$\large f(x,y)$ ? - What are the high land low points along the hiking path? Or, what are the max/min of
$\large f(x,y)$ subject to the constraint of$\large (x,y)$ being on the curve$\large g(x,y)=0$ (an implicitly defined curve)?
We answered the first question in our previous lecture - we find critical points and classify them with the second derivative rule. We answer the second question with the method of Lagrange multipliers.
We want to maximize
In the picture above, it is clear that as we walk along the path (the blue arrows along the orange path), we max out at a height of
Now, let's add the vectors
-
$\large \nabla f(x,y)$ is orthogonal to the contours of$\large f$ . -
$\large \nabla g(x,y)$ is orthogonal to the curve defined by$\large g(x,y)=0$ .
We see that the max of
The max and min of
The steps to solve a Lagrange Multiplier problem are:
- Idenfify the objective function (the function we want to optimize)
$\large f(x,y)$ and the constraint$\large g(x,y)=0$ . - Get the set of equations: the components of
$\large \nabla f=\lambda\nabla g$ and the constraint. - Solve these for
$\large x$ and$\large y$ (we don't need to find$\large \lambda$ ). - Plug the solution points into the objective function
$\large f(x,y)$ to see which are maxima and which are minima.
Finally, all of this extends naturally to functions of three variables
- Practice with constrained optimization problems.
I can:
- Solve a constrained optimization problem using the method of Lagrange Multipliers
For more on constrained optimization, see https://openstax.org/books/calculus-volume-3/pages/4-8-lagrange-multipliers.
Calculus of Vector Valued Functions
Kepler's Laws of Orbital Motion
Gradient and Directional Derivative
Least Squares Best Fitting Line
Double Integrals on Rectangular Regions
Double Integrals on General Domains
Double Integrals in Polar Coordinates
Triple Integrals in Cylindrical/Spherical Coordinates
Line Integrals in Vector Fields
Fundamental Theorem of Line Integrals