Finding the Lagrangian for a Two-Mass System Connected by a String

In summary, the two masses are connected by a string passing through a hole on a smooth table. The generalized coordinates of the system are l_1 and l_2. Assuming m_2 moves only in a vertical line, the Lagrangian is easy to calculate and is l_1+l_2. The equations of motion are m_1\ddot{l_1}=0 and m_2\ddot{l_2}+m_2g=0. The way I would interpret the words "generalized coordinates" you should only have ONE generalized coordinate in this problem because there is only one degree of freedom. Thanks AlephZero for your help!
  • #1
HalfManHalfAmazing
54
0

Homework Statement


Two masses [tex]m_1[/tex] and [tex]m_2[/tex] are connected by a string passing through a hole on a smooth table so that [tex]m_1[/tex] rests on the table surface and [tex]m_2[/tex] hangs suspended. Assuming [tex]m_2[/tex] moves only in a vertical line determine the generalized coordinates for the system. Find the Lagrangian and find the Lagrangian Equations.

The Attempt at a Solution


I began by defining [tex]l[/tex] to the length of the string. I also assumed [tex]m_1[/tex] moved only along the x-axis. Thus the coordinates of [tex]m_1[/tex] are simply [tex]l_1[/tex] and the coordinates of [tex]m_2[/tex] are [tex]l_2[/tex] where [tex]l = l_1 + l_2[/tex]. Are these the correct generalized coords? Determining the velocities (if these are the correct coords) is trivial and thus the lagrangian is also easy to calculate. My difficulty is with determing the coordinates. Thanks for your help!
 
Physics news on Phys.org
  • #2
Also just to confirm if i did everything right, my equations of motion are [tex] m_1\ddot{l_1} = 0[/tex] and [tex] m_2\ddot{l_2} + m_2g = 0 [/tex]
 
  • #3
The way I would interpret the words "generalized coordinates" you should only have ONE generalized coordinate in this problem because there is only one degree of freedom.

In other words let the generalized coordinate by q, then displacement of m1 is x=q horizontally, and the displacement of m2 is y=-q vertically (positive upwards) because the string is inextensible.

Your equations of motion as you wrote them are not right, since m_1 l"_1 = 0 implies mass m_1 has no acceleration. Your equation don't contain the fact that there is a string joining the masses, because you haven't used the contraint l1 = (plus or minus) l2 in your two equations.

The point of using generalized coordinates is to formulate the problem in terms of a small number of degrees of freedom right from the start by writing the energies in terms of the generalized variables only.

You should get just one equation of motion involving q, m1, m2 and g.

The correct equations motion for the two masses are m_1l"_1 = P and m_2l"_2 + m2_g = -P where P is the tension in the string - but doing it that way is not solving the problem using generalized coordinates!
 
Last edited:
  • #4
Thanks AlephZero! I'll post my next 'try'.
 
  • #5
Man. I can't produce the proper generalized coordinates. if l = length of the string and q = the distance of m_1 along the x-axis (or q = x). then l - q = y ?
 
  • #6
if that's the case should [tex] \dot{y} = -\dot{q} [/tex]
 
  • #7
You seem to be getting there. There is more than one way of imagining this problem, so questions like "is this equation right" can't be answered without a picture.

This is how I'm thinking of it. If you imagined m1 on the left of m2, or had q positive in the opposite direction, the Lagrangian equation would be different but when you tranform back to physical X-Y coordinates the answer would be the same.

I chose the origin of the X-Y axes to line up with the initial position of the masses.

I drew it so that x = q, and y = -q
therefore x' = q' and y' = -q'
 

Attachments

  • lagrange.gif
    lagrange.gif
    4.6 KB · Views: 524
Last edited:
  • #8
Shouldn't y = l - q? How can the location of the second mass be always the same from the origin as the first mass? Or am I misunderstanding still?
 
  • #9
You can choose to put the origin of the axes anywhere you like. If you prefer to put the origin of the X-Y plane at the point where m1 is, then yes you would have y = l-q (where l is length of the vertical part of the string, not the length of the whole string as you originally said).

I chose to put the origin underneath m1 and at the same level as m2. It will work out right whichever way you do it.

One of the nice things about the Lagrange method is, since you only need to work out the PE and KE for each object in terms of the generalized coordinates, you can use a different physical X-Y-Z coordinate systems for each object if it makes things simpler.
 
  • #10
Thanks so much AlephZero! I'll post my last attempt (I say last because I feel very close to the solution)!
 

FAQ: Finding the Lagrangian for a Two-Mass System Connected by a String

What is the Lagrangian of a system?

The Lagrangian of a system is a mathematical function that describes the dynamics of a physical system. It is derived from the principle of least action, which states that the path a system takes between two points is the one that minimizes the action integral. The Lagrangian includes the system's kinetic and potential energies, as well as any external forces acting on the system.

How is the Lagrangian different from the Hamiltonian?

The Lagrangian and Hamiltonian are two different approaches to studying the dynamics of a system. The Lagrangian is a function of the system's generalized coordinates and velocities, while the Hamiltonian is a function of the system's generalized coordinates and momenta. The Hamiltonian can be derived from the Lagrangian, but they can also be used independently to analyze a system.

What is the importance of the Lagrangian in physics?

The Lagrangian is an important tool in physics because it allows us to describe and analyze the dynamics of complex systems using a concise mathematical framework. It is used in various fields, such as classical mechanics, quantum mechanics, and general relativity, to study the behavior of physical systems and make predictions about their future states.

Can the Lagrangian be used for systems with constraints?

Yes, the Lagrangian can be used for systems with constraints. In such cases, the constraints are incorporated into the Lagrangian through the use of Lagrange multipliers. This allows for the inclusion of additional information about the system, such as restrictions on its motion or the presence of external forces, which can affect the dynamics of the system.

How is the Lagrangian used in the calculus of variations?

The calculus of variations is a mathematical method used to find the path that minimizes a functional. In the case of the Lagrangian, the action integral is the functional that is minimized. By taking the variational derivative of the action with respect to the generalized coordinates, the Euler-Lagrange equations can be derived, which are used to find the equations of motion for a system described by the Lagrangian.

Back
Top