Find the maximum compression in the spring, if the lower block is shifted rightwards with acceleration 'a'. All the surfaces are smooth
Method : 1 :- Without Energy
Freebody drawing with respect lower block
Now ma' = ma - kg (a' is the net accelearation of the block with respect to lower block)
⇒ = mv dvdx = ma - kz
⇒ mvdv = (ma - kx)dx
Integrating ,
0∫0MUdv = x∫0amax (Ma - kx)dx
Intial and final velocity will be zero
∴ 0 = maxmax - kxmaxmaxr
⇒ xmax = 2mak