Hooke’s law measures the force exerted by the spring to the object attached to it with the help of the following equation.
F = –kx
Where k is the spring constantand measures how stiff and strong the spring is and x is the distance the spring is stretched or compressed away from its equilibrium or rest position. The value of k depends on the shape and dimensions of the elastic material.