Before Next Class: - : Why The Method of Lagrange Multipliers Works
Before Next Class: - : Why The Method of Lagrange Multipliers Works
Before Next Class: - : Why The Method of Lagrange Multipliers Works
– Make sure to download next lecture worksheet and bring it to your lecture.
• Use the method of Lagrange multipliers to find the maximum and minimum values of
a multivariable function subject to a constraint.
We previously considered how to find the extreme values of functions on both unrestricted
domains and on closed, bounded domains. Other types of optimization problems involve
maximizing or minimizing a quantity subject to an external constraint. In these cases the
extreme values frequently won’t occur at the points where the gradient is zero, but rather
at other points that satisfy an important geometric condition. These problems are often
called constrained optimization problems and can be solved with the method of Lagrange
Multipliers, which we study in this section.
g(x, y) = 4x + y
constraint curve that intersects the contours of f at which f has its largest value.
i. Points A and B in the graph lie on a contour of f and on the constraint equation
g(x, y) = 108. Explain why neither A nor B provides a maximum value of f that
satisfies the constraint.
ii. Points C and D in the graph lie on a contour of f and on the constraint equation
g(x, y) = 108. Explain why neither A nor B provides a maximum value of f that
satisfies the constraint.
iii. Based on your responses to parts i. and ii., draw the contour of f on which you
believe f will achieve a maximum value subject to the constraint g(x, y) = 108.
Explain why you drew the contour you did.
2. Recall that g(x, y) = 108 is a contour of the function , and that the gradient of a
function is always orthogonal to its contours. With this in mind, how should ∇f and
∇g be related at the optimal point? Explain.
Week 11 15.3 Constrained Optimization: Lagrange Multipliers 3
We saw that we can create a function g from the constraint, specifically g(x, y) = 4x + y.
The constraint equation is then just a contour of g, g(x, y) = c where c is a constant
(in our case 108). The graph below illustrates that the volume function f is maximized,
subject to the constraint g(x, y) = c, when the graph of g(x, y) = c is tangent to a
contour of f . Moreover, the value of f on this contour is the sought maximum value.
To find this point where the graph of the constraint is tangent to a contour of , recall that
∇f is perpendicular to the contours of f and ∇g is perpendicular to the contour of g. At
such a point, the vectors ∇f and ∇g are parallel, and thus we need to determine the points
where this occurs. Recall that two vectors are parallel if one is a nonzero scalar multiple of
the other, so we therefore look for values of a parameter that make
∇f = λ∇g.
Definition:
Suppose P0 is a point satisfying the constraint g(x, y) = c.
.
Local and global minima are defined similarly.
2. An ant walks along the surface z = x2 − y 2 + 4y + 14 so that its distance from the z-axis
remains constant at 2 units. Given that the ant makes one full revolution around the
z-axis, find the highest and the lowest point of the ant.
Week 11 15.3 Constrained Optimization: Lagrange Multipliers 6
Lagrangian function
Constrained optimization problems are frequently solved using a Lagrangian function,
L. For example, to optimize f (x, y) subject to the constraint g(x, y) = c, we use the
Lagrangian function
L(x, y, λ) = f (x, y) − λ(g(x, y) − c)
To see how the function L, compute the partial derivative of L:
∂L
=
∂x
∂L
=
∂y
∂L
=
∂λ
Note that if (x0 , y0 ) is an extreme point of f (x, y) subjection to g(x, y) = c and λ0 is
the corresponding Lagrange multiplier, then at the point (x0 , y0 , λ0 ) we have
Week 11 15.3 Constrained Optimization: Lagrange Multipliers 7
The total budget is 24000 dollars and the company can buy x, y and z at 80, 12 and 10
dollars per unit, respectively. What combination of inputs will maximize production?