Apply Hooke's law to find the restoring force of a spring from its stiffness (spring constant) and displacement from equilibrium.
输入劲度系数 k 与形变量 x,求弹力大小。