I am supposed to arrive at the following conclusion for total energy for a spring mass system with mass $M$ spring constant $k$ and spring mass $m$.
$$E = \frac{1}{2}(M + \frac{m}{3})v^2 + \frac{1}{2}kx^2$$
I consider the resting length of the spring $l_o$. An infinitesimal amount of spring will have $\frac{m}{l_0}dl$. I am having troubles relating the velocity of the mass $M$ with the velocity of this small amount of spring.... If I can do this, then the kinetic energy of the spring becomes apparent. Could someone help?