rude man
Science Advisor
- 8,032
- 869
Vibhor said:d2x1/dt2 = (k/m)(x2-x1-L)
d2x2/dt2 = -(k/m)(x2-x1-L)
What next ?
Yay team! OK now, you need to subtract one equation from the other to form a single diff. eq. in (x2 - x1). Think carefully about your initial conditions. They're very simple for x1, more elaborate for x2 since x2 starts at x2=L and it also has an initial velocity when x2 = L.
In other words, you're forming a new variable x = x2 - x1. x is now the distance between the two masses.
PS you don't need to compute the initial velocity of the right-hand mass. Just call it x-dot-0 or whatever.