# When taking the Fourier Transform of a sum of two different frequency sine waves, why doesn't the beating frequency show up as a peak?

If the Fourier Transform is "comparing how similar" each frequency is to the signal, then why doesn't the beating frequency show up? It's clear to see that the signal has an oscillatory term at the beating frequency (specifically the envelope). Someone told me that the beating frequency and the sum frequency both show up in the Fourier Transform if the signal is caused by something nonlinear. Why is this? Why does the Difference Frequency and Sum Frequency only show up in the FT if the signal is caused by something nonlinear?

Just "looking similar" isn't good enough. To calculate Fourier coefficients, you have to actually compute the overlap between a sinusoid and your signal.

The envelope of a beating signal looks like a low-frequency sinusoid. But the overlap of this signal with a low-frequency sinusoid is zero, because the rapid oscillations make the overlap cancel out.

• I totally understand what you're saying and I now see my misconception. But why does beating show up in the Fourier Transform when you have a non-linear function? Shouldn't the same argument apply? – dljs Jun 12 '19 at 15:30

The beat frequency and the average tone are present in the time domain. The FT is a filter that matches how much of a given single sine (or cosine) with a well defined frequency is present in the input function. One way to think of this is that the single frequency sine and cosine functions (sin(2*pift), etc) form a basis for a function space. The amplitude modulation caused by a difference tone (i.e. beat frequency) is caused by the presence of two coherent sine waves. The FT picks up each of the coherent sines, the beat is simply not present in the spectrum. A lot of people have trouble with this. The sum tone (average frequency) is also not present in the spectrum.

If you were to put a generic envelope function over a sine wave the FT would necessarily pick up the spectrum of the envelop too. The classic case in point is a square envelop, which produces a sinc function in the f-domain.

As for non-linear function? You need to be more explicit with this term. An FT is nothing more than a projection onto a function basis. It isn't smart enough to know how the function got made. To this point a few things can be said.

(1) If a non-linear process generated a sub harmonic out of two frequencies (or in this case the beat frequency) then that frequency is truly in the spectrum. That is to say you would have a1*sin(w1*t) + a2*sin(w2*t) + a3*sin((w2-w2)*t). I cannot imagine what process would do this but the point is that this is NOT the same thing as a1*sin(w1*t) + a2*sin(w2*t), which has a beat envelope. I would encourage you to plot examples of these in MATLAB or some other s/w and see that they are not the same.

(2) The FT is a linear filter. If by non-linear you mean a non-linear filter like wavelet decomposition then you are not comparing the original input to the same basis set. I do not think this is what you mean in your comment but thought it worth mentioning.

(3) If you are simply saying that when you put in x^n, a parabola, you get more that one or two frequencies, then... well, of course. This is nothing like a sine wave and probably has a messy spectrum. There is no particular "frequency" associated with a power basis (the basis used for Taylor expansion of a function).

(4) If a non-linear process was used to make an input consisting of the sum of two coherent sine waves (which has a beat and sum frequency in the time-domain) than the FT will operate just the same. As I stated it cannot tell how a function was made, only what it contains.

• I suppose I should give some more detail into what i'm doing. – dljs Jun 12 '19 at 18:09
• I'm using MATLAB to put a ball into some well and i'm applying a driving force. I then look at the ball's motion and take the F.T of the ball's position in time to get the harmonics. When I put the ball in a x^2 well, I get two frequencies, one at the frequency I'm driving it and another that dependent on the steepness of the parabola. It was interesting to only see 2 peaks. When I put the ball in an asymmetric well like x^2/(x+1), I saw both the Sum Frequency, Difference Frequency, and multiple harmonics. These observations led to this question (why I saw beating in asymmetric curve vs x^2). – dljs Jun 12 '19 at 18:12
• Unfortunately, the "basis for a function space" might be a bit over my head. The rest of the answer made sense (and I did try to plot the differences mentioned and I can see why one would lead to amplitude at the beating frequency and not for the other). – dljs Jun 12 '19 at 18:16
• @dljs It does help to know the context. However if you are solving a mechanics problem with a conservative force and an external driving force, like the SHO, you will have a superposition of the homogeneous solution and particular solution. A SHO has one natural frequency, I can't say for the example you provided. Did you solve it analytically? Or numerically? – ggcg Jun 12 '19 at 19:21
• If the solution is analytic and you are putting together a complete solution as a superposition of the h and i.h solutions then you should be able to see for yourself where the extra harmonics are coming from. If on the other hand this is a truly non-linear problem then linear response theory may not work and, like the Duffing oscillator there will be some correction to the SHO depending on how string the non-linearity is. – ggcg Jun 12 '19 at 19:22