http://en.wikipedia.org/wiki/Joseph_Fourier
Even, Odd, and Periodic Functions
T
Fourier Series of a Periodic Function
2nx
2
2
bn
T T f ( x ) sin
T
dx
2
2nx 2mx
2
x x 0
f ( x)
x 0 x
f ( x 2 ) f ( x)
Find a0
Find a0 ,
T
2
1 1
a0
T f ( x)dx a0
2 f ( x)dx
T
2
1
a0
2 f ( x)dx
a0
1
f ( x)dx
0
1
1 x 2
a0
xdx
0
a0
2 0
a0
2
Find an
T
2nx 2nx
2
2 1
an
T T f ( x ) cos
T
dx
an
f ( x ) cos
2
dx
2
bn
T
2nx 2nx
2
2 1
bn
T T f ( x ) sin
T
dx
bn
f ( x ) sin
2
dx
2
f ( x) sin nxdx
1
bn bn 0
So we can put the coefficients back into the Fourier series formula:
n
2nx 2nx
f ( x) a0 an cos bn sin
n 1 T T
n
2
f ( x) 2 1 1 cosnx
n
2 n 1 n
f ( x) cosx 0 cos3x
4 4
2 9
Summary of finding coefficients
function function function
even odd neither
T T
2 2
1 1
a0 f ( x)dx 0 a0 f ( x)dx 0
a0 T
T
2 0 T
T
2
T
T
2nx
2
an an
2 2
2nx
T f ( x) cos T dx 0 an
2
T f ( x) cos T
dx
T
T
2
2
T T
bn 0 bn
2 2
2nx
f ( x) sin dx bn
2 2
f ( x) sin
2nx
dx
T T T T T T
2 2
Half range Expansions
It often happens in applications, especially when we solve partial
differential equations by the method of separation of variables, that we
need to expand a given function f in a Fourier series, where f is defined
only on a finite interval.
Four extensions: half- and quarter- range cosine and sine extensions,
which are based on symmetry or antisymmetry about the endpoints
x=0 and x=L.
HRC (half range cosines)
PARSEVALS FORMULA
If a function has a Fourier series given by
(
1
Integrating )
so
Fourier Integral
If f(x) and f (x) are piecewise continuous in every finite interval, and f(x) is absolutely
integrable on R, i.e.
converges, then
1 1
e e f (t )dt dw
iwt
[ f ( x ) f ( x )] iwx
2 2
2
Define B(w) f S ( w)
2
fS ( w ) B( w) f ( x ) sin( wx)dx, v has been replaced by x
2 0
2
f ( x) B( w) sin( wx)dw f ( w ) sin( wx )dw
0
0
S
F {af ( t ) bg( t )} aF { f ( t )} bF { g( t )} aF ( w ) bG ( w )
2 Scaling:
For any constant c, the following equality holds:
1 w
F { f (ct )} F( )
|c| c
4. Frequency shifting:
iwt iwt 0
F { f ( t t 0 )} f ( t t 0 )e dt e f ( u )e iwu du
Proof:
F {e iwt0 f (t )} F ( w w0 )
e
iwt 0
F {e iw0 t
f ( t )} f ( t )e iwt dt F ( w w 0 )
F { F ( t )} 2f ( w )
1
F ( w )e
1
f (t ) F { f ( w )} iwt
dw
2
1
2f ( w ) F ( t )e
itw
dt F { F ( t )}
2
1
F { f ( t ) cos(w 0 t )} [ F ( w w 0 ) F ( w w 0 )]
2
1
F { f ( t ) sin( w 0 t )} [ F ( w w 0 ) F ( w w 0 )]
2
Proof:
Using Euler formula, properties 1 (linearity) and 4 (frequency shifting):
1
F { f ( t ) cos(w 0 t )} [ F {e iw0 t f ( t )} F {e iw0 t f ( t )}]
2
1
[ F ( w w 0 ) F ( w w 0 )]
2
m F(t)
k
m = mass
c = damping factor
k = spring constant
F(t) = 2L- periodic forcing function