3 Calculation of Fourier coefficients

Consider the Fourier series for a function f ( t ) of period 2 π :

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

To obtain the coefficients a n ( n = 1 , 2 , 3 , ), we multiply both sides by cos m t where m is some positive integer and integrate both sides from π to π .

For the left-hand side we obtain

π π f ( t ) cos m t d t

For the right-hand side we obtain

a 0 2 π π cos m t d t + n = 1 a n π π cos n t cos m t d t + b n π π sin n t cos m t d t

The first integral is zero using (5).

Using the orthogonality relations all the integrals in the summation give zero except for the case n = m when, from Key Point 3

π π cos 2 m t d t = π

Hence

π π f ( t ) cos m t d t = a m π

from which the coefficient a m can be obtained.

Rewriting m as n we get

a n = 1 π π π f ( t ) cos n t d t  for n = 1 , 2 , 3 , (8)

Using (6), we see the formula also works for n = 0 (but we must remember that the constant term is a 0 2 .)

From (8)

a n = 2 × average value of f ( t ) cos n t over one period.

Task!

By multiplying (7) by sin m t obtain an expression for the Fourier Sine coefficients b n , n = 1 , 2 , 3 ,

A similar calculation to that performed to find the a n gives

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

All terms on the right-hand side integrate to zero except for the case n = m where

π π b m sin 2 m t d t = b m π

Relabelling m as n gives

b n = 1 π π π f ( t ) sin n t d t n = 1 , 2 , 3 , (9)

(There is no Fourier coefficient b 0 .)

Clearly b n = 2 × average value of f ( t ) sin n t over one period.

Key Point 4

A function f ( t ) with period 2 π has a Fourier series

f ( t ) = a 0 2 + n = 1 a n cos n t + b n sin n t
The Fourier coefficients are a n = 1 π π π f ( t ) cos n t d t n = 0 , 1 , 2 , b n = 1 π π π f ( t ) sin n t d t n = 1 , 2 ,

In the integrals any convenient integration range extending over an interval of 2 π may be used.