a object potential energy is described as 1/2kx^2.

what does k and x represent?
thanks.

This is the PE in a stretched spring.

k is the spring constant, x is the distance the spring is stretched (or compressed).

Read up on Hookes' law.