The variation in potential energy of a harmonic oscillator is as shown in the figure. The spring constant is