# Trigonometry/Beat Frequencies

We saw earlier that when two waves are in phase they reinforce each other and when they are out of phase they tend to cancel each other out. When two waves that have nearly but not exactly the same frequency combine they might start off reinforcing each other, but as time passes the difference in frequency means that they start to cancel, and then later still they reinforce each other again.

This is exactly what is happening in the graph above. It shows the combination of a 50Hz tone and a 55Hz tone. It was made by mixing two pure tones in the free audio software 'Audacity'. The image shows about 3/4 of a second of audio. In a second the overall amplitude reaches a maximum five times. Listening to the combination one hears a single tone half-way between 50 and 55 Hz that appears to vary in loudness five times a second, i.e. at 5Hz. You don't hear two separate tones one at 50Hz and one at 55Hz.

The 5Hz tone is called a beat frequency.

Here is a button that will play a beat frequency sound made by combining two higher frequency sounds, a 220Hz tone and a 222Hz tone.

## The MathsEdit

Mathematically we have added two sounds with frequencies that are quite close, but the net result seems to be a multiplication of two sounds with quite different frequencies. What are those frequencies? One is the average, that is 52.5Hz. The other appears at first glance to be the difference, i.e. 5Hz, but actually it is half that because a 5Hz sine wave would reach its maximum size (ignoring whether it is positive or negative) ten times in a second.

So, one frequency is half the difference and one frequency the average. We can understand how a sum of two sines becomes a product (of sine and cosine) mathematically using the addition formulae for sines.

The individual waves we're adding are:

 $\displaystyle \sin( \lambda_1 t)$ $\displaystyle \sin( \lambda_2 t)$ $\displaystyle\lambda_1 = 50 \times 2 \pi$ $\displaystyle\lambda_2=55\times 2\pi$ and

to give us frequencies of 50Hz and 55Hz. Because we are looking for average and half the difference frequencies we can put

$\displaystyle\sigma=(\lambda_1+\lambda_2)/2$
$\displaystyle h=(\lambda_1-\lambda_2)/2$

and then re-express $\displaystyle\lambda_1$ and $\displaystyle\lambda_2$ in terms of these two new variables.

$\displaystyle\lambda_1=\sigma+h$
$\displaystyle\lambda_2=\sigma-h$

So now we have:

$\displaystyle \sin( \lambda_1 t) = \sin( \sigma t + h t) = \sin( \sigma t) \cos( h t) + \cos( \sigma t) \sin( h t )$
$\displaystyle \sin( \lambda_2 t) = \sin( \sigma t - h t) = \sin( \sigma t) \cos( h t) - \cos( \sigma t) \sin( h t )$

So we can now combine these two formulas and get:

$\displaystyle \sin( \lambda_1 t) + \sin( \lambda_2 t ) = 2\sin( \sigma t) \cos( h t)$

that is:

$\displaystyle \sin( \lambda_1 t) + \sin( \lambda_2 t ) = 2\sin\left(\frac{(\lambda_1+\lambda_2)t}{2}\right) \cos\left(\frac{(\lambda_1-\lambda_2)t}{2}\right)$

We've expressed the sum of two sine waves in terms of a product of sine and cosine. As expected, the frequency of the sine wave is the average of the frequencies of the two waves being combined, while the frequency of the cosine wave is half the difference of the frequencies.