A beat is the result of adding two oscillations with similar frequencies. The result is an oscillation with a periodically varying amplitude.
Beat of two waves (red and green) and the resulting wave (blue).
Wave data: \( v = 0.5 \dfrac{m}{s} \), \( \lambda_1 = 2.0 m \), \( \lambda_2 = 2.2 m \), \( f_1 = \dfrac{5}{20} Hz \), \( f_2 = \dfrac{5}{22} Hz \)
If we also draw the amplitude function of the resulting oscillation (gray), we can see that the amplitude of the resulting wave changes periodically (see calculation).
Consider two harmonic oscillations in the same direction with slightly different frequencies
$$ s_1(t) = \hat{s}_1 \cdot \sin(2 \pi \cdot f_1 \cdot t) $$
$$ s_2(t) = \hat{s}_2 \cdot \sin(2 \pi \cdot f_2 \cdot t) $$
For simplicity we assume that both oscillations have the same amplitude.
$$ \hat{s}_1 = \hat{s}_2 = \hat{s} $$
The sum oscillation \( s_R \) can then be written as:
$$ s_R(t) = \hat{s} \cdot \left(\sin \left(2 \pi \cdot f_1 \cdot t \right) + \sin\left(2 \pi \cdot f_2 \cdot t \right)\right) $$
Using the trigonometric sum-to-product identities, this expression can be rewritten as:
$$ s_R(t) = 2\hat{s} \cdot \sin \left(2\pi \cdot \dfrac{f_1 + f_2}{2} \cdot t\right)\cdot \cos \left(2 \pi \cdot \dfrac{f_1 - f_2}{2} \cdot t \right) $$
Rearranging slightly gives:
$$ s_R(t) = 2\hat{s} \cdot \cos \left(2 \pi \cdot \dfrac{f_1 - f_2}{2} \cdot t \right) \cdot \sin \left(2\pi \cdot \dfrac{f_1 + f_2}{2} \cdot t\right) $$
The frequency of the resulting oscillation is the average frequency of the two individual oscillations.
$$ f_R = \dfrac{f_1 + f_2}{2} $$
The formula now reads:
$$ s_R(t) = \underset{ \mathrm{Amplitude} }{\underbrace{ 2\hat{s} \cdot \cos \left(2 \pi \cdot \dfrac{f_1 - f_2}{2} \cdot t \right) }} \cdot \sin \left(2\pi \cdot f_R \cdot t\right) $$
The last formula shows that the resulting amplitude changes over time.
For \( f_S \) we find:
$$ f_S = \dfrac{f_1 - f_2}{2} $$
This is the frequency that follows mathematically from the cosine term. Since it does not matter for the envelope of the resulting oscillation (i.e. for the audible change in amplitude) whether the cosine is positive or negative, the audible frequency of the change in loudness is twice as high. This so-called beat frequency is defined as
$$ f_\mathrm{beat} = \left| f_1 - f_2 \right| $$
and is much smaller than \( f_R \). The resulting beat period
$$ T_\mathrm{beat} = \dfrac{1}{f_\mathrm{beat}} $$
is the time between two points of minimum amplitude (nodes) of the beat function \( s_R \).