When a particle or a body moves to and fro in a straight line such that the restoring force acting on it (and hence its acceleration) is always directed towards a certain fixed point on its path and is proportional to its distance from that point, the particle or the body is said to execute simple harmonic motion (SHM).
The function of the force is to bring back the body to its equilibrium position and hence the name restoring force.
A particle executing simple harmonic motion is called a simple or linear harmonic oscillator.
An analysis of the definition of SHM indicated its following characteristics.
The motion is periodic and linear.
The motion is always directed towards some fixed point in its path.
The force acting on it (and hence also its acceleration) is proportional to the displacement i.e., the distance from the fixed point.
Examples of SHM
The oscillation of a liquid column in a U-tube.
The motion of a simple pendulum for small displacements.
The vertical oscillations (small) of a mass are carried by an elastic string.