How to find the force constant of a spring