The magnitude of the force required to change the length of a spring-like object is directly proportional to the spring constant and the displacement of the spring. Elastic potential energy is directly proportional to the square of the change in length and the spring constant.