You are on page 1of 35

2.

奇/偶函數之傅立葉級數

令 f ( x)  a0   an cos(n x)  bn sin(n x) ,則
n 1
(1)若 f ( x ) 為奇函數: a0  an  0  只求 bn 即可

 f ( x)   bn sin(n x) (傅立葉正弦級數)
n 1
1 l
 a0   1  f ( x )dx  0 (偶×奇=奇)
2l  l
1 l
 an   f ( x) cos(n x)dx  0 (奇×偶=奇)
l l
1 l
bn   f ( x)sin(n x)dx (奇×奇=偶)
l l
2 l
  f ( x)sin(n x)dx
l 0

Ch6 Fourier 分析 26 NIUEE



2 l
 f ( x)    f ( x)sin(n x)dx sin(n x)
l 0 
n 1  
bn

(2)若 f ( x ) 為偶函數: bn  0  只求 a0 , an 即可

 f ( x)  a0   an cos(n x) (傅立葉餘弦級數)
n 1
2 l
 a0   1  f ( x )dx (偶×偶=偶)
2l 0
2 l
 an   f ( x) cos(n x)dx (偶×偶=偶)
l 0

1 l
 bn   f ( x)sin(n x)dx  0 (偶×奇=奇)
l l

2 l 2 l
 f ( x)   f ( x)dx    f ( x) cos(n x)dx cos(n x)
2 l 0
 n 1 l 0

a0 an

Ch6 Fourier 分析 27 NIUEE


題型 f ( x ) 之 F-series (求 f ( x ) 之 Fourier series)
1.繪圖: f ( x )
2n 2n
(1)n  = [ f ( x ) :有限區間有定義函數/週期函數]
區間全長 週期
(2)判別奇/偶  簡化計算
【註】如何將非奇/非偶函數化為奇/偶函數? (99%)
非奇/非偶  經平移
 奇/偶函數
 f ( x) 往下移  f ( x)  d 變為 g ( x ) :奇/偶
 f ( x) 往右移  f ( x  d ) 變為 g ( x ) :奇/偶

2.求 a0 , an , bn 代回 f ( x )

f ( x)  a0   an cos(n x)  bn sin(n x)
n 1

Ch6 Fourier 分析 28 NIUEE


 f ( x)  x   ,    x  
【例】 
 f ( x +2 )  f ( x )  得知f ( x )為T  2 之週期函數
【解】
觀念通常 f ( x ) 為週期函數之描述有三:
 f ( x  T )  f ( x)
 f ( x ) is a periodic function
 f ( x )   with period T
知 f ( x ) 為週期函數

繪圖

Ch6 Fourier 分析 29 NIUEE


f ( x)

  

x
 3   3

(1) ∵ f ( x ) 非奇/非偶
2n
n   n (週期函數T  2 )
2

Ch6 Fourier 分析 30 NIUEE


令 g ( x )  f ( x )    x ,   x   [ g ( x ) :奇函數]
g ( x)  f ( x)  

x
 3   3


 f ( x ) 下移  f ( x )    g ( x )
 g ( x ) 為奇函數

Ch6 Fourier 分析 31 NIUEE



(2) g ( x )   bn sin( nx )
n 1
1 
bn  
 
g ( x )sin( nx )dx

2 


= x sin( nx )dx (by 分部積分列表法)
0


2 x 1 
  cos( nx )  2 sin( nx ) 
 n n 0

2 2
= ( 1)  ( 1) n 1
n 1

n n

2
f ( x )     ( 1) n 1 sin( nx )
n 1 n
求出 g ( x )  記得代回 f ( x )
 g ( x ) 記得平移回 f ( x ) ,95%之題目均可平移成奇/偶函數。

Ch6 Fourier 分析 32 NIUEE


積分技巧 1 分部積分法(  udv  uv   vdu ∵ d (uv)  udv  vdu )
b b b
  f ( x ) g ( x) dx   f ( x) d  g ( x )   f ( x ) g ( x) a   g ( x)df ( x )
b


a
   a
   a
uv 01
00
 udv 00  vdu 11

【速算公式】
1. 定義
D n f  f ( n) (微分用上標)
    f dxdx
  dx  f ( n ) (積分用下標)

n n

    (1)  (1) 
  (1)
2. 分部積分法 f gdx f g g f dx
u dv u v v du

3. 連續應用分部積分法

Ch6 Fourier 分析 33 NIUEE



fgdx

 00
 f (0) g(1)   f (1) g(1) dx
 
01
 11
 f (1) g(2)  f (2) g(2) dx 
 f ( 0) g(1)       
  12 
01   22
 
 (2) 
 f g(1)  f g(2)   f g(3)   f g(3) dx 
(0) (1) (3)
   
01 12  23 
  33

 f (0) g(1)  f (1) g(2 )  f (2) g( 3)   f (3) g(3) dx

Ch6 Fourier 分析 34 NIUEE


 n 
  (1) f g( k 1)   (1) n1  f ( n1) g( n1) dx
k (k )

 k 0 
 fgdx
前微 後積  選擇易積分項置後
f (0) g (0)  橫線:函數相乘+積分

 斜線:函數相乘(+-相間)
f (1) g(1)
  積分項:與前項異號
f (2) g(2)

f (3) g(3)

f ( n 1)
g ( n 1)

f (n) g( n )

Ch6 Fourier 分析 35 NIUEE


【要領 1】含多項式函數(置於前)

口訣: 斜線表積分完成 微分 積分
橫線表積分未完 一 一
正負一路走下來 直 直
正確答案就出來 微 積
分 分
到 下
0 去

2
x x 2x 1 2x
【例】  x e dx  e  e  e
2 2x 2x

2 2 4
  x sin xdx   x cos x  sin x
  (ln x ) dx  x(ln x)  x

Ch6 Fourier 分析 36 NIUEE


【例】   (ln x)dxdx    x(ln x)  x  dx 微分 積分
1 2 1 2 1 2
 x (ln x)  x  x ln x x
2 4 2
1 2 3 2 1 1 2
 x (ln x)  x x
2 4 x 2

 e dx  x sin xdx  ln xdx


2 2x
x
前微 後積 前微 後積 前微 後積
x2 e2 x x sin x ln x 1
  
1 2x 1
2x e 1  cos x x
 2  x 
1 2x
2 e 0  sin x
 4
1 2x
0 e
 8
1 2x
0 e
16

Ch6 Fourier 分析 37 NIUEE


積分技巧 2  (指數  三角)dx
ax
e
 sin  bx  dx  a 2  b2 a sin bx  b cos bx 
ax
e
ax
e
 cos  bx  dx  a 2  b2 a cos bx  b sin bx 
ax
e

 sin(bx )dx  sin(bx )dx


ax ax
e e
前微 後積 前微 後積
e ax sin bx sin bx e ax
 
1 1 ax
ae ax
 cos bx b cos bx e
 b  a
1 1 ax
a 2 e ax  2 sin bx b2 sin bx e
 b  a 2

A A
B B
※ eax ,sin  bx  可互換  Ans

Ch6 Fourier 分析 38 NIUEE


法 1 令 I   eax sin  bx dx
1 ax a ax a 2  ax
  e cos  bx   2 e sin  bx   2  e sin  bx  dx 
b b b  
 a2   1 ax a ax 
移項  1  AB  I  1  2  I    e cos  bx   2 e sin  bx 
 b   b b 
1  1 ax a ax 
I    e cos  bx   2 e sin  bx 
1  AB  b b 
ax
e
同b 2  I  2  b cos  bx   a sin  bx 
2 
a b
ax
e
即  eax sin  bx  dx  2  a sin  bx   b cos  bx 
2 
a b

Ch6 Fourier 分析 39 NIUEE


法 2 令 I   eax sin  bx dx
1 ax b ax b 2  ax
 e sin  bx   2 e cos  bx   2  e sin  bx  dx 
a a a  
 b2   1 ax b ax 
移項  1  AB  I  1  2  I   e sin  bx   2 e cos  bx 
 a  a a 
1  1 ax b ax 
I   e sin  bx   2 e cos  bx 
1  AB  a a 
ax
e
同 a 2  I  2  a sin  bx   b cos  bx 
2 
a b
ax
e
即  eax sin  bx  dx  2  a sin  bx   b cos  bx 
2 
a b

Ch6 Fourier 分析 40 NIUEE


3x
e
【例】  e3 x sin  2 x  dx  2  3sin  2 x   2cos  2 x 
2 
3 2

 sin(2 x )dx
3x
e
前微 後積
e3x sin 2x

1
3e 3x
 cos 2 x
 2
1
32 e3 x   2 sin 2 x
2
A
B

Ch6 Fourier 分析 41 NIUEE


【 例 】 Find the F-series of f ( x ) which is assumed to have the
period 2 . (週期函數T  2 )
 x2  
 2 ,  2  x  2
f ( x)   2
 
, x
3
 8 2 2
【解】

Ch6 Fourier 分析 42 NIUEE


f ( x)

2
8

x
3     3

2 2 2 2

(1) 圖:左,右複製(偶函數)(一定要畫圖)
2n 2n
 n  n ( ) 偶函數
2 週期

Ch6 Fourier 分析 43 NIUEE



(2) f ( x )  a0   an cos( nx )
n 1
2 
 a0 
2 0 f ( x )dx (選擇[  , ]之對稱區間  方便計算)
1  2 x 2  
2

  dx   dx  (分段積分)
 0 2 2 8 
 3 2  

1 x  2
 
1   3
 3
 3


1  4 3

 x   
  6 0 8     48 8 16    48 

 2

2
=
12

2 


 an  f ( x )cos( nx )dx
0

Ch6 Fourier 分析 44 NIUEE


2  2 x 2  
2

=  cos( nx )dx +  cos( nx )dx 
 0 2 2 8 
2 n 1 n
= 3 sin( )  2 cos( )
n 2 n 2
 2   2 n 1 n 
 f ( x )= +   3 sin( )  2 cos( )  cos(nx )
12 n 1  n  2 n 2 
※ 畫 F-Series1.判斷奇偶 2.看圖積分

Ch6 Fourier 分析 45 NIUEE



x2

0
2
2
cos( nx )dx
前微 後積
2
x
cos( nx )
2 
1
x sin( nx )
 n
1
1 cos( nx )
 n 2

0 1
3
sin( nx )
n

Ch6 Fourier 分析 46 NIUEE


【例】Find the F-series of f ( x ) .
f(x)

-4 4
2

x
-8 -5 -3  3 5 8
-2

Ch6 Fourier 分析 47 NIUEE


【解】週期函數T  8 (選擇對稱區間:[ 4,4])
2n n
1.(1)n  
8 4

n
(2) f ( x )   bn sin( x ) (奇函數)
n 1 4

註 圖形觀念複習斜截式: y  mx  k
2 2
m    y   x  2
3 3
2 2
m    y   x  2
3 3

n
2. f ( x )   bn sin  
x
n 1  4 

Ch6 Fourier 分析 48 NIUEE


1 4 n 2 4 n
bn 
8/ 2   4
f ( x )sin(
4
x )dx   f ( x )sin(
4 0 4
x )dx
1 3 2 n
  (  x  2)sin( x )dx
2 0 3 4
3 3
1  4 n 16 n  4 n
  x cos( x )  sin( x)  cos( x)
3  n 4 ( n ) 2
4  0 n 4 0
4 16  3n 
  sin   , 代回 f ( x )
n 3( n ) 2
 4 
  3n    n
 
 n   4 16 
f ( x )   bn sin  x    sin    sin  x
 4  n 1  n 3( n )
2
n 1  4   4 


【例】 A periodic function f (t )  3sin t  5sin 3 t , 2  t  2 with
2
T  4 . Find the F-series of f (t ) .
【解】
Ch6 Fourier 分析 49 NIUEE
2n n
(1)n  
4 2
 f (t ) :奇函數+奇函數=奇函數

n
 f (t )   bn sin( t )
n 1 2

法一 直接積分
1 2   n
bn   3sin t  5sin 3 t  sin( t )dt
2 2  2  2
1 2   n n 
  3sin  t  sin( t )  5sin(3 t )sin( t )  dt
2 2  2  2 2 
2 1   n   n  
  3  cos  t  t   cos  t  t 
0
 2  2 2  2 2 

Ch6 Fourier 分析 50 NIUEE


1  n   n  
5  cos  3 t - t   cos  3 t  t    dt
2  2   2  

法二 比較係數:若 f ( x ) 為一
3
純三角函數:如sin(  x ) ,sin(3 x ),
2
sin x ,0<x <
非純三角函數: f ( x )  sin x , f ( x )  
0 ,   <x <0
 f ( x ) 為一純三角函數,其 Fourier series 之係數可使用比較係數而
得。

【解】
 3
f (t )  b1 sin( t )  b2 sin( t )  b3 sin( t )  b4 sin(2 t )
2 2

Ch6 Fourier 分析 51 NIUEE


 7
 b5 sin( t )  b6 sin(3 t )  b7 sin(  t )  
2 2

 3sin( t )  5sin(3 t )
2
 b1  3, b6  5
n 
   n  1  b1  3
2 2
n
 3  n  6  b6  5
2
bn  0, n  1,n  5

n 
  bn sin( t ) 3sin( t )  5sin(3 t )
n 1 2 2

Ch6 Fourier 分析 52 NIUEE


三、複數型式 F-Series

 n 之範圍:  ~ 

定義: f ( x)   n
c e
n 
in x

 f ( x), ein x   f ( x), ein x 


cn  in x in x

 e ,e  e in x 2

1 d  2l

- in x
= 1  f ( x ) e
 dx (2l :區間全長, 權函數: w( x )  1)
2l d w( x ) 取共軛
區間全長

觀念
 
【例】設 f ( x)  a0   an cos(n x)  bn sin(n x) =  cn ein x ,
n 1 n - 

Ch6 Fourier 分析 53 NIUEE


求 a0 , an , bn 和 cn 之關係。
【解】

令 f ( x) 

=  cn ein x
n - 
 
 c0   cn e in x
  cn ein x
n 1 n 1
 
 c0   cn ein x   c m e  im x
n 1 m 1
2(m) 2m
(令 m   n  n  m , m    m )
2 2
 
 c0   cn e in x
  c n e  in x (令 n  m )
n 1 n  m 1

Ch6 Fourier 分析 54 NIUEE


 
=c0   cn  cos(n x)  i sin(n x)    c- n  cos(n x)  i sin(n x) 
n 1 n 1

n +c- n ) cos(n x )  i ( cn  c- n )sin(n x ) 



( c
= c0      
 n 1  an bn
a0

 a0   an cos(n x)  bn sin(n x)
n 1

a0  c0
 an  ibn
 an  cn +c- n   i  2cn  cn 
b  i (c -c )  2
 n n -n

Ch6 Fourier 分析 55 NIUEE


2
【例】 f (t )  t , 0  t  5, f (t  5)  f (t ) . Determine the complex
5
Fourier series of f (t ) of period 5.(T  5)
【解】
f(t)

t
-8 -5 -3 3 5 8
-2

Ch6 Fourier 分析 56 NIUEE


2n
1. (1)n  (T  5)
5
(2)複數型式不需判斷奇/偶函數
 2 n
2. f (t )   cn e
i( )t
5


求 cn :
2 n
1 5 i ( )t
cn =  f (t ) e 5
dt (取共軛)
5 0

1 5  2   i ( 2 n5 ) t
cn =   t  e dt
5 05 

Ch6 Fourier 分析 57 NIUEE


2 n
i ( )t
t e 5

2 n
 5i  e i (
5
)t
1  2n 
 2 n
 25   i ( )t
0   2n  2  e 5

 
2  2 n
5it  i ( 5 ) t 25 i (
2 n
)t
5

= ( e + e 5
) 
25  2n (2n ) 2
0
 
2  25i  i (2 n ) 25  i (2 n ) 25 
 ( e  e  )
2 
25  2n (2n ) 2
(2n ) 

Ch6 Fourier 分析 58 NIUEE


2  25  
  i   cos(2n )  i sin(2n )   
25  2n 
2  25 
=  i  1
25  2n 
 i 
   ( n  0)
 n 

i i ( 2 n5 ) t
※ f (t )   e (誤解!)
n  n
【特別注意】
當 n  0 時,傅立葉係數之分母為零,此係數要另外求解
20 5 2 5
1 5 2  i ( )t 2 2 t
c0 =   t  e 5
dt =  tdt  1
5 05  25 0 25 2 0

Ch6 Fourier 分析 59 NIUEE


 2 n
 i  i( 5 t)
 f (t )  1    e
C0 n  
 n 
n 0
Cn

2n 2n
 a0   an cos( t )  bn sin( t)
n 1 5 5

 2  2n
 1   sin( t)
n 1  n  5
i i
※ a0  1, an  cn  c n   0
n   n  
i i 2i 2
※ bn  i (cn  c n )  i (  )  i( )=
n  n   n n

Ch6 Fourier 分析 60 NIUEE

You might also like