The Geometry of Lagrange Multipliers

Move a point around a constraint curve to see the relationship between the blue gradient of the function to be optimized and the red gradient of the function for the constraint . The orange vector is the projection of the gradient of onto the tangent line of the constraint curve; its direction is the direction of increase along the constraint and its magnitude is the slope (that is, the directional derivative) of in that direction. There are both 2D and 3D views, with the constraint curve laid out upon the graph of the function.
At a local extremum, the gradients of the functions and are parallel. Thus we get the condition for an extremum , where is called a Lagrange multiplier.

comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+