FOURIER SERIES

Standard formulae

The function y(x) is a periodic function, the period is 2l

y(x) = a02 + i=1 an cos ( n2π 2l x ) + i=1 bn sin ( n2π 2l x ) , (1.1)
an = 1l -l l y(x) cos ( nπ l x ) dx , bn = 1l -l l y(x) sin ( nπ l x ) dx .

The complex form of the Fourier series is

y(x) = n=- cn exp ( i nπ l x ) , cn = -l l y(x) exp ( -i nπ l x ) dx . (1.2)

The Fourier integral theorem is defined by the relation

y(x) = lim A 1 2π -A A - y(t) e ia ( x-t ) dt da . (1.3)

The Fourier transform and the inverse transform are

g(u) = 1 2π - y(x) e -iux dx , (1.4)
y(x) = 1 2π - g(u) e iux du .

Numerical examples

Example 1
The script file pwopro03 gives examples of Fourier series expansions of periodic functions. The first example is a discontinuous skew symmetric function, the second a continuous function with a discontinuous derivative.

Download
Scilab: pwopro03.sci
Octave/Matlab: pwopro03.m

Example 2
The script file pwoprs03 calculates the Fourier series coefficients for damped free vibrations looks at the influence of the number of points. The values of coefficients change but the amplitudes are similar.

Download
Scilab: pwoprs03.sci
Octave/Matlab: pwoprs03.m