AbigailM
- 46
- 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!