Week 8 Fourier Series
Week 8 Fourier Series
Week 8 Fourier Series
Outline
⚫ Periodic functions
⚫ Expansion of periodic function in Fourier
series
⚫ Odd and even functions
⚫ Fourier sine and Fourier cosine series
⚫ Half ranged Fourier sine and cosine
series
1
Fourier Series
Periodic Functions
2
Review of basic functions
Solve 2x sin( 2x ) dx u dv
2x + sin2x
2 −
cos 2 x
– 2
0 sin 2 x
−
4
cos 2x sin 2x
2x sin( 2x ) dx = 2x −
2
− 2−
4
+C
sin 2 x
= − x cos 2 x + +C
2
6
3
Periodic functions
⚫ A function f(x) is said to be periodic if its
function values repeat at regular intervals of
the independent variables.
f ( x ) = f ( x + p)
where p is a constant and is called the period
of the function.
Periodic functions
f(t)
p
f(t)
p
8
4
Periodic functions
Examples: Sketch the following functions with the given period.
Hence, show two complete cycle of the functions.
a) , − 2 x 0
f (x) = , f ( x + 4) = f ( x )
− , 0 x 2
x
2 , 0 x
b) f ( x ) =
, f ( x + 2 ) = f ( x )
− 1 x , x 2
2
c) f ( x ) = 1 − x 2 , − 1 x 1
d) f ( x ) = − x , − x
, − 2 x 0
f (x) = , f ( x + 4) = f ( x )
− , 0 x 2
10
5
x
, 0 x
f (x) = 2 , f ( x + 2 ) = f ( x )
− 1 x , x 2
2
11
f ( x ) = 1 − x 2, − 1 x 1
f (x) = − x , − x
12
6
13
Fourier series
L
1 1
a0 =
L f ( x ) dx
−L
a0 nx nx
f ( x) = + an cos + bn sin
2 n =1 L L
2
n x
3
L
1
an = f ( x) cos dx bn = 1 f ( x) sin n x dx
L
L −L L L −L L
14
7
Review of trigonometry identity
sin(− ) = − sin
cos(− ) = cos
sin(n ) = 0
− 1, n = 1,3,5,...
cos(n ) = = ( −1)n
1, n = 2,4,6,...
15
16
8
Solution Example 1
f(x)
x
-3 -1 1 3
2L = 2 L = 1
1
0 1
x2
1
1
a0 = 0 dx +
1 −1 x dx
0
=
2 0
= − 0
2
=
2
17
1 1
0 1
an = 0 cos(nx ) dx +
0 x cos(n x )dx = x cos(nx )dx
1 −1 0
u dv
x + cos(nx )
sin(nx )
– n
0 cos(nx )
−
(n )2
1
x
an = sin(nx ) + cos (nx )
n (n )2 0
cos (n ) - 2
1 0 1 1
= sin(n ) + 2 cos (n ) - sin(0) + 2 cos (0)
1 1
=
n n n n n
2
n
18
9
1
0 1 1
bn = 0 sin(nx ) dx +
0 x sin (n x )dx = 0 x sin(nx )dx
1 −1
1
− x
cos(nx ) + ( )
u dv
bn = sin nx
x sin(nx ) (n )2
+ n 0
cos(nx )
– −
n
0 sin(nx )
−
(n )2
−1 0
cos(n ) + 2 sin(n ) - cos(0) + 2 sin(0)
1 1
bn =
n n n n
− cos (n )
=
n
19
a0 nx nx
f ( x ) = + an cos
2 n=1
L
+ bn sin
L
1 1 cos(n )
f (x) = + (cos (n ) − 1) cos(nx) − sin(nx )
2 2 n=1 n
2
n
1 (− 1)n
= + ((− 1) − 1) cos(nx) − sin(nx )
n
4 n=1 n 2 n
20
10
Expansion Fourier series
Example 2: Given
− 1 , − 1 x 0
x
f ( x ) = − 1, 0 x 2 , f ( x + 4) = f ( x )
2
2, 2 x 3
a) Sketch the graph of f(x) for -5 <x < 3 .
b) Expand f(x) in a Fourier series.
21
#Task 6(6C):
time.
22
11