Lagrange Multipliers

Why Parallel Gradient Vectors?

We wish to optimize a point on the surface

f(x,y)=xyf(x,y) = xy

given the constraint

g(x,y)=x2+y2=z0g(x,y) = x^2+y^2 = z_0

for a given height level z=z0.z = z_0. You can toggle between the surfaces (ff and gg) below. The constraint curve is shown below that with a movable point (x,y)(x,y) on the constraint. The point and constraint curve are lifted to both surfaces. Check the boxes in the constraint diagram to see the gradient fields of ff and gg. Note that movement on the constraint is always orthogonal to the gradient of gg (why?). What happens when that movement is also orthogonal to the gradient of ff? The highest and lowest points on the blue surface occur at points where the gradient vectors align. Can you see it? Why do you think that happens?

Surfaces
g(x,y)=z0g(x,y)=z_0
z0z_0
25.0