In the position shown in figure, the spring is at its natural length. The block of mass m is given a velocity v0 towards the vertical support at t = 0. The coefficient of friction between the block and the surface is given by , where is a positive constant and x is the position of the block from its starting position. The block comes to rest for the first time at x, which is
According to the work-energy theorem,
Solving we get,