Now, if the mass is pulled down by a distance x, the spring force becomes , however the gravitational force is mg only, which is equal to . Thus there will be a net vertical force upward, which will start the motion of the mass.
Applying Newton's second law of motion,
This is the equation of motion.
Defining the circular frequencies by the equation,