Week10_OCW_BMCG1013
Week10_OCW_BMCG1013
DIFFERENTIAL EQUATIONS
FOURIER SERIES
(Fourier Sine Series, Fourier Cosine Series &
Half-range)
Rahifa Ranom
[email protected]
Learning Outcomes
Note that: The odd and even function can also be solved using
Fourier Series for interval [−𝐿, 𝐿]
4.4.1 Fourier Sine Series (also known as Fourier odd series)
𝐿
2 𝑛𝜋𝑡
𝑎𝑛 = න 𝑓 𝑡 cos 𝑑𝑡
𝐿 𝐿
0
Note that: If the function is neither an odd or an even function, then use
Fourier Series
Example 4.8
𝑓 𝑡 = 𝑡 2 ; −2 < 𝑡 < 2
Example 4.8
The sketch is symmetric about 𝑦 −axis and 𝑓(−𝑡) = 𝑓(𝑡), therefore this
function is an even function. The Fourier Series can be obtained using
Fourier Cosine Series.
∞
𝑎0 𝑛𝜋𝑡
𝑓 𝑡 = + 𝑎𝑛 cos
2 𝐿
𝑛=1
Here 𝐿 = 2 and 𝑏𝑛 = 0;
𝐿 2 2
2 2 2
𝑡3 8
𝑎0 = න 𝑓(𝑡) 𝑑𝑡 = න 𝑡 𝑑𝑡 = อ =
𝐿 2 3 3
0 0 0
𝐿 2
2 𝑛𝜋𝑡 2 𝑛𝜋𝑡
𝑎𝑛 = න 𝑓 𝑡 cos 𝑑𝑡 = න 𝑡 2 cos 𝑑𝑡
𝐿 𝐿 2 2
0 0
Tabular
Method
Example 4.8
2
2
𝑛𝜋𝑡
𝑎𝑛 = න 𝑡 cos 𝑑𝑡
2
0 Diff Int
2
2𝑡 2 𝑛𝜋𝑡 8𝑡 𝑛𝜋𝑡 16 𝑛𝜋𝑡
= sin + cos − 3 sin 2 อ
𝑛𝜋 2 𝑛𝜋 2 𝑛
2 𝑛𝜋
= −1 0
=0 =0
8 16 16
= sin 𝑛𝜋 + cos 𝑛𝜋 − sin 𝑛𝜋
𝑛𝜋 𝑛𝜋 2 𝑛𝜋 3
16 =0
− − sin 0
𝑛𝜋 3
16
= 2
−1 𝑛
𝑛𝜋
∞
4 16 𝑛 cos
𝑛𝜋𝑡
𝑓 𝑡 = + −1
3 𝑛𝜋 2 2
𝑛=1
Example 4.9
Here 𝐿 = 1 and 𝑏𝑛 = 0;
𝐿 1 1
2 2 𝑡2
𝑎0 = න 𝑓(𝑡) 𝑑𝑡 = න 𝑡 𝑑𝑡 = 2 อ = 1
𝐿 1 2
0 0 0
𝐿 1
2 𝑛𝜋𝑡 2 𝑛𝜋𝑡
𝑎𝑛 = න 𝑓 𝑡 cos 𝑑𝑡 = න 𝑡 cos 𝑑𝑡
𝐿 𝐿 1 1
0 0
Tabular
Note that: 𝑓(𝑡) = 𝑡, 0 ≤ 𝑡 ≤ 1. Method
Example 4.9
1 1
𝑛𝜋𝑡 𝑡 1
𝑎𝑛 = 2 න 𝑡 cos 𝑑𝑡 = 2 sin 𝑛𝜋𝑡 + 2 cos 𝑛𝜋𝑡 ቤ
1 𝑛𝜋 𝑛𝜋 0 Diff Int
0 = −1 𝑛
=1
1 =0 1 1
=2 sin 𝑛𝜋 + 2 cos 𝑛𝜋 − 2 cos 0
𝑛𝜋 𝑛𝜋 𝑛𝜋
2 𝑛 −1)
= ( −1
𝑛𝜋 2
∞
1 2 𝑛 −1) cos 𝑛𝜋𝑡
𝑓 𝑡 = + 2 ( −1
2 𝑛𝜋
𝑛=1
Example 4.10
Then, with 𝑇 = 2𝜋, extend the plot within the interval −3𝜋 ≤ 𝑡 ≤ 3𝜋
by repeating itself identically. The sketch is symmetric about the
origin, hence the function is an odd function.
Here 𝐿 = 𝜋 and 𝑎0 = 0, 𝑎𝑛 = 0;
𝐿 𝜋
2 𝑛𝜋𝑡 2 𝑛𝜋𝑡
𝑏𝑛 = න 𝑓 𝑡 sin 𝑑𝑡 = න −𝑡 sin 𝑑𝑡
𝐿 𝐿 𝜋 𝜋
0 0
Tabular
Method
Example 4.10
𝜋 𝜋
2 𝑡 1 Diff Int
𝑏𝑛 = න −𝑡 sin 𝑛𝑡 𝑑𝑡 = cos 𝑛𝑡 − 2 sin 𝑛𝑡ቤ
𝜋 𝑛 𝑛 0
0
2 𝜋 1 =0 1 =0
= cos 𝑛𝜋 − 2 sin 𝑛𝜋 − 2 sin 0
𝜋 𝑛 𝑛 𝑛
𝑛
= −1
2 𝑛
= −1
𝑛
∞
2 𝑛 sin 𝑛𝑡
𝑓 𝑡 = −1
𝑛
𝑛=1
Exercise 4.5
1. Sketch the periodic function
−1; −𝜋 ≤ 𝑡 ≤ 0
𝑓 𝑡 =ቊ ,
1; 0 ≤ 𝑡 ≤ 𝜋
𝑓 𝑡 + 2𝜋 = 𝑓(𝑡)
within the interval −3𝜋 ≤ 𝑡 ≤ 3𝜋. Determine whether the function is odd, even
or neither function, hence find the Fourier Series of the function.
Solution:
Solution:
𝐿 2 Diff Int
2 𝑛𝜋𝑡 2 𝑛𝜋𝑡
𝑏𝑛 = න 𝑓 𝑡 sin 𝑑𝑡 = න 𝑡 sin 𝑑𝑡
𝐿 𝐿 2 2
0 0
2
2𝑡 𝑛𝜋𝑡 4 𝑛𝜋𝑡
= − cos + sin
𝑛𝜋 2 𝑛𝜋 2 2 0
4 4 4 𝑛+1
=− cos 𝑛𝜋 + sin 𝑛𝜋 = −1
𝑛𝜋 𝑛𝜋 2 𝑛𝜋
Solution:
Solution:
Solution:
𝐿 1
2 𝑛𝜋𝑡 2
𝑏𝑛 = න 𝑓 𝑡 sin 𝑑𝑡 = න 1 − 𝑡 2 sin 𝑛𝜋𝑡 𝑑𝑡
𝐿 𝐿 1
0 0
1
1−𝑡2 2𝑡 2
=2 − cos 𝑛𝜋𝑡 − sin 𝑛𝜋𝑡 − 3 cos 𝑛𝜋𝑡
𝑛𝜋 𝑛𝜋 2 𝑛𝜋
0
2 2 1 2
=2 − sin 𝑛𝜋 − cos 𝑛𝜋 − − −
𝑛𝜋 2 𝑛𝜋 3 𝑛𝜋 𝑛𝜋 3
2 −1 𝑛 1 2 1 4
=2 − 3 + + 3 = + 3 [ −1 𝑛+1 + 1]
𝑛𝜋 𝑛𝜋 𝑛𝜋 𝑛𝜋 𝑛𝜋
ii. Find the Fourier cosine and the Fourier sine series, respectively.
Answers:
𝜋 2
a) Even: 𝑓 𝑥 = − 2 + σ∞
𝑛=1 𝜋𝑛2 −1
𝑛+1
+ 1 cos 𝑛𝑥
2
b) Odd: 𝑓 𝑥 = σ∞
𝑛=1 𝑛 −1 𝑛
sin 𝑛𝑥
Exercise 4.7
𝑓 𝑥 = 1 + 𝑥; 0≤𝑥≤1
ii. Find the Fourier cosine and the Fourier sine series, respectively.
Answers:
3 2
a) Even: 𝑓 𝑥 = 2 + σ∞
𝑛=1 −1 𝑛
− 1 cos 𝑛𝜋𝑥
𝑛𝜋 2
2
b) Odd: 𝑓 𝑥 = σ∞
𝑛=1 𝑛𝜋 2 −1 𝑛+1
+ 1 sin 𝑛𝜋𝑥
References