Two masses connected by spring, find x(t) of m1.

  • Thread starter Thread starter AbigailM
  • Start date Start date
  • Tags Tags
    Spring Two masses
Click For Summary
SUMMARY

The discussion focuses on deriving the position function x(t) for two identical masses connected by a spring on a frictionless track. The masses, each of mass m, are initially separated by an unstretched spring length l0, with the left mass moving at an initial speed v0 while the right mass is at rest. The equations of motion derived from the Lagrangian are m&ddot;x = k(y - x - l0) and m&ddot;y = -k(y - x - l0). The final solution for the position of the left mass is x(t) = (v0/ω)sin(ωt) + (l0/2)cos(ωt) - (l0/2), where ω = √(2k/m).

PREREQUISITES
  • Understanding of Lagrangian mechanics
  • Familiarity with harmonic motion and oscillatory systems
  • Knowledge of differential equations
  • Basic concepts of spring dynamics and Hooke's Law
NEXT STEPS
  • Study the derivation of Lagrangian equations of motion
  • Explore the concept of center of mass in oscillatory systems
  • Learn about the effects of initial conditions on harmonic oscillators
  • Investigate the relationship between spring constant k and oscillation frequency ω
USEFUL FOR

Physics students, mechanical engineers, and anyone interested in understanding dynamics of coupled oscillators and spring-mass systems.

AbigailM
Messages
46
Reaction score
0

Homework Statement


Two identical carts (of mass m) are free to move on a frictionless, straight horizontal track. The masses are connected by a spring of constant k and un-stretched length [itex]l_{0}[/itex]. Initially the masses are a distance [itex]l_{0}[/itex] apart with the mass on the left having a speed [itex]v_{0}[/itex] to the right and the mass on the right at rest. Find the position of the mass on the left as a function of time.

Homework Equations


I'll write the position of [itex]m_{1}[/itex] as x and the position of [itex]m_{2}[/itex] as y.

[itex]m_{1}=m_{2}[/itex]

[itex]x(0)=0[/itex]

[itex]\dot{x}(0)=v_{0}[/itex]

[itex]q=y-x-l_{0}[/itex] and its derivatives.

[itex]L=\frac{1}{2}m\dot{x}^{2}+\frac{1}{2}m\dot{y}^{2}-\frac{1}{2}k(y-x-l_{0})^{2}[/itex]

The Attempt at a Solution


Equations of motion for the Lagrangian
[itex]m\ddot{x}=k(y-x-l_{0})[/itex]

[itex]m\ddot{y}=-k(y-x-l_{0})[/itex]

Using [itex]q=y-x-l_{0}[/itex] and [itex]\ddot{q}=\ddot{y}-\ddot{x}[/itex]
[itex]\ddot{q}=\frac{-2k}{m}q=-\omega^{2}q[/itex]

which has the solution
[itex]q(t)=Acos\omega t+Bsin\omega t[/itex]

We also have equations in the form
[itex]\ddot{x}=-\omega^{2}x[/itex] and [itex]\ddot{y}=-\omega^{2}y[/itex]

Substituting the two previous equations into our equations of motion for the Lagrangian we find that
y=-x

Now we substitute [itex]y=-x[/itex] into [itex]q=y-x-l_{0}[/itex] and get
[itex]q=-2x-l_{0}[/itex]

[itex]x(t)=-\frac{1}{2}q(t)-\frac{l_{0}}{2}[/itex]

[itex]x(t)=-\frac{1}{2}Acos\omega t-\frac{1}{2}Bsin\omega t-\frac{l_{0}}{2}[/itex]

[itex]\dot{x}(t)=\frac{\omega}{2}(Asin\omega t - Bcos\omega t)[/itex]

Apply initial conditions
[itex]x(0)=0[/itex] so [itex]A=-l_{0}[/itex]

[itex]\dot{x}(0)=v_{0}[/itex] so [itex]B=\frac{-2v_{0}}{\omega}[/itex]

So our solution is
[itex]x(t)=\frac{v_{0}}{\omega} sin\omega t + \frac{l_{0}}{2}cos \omega t - \frac{l_{0}}{2}[/itex]

where [itex]\omega=\sqrt{\frac{2k}{m}}[/itex]

Just to point out I set the initial position of the left mass at the origin as I figured all we need is the position information of the two masses relative to each other. Please comment on this if I did this wrong.

Is this solution close? As always thanks for the help!
 
Physics news on Phys.org
AbigailM said:
[itex]q=y-x-l_{0}[/itex] and its derivatives.

