physics oscillator energy
posted by Jess .
a block of wood of mass 0.25kg is attached to one end of a spirnf og constant stiffness 100N/m. The block can oscillate horizontally on a frictionless surface, the other end of the spring being fixed.
a) calculate the maximum elastic potential energy of the system for a horizontal oscillation of amplitude 0.20m.
i tried to use the equation
Ep=(1/2)*(mass)*(omega^2)*(displacement)
but i wasn't sure if this was the right way to go about it because i couldn't figure out how i could find out the angular frequency
thanks for your help!

Use: Ep = (1/2)kx^2 to get the elastic potential.