Find lagrangian (please check work)

  • Thread starter Thread starter 939
  • Start date Start date
  • Tags Tags
    Lagrangian Work
Click For Summary

Homework Help Overview

The discussion revolves around forming the Lagrangian for the function F(x, y) = 96xy - 4x, subject to the constraint x + y = 11. Participants are examining the correct formulation of the Lagrangian and the implications of different representations of the constraint.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants are questioning the validity of two different forms of the Lagrangian based on how the constraint is expressed. There is discussion about whether both forms are correct and the implications of choosing one over the other. Additionally, there are inquiries about the nature of optimality and the correctness of partial derivatives.

Discussion Status

The discussion is active, with participants exploring different interpretations of the Lagrangian formulation. Some guidance has been offered regarding the importance of correctly solving the equations and understanding the implications of the chosen form of the Lagrangian in relation to optimization.

Contextual Notes

Participants are navigating the nuances of Lagrangian mechanics, particularly in the context of optimization problems, and are considering the implications of their choices on subsequent analysis.

939
Messages
110
Reaction score
2

Homework Statement



F(x, y) = 96xy - 4x
subject to constraint of 11 = x + y

Form the lagrangian.

Homework Equations



F(x, y) = 96xy - 4x
subject to constraint of 11 = x + y

The Attempt at a Solution



My only question is solving 11 = x + y

My book says the answer is:
L = 96xy - 4x + λ(11 - x - y)

But I got:
L = 96xy - 4x + λ(x + y - 11)

Just to confirm, both are correct because it just depends how you solve the constraint, no?
 
Physics news on Phys.org
939 said:

Homework Statement



F(x, y) = 96xy - 4x
subject to constraint of 11 = x + y

Form the lagrangian.

Homework Equations



F(x, y) = 96xy - 4x
subject to constraint of 11 = x + y

The Attempt at a Solution



My only question is solving 11 = x + y

My book says the answer is:
L = 96xy - 4x + λ(11 - x - y)

But I got:
L = 96xy - 4x + λ(x + y - 11)

Just to confirm, both are correct because it just depends how you solve the constraint, no?

It makes no difference: one λ will just have the opposite sign of the other.

However, if does matter when you are doing post-optimality analysis. For example, you can use the value of λ to find the approximate change in the optimal value of F when the constraint changes to x+y = 11.1, for example. In that case you need to understand exactly which form of Lagrangian to use, or at least, how to apply either +λ or -λ in the analysis. It also matters whether you are maximizing or minimizing, and in your post you did not say which you were doing.
 
  • Like
Likes   Reactions: 1 person
Ray Vickson said:
It makes no difference: one λ will just have the opposite sign of the other.

However, if does matter when you are doing post-optimality analysis. For example, you can use the value of λ to find the approximate change in the optimal value of F when the constraint changes to x+y = 11.1, for example. In that case you need to understand exactly which form of Lagrangian to use, or at least, how to apply either +λ or -λ in the analysis. It also matters whether you are maximizing or minimizing, and in your post you did not say which you were doing.

The goal was to find an optimal value subject to the constraint... Does it matter then, and how do you know which one to pick?

Also, both partial derivatives would be correct, right?
 
939 said:
The goal was to find an optimal value subject to the constraint... Does it matter then, and how do you know which one to pick?

Also, both partial derivatives would be correct, right?

What is optimal? Maximum? Minimum?

I don't know what you mean when you ask if both partials are correct; you did not give formulas for the partials, so I have no way to know if they are correct or not.
 
Last edited:
  • Like
Likes   Reactions: 1 person
Ray Vickson said:
What is optimal? Maximum? Minimum?

I don't know what you mean when you ask if both partials are correct; you did not give formulas for the partials, so I have no way to know if they are correct or not.

Sorry.

I mean if you were NOT asked to find a maximum or minimum, and were ONLY asked to find the lagrangian and the three partial derivatives - would these two answers be correct regardless of how you solved the constraint function?
 
939 said:
Sorry.

I mean if you were NOT asked to find a maximum or minimum, and were ONLY asked to find the lagrangian and the three partial derivatives - would these two answers be correct regardless of how you solved the constraint function?

No: you need to solve the equations correctly! I think maybe you meant to say "regardless of which form of Lagrangian you use". Then the answer would be yes, if you make no errors during solving.

However: you don't really need to ask; you can just go ahead and do it both ways to see what you get. In fact, that would be faster than submitting a question and waiting for an answer!
 
Last edited:
  • Like
Likes   Reactions: 1 person

Similar threads

Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
Replies
2
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K