A spring is suspended from a fixed point at one end and a vertical force is applied to the other end, as shown in the figure below
The variation of the applied force with the length of the spring is shown in the second figure below.
Determine the spring constant of the spring.
Determine the elastic potential energy in the spring when the applied force is .