Simple Lagrangian for constrained motion - please give your input

Click For Summary

Discussion Overview

The discussion revolves around finding the Lagrangian for a particle constrained to move along the path defined by the equation y = sin(x). Participants explore various approaches to formulating the Lagrangian, including substitution methods and the use of Lagrange multipliers, while addressing the implications of constraints in the context of Lagrangian mechanics.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant proposes a method to find the Lagrangian by substituting y = sin(x) directly into the kinetic and potential energy expressions.
  • Another participant agrees with the initial approach but questions its general applicability to all functions of the form y = f(x).
  • A different participant suggests that while substitution can work, it is not the general method for handling constrained motion, advocating for the use of constraint equations and Lagrange multipliers instead.
  • Further elaboration is provided on the use of Lagrange multipliers, explaining how they introduce additional parameters to the Lagrangian and how they relate to the equations of motion.
  • One participant emphasizes that substituting constraints directly into the Lagrangian may lead to incorrect results, as it assumes independence of variables that are actually dependent due to the constraint.

Areas of Agreement / Disagreement

Participants express differing views on the validity of directly substituting constraints into the Lagrangian. While some find the initial approach acceptable, others argue it is not generally correct and advocate for a more formal method involving Lagrange multipliers. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

There are limitations regarding the assumptions made about the independence of variables when using substitution methods. The discussion highlights the need for careful consideration of constraints in Lagrangian mechanics.

LFCFAN
Messages
22
Reaction score
0
Hello fellow PF members

I was wondering how one would go about finding the lagrangian of a problem like the following:

A particle is constrained to move along the a path defined by y = sin(x).


Would you simply do this:

x = x
y = sin(x)

x'^2 = x'^2

y'^2 = x'^2 (cos(x))^2


Kinetic energy = T = (1/2)m(x'^2 (1+ (cos(x))^2))

Potential = V = mgsin(x)


Therefore, the lagrangian is given by

L = T - V = (1/2)m(x'^2 (1+ (cos(x))^2)) - mgsin(x)



Or have a been totally wrong throughout?


Thanks a lot guys. Any input would be greatly appreciated.
 
Physics news on Phys.org
I think it looks fine.
 
Thanks. Would it be similar for all y=f(x)?
 
LFCFAN said:
Thanks. Would it be similar for all y=f(x)?
If there is always the constraint that the particle moves along the curve,then yes. You can also generalise this to surfaces. Consider a particle moving along a surface ##f(r,\theta, \phi) = 0##. This gives you a dependence among ##r, \theta ## and ##\phi## and you can express anyone of them in terms of another to eliminate the number of generalised coordinates and hence the number of Lagrange's equations you have to solve.
 
You can solve this particular constrained problem by substitution y -> sin(x), yes. However, that's not the general way of working with constrained motion. Substitution is not always trivial. Instead, one may define the equation of constraint.

[tex]f(x, y) = y - sin(x) = 0[/tex]

In general, constraint can be any constant function. In this case, y - sin(x) is the obvious choice.

With constraints included, your Lagrangian picks up an extra parameter - Undetermined Lagrange Multiplier. It is customary for undetermined multiplier to be denoted as [itex]\lambda[/itex].

[tex]\mathcal{L}(x, y, \lambda) = T - V - \lambda f(x)[/tex]

If you have multiple constraints, you can have multiple functions [itex]f_i(x, y, ...)[/itex], each associated with its own multiplier [itex]\lambda_i[/itex]. From here on, the necessary conditions for finding solution are exactly the same. So let's consider your kinetic and potential terms.

[tex]\mathcal{L} = \frac{1}{2}m\dot{x}^2 + \frac{1}{2}m\dot{y}^2 - mg~sin(x) - \lambda \left(y - sin(x)\right)[/tex]

[tex]\frac{\partial \mathcal{L}}{\partial x} - \frac{d}{dt}\frac{\partial \mathcal{L}}{\partial \dot{x}} = -mg~cos(x) + \lambda~cos(x) - m\ddot{x} = 0[/tex]
[tex]\frac{\partial \mathcal{L}}{\partial y} - \frac{d}{dt}\frac{\partial \mathcal{L}}{\partial \dot{y}} = - \lambda y - m\ddot{y} = 0[/tex]

Or if we rearrange it into a bit more sightly form, we have the equations of motion.

[tex]m\ddot{x} = (\lambda - mg)cos(x)[/tex]
[tex]m\ddot{y} = -\lambda[/tex]

Here, it's pretty clear why multiplier [itex]\lambda[/itex] works as a constraint force in the EoM. The neat thing about it is that even if you are using generalized coordinates, where trying to think about generalized forces might be a bit tricky, [itex]\lambda[/itex] will continue to work as a generalized constraint force without you having to do any extra work.

Finally, if you solve the above keeping the constraint equation in mind, you should get exactly the same motion you'd get if you solved the problem using the substitution method.
 
K^2 said:
You can solve this particular constrained problem by substitution y -> sin(x), yes. However, that's not the general way of working with constrained motion. Substitution is not always trivial. Instead, one may define the equation of constraint.

[tex]f(x, y) = y - sin(x) = 0[/tex]

In general, constraint can be any constant function. In this case, y - sin(x) is the obvious choice.

With constraints included, your Lagrangian picks up an extra parameter - Undetermined Lagrange Multiplier. It is customary for undetermined multiplier to be denoted as [itex]\lambda[/itex].

[tex]\mathcal{L}(x, y, \lambda) = T - V - \lambda f(x)[/tex]

If you have multiple constraints, you can have multiple functions [itex]f_i(x, y, ...)[/itex], each associated with its own multiplier [itex]\lambda_i[/itex]. From here on, the necessary conditions for finding solution are exactly the same. So let's consider your kinetic and potential terms.

[tex]\mathcal{L} = \frac{1}{2}m\dot{x}^2 + \frac{1}{2}m\dot{y}^2 - mg~sin(x) - \lambda \left(y - sin(x)\right)[/tex]

[tex]\frac{\partial \mathcal{L}}{\partial x} - \frac{d}{dt}\frac{\partial \mathcal{L}}{\partial \dot{x}} = -mg~cos(x) + \lambda~cos(x) - m\ddot{x} = 0[/tex]
[tex]\frac{\partial \mathcal{L}}{\partial y} - \frac{d}{dt}\frac{\partial \mathcal{L}}{\partial \dot{y}} = - \lambda y - m\ddot{y} = 0[/tex]

Or if we rearrange it into a bit more sightly form, we have the equations of motion.

[tex]m\ddot{x} = (\lambda - mg)cos(x)[/tex]
[tex]m\ddot{y} = -\lambda[/tex]

Here, it's pretty clear why multiplier [itex]\lambda[/itex] works as a constraint force in the EoM. The neat thing about it is that even if you are using generalized coordinates, where trying to think about generalized forces might be a bit tricky, [itex]\lambda[/itex] will continue to work as a generalized constraint force without you having to do any extra work.

Finally, if you solve the above keeping the constraint equation in mind, you should get exactly the same motion you'd get if you solved the problem using the substitution method.


Thanks a lot man.

But what I've done is correct, right? Literally can go on to find equations of motion with my lagrangian?
 
No you should not just substitute a constraint into your Lagrangian. Look again at how the Euler-Lagrange equations were derived, they were derived under the assuming that [itex]x,y,\dot{x},\dot{y}[/itex] are independent .

Sometimes what you have done will work, but that's just an accident. In general it's incorrect and there's no guarantee the resulting equations of motion will be correct. What you should do, is either use the method of Lagrange multiplies like described above, or write down the Lagrangian without worrying about the constraint, and then apply it once you have the equations of motion.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K