Lagrangian of two equal masses attached by a spring

Click For Summary

Homework Help Overview

The discussion revolves around the Lagrangian formulation for a system of two equal masses connected by a spring, constrained to move along the x-axis. The participants explore the kinetic and potential energy components of the system, particularly focusing on the correct representation of the Lagrangian in terms of the center of mass and the spring extension.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the formulation of the Lagrangian, questioning the inclusion of kinetic energy associated with the spring's extension and the center of mass. There are attempts to express the Lagrangian in terms of both the individual positions and velocities of the masses and the new variables representing the center of mass and spring extension.

Discussion Status

The discussion has evolved with participants providing guidance on correctly formulating the Lagrangian. Some have successfully derived expressions for the Lagrangian and the equations of motion, while others express uncertainty about the physical interpretations of their results. There is acknowledgment of the need to account for both the center of mass motion and the relative motion of the masses.

Contextual Notes

Participants note potential confusion regarding the kinetic energy contributions from both the center of mass and the relative motion of the masses. There is also mention of the oscillatory behavior expected from the spring system, with discussions on the implications of the derived equations on the nature of the motion.

DanielA
Messages
27
Reaction score
2
(note: I'm going to represent the lagrangian as simply L because I don't know how to do script L in latex.)

Homework Statement


Two particles of equal masses m are confined to move along the x-axis and are connected by a spring with potential energy ##U = \frac{1}/{2}kx^2## (here x is the extension of the spring, ##x = (x_1-x_2-l)## where l is the unstretched length of the spring. Mass 1 remains to the right of mass 2 at all times

a) Write the lagrangian for the system in terms of the positions and velocities of the individual particles.
b)Rewrite L in terms of the new variables X = ##\frac{1}{2}(x_1 + x_2)## (the center of mass position) and x, the extension of the spring from before.
c) Solve for X(t) and x(t) and describe the motion in terms of these variables

Homework Equations


L = T - U
Lagrange Equations:
##\frac{\partial L}{\partial X} = \frac{d}{dt}(\frac{\partial L}{\partial \dot X})##
and
##\frac{\partial L}{\partial x} = \frac{d}{dt}(\frac{\partial L}{\partial \dot x})##

The Attempt at a Solution


I think I messed up my Lagrangian.
I said T = ##\frac{1}{2}M\dot X^2## because I can't really imagine how a variable for the stretching of a spring would have kinetic energy. After all, no mass is associated with that. Maybe I could represent KE with an "initial potential" variable ##U_i## and say ##T = U_i - U_{spring}##, but that doesn't really change anything since I would still not have a ##\dot x## dependence.
U = ##\frac{1}{2}kx^2## because the CM has no concern for the internal configuration so the CM has no potential energy term.

L = T-U = ##\frac{1}{2}M\dot X^2 - \frac{1}{2}kx^2##

Doing the Legrange equation for the X variable, I get, with M being the total mass of the system, ##M\dot x = constant## or ##x = \frac{C}{M}t## This result simply means that the center of mass will move in the x direction at a constant velocity "C/M" where C is a unknown constant. This is expected and shows that the velocity of the CM is unaffected by the orientation of the masses.

Doing the same for the x variable, I get
-kx = 0
or
x = 0.
This result surprised me, and makes me think I created the lagrangian incorrectly because the masses should be able to oscillate based off of initial conditions. After all, if it starts compressed or stretched, then it'll just oscillate back and forth and the x variable should represent that.
 
Last edited:
Physics news on Phys.org
DanielA said:
(note: I'm going to represent the lagrangian as simply L because I don't know how to do script L in latex.)

Homework Statement


Two particles of equal masses m are confined to move along the x-axis and are connected by a spring with potential energy ##U = 1/2kx^2## (here x is the extension of the spring, x = (x1-x2-l) where l is the unstretched length of the spring. Mass 1 remains to the right of mass 2 at all times

a) Write the lagrangian for the system in terms of the positions and velocities of the individual particles.
b)Rewrite L in terms of the new variables X = ##1/2(x_1 + x_2)## (the center of mass position) and x, the extension of the spring from before.
c) Solve for X(t) and x(t) and describe the motion in terms of these variables

Homework Equations


L = T - U
Lagrange Equations:
##\frac{\partial L}{\partial X} = \frac{d}{dt}(\frac{\partial L}{\partial \dot X})##
and
##\frac{\partial L}{\partial x} = \frac{d}{dt}(\frac{\partial L}{\partial \dot x})##

The Attempt at a Solution


I think I messed up my Lagrangian.
I said T = ##\frac{1}{2}M\dot X^2## because I can't really imagine how a variable for the stretching of a spring would have kinetic energy. .After all, no mass is associated with that.
This is not true. The centre of mass can have velocity, and kinetic energy associated with it, and the masses have velocities with respect to the centre of mass, and kinetic energy in the centre - of - mass system.
Write out the Lagrangian in terms of x1, x2, and the velocities ##\dot {x_1}## and ##\dot {x_2}## first. Then introduce the new variables X and x .
DanielA said:
Maybe I could represent KE with an "initial potential" variable ##U_i## and say ##T = U_i - U_{spring}##, but that doesn't really change anything since I would still not have a ##\dot x## dependence.
U = ##\frac{1}{2}kx^2## because the CM has no concern for the internal configuration so the CM has no potential energy term.

L = T-U = ##\frac{1}{2}M\dot X^2 - \frac{1}{2}kx^2##

Doing the Legrange equation for the X variable, I get, with M being the total mass of the system, ##M\dot x = constant## or ##x = \frac{C}{M}t## This result simply means that the center of mass will move in the x direction at a constant velocity "C/M" where C is a unknown constant. This is expected and shows that the velocity of the CM is unaffected by the orientation of the masses.

Doing the same for the x variable, I get
-kx = 0
or
x = 0.
This result surprised me, and makes me think I created the lagrangian incorrectly because the masses should be able to oscillate based off of initial conditions. After all, if it starts compressed or stretched, then it'll just oscillate back and forth and the x variable should represent that.
 
ehild said:
This is not true. The centre of mass can have velocity, and kinetic energy associated with it, and the masses have velocities with respect to the centre of mass, and kinetic energy in the centre - of - mass system.
Write out the Lagrangian in terms of x1, x2, and the velocities ##\dot {x_1}## and ##\dot {x_2}## first. Then introduce the new variables X and x .
Did you type that wrong? I did say the centre of mass can have velocity and kinetic energy associated with it.
Anyway, I put my laziness aside and solved the equations I needed to substitute X and x into my Lagrangian (basically I tried to short cut it, confused myself, and created extra work. Lesson learned.) ##L = \frac{1}{2}m(\dot x_1^2 + \dot x_2^2) - \frac{1}{2}k(x_1-x_2-l)^2##
I got a new Lagrangian as ##L = \frac{1}{2}(2\dot X^2 + \frac{1}{2}\dot x^2) -\frac{1}{2}kx^2## with substitutions ##x_1 = X + \frac{1}{2}x + \frac{1}{2}l, x_2 = X - \frac{1}{2}x-\frac{1}{2}l, \dot x_1 = \dot X + \dot x, \dot x_2 = \dot X - \frac{1}{2}\dot x##

My X solution did not change (since 2m = M) and my x solution did change to the oscillation I expected.
##x(t) = A\cos(\sqrt 2 \omega t - \delta)## Where, of course, A and ##\delta## are related to initial conditions. The interesting difference is the ##\sqrt 2## term. Would that make the oscillation quasiperiodic? Or does that only occur with 1 mass with different springs that have an irrational ratio between their angular frequencies?

In the end, I was right about the CM having no potential term since the substitution canceled out everything but the x as expected so that's something at least.
 
Last edited:
DanielA said:
Did you type that wrong? I did say the centre of mass can have velocity and kinetic energy associated with it.
No, I said that kinetic energy is associated both to the motion of the CoM and to the relative motion with respect to it. You only took the KE of the CoM into account
 
ehild said:
No, I said that kinetic energy is associated both to the motion of the CoM and to the relative motion with respect to it. You only took the KE of the CoM into account
I guess I misread it. Does the math seem correct though? Or at least the result seems physically sound? It seems like it is to me. Maybe I made a minor math error somewhere, but I think the forms and physical interpretations of the equations are correct now.
 
DanielA said:
I guess I misread it. Does the math seem correct though? Or at least the result seems physically sound? It seems like it is to me. Maybe I made a minor math error somewhere, but I think the forms and physical interpretations of the equations are correct now.
The Lagrangian is correct except of the missing mass m.
The results are also correct, the CoM moves with constant velocity and the relative displacement x=x1-x2-l performs SHM with angular frequency ##ω=\sqrt {\frac{k}{2m}}##
Why did you think the motion quasiperiodic? There is only one angular frequency, and it can be any real number. Your ω would be the angular frequency of a single mass attached to the same spring, but you have two masses, and the same force moves both of them.
 
ehild said:
The Lagrangian is correct except of the missing mass m.
The results are also correct, the CoM moves with constant velocity and the relative displacement x=x1-x2-l performs SHM with angular frequency ##ω=\sqrt {\frac{k}{2m}}##
Why did you think the motion quasiperiodic? There is only one angular frequency, and it can be any real number. Your ω would be the angular frequency of a single mass attached to the same spring, but you have two masses, and the same force moves both of them.

I missed that when typing it. I had the mass on my paper. I didn't really think it would be quasiperiodic, as in my study that case was only mentioned for two or more springs. I just haven't encountered a frequency like that and there were no examples of two masses coupled by a spring. I don't really have the ability to graph the motion for myself here either or I'd have checked it.
 
See t
DanielA said:
I missed that when typing it. I had the mass on my paper. I didn't really think it would be quasiperiodic, as in my study that case was only mentioned for two or more springs. I just haven't encountered a frequency like that and there were no examples of two masses coupled by a spring. I don't really have the ability to graph the motion for myself here either or I'd have checked it.
See the video

First, the two carts move together with the centre of mass. Next, the centre of mass is stationary, and both carts move in opposite directions, performing SHM. That means, their distantance changes periodically. In your case, the CoM moves with constant velocity, and the masses perform SHM in opposite directions with respect to it.It depends on the initial conditions.
 

Similar threads

Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 11 ·
Replies
11
Views
973
  • · Replies 5 ·
Replies
5
Views
998
Replies
1
Views
1K
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K