2 Functions of period
We now discuss how to represent periodic non-sinusoidal functions of period in terms of sinusoids, i.e. how to obtain Fourier series representations. As already discussed we expect such Fourier series to contain harmonics of frequency and, if the periodic function has a non-zero average value, a constant term.
Thus we seek a Fourier series representation of the general form
The reason for labelling the constant term as will be discussed later. The amplitudes of the sinusoids are called Fourier coefficients .
Obtaining the Fourier coefficients for a given periodic function is our main task and is referred to as Fourier Analysis. Before embarking on such an analysis it is instructive to establish, at least qualitatively, the plausibility of approximating a function by a few terms of its Fourier series.
Task!
Consider the square wave of period
one period of which
is shown in Figure 10.
- Write down the analytic description of this function,
- State whether you expect the Fourier series of this function to contain a constant term,
- List any other possible features of the Fourier series that you might expect from the graph of the square-wave function.
- We have
- The Fourier series will contain a constant term since the square wave here is non-negative and cannot therefore have a zero average value. This constant term is often referred to as the d.
-
(direct current) term by engineers.
(c) Since the square wave is an even function (i.e. the graph has symmetry about the axis) then its Fourier series will contain cosine terms but not sine terms because only the cosines are even functions. (Well done if you spotted this at this early stage!)
It is possible to show, and we will do so later, that the Fourier series representation of this square wave is
i.e. the Fourier coefficients are
Note, as well as the presence of the constant term and of the cosine (but not sine) terms, that only odd harmonics are present i.e. sinusoids of period or of frequency times the fundamental frequency
We now show in Figure 8 graphs of
- the square wave
- the first two terms of the Fourier series representing the square wave
- the first three terms of the Fourier series representing the square wave
- the first four terms of the Fourier series representing the square wave
- the first five terms of the Fourier series representing the square wave
Note: We show the graphs for only since the square wave and its Fourier series are even.
Figure 8
We can clearly see from Figure 8 that as the number of terms is increased the graph of the Fourier series gradually approaches that of the original square wave - the ripples increase in number but decrease in amplitude. (The behaviour near the discontinuity , at , is slightly more complicated and it is possible to show that however many terms are taken in the Fourier series, some “overshoot” will always occur. This effect, which we do not discuss further, is known as the Gibbs Phenomenon.)
2.1 Orthogonality properties of sinusoids
As stated earlier, a periodic function with period has a Fourier series representation
To determine the Fourier coefficients and the constant term use has to be made of certain integrals involving sinusoids, the integrals being over a range , where is any number. (We will normally choose .)
Task!
Find and where is an integer.
In fact both integrals are zero for
As special cases, if the first integral is zero and the second integral has value .
N.B. Any integration range , would give these same (zero) answers.
These integrals enable us to calculate the constant term in the Fourier series (3) as in the following task.
Task!
Integrate both sides of (3) from to and use the results from the previous Task. Hence obtain an expression for .
We get for the left-hand side
(whose value clearly depends on the function ).
Integrating the right-hand side term by term we get
(using the integrals (4) and (5) shown above). Thus we get
(6)
This result ties in with our earlier discussion on the significance of the constant term. Clearly a signal whose average value is zero will have no constant term in its Fourier series. The following square wave (Figure 9) is an example.
Figure 9
We now obtain further integrals, known as orthogonality properties, which enable us to find the remaining Fourier coefficients i.e. the amplitudes and ( ) of the sinusoids.
Task!
Using the standard trigonometric identity that
evaluate where and are any integers.
We get
using the results (4) and (5) since and are also integers.
This result holds for any interval of .
We shall use this result shortly but need a few more integrals first.
Consider next
Using another trigonometric identity we have, for the case ,
For the case we must get a non-zero answer since is non-negative. In this case:
For the case we have
Task!
Proceeding in a similar way to the above, evaluate
for integers and .
Again consider separately the three cases:
- and
-
Using the identity
and integrating the right-hand side terms, we get, using (4) and (5)
- Using the identity with gives for
- When ,
We summarise these results in the following Key Point: