Professional Documents
Culture Documents
TT FourierSeries PDF
TT FourierSeries PDF
Ching-Han Hsu
x
p
cos mx sin nxdx
1 1
sin n mxdx sin n mxdx 0
2 2
© 2012, Ching-Han Hsu, Ph.D.
Properties of Trigonometric
Functions
sin mx sin nxdx
1 1 nm
cosn m xdx cosn m xdx
2 2 0 nm
cos mx cos nxdx
1 1 nm
cosn m xdx cosn m xdx
2 2 0 nm
f x dx a a
0
n 1
n cos nx bn sin nxdx
2a0
f xdx
1
a0
2
a0 an cos nx bn sin nx cos mxdx
n 1
am
1
am f x cos mxdx
© 2012, Ching-Han Hsu, Ph.D.
Determination of the Coefficients bn
of the Sine Term
• Multiply by sinmx with fixed positive integer
and then integrate both sides from – to :
f x sin mxdx
a0 an cos nx bn sin nx sin mxdx
n 1
bm
1
bm f x sin mxdx
© 2012, Ching-Han Hsu, Ph.D.
Summary
f x a0 an cos nx bn sin nx
n 1
1
a0 f x dx
2
1
an f x cos nxdx
f x sin nxdx
1
bn
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Square Wave
• Ex. Find the Fourier coefficients of the
periodic function f(x)
k x 0
f x , f x 2 f x
k 0 x
1
k k 0
2 Q: Is f(x) even or odd?!
1
an f x cos nxdx
1 0
k cos nxdx k cos nxdx
0
1 k
0
k
sin nx sin nx 0
n n 0
© 2012, Ching-Han Hsu, Ph.D.
f x sin nxdx
1
bn
1 0
0
k sin nxdx k sin nxdx
1 k 0
k
cos nx cos nx
n n 0 cos n cosn
1 k
1 cos n cos n 1
k
n n
2 n 1,3,
2k
1 cos n 1 cos n
n 0 n 2,4,
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Square Wave
4k 4k 4k
b1 , b2 0, b3 , b4 0, b5 ,
3 5
f ( x) a0 an cos nx bn sin nx
n 1
2k
1 cos n sin nx
n 1 n
4k 1 1
sin x sin 3 x sin 5 x
3 5
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Square Wave
• Consider the series expansion of finite
sine terms:
4k
S1 sin x
4k 1
S2 sin x sin 3x
3
4k 1 1
S3 sin x sin 3 x sin 5 x
3 5
© 2012, Ching-Han Hsu, Ph.D.
© 2012, Ching-Han Hsu, Ph.D.
Representation by Fourier Series
• Thm. If a periodic function f(x) with period
2 is peicewise continuous in the interval
-≦x≦ and has a left-hand derivative and
right-hand derivative at each point of that
interval, then Fourier series of f(x) is
convergent. Its sum is f(x), except at a
point of x0 at which f(x) is discontinuous
and the sum of the series is the average of
the left- and right-hand limits of f(x) at x0.
© 2012, Ching-Han Hsu, Ph.D.
Representation by Fourier Series
1
f 1 0 f 1 0
2
a0 f x dx kdx
1 2 1 1 k
4 2 4 1 2
nx nx
an f x cos
1 2 1 1
dx k cos dx
2 2 2 2 1 2
n n
1
k 2k
sin x sin
n 2 1 n 2
2k 2k
an , n 1,5,9, an , n 3,7,11,
n n
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Periodic Square Wave
nx nx
bn f x sin
1 2 1 1
dx k sin dx
2 2 2 2 1 2
k n k n n
1
k
cos x cos cos
n 2 1 n 2 n 2
k n k n
cos cos 0
n 2 n 2
k 2k 1 3 1 5
f ( x) cos x cos x cos x
2 2 3 2 5 2
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Periodic Square Wave
k=5
Ew sin 1 n wt sin 1 n wt w
2 1 n w 1 n w 0
E sin 1 n sin 1 n
2 1 n 1 n
E
n 1 sin 1 n cos1 n
2 lim lim
0 n 2,3,4,
n 1 1 n n 1 1
sin 1 n cos1 n
d
dn © 2012, Ching-Han Hsu, Ph.D.
Fourier
Series: Half-wave
Rectifier
w w
a0
w
u t dt w E sin wtdt
2
w 2 0
E E w
cos wt cos cos 0 E
2 0 2
w w w w
an u t cos nwtdt E sin wt cos nwtdt
w 0
Ew
sin 1 n wt sin 1 n wt dt
w
2 0
Ew cos1 n wt cos1 n wt w
2 1 n w 1 n w 0 © 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Half-wave Rectifier
E 1 cos1 n 1 cos1 n
an
2 1 n 1 n
0 n 1,3,5,
E 2 2
n 2,4,6,
2 1 n 1 n
0 n 1,3,5,
2E
n 2,4,6,
n 1n 1
2E 1
ut sin wt
E E 1
cos 2wt cos 4wt
2 1 3 3 5
© 2012, Ching-Han Hsu, Ph.D.
Fourier Series: Half-wave Rectifier
k=5 =1
e x o x
exdx 2 exdx
L L
L 0
ox dx 0
L
L
3 5
f f1 f 2 f1 x x, f 2 x
© 2012, Ching-Han Hsu, Ph.D.
Sawtooth Wave
• Since f1 is odd, an=0 for n=1,2,3,… and
nx
f x sin
2 L
bn
L 0
1
L
dx
xd cos nx
2 2
x sin nxdx
0 n 0
x cos nx cos nxdx
2 2
n 0 n 0
2 2 2
cos n 2 sin nx cos n
n n 0 n
f1 x bn sin nx cos n sin nx
2
n 1 n 1 n © 2012, Ching-Han Hsu, Ph.D.
Sawtooth Wave
f x 2 sin x sin 2 x sin 3x
1 1
2 3
f1 x f 2 x
Even Expansion
Odd Expansion
1 2k L / 2
xdx
2k L
L x dx
L L 0 L L/2
1 k L k L k
2 2
L L 2 L 2 2
nx nx
an e f x cos dx e f x cos
1 L 2 L
dx
L L L L 0 L
2 2k L / 2 nx nx
x cos dx
2k L
L x cos dx
L L 0 L L L/2 L
© 2012, Ching-Han Hsu, Ph.D.
Triangle Function: Even Periodic Expansion
nx nx nx
L/2
L/2 L L L/2
0 x cos L dx n x sin L 0 n 0 sin L dx
L2 n L2 n
sin 2 2 cos 1
2n 2 n 2
nx
L / 2 L x cos L dx
L
nx nx
L
L
L x sin L L
n L L/2
n L / 2 sin L dx
L2 n L2 n
sin 2 2 cos n cos
2 n 2 n 2
© 2012, Ching-Han Hsu, Ph.D.
Triangle Function: Even Periodic Expansion
4k n
an 2 2 2 cos cos n 1
n 2
16 k
a1 0, a2 2 2 , a3 0, a4 0, a5 0
2
16 k 16 k
a6 2 2 , a10 2 2 ,
6 10
an 0, n 2,6,10,14,
k 16k 1 2 6 10
f x
1 1
2 2 cos x 2 cos x 2 cos x
2 2 L 6 L 10 L
© 2012, Ching-Han Hsu, Ph.D.
Triangle Function: Even Periodic Expansion
8k 1 3 5
f x 2 2 sin x 2 sin
1 1
x 2 sin x
1 L 3 L 5 L
An
4 25 n
, Bn
2
0.08
n D
2
nD
D 25 n 0.02 n
2 2 2
y p t y1 t y2 t y3 t
© 2012, Ching-Han Hsu, Ph.D.
Forced Oscillations
Let us find the amplitude Cn A B
2
n
2
n
We have
C1 0.0530
C3 0.0088
C5 0.5100
C7 0.0011
C9 0.0003
© 2012, Ching-Han Hsu, Ph.D.
Parseval’s Theorem
dx
L L L
nx
bn f x sin
1 L
dx
L L L
© 2012, Ching-Han Hsu, Ph.D.
Parseval’s Theorem
• Show that:
1 L
f x dx 2a0 an bn
2 2 2 2
L L n 1
m m
f x a0 am cos
2
x bm sin x
m 1 L L
n n
a0 an cos x bn sin x
n 1 L L
© 2012, Ching-Han Hsu, Ph.D.
L m n
L ambn cos L x sin L x dx
1 L n m n m
ambn sin x sin x dx
2 L L L
0, m, n
L
a0 a0 dx 2La 2
0
L
L m n
L am an cos L x cos L x dx 0, m n
L n n
L an an cos L x cos L x dx
L n L 1 2n
a cos
2
n
2
x dx an
2
1 cos x dx
L
L L 2
L
La n2 , m n
L m n
L bmbn sin L x sin L x dx 0, m n
L n n
L bnbn sin L x sin L x dx
L n L 1 2n
b sin
2
n
2
x dx bn
2
1 cos x dx
L
L L 2
L
Lbn2 , m n
1 L 2
f x dx 2 a0
2
a 2
n bn
2
L L
n 1
f x dx a0 an bn
1 L 2 1
2 2 2
2L L 2 n1
2 2
© 2012, Ching-Han Hsu, Ph.D.
Complex Fourier Series
nx nx
1
an ibn L f x cos
1 L
i sin dx
2 2L L L
nx
i
1 L
f x e L
dx cn
2L L
nx nx
1
an ibn L f x cos
1 L
i sin dx
2 2L L L
( n )x
i
f x e
1 L
2L L
L
dx c n
( 0 )x
i
a0
1 L
f x e L
dx c0
2L L © 2012, Ching-Han Hsu, Ph.D.
Complex Fourier Series
nx nx
f x a0 an cos bn sin
n 1 L L
nx nx
i
a0 an ibn e an ibn e
1 i
L
1 L
n 1 2 n 1 2
nx nx nx ( n )x
i
c0 cn e c n e c0 cn e c n e
i i i
L L L L
n 1 n 1 n 1 n 1
nx nx
c0 cn e cn e
i i
L L
n 1 n 1
nx
c e
i
L nx
i
1 L
n
n cn f x e L
dx
2L L
© 2012, Ching-Han Hsu, Ph.D.
Let Us Play Fourier Series!!
2
1 cos n
n
21 cos n n
f x sin x
n 1 n L
© 2012, Ching-Han Hsu, Ph.D.
Periodic Square Wave (II)
• Ex. Find the Fourier series of the function
1 0 x L
g x
0 L x 0
1 cos n n
g x 1 f x
1 1
sin x
2 2 n1 n L
nx
L
2L 2 L
cos n sin
n n n L 0
2L
cos n
n
2L n
f x cos n sin x
n 1 n L © 2012, Ching-Han Hsu, Ph.D.
Triangle Wave (I)
2L n
g x cos n sin x
n 1 n L
© 2012, Ching-Han Hsu, Ph.D.
© 2012, Ching-Han Hsu, Ph.D.
Triangle Wave (II)