5 Fourier series for functions of general period

This is a straightforward extension of the period 2 π case that we have already discussed.

Using x (instead of t ) temporarily as the variable. We have seen that a 2 π periodic function f ( x ) has a Fourier series

f ( x ) = a 0 2 + n = 1 ( a n cos n x + b n sin n x )

with

a n = 1 π π π f ( x ) cos n x d x n = 0 , 1 , 2 , b n = 1 π π π f ( x ) sin n x d x n = 1 , 2 ,

Suppose we now change the variable to t where x = 2 π T t .

Thus x = π  corresponds to   t = T 2 and    x = π  corresponds to t = T 2.

Hence regarded as a function of t , we have a function with period T .

Making the substitution x = 2 π T t , and hence d x = 2 π T d t , in the expressions for a n and b n we obtain

a n = 2 T T 2 T 2 f ( t ) cos 2 n π t T d t n = 0 , 1 , 2 b n = 2 T T 2 T 2 f ( t ) sin 2 n π t T d t n = 1 , 2

These integrals give the Fourier coefficients for a function of period T whose Fourier series is

f ( t ) = a 0 2 + n = 1 a n cos 2 n π t T + b n sin 2 n π t T

Various other notations are commonly used in this case e.g. it is sometimes convenient to write the period T = 2 . (This is particularly useful when Fourier series arise in the solution of partial differential equations.) Another alternative is to use the angular frequency ω and put T = 2 π ω .

Task!

Write down the form of the Fourier series and expressions for the coefficients if  

  1. T = 2
  2. T = 2 π ω .
  1. f ( t ) = a 0 2 + n = 1 a n cos n π t + b n sin n π t with a n = 1 f ( t ) cos n π t d t

    and similarly for b n .
  2. f ( t ) = a 0 2 + n = 1 a n cos ( n ω t ) + b n sin ( n ω t ) with a n = ω π π ω π ω f ( t ) cos ( n ω t ) d t

    and similarly for b n .

You should note that, as usual, any convenient integration range of length T (or 2 or 2 π ω ) can be used in evaluating a n and b n .

Example 1

Find the Fourier series of the function shown in Figure 11 which is a saw-tooth wave with alternate portions removed.

Figure 11

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

Solution

Here the period T = 2 = 4 so = 2 . The Fourier series will have the form

f ( t ) = a 0 2 + n = 1 a n cos n π t 2 + b n sin n π t 2

The coefficients a n are given by

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

where

f ( t ) = 0 2 < t < 0 t 0 < t < 2 f ( t + 4 ) = f ( t )

Hence a n = 1 2 0 2 t cos n π t 2 d t .

The integration is readily performed using integration by parts:

0 2 t cos n π t 2 d t = t 2 n π sin n π t 2 0 2 2 n π 0 2 sin n π t 2 d t = 4 n 2 π 2 cos n π t 2 0 2 n 0 = 4 n 2 π 2 ( cos n π 1 ) .

Hence, since a n = 1 2 0 2 t cos ( n π t 2 ) d t

a n = 0 n = 2 , 4 , 6 , 4 n 2 π 2 n = 1 , 3 , 5 ,

The constant term is a 0 2 where a 0 = 1 2 0 2 t d t = 1.

Similarly

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

where

0 2 t sin n π t 2 d t = t 2 n π cos n π t 2 0 2 + 2 n π 0 2 cos n π t 2 d t .

The second integral gives zero. Hence

b n = 2 n π cos n π = 2 n π n = 2 , 4 , 6 , + 2 n π n = 1 , 3 , 5 ,

Hence, using all these results for the Fourier coefficients, the required Fourier series is

f ( t ) = 1 2 4 π 2 cos π t 2 + 1 9 cos 3 π t 2 + 1 25 cos 5 π t 2 + + 2 π sin π t 2 1 2 sin 2 π t 2 + 1 3 sin 3 π t 2

Notice that because the Fourier coefficients depend on 1 n 2 (rather than 1 n as was the case for the square wave) the sinusoidal components in the Fourier series have quite rapidly decreasing amplitudes. We would therefore expect to be able to approximate the original saw-tooth function using only a quite small number of terms in the series.

Task!

Obtain the Fourier series of the function

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

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

First write out the form of the Fourier series in this case:

Since T = 2 = 2 and since the function has a non-zero average value, the form of the Fourier series is

a 0 2 + n = 1 a n ( cos n π t ) + b n sin ( n π t )

Now write out integral expressions for a n and b n . Will there be a constant term in the Fourier series?

Because the function is non-negative there will be a constant term. Since T = 2 = 2 then = 1 and we have

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

The constant term will be a 0 2 where a 0 = 1 1 t 2 d t . Now evaluate the integrals. Try to spot the value of the integral for b n so as to avoid integration. Note that the integrand is an even functions for a n and an odd functon for b n .

The integral for b n is zero for all n because the integrand is an odd function of t . Since the integrand is even in the integrals for a n we can write

a n = 2 0 1 t 2 cos n π t d t n = 0 , 1 , 2 ,

The constant term will be a o 2 where a 0 = 2 0 1 t 2 d t = 2 3 .

For n = 1 , 2 , 3 , we must integrate by parts (twice)

a n = 2 t 2 n π sin ( n π t ) 0 1 2 n π 0 1 t sin ( n π t ) d t = 4 n π t n π cos ( n π t ) 0 1 + 1 n π 0 1 cos ( n π t ) d t .

The integral in the second term gives zero so a n = 4 n 2 π 2 cos n π .

Now writing out the final form of the Fourier series we have

f ( t ) = 1 3 + 4 π 2 n = 1 cos n π n 2 cos ( n π t ) = 1 3 + 4 π 2 cos ( π t ) + 1 4 cos ( 2 π t ) 1 9 cos ( 3 π t ) +

Exercises

For each of the following periodic signals

  1. f ( t ) = 1 0 < t < π 2 0 π 2 < t < 2 π f ( t + 2 π ) = f ( t )  square wave
  2. f ( t ) = t 2 1 < t < 1 f ( t + 2 ) = f ( t )
  3. f ( t ) = 1 T 2 < t < 0 1 0 < t < T 2 f ( t + T ) = f ( t )  square wave
  4. f ( t ) = 0 π < t < 0 t 2 0 < t < π f ( t + 2 π ) = f ( t )
  5. f ( t ) = 0 T 2 < t < 0 A  sin 2 π t T 0 < t < T 2 f ( t + T ) = f ( t )  half-wave rectifier
  1. 1 4 + 1 π cos t cos 3 t 3 + cos 5 t 5 + 1 π { sin t + 2 sin 2 t 2 + sin 3 t 3 + sin 5 t 5 + 2 sin 6 t 6 + }
  2. 1 3 4 π 2 { cos π t cos 2 π t 4 + cos 3 π t 9 cos 4 π t 16 + }
  3. 4 π { sin ω t + 1 3 sin 3 ω t + 1 5 sin 5 ω t + } where ω = 2 π T .
  4. π 2 6 2 cos t cos 2 t 2 2 + cos 3 t 3 2 + { π 4 π sin t π 2 sin 2 t + π 3 4 3 3 π sin 3 t π 4 sin 4 t + }
  5. A π + A 2 sin ω t 2 A π { cos 2 ω t ( 1 ) ( 3 ) + cos 4 ω t ( 3 ) ( 5 ) + }