When the mass m is displaced from its mean position by a distance x, let F be the restoring (extra tension) force produced in the string. By this extra tension further elongation in the springs are
Here negative sign shows the restoring nature of force.