Potential energy of the compressed (stretched) spring

E_p = kx^2/2
Find   It is known that:
      =