The force applied to the spring is the weight of the object that compresses it, so it is equal to:
[tex]W=mg=(4.25 kg)(9.81 m/s^2)=41.7 N[/tex]
Because of this force, the spring compresses by [tex]x=2.62 cm=0.0262 m[/tex]. Using Hook's law,
[tex]F=kx[/tex],
since we know the intensity of the force (the weight W) and the compression of the spring, x, we can find k, the spring constant:
[tex]k= \frac{F}{x}= \frac{W}{x}= \frac{41.7 N}{0.0262 m} =1591.6 N/m[/tex]