Mass-spring oscillation problem explanation