Sviluppi in serie di Fourier en
From "Physics, Waves, Music": a website about the physics of waves and sound, acoustics of musical instruments, musical scales, harmony and music.
| AI-translated from Italian. Original page: Sviluppi_in_serie_di_Fourier |
Statement of Fourier's theorem
Given a function
- periodic with period T
- bounded
- integrable on [0,T]
then can be expanded in a Fourier series, that is
(1)
where an and bn are suitable coefficients that depend on the analytic form of the periodic function , and
- .
The sinusoids of the series therefore have frequencies , integer multiples of the fundamental frequency .
The sinusoid whose frequency equals the fundamental frequency is also called the fundamental harmonic or first harmonic; the sinusoids whose frequencies are multiples of the fundamental frequency are called higher harmonics (second, third, etc.) or also partials. An oscillation (wave) made up of several harmonics will be called a complex wave. Each complex wave will have its own harmonic content, characterized by the different values of the amplitudes and phases of the various harmonics into which it can be decomposed.
Calculation of the coefficients of the Fourier expansion
To calculate the coefficients and , keep in mind that:
- if the function is odd, as the sine function is, a series of sines only will be obtained (that is, the coefficients are all zero);
- if the function is even, as the cosine function is, a series of cosines only will be obtained (that is, the coefficients are all zero).
In general, the coefficients are calculated by means of the following integrals:
- which is nothing but the mean value of the function over the periodicity interval [0,T].
(2)
(3)
Examples of Fourier series
We present some notable expansions that you will also find used in our virtual laboratory to build the default waveforms.
In what follows we will always assume that:
- the waveforms have period T (their analytic expression will be given only over one periodicity interval which, to exploit any symmetries of the function, has been "centred" at the origin, that is, it will go from -T/2 to T/2);
- the mean value of the function is always zero, so that the coefficient is always zero;
- the amplitude of the function is 1.
Triangle wave
With the previous assumptions, the triangle wave can be represented analytically by the expression
Since the function is even, a series of cosines only will be obtained. Calculating the integrals (2) and (3) indeed leads to the result
The result obtained therefore shows that the series contains only cosines and that only odd harmonics are present. You can check these results directly with the app (selecting forme d'onda:triangolo (waveforms: triangle)):
- note that only odd harmonics are present;
- by moving the mouse over the slider of each harmonic you can check that the amplitude of the n-th harmonic is indeed given (apart from rounding errors) by
- that the phase of each harmonic is zero (the app works precisely with cosine functions)
Square wave
With the previous assumptions, the square wave can be represented analytically by the expression
Since the function is odd, a series of sines only will be obtained. Calculating the integrals (2) and (3) indeed leads to the result
The result obtained therefore shows that the series contains only sines and that only odd harmonics are present. You can check these results directly with the app (selecting forme d'onda:Onda quadra (waveforms: square wave)):
- note that only odd harmonics are present;
- by moving the mouse over the slider of each harmonic you can check that the amplitude of the n-th harmonic is indeed given (apart from rounding errors) by
- .
- It is curious to note that the amplitude of the fundamental is larger than the amplitude of the whole square wave;
- the phase of each harmonic is equal to . This is correct, remembering
- that the app expands in series using only cosine functions;
- the trigonometric identity
Sawtooth wave
With the previous assumptions, the "sawtooth" wave can be represented analytically by the expression
Since the function is odd, a series of sines only will be obtained. Calculating the integrals (2) and (3) indeed leads to the result
The result obtained therefore shows that the series contains only sines and that all harmonics, even and odd, are present.
You can check these results directly with the app (selecting forme d'onda:Dente di sega (waveforms: sawtooth)):
- note that now all harmonics are present;
- by moving the mouse over the slider of each harmonic you can check that the amplitude of the n-th harmonic is indeed given (apart from rounding errors) by
- .
- that the phase of the harmonics is alternately and . This is correct, remembering
- that the app expands in series using only cosine functions;
- the trigonometric identities
Taking the amplitudes as positive, the app "shifts" the minus sign of the with even n onto the phase of the cosine wave.







