Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Derive Lagrange multipliers

  1. Jul 15, 2007 #1
    hi, i just learned about lagrange multipliers and i am very confused about how to derive and use them. another thing, how would you use them to find points on a surface that are closest to a given point outside the surface
     
  2. jcsd
  3. Jul 15, 2007 #2
    Let [tex]z=f(x,y)[/tex] be your (well-behaved) surface. And without lose of generality let us find the closet point to the origin. Now the distance is [tex]s(x,y) = x^2+y^2+z^2[/tex] (I removed the square root, because it is minimized the distance squared rather than distance itself).

    So the problem is:
    1)Minimized [tex]s(x,y,z)[/tex]
    2)Subject to [tex]z=f(x,y) \implies z - f(x,y) = 0[/tex]

    So,
    [tex]\left< \frac{\partial s}{\partial x} , \frac{\partial s}{\partial y}, \frac{\partial s}{\partial z} \right> = k\left< - \frac{\partial f}{\partial x} , - \frac{\partial f}{\partial y}, 1 \right>[/tex]
    And, [tex]z-f(x,y)=0[/tex]

    That is the general approach to this problem.
     
  4. Jul 16, 2007 #3

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    One way to think about Lagrange Multipliers is this: In order to find a maximum point of a function of several variable, pick some "starting point" at random, find the gradient vector of the function, and move in the direction it points (for minimum move in the opposite direction). Keep doing that until you get gradient equal to 0 and have no direction to follow.

    If you are required to stay on a given surface, and so can't "follow" the gradient vector, take its projection onto the surface and move in that direction. You can keep doing that until there is no projection: the gradient vector is perpendicular to the surface and so is parallel to the normal vector of the surface- one must be a scalar multiple of the other.

    The two vectors Kummer uses are exactly the gradient of the distance (squared) function and the normal vector of the surface (if z= f(x,y), then F(x,y,z)= z- f(x,y) = 0 gives a "level surface" of F(x,y,z) and its gradient is normal to the level surface.)
     
  5. Jul 17, 2007 #4

    mathwonk

    User Avatar
    Science Advisor
    Homework Helper
    2015 Award

    max min occurs where the derivative is zero. if you restruct to a surface tht means the derivative is zero on thr tangent plane to that surface, i.e. the gradient is parallel to the normal vector to thag surface. so lagrange multipliers amount to finding where the graient of your function is parallel to, hen ce a multiple of, the normal to the given surface.

    so to find a point nearest a given surface g=0, you look for a point where the distance function has grDIENT PARALLEL TO THE GRADIENT OF G.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Derive Lagrange multipliers
  1. Lagrange Multipliers. (Replies: 0)

  2. Lagrange Multipliers (Replies: 10)

  3. Lagrange multiplier (Replies: 1)

  4. Lagrange multiplier (Replies: 6)

Loading...