A mass, suspended vertically from a spring, swinging up and down vertically, will demonstrate simple harmonic motion.

An example of an equation to describe this can be found in Differential equations/Examples.

Simple harmonic motion is one form of a harmonic oscillator.