[itex]L=\frac{1}{2}m\dot{x}^{2}+\frac{1}{2}m\dot{y}^{2}-\frac{1}{2}k(y-x-l_{0})^{2}[/itex]

The Attempt at a Solution


Equations of motion for the Lagrangian
[itex]m\ddot{x}=k(y-x-l_{0})[/itex]

[itex]m\ddot{y}=-k(y-x-l_{0})[/itex]

Using [itex]q=y-x-l_{0}[/itex] and [itex]\ddot{q}=\ddot{y}-\ddot{x}[/itex]
[itex]\ddot{q}=\frac{-2k}{m}q=-\omega^{2}q[/itex]

which has the solution
[itex]q(t)=Acos\omega t+Bsin\omega t[/itex]

Hello. I think everything's ok so far.
We also have equations in the form
[itex]\ddot{x}=-\omega^{2}x[/itex] and [itex]\ddot{y}=-\omega^{2}y[/itex]

Substituting the two previous equations into our equations of motion for the Lagrangian we find that
y=-x

I don't follow the above. [itex]\ddot{x}[/itex] and [itex]\ddot{y}[/itex] should each depend on both x and y as shown by your equations of motion derived from the Lagrangian.

Also, x = -y would imply [itex]\dot{x}[/itex] = -[itex]\dot{y}[/itex] which would not satisfy the initial condition that [itex]\dot{x}[/itex] = vo and [itex]\dot{y}[/itex] = 0 at t = 0. (Or have you suddenly switched to the center of mass reference frame?)

Now we substitute [itex]y=-x[/itex] into [itex]q=y-x-l_{0}[/itex] and get
[itex]q=-2x-l_{0}[/itex]

[itex]x(t)=-\frac{1}{2}q(t)-\frac{l_{0}}{2}[/itex]

[itex]x(t)=-\frac{1}{2}Acos\omega t-\frac{1}{2}Bsin\omega t-\frac{l_{0}}{2}[/itex]

[itex]\dot{x}(t)=\frac{\omega}{2}(Asin\omega t - Bcos\omega t)[/itex]

Apply initial conditions
[itex]x(0)=0[/itex] so [itex]A=-l_{0}[/itex]

[itex]\dot{x}(0)=v_{0}[/itex] so [itex]B=\frac{-2v_{0}}{\omega}[/itex]

So our solution is
[itex]x(t)=\frac{v_{0}}{\omega} sin\omega t + \frac{l_{0}}{2}cos \omega t - \frac{l_{0}}{2}[/itex]

where [itex]\omega=\sqrt{\frac{2k}{m}}[/itex]

I don't believe this is correct. Note that in the frame of reference in which the problem is set up, the system as a whole will slide to the right while the masses oscillate. I think the problem is asking for the position function of the left mass in this frame of reference.

You might try introducing another variable Q = x + y. Derive an expression for [itex]\ddot{Q}[/itex] and solve it. The solutions for q and Q should yield solutions for x and y.

Another approach would be to switch to the center of mass reference frame and solve for the motion of the masses in that frame and then switch back to the original frame.
 
AbigailM said:
[

The Attempt at a Solution


Equations of motion for the Lagrangian
[itex]m\ddot{x}=k(y-x-l_{0})[/itex]

[itex]m\ddot{y}=-k(y-x-l_{0})[/itex]

Using [itex]q=y-x-l_{0}[/itex] and [itex]\ddot{q}=\ddot{y}-\ddot{x}[/itex]
[itex]\ddot{q}=\frac{-2k}{m}q=-\omega^{2}q[/itex]

which has the solution
[itex]q(t)=Acos\omega t+Bsin\omega t[/itex]

We also have equations in the form
[itex]\ddot{x}=-\omega^{2}x[/itex] and [itex]\ddot{y}=-\omega^{2}y[/itex]

Substituting the two previous equations into our equations of motion for the Lagrangian we find that
y=-x

I'm a little confused as to which frame of reference you are setting up your equations.
If you are working in a "moving" frame of reference in which the CM is at rest, then the equation y = -x would be ok if you are taking the origin at the CM. If you want to take the origin of this moving frame at the initial position of m1, then how would you fix the equation y = -x?

Apply initial conditions
[itex]x(0)=0[/itex] so [itex]A=-l_{0}[/itex]

[itex]\dot{x}(0)=v_{0}[/itex] so [itex]B=\frac{-2v_{0}}{\omega}[/itex]

Do you have the correct initial velocity for m1 in the frame of reference moving with the CM?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
Replies
4
Views
2K
Replies
19
Views
3K
Replies
7
Views
3K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
0
Views
2K
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K