Simple Lagrangian for constrained motion - please give your input

In summary, In this conversation, the expert has explained that there are two ways of solving a problem involving constrained motion: by substitution or by defining the equation of constraint. Substitution is not always trivial, and may require knowledge of generalized coordinates. When including constraints, the Lagrangian acquires an extra parameter, the Undetermined Lagrange Multiplier. This multiplier is used to determine the motion of the particle when multiple constraints are applied.
  • #1
LFCFAN
22
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
  • #2
I think it looks fine.
 
  • #3
Thanks. Would it be similar for all y=f(x)?
 
  • #4
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.
 
  • #5
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.
 
  • #6
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?
 
  • #7
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.
 

1. What is a Simple Lagrangian for constrained motion?

A Simple Lagrangian for constrained motion is a mathematical tool used to analyze the motion of a system with constraints. It is based on the Lagrangian formalism, which is a mathematical framework used to describe the dynamics of classical systems. The Simple Lagrangian takes into account the constraints on the system and allows for the calculation of the equations of motion.

2. How is a Simple Lagrangian different from a regular Lagrangian?

The main difference between a Simple Lagrangian and a regular Lagrangian is that the Simple Lagrangian takes into account the constraints on the system, whereas the regular Lagrangian does not. This means that the Simple Lagrangian is more useful for analyzing systems with constraints, while the regular Lagrangian is better suited for unconstrained systems.

3. What types of constraints can be included in a Simple Lagrangian?

A Simple Lagrangian can include both holonomic and non-holonomic constraints. Holonomic constraints are those that can be expressed as equations between the coordinates of the system, while non-holonomic constraints are those that cannot be expressed in this way. Examples of constraints that can be included in a Simple Lagrangian include fixed length constraints, fixed angle constraints, and rolling constraints.

4. How is a Simple Lagrangian used to solve for the equations of motion?

The Simple Lagrangian is used to solve for the equations of motion by first finding the Lagrangian for the system, which is the difference between the kinetic and potential energies of the system. Then, the constraints are incorporated into the Lagrangian using Lagrange multipliers. The resulting equations of motion can then be solved to find the motion of the system.

5. What are the advantages of using a Simple Lagrangian for constrained motion?

Using a Simple Lagrangian for constrained motion has several advantages. It allows for a systematic and efficient approach to solving for the equations of motion, and it can also handle a wide range of constraints. Additionally, the Simple Lagrangian can be used for both conservative and non-conservative systems, making it a versatile tool for analyzing constrained motion.

Similar threads

Replies
2
Views
189
Replies
3
Views
941
Replies
4
Views
864
  • Mechanics
Replies
2
Views
555
  • Mechanics
Replies
3
Views
973
Replies
5
Views
932
Replies
2
Views
613
Replies
25
Views
1K
Replies
11
Views
1K
  • Advanced Physics Homework Help
Replies
7
Views
1K
Back
Top