The spring shown in figure is kept I a stretched position with extension x0 when the system is released. Assuming the horizontal surface to be frictionless, find the frequency of oscillation.
12π√k(M+m)Mm
No external force on the system. So center of mass at rest
If block m moves by x towards right and block M moves by X towards left then mx = MX
Also the spring is totally compressed by (x + X). Applying conservation of energy method.
12k(x+X)2+12mv21+12Mv22=constant
Taking derivative with respect to time on both sides
−k(x+X)(v1+v2)+mv1a1+Mv2a2=0
−Kx(1+mM)(v1+v2)=(mv1a1+Ma2v2)
∴mx=Mx
dxdt=Mdxdt
⇒mv1=Mv2
⇒ma1=Ma2
−kx(1+mM)=ma1
ω=m√k(M+m)Mm
frequency f=ω2π=12π√k(M+m)Mm