Professional Documents
Culture Documents
Engineering Analysis
Dr He Xiaoqiao
E-mail: bcxqhe@cityu.edu.hk
Room: AC1 B6401
CA3122 Engineering Analysis ➢1
Course Contents
problem
Erwin Kreyszig
Advanced Engineering Mathematics (7th edition)
John Wiley & Sons, Inc. 1993
Michael D. Greenberg
Advanced Engineering Mathematics. (2th edition). Prentice-Hall
International, Inc. New Jersey. 1998.
R.N. Bracewell
The Fourier transform and its applications. (3rd edition).
Boston: McGraw Hill. 2000.
Hamdya Taha
Operations Research An Introduction. (6th edition).
Prentice-Hall, Inc. 1997.
CA3122 Engineering Analysis ➢4
Grading Policy
Fourier series
f x a0 an cos nx bn sin nx
n 1
d2y dy
a 2 b cy f x
dx dx
y cos(x) y x
Even functions
(symmetric to x axis)
yx
y sin(x)
Odd functions
(antisymmetric to x axis)
CA3122 Engineering Analysis ➢ 10
Odd and even functions
If f (x) is even:
b
f(x)
f ( x )dx
a
a a
f ( x)dx 2 f ( x)dx
a 0
a b x
a a
f ( x)dx
a
f ( x)dx
0
-a a
If f (x) is odd:
a 0 a
a
f ( x)dx
0
f ( x)dx 0
a
f ( x)dx
a
-a a
O( x) [ f ( x) f ( x)] / 2
O(-x) = -O(x)
f ( x) E ( x) O( x)
Fundamental
range
x
0 2 4
1 1 x 0
f x and f x 2 f x
2 0 x 1
T T
f ( x) x
2 2
f ( x T ) f ( x)
period = 2
where T is the period.
f x dx
1
a0
2
sin x sin y
1
cosx y cosx y
2
cos x cos y cos x y cos x y
1
Note that 2
sin x cos y sin x y sin x y
1
2
CA3122 Engineering Analysis ➢ 18
Fourier Series
Orthogonality of the Trigonometric System
sin x sin y
1
cosx y cosx y
Trigonometric system is 2
orthogonal on the interval cos x cos y cos x y cos x y
1
- x 2
sin x cos y sin x y sin x y
1
2
0 mn
cos mx cos nx dx mn
0 mn
sin mx sin nx dx mn
cos mx sin nx dx 0
(including m n)
CA3122 Engineering Analysis ➢ 19
Fourier Series
1 1
bn sin n m xdx sin n m xdx
n 1 2 2
1 am
an cos n m xdx dx a m
2 n 1 2
nm
1
am f x cos mxdx m 1, 2, 3, ...
1 1
bn cos n m xdx cos n m xdx
n 1 2 2
1 b
bn cos n m xdx m dx b m
2 n 1 2
nm
1
bm f x sin mxdx m 1, 2,3,...
f x dx
1
Fourier Coefficients: a0
2
f x cos nxdx n 1, 2 ,3,...
1
an
f x sin nxdx n 1, 2 ,3,...
1
bn
Fourier Series: f x a0 an cos nx bn sin nx
n 1
-k
f x dx 0
1
a0
2
f x cos nxdx k cos nxdx k cos nxdx 0
1 1 0
an
0
f x sin nxdx k sin nxdx k sin nxdx
1 0
bn
1
2k
1 cos n
0 n
4k 4k 4k
b1 , b2 0, b3 , b4 0, b5
, ...
3 5
4k 1 1
f x a0 an cos nx bn sin nx sin x sin 3x sin 5 x ...
n 1
3 5
CA3122 Engineering Analysis ➢ 23
Fourier Series
Functions of f(x) with any period p = T
2 Tv T T
v x v x x
T 2 2 2
2n 2n
g v a0 an cos nv bn sin nv f x a0 an cos x bn sin x
n 1 n 1 T T
T
1
1
a0 g v dv a0 2
T f ( x) dx,
2 T
2
1 2 T2 2nx
an g v cos nvdv an T f ( x) cos dx
T 2 T
1 2 T2 2nx
bn g v sin nvdv bn T f ( x) sin dx
T 2 T
CA3122 Engineering Analysis ➢ 24
Fourier Series
f ( x)
Fundamental
range
x
0 2 4
Period = 2π
Find a0
T
2
1 1
a0
T T f ( x)dx a0 2 f ( x)dx
2
1 1 x 2
a0 xdx a0 a0
0 2 0 2
Find a n
T
2
2nx 2nx
1
an
2
T f ( x) cos T dx an f ( x) cos dx
T 2
2
x cos nx dx
2
f ( x) cosnxdx
1
an
an
0
an 0 a
n 0 2 n
n 2
2
n
an 2 1 1
n
CA3122 Engineering Analysis ➢ 28
Fourier Series
Find bn
T
2 2
2nx 1 2nx
bn
T T f ( x ) sin
T
dx bn
f ( x ) sin
2
dx
2
f ( x) sin nxdx
1
bn bn 0
2nx 2nx
f ( x) a0 an cos bn sin
n 1 T T
2
f ( x) 2 1 1 cos nx
n
2 n 1 n
cos x 0 cos 3 x
4 4
f ( x)
2 9
Example: f(x)
k
0 if 2 x 1
f x k if 1 x 1 and f x 4 f x -1 1 x
0 if 1 x 2
p T 4, T 2 2
nx n
T
1 1 1 k 1 1 2k
a0
T
2
T
2
f ( x) dx k dx , an k cos
4 1 2 2 1 2
dx
n
sin
2
2k 2k 1 1 nx
an (n 1,5,9,...), an (n 3,7,11,...), bn k sin dx 0
n n 2 1
2
k 2k 1 3 1 5
f ( x) cos x cos x cos x
2 2 3 2 5 2
CA3122 Engineering Analysis ➢ 31
Fourier Series
0 if t 0 2
Example: u t and u t u t
E sin t if 0t
u(t)
2
T E k
p T ,
2
a0
2
0
E sin t dt
-/ /
E
sin 1 n t sin 1 n t dt
0 2 0
an E sin t cos n t dt
an
2
11n n
11n n 0
2 1 n
1 n
n 1
2 2
a1 0, an 0 n 3, 5, ..., an
E
2E
n 2, 4, ...
2 1 n 1 n n 1n 1
E
cos 1 n t cos 1 n t dt b1 E 2 and bn 0 for n 2, 3, ...
0 2 0
bn E sin t sin n t dt
E E 2E 1 1
u t sin t cos 2t cos 4t ... .
2 1 3 35
CA3122 Engineering Analysis ➢ 32
Easy Ways of Finding Fourier Coefficients
T
f(x)
f ( x )dx
a
2
1
a0
T f ( x)dx
T
2 a b x
Example: 1 1 x 0
f ( x) and f ( x 2) f ( x)
2 0 x 1
T 2
Using the formula:
T
2 1
1 1
a0
T T f ( x)dx a 0
2 1
f ( x)dx
2
0 1
1 1 1 2 3
a0 1dx 2dx a0
2 1 20 2 2 2
Period = 2
Fundamental
range
area 1 2 3
a0 a0 a0
period 2 2
CA3122 Engineering Analysis ➢ 35
Easy Ways of Finding Fourier Coefficients
2nx 2nx
f ( x) a0 an cos
n
b sin
n 1 T T
f ( x) f odd ( x) f even ( x)
2nx
f odd ( x) bn sin
n 1 T
2n x
f even ( x) a0 an cos
n 1 T
Thus, if f (x) is odd:
f even ( x) 0 a0 0 a n
And, if f (x) is even:
f odd ( x) 0 bn 0
2nx
2
2
an
T T f ( x) cos T dx
2
2nx
2
2
bn
T T f ( x) sin T dx
2
So:
f (x) even bn 0
T T
2nx 2nx
2 2
4 2
an
an
T f ( x) cos
0
T
dx
0 an
T f ( x) cos
T T
dx
2
T T
2nx 2nx
2 2
4 2
bn 0 bn
T
0
f ( x) sin
T
dx bn
T T f ( x ) sin
T
dx
2
bn 0
CA3122 Engineering Analysis ➢ 42
Easy Ways of Finding Fourier Coefficients
2nx nx
2 2
2 1
an
T T f ( x ) cos
T
dx a n
2 2
f ( x) cos
2
dx
2
nx nx
1 2
an (1) cos dx ( 1) cos dx
0 2 1 2
n 2 n
sin 0 sin n
2 2 2
an sin sin
n 2 n n n 2
0 n even
4 n 4
an sin an 1 ,1, 5, 9
n 2 n
1 , 3, 7,11
CA3122 Engineering Analysis ➢ 44
Easy Ways of Finding Fourier Coefficients
are: n even
0
4
bn a0 0, an 1 n 1, 5, 9
n
1 n 3, 7,11
Answer!
3 5 7
f x cos x
4 4 4 4
cos x cos x cos x ...
2 3 2 5 2 7 2
e x 1 x 0
3. Find the Fourier series of f x , f x f x 2 .
x 0 x 1