2
$\begingroup$

Edit: As AlexR points out in this comment, there is no mathematical reason behind defining the Lagrangian, except because it makes the Lagrange Multiplier Method easier to memorize. I find this confusing; for me, it is easier to find the critical values of the system of equations.


I still haven't found an explanation why is the Lagrange function defined as:

$$\Lambda(x,y,\lambda) = f(x,y)+\lambda \cdot g(x,y)$$

Every author doesn't explain the procedure and I don't think is necessary to learn Lagrangian Mechanics to understand the formula, some examples:

Wikipedia:

To incorporate these conditions into one equation, we introduce an auxiliary function

enter image description here

The Idea Shop:

Now, if we're clever we can write a single equation that will capture this idea. This is where the familiar Lagrangian equation comes in:

$L=f-\lambda(g-c)$

Lagrange Multipliers Without Permanent Scarring by Dan Kein:

We can compactly represent both equations at once by writing the Lagrangian:

$\Lambda(x,\lambda)=f(x)-\lambda g(x)$

The list goes on, the thing is that "Lagrangian" seems to have different meanings depending on the context: https://en.wikipedia.org/wiki/Lagrangian_%28disambiguation%29

So in this context, What does "Lagrangian function" means, and what are the steps to get to that function?

Thanks in advance.

$\endgroup$
3
  • $\begingroup$ The book "Mathematics for Economists" by Carl P. Simon and Lawrence Blume, p. 413 - 417 gives a nice explanation. $\endgroup$ Commented Aug 10, 2015 at 19:24
  • $\begingroup$ The Lagrangian $L:=f-\lambda g$ is a purely formal device without any intuitive geometrical or physical content. The essential point is the following: In a conditionally stationary point $x$ we necessarily have $\nabla f(x)=\lambda\nabla g(x)$ for some $\lambda\in{\mathbb R}$, whereby this latter equation can be "explained intuitively". $\endgroup$ Commented Aug 10, 2015 at 19:32
  • $\begingroup$ @NigelOvermars, Nope, it does the same thing: "There is a convenient way of writing this system (6). Form the Lagrangian Function" I really dont understand how the author can summarise a system of three equations with three unknowns into a simple function where the partial derivatives suddenly disappear. $\endgroup$
    – Jane Smith
    Commented Aug 10, 2015 at 20:00

1 Answer 1

2
$\begingroup$

I'm not entirely sure what you're getting at, but I think this maybe helpful to you:

The intuition is that an extreme point of $f(x)$ under the condition $g(x) = 0$ must satisfy $g(x) = 0$ and $\nabla_\nu f(x) = 0$ for any direction $\nu$ tangential to the candidate set $\{g(x) = 0\}$. If this were not the case, we could go a small, positive distance along $\nabla_\nu f$ (or $-\nabla_\nu f$) to improve the function value without missing the constraint. Write these two below each other and get $$\pmatrix{\nabla f + \lambda \nabla g\\g}(x) = 0$$ This however is the $z$-gradient of $f + \lambda g$ if we write $z = (x,\lambda)$.

It turns out that this in fact is the necessary condition for a constrained minimisation (or maximisation).

$\endgroup$
24
  • $\begingroup$ That's not quite right: you don't have $\nabla f(x)=0$, you have $\nabla f(x) \cdot u=0$ for every $u$ which is a direction tangent to the surface $g(x)=0$. $\endgroup$
    – Ian
    Commented Aug 10, 2015 at 19:19
  • $\begingroup$ @Ian Yes, that's right. Let me fix this. $\endgroup$
    – AlexR
    Commented Aug 10, 2015 at 19:19
  • $\begingroup$ What are the steps to get to the Lagrangian function? $\endgroup$
    – Jane Smith
    Commented Aug 10, 2015 at 19:25
  • $\begingroup$ @JaneSmith It's already shown in the above: the two conditions $\nabla_x f = \lambda \nabla_x g$ (which says "the gradient of $f$ is parallel to the gradient of $g$", hence the gradient of $f$ is orthogonal to the level set of $g$) and $g(x)=0$ can be combined into $\nabla_z(f+\lambda g)=0$, where $z=(x,\lambda)$. $\endgroup$
    – Ian
    Commented Aug 10, 2015 at 19:27
  • 1
    $\begingroup$ @AlexR, Thanks for your help. I'm gonna accept your answer and add an edit to my answer to bring attention to this comment. $\endgroup$
    – Jane Smith
    Commented Aug 10, 2015 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .