Fourier Series

The Fourier Series

The Fourier Transform is an integral transform that re-expresses a
function in terms of sine waves. It was named after Joseph Fourier
(1768-1830) who is famous for, among other things, studying the propagation of
heat in solid bodies. In this he expanded functions as a trigonometrical
series, this was later to be known as the Fourier Series.

The Fourier Series

A Fourier series is an expansion of a periodic function in terms of a sum
of sines and cosines. The Fourier series of a function f(x) is given by

f(x)=12a0+n=1ancos(nx)+n=1bnsin(nx)

where

a0=1πππf(x)dx

an=1πππf(x)cos(nx)dx

bn=1πππf(x)sin(nx)dx

what we are saying here is that the function f(x) is made up of a
constant plus a sum of sine and cosine waves with different amplitudes and
frequencies.

An example

An example may now be useful for understanding this. Let’s look at periodic
square wave function.

Since the function is periodic, we only need to deal with the region
between π and π and note that f(x)=1 over the region π/2 to
π/2 and is zero everywhere else. The equation for a0 now becomes,

a0=1ππ/2π/21dx=1π[x]π/2π/2=1

and

an=2πnsin(πn2)

which only exists when n is odd and is zero when even.

And finally

bn=0

So the Fourier series expansion of f(x) is

f(x)=12+n=1,3,5,2πncos(nx)

We can see how the square wave is built up from the cosines by restricting
the summation to a limited number of terms and this is shown in the figure
below

 

The legend indicates the number of terms. When n=1 the graph is a cosine
wave. As n increases, more and more higher frequencies are added and the
series becomes closer to a square wave.

Sine and Cosine Series

If the function, f(x) is odd an is always zeros and the function
can be described by the Fourier Sine Series. If the function is even (as
above) the bn term is zero and so it becomes the Fourier Cosine
Series.

Aside: f(x) is even if
f(x)=f(x). An example is f(x)=cos(x), and cos(π/2)=cos(π/2).f(x) is odd if
f(x)=f(x) and example is f(x)=sin(x)

The Complex Fourier Series

From Euler’s equation, we can rewrite our expansion series using complex
numbers.

sin(nx)=einxeinx2i

cos(nx)=einx+einx2

Re-expressing the Fourier series as

f(x)=12a0+n=1(ancos(nx)+bnsin(nx))

note that

ancos(nx)+bnsin(nx)=12an(einx+einx)+12ibn(einxeinx)

=12(anibn)einx+12(an+ibn)einx

Now let

cn=12(anibn)=12piππf(x)einxdx

and

kn=12(an+ibn)=12πππf(x)einxdx

we can re-write the above as

f(x)=c0+n=1(cneinx+kneinx)

Note that kn=cn if we now define n=0,±1,±2, we
can now represent the expansion in the complex form where now

f(x)=n=cneinx

cn=12πππf(x)einxdx

In the above example the series was assumed to be periodic over a length
of L=2π. It doesn’t have to be 2π, it could be any length although
the sine and cosines remain periodic over this region. The expansion becomes
the more compact

f(x)=cneiπnxL

and

cn=1LL/2L/2f(x)ei2πnxLdx

The Transform

This all very well for describing a periodic function. But what if the
function is not periodic. We overcome this by letting the period tend
towards infinity L. More on how this is done later,
but for now we state the definitions.

The Fourier Transform (FT) is represented here by the operator F.

The transform is

F(f(x))=F(u)=f(x)e2πiuxdx

And the inverse is

F(1)F(u)=f(x)=F(u)e2πiuxdx

In two dimensions the transform is

F(f(x,y))=F(u,v)=f(x,y)e2πi(ux+vy)dxdy

and the inverse is

F1(F(x,y))=f(x,y)=F(u,v)e2πi(ux+vy)dudv