I'm new to physics. I'm a programmer, so I'm having trouble finding this solution. when spring is compressed against wall until the body attached to it touches the wall, whats the maximum velocity obtained?
The Attempt at a Solution
I thought it happens when the kinetic energy is high. Of the original kinetic energy of the body, some goes into potential energy in the spring and the remainder is left as kinetic energy of the now slowed object. So I did the remainder of energy is equal to force(-kx) over time, which means
x is the distance obtained, t is time