Step 1 of 4: Equilibrium condition
Intuition
A spring hanging quietly: if nobody stretches it, it doesn't 'pull back' either — the force only appears once we deform it.
Analysis
Place the origin at the undeformed spring position — the body's equilibrium point. By definition of equilibrium, the net force there is zero, so the elastic force : no deformation, no restoring force.