4 Examples of Fourier series

We shall obtain the Fourier series of the “half-rectified” square wave shown in Figure 10.

Figure 10

No alt text was set. Please request alt text from the person who provided you with this resource.

We have

f ( t ) = 1 0 < t < π 0 π < t < 2 π f ( t + 2 π ) = f ( t )

The calculation of the Fourier coefficients is merely straightforward integration using the results already obtained:

a n = 1 π π π f ( t ) cos n t d t

in general. Hence, for our square wave

a n = 1 π 0 π ( 1 ) cos n t d t = 1 π sin n t n 0 π = 0  provided n 0

But a 0 = 1 π 0 π ( 1 ) d t = 1 so the constant term is a 0 2 = 1 2 .

(The square wave takes on values 1 and 0 over equal length intervals of t so 1 2 is clearly the mean value.)

Similarly

b n = 1 π 0 π ( 1 ) sin n t d t = 1 π cos n t n 0 π

Some care is needed now!

b n = 1 n π 1 cos n π

But cos n π = + 1 n = 2 , 4 , 6 , ,

b n = 0 n = 2 , 4 , 6 ,

However, cos n π = 1 n = 1 , 3 , 5 ,

b n = 1 n π ( 1 ( 1 ) ) = 2 n π n = 1 , 3 , 5 ,

i.e. b 1 = 2 π , b 3 = 2 3 π , b 5 = 2 5 π ,

Hence the required Fourier series is

f ( t ) = a 0 2 + n = 1 ( a n cos n t + b n sin n t )  in general f ( t ) = 1 2 + 2 π sin t + 1 3 sin 3 t + 1 5 sin 5 t +  in  this case

Note that the Fourier series for this particular form of the square wave contains a constant term and odd harmonic sine terms. We already know why the constant term arises (because of the non-zero mean value of the functions) and will explain later why the presence of any odd harmonic sine terms could have been predicted without integration.

The Fourier series we have found can be written in summation notation in various ways:

1 2 + 2 π n = 1 ( n  odd ) 1 n sin n t   or, since n is odd, we may write n = 2 k 1 k = 1 , 2 ,  and write the Fourier series as 1 2 + 2 π k = 1 1 ( 2 k 1 ) sin ( 2 k 1 ) t

Task!

Obtain the Fourier series of the square wave one period of which is shown:

No alt text was set. Please request alt text from the person who provided you with this resource.

We have, since the function is non-zero only for π 2 < t < π 2 ,

a 0 = 1 π π 2 π 2 4 d t = 4

a 0 2 = 2 is the constant term as we would expect. Also

a n = 1 π π 2 π 2 4 cos n t d t = 4 π sin n t n π 2 π 2 = 4 n π sin n π 2 sin n π 2 = 8 n π sin n π 2 n = 1 , 2 , 3 ,

It follows from a knowledge of the sine function that

a n = 0 n = 2 , 4 , 6 , 8 n π n = 1 , 5 , 9 , 8 n π n = 3 , 7 , 11 ,

Also

b n = 1 π π 2 π 2 4 sin n t d t = 4 π cos n t n π 2 π 2 = 4 n π cos n π 2 cos n π 2 = 0

Hence, the required Fourier series is

f ( t ) = 2 + 8 π cos t 1 3 cos 3 t + 1 5 cos 5 t 1 7 cos 7 t +

which, like the previous square wave, contains a constant term and odd harmonics, but in this case odd harmonic cosine terms rather than sine.

You may recall that this particular square wave was used earlier and we have already sketched the form of the Fourier series for 2, 3, 4 and 5 terms in Figure 8.

Clearly, in finding the Fourier series of square waves, the integration is particularly simple because f ( t ) takes on piecewise constant values. For other functions, such as saw-tooth waves this will not be the case. Before we tackle such functions however we shall generalise our formulae for the Fourier coefficients a n , b n to the case of a periodic function of arbitrary period, rather than confining ourselves to period 2 π .