Thank you for reporting, we will resolve it shortly
Q.
Find the maximum compression in the spring, if the lower block is shifted to rightwards with acceleration ' $a$ '. All the surfaces are smooth:
Work, Energy and Power
Solution:
$m v \frac{d v}{d x}=(m a-k x)$
$\int\limits_{0}^{0} m v d v=\int\limits_{0}^{x}(m a-k x) d x$
$0=\max -\frac{k x^{2}}{2} \Rightarrow x=\frac{2 m a}{k}$