A motion that repeats itself at regular intervals of time is called periodic motion — the hands of a clock, the Earth orbiting the Sun, a vibrating tuning fork. A special kind of periodic motion is oscillatory (or vibratory) motion, in which a body moves to and fro about a fixed mean (equilibrium) position. Every oscillation is periodic, but not every periodic motion is oscillatory (planetary orbits are periodic but not to-and-fro).
The simplest and most important oscillation is Simple Harmonic Motion (SHM). A particle is said to execute SHM when its acceleration is directly proportional to its displacement from the mean position and is always directed towards that mean position. In symbols, $a=-\omega^2 x$, where $x$ is the displacement, $\omega$ is a positive constant called the angular frequency, and the negative sign shows the acceleration (and the restoring force $F=-m\omega^2 x$) points back towards equilibrium. This restoring-force condition, $F\propto -x$, is the defining test for SHM.
- The displacement of a particle in SHM is $x=A\sin(\omega t+\phi)$, where $A$ is the amplitude (maximum displacement), $(\omega t+\phi)$ is the phase and $\phi$ is the initial phase (epoch) at $t=0$.
- The velocity is the time-derivative of displacement: $v=\frac{dx}{dt}=A\omega\cos(\omega t+\phi)$. Eliminating $t$ gives the useful relation $v=\omega\sqrt{A^2-x^2}$.
- The acceleration is $a=\frac{dv}{dt}=-A\omega^2\sin(\omega t+\phi)=-\omega^2 x$, confirming the SHM definition.
Where are these quantities largest? Velocity is maximum at the mean position ($x=0$), where $v_{max}=A\omega$, and zero at the extremes ($x=\pm A$). Acceleration is zero at the mean position and maximum at the extremes, where $a_{max}=\omega^2 A$. Displacement and acceleration are always opposite in sign (out of phase by $\pi$), while velocity is ahead of displacement by a phase of $\frac{\pi}{2}$.
Time period and frequency. The time period $T$ is the time for one complete oscillation, and the frequency $f$ is the number of oscillations per second. They are linked to the angular frequency by $\omega=\frac{2\pi}{T}=2\pi f$, so $T=\frac{2\pi}{\omega}$ and $f=\frac{1}{T}$. The SI unit of frequency is the hertz (Hz). A neat geometric picture: SHM is the projection of uniform circular motion onto a diameter — a reference particle moving in a circle of radius $A$ at angular speed $\omega$ casts a shadow that performs SHM, which is why the equations involve $\sin$ and $\cos$.