Hi James Bond
Observe the solution:
At any time t, position of c.m. is v0t
Hence:
v0t= (m1x1+m2x2)/(m1+m2)
Given x1=v0t - A(1-coswt)
x2 = v0t +(m1/m2)A(1-coswt) ........Ans
x2-x1=l0+x.............................(1)
dx1/dt= -Awsinwt + v0..............(2)
dx2/dt = (m1/m2)Aw sinwt + v0......(3)
Now we take relative velocity of each particle w.r.t. their c.m.
dx'1/dt= dx1/dt - v0= -Awsinwt
dx'2/dt= dx2/dt - v0 = (m1/m2)Aw sinwt
d(x2' - x'1)/dt=dx/dt=[(m1+m2)/m2]Awsinwt .....(4)
Now equating total P.E. of spring with total energy at extreme position of above oscillation:
(1/2)kl02= (1/2) k[(m1+m2)/m2]2 A2
l0=[(m1+m2)/m2]A Ans