A mass $m_1$ with initial velocity $V_0$ collides with a spring attached to mass $m_2$ initially resting on a frictionless surface according to the figure below. Considering the spring constant $K$ and the negligible mass, do you ask if:
a) Determine the maximum spring compression.
b) If long time after collision both objects travel in the same direction, determine the velocities $V_1$ and $V_2$ of masses $m_1$ and $m_2$ respectively.
$Attemp:$ This is similar to 2017 F=ma Problem 24.
(a) We use conservation of energy and momentum. We have an inelastic collision when the ball hits the block and spring configuration. Since the spring is massless we can write a conservation of momentum equation without worrying too much about the spring yet. $m_1v_1=(m_1+m_2)v’\implies v’=\frac{m_1v_1}{m_1+m_2}$Next we use conservation of energy. We write the equation $$\frac{1}{2}m_1v_1^2=\frac{1}{2}kx^2+\frac{1}{2}(m_1+m_2)v’^2$$ substituting $$v’=\frac{m_1v_1}{m_1+m_2}$$ we get $\frac{1}{2}m_1v_1^2=\frac{1}{2}kx^2+\frac{1}{2}(m_1+m_2)\left(\frac{m_1v_1}{m_1+m_2}\right)^2$ simplifying and multiplying both sides by two we have $m_1v_1^2=kx^2+\frac{m_1^2v_1^2}{m_1+m_2}$ subtracting both sides and simplifying the equation for only $x$ on one side we have $$x=\sqrt{\frac{m_1v_1^2\left(1-\frac{m_1}{m_1+m_2}\right)}{k}}$$ $$x=v_1\sqrt{\frac{m\left(\frac{m_1+m_2}{m_1+m_2}-\frac{m_1}{m_1+m_2}\right)}{k}}$$ $$x=v_1\sqrt{\frac{m_1m_2}{k(m_1+m_2)}}$$
How can I solve a b?
