Suppose a spring lying on a horizontal table, displaced from its equilibrium length by an external agent. The external agent is removed, the spring will head back to its equilibrium length. Here, the direction of spring force and displacement will be same.
But according to Hooke's law,
The minus sign tells us that the force exerted by spring is always opposite to the direction of displacement.
How is this? Please explain the reason for the minus sign.