A mass m, lying on a horizontal, frictionless surface, is connected to one end of a spring of spring constant k. The other end of the spring is connected to a wall, as shown in the figure. At t=0, the mass is given an impulse J as shown. Taking left direction as positive, the time dependence of the displacement, acceleration and the velocity of the mass are: