TUGAS 1
oleh
DOSEN
Dr. Ir. Sigit Darmawan
Penyelesaian:
a) Periksa kebenaran keorthogonalan fungsi-fungsi q i(x) ; i = 1, 2, 3 yang didapat tersebut.
1. q1(x) = p1(x) = 1 , sebagai basis untuk orthogonaslisasi
〈p2(x) .q1(x) 〉
2. q2(x) = p2(x) − 2 q1(x)
‖q1(x) ‖
dimana,
2 2 1 1
▪ 〈 p2(x) . q1(x) 〉 = ∫0 p2(x) . q1(x) dx = ∫0 x .1 dx = x 2 | 20 = (2)2 = 2
2 3
2 2
▪ ‖q1(x) ‖ = ∫0 (1)2 dx = x| 20 = 2
2
Maka: q2(x) = x − (2) . 1 = (x − 1)
dimana,
2 2 1 1 1
▪ 〈 p3(𝑥) . q1(x) 〉 = ∫0 p3(x) . q1(x) dx = ∫0 x 2 . 1 dx = 3 x 3 | 20 = 3
(2)3 − 3 (0)3 = 2.6667
2 2 2 1 1
▪ 〈 p3(𝑥) . q2(x) 〉 = ∫0 p3 (x). q2 (x) dx = ∫0 x 2 . (x − 1)dx = ∫0 x 3 − x 2 dx = x 4 − x 3 | 20
4 3
1 1
= (4 (2)4 − 3 (2)3 ) − 0 = 1.3334
2 2 2 1 3 2
▪ ‖q2(x) ‖ = ∫0 (x − 1)2 dx = ∫0 (x 2 − 2x + 1) dx = 3
x − 2 x 2 + x| 20
1 2
= ( (2)3 − (2)2 + (2)) − 0 = 0.6667
3 2
2.6667 1.3334
Maka, q3(x) = x 2 − ( 2
) . 1 − (0.6667) (x − 1) = (x 2 − 2x + 0.6667)
1
1 4 2
= x − x 3 + 1.3334x 2 − 0.6667x|
4 0
1
= (4 (2)4 − (2)3 + 1.3334(2)2 − 0.6667(2)) − 0 = 0 → OK !
2 1 2
‖q3 (x)‖ = x5 − x4 + 1.7778 x3 − 1.3334 x2 + 0.4445 x|
5 0
2 1
‖q3 (x)‖ = ( (2)5 − (2)4 + 1.7778 (2)3 − 1.3334 (2)2 + 0.4445 (2)) − 0 = 0.1778
5
1
c) Tentukan proyeksi fungsi 𝑓(𝑥) = 4 − 𝑥 pada kumpulan fungsi-fungsi orthonormal r i(x)
yaitu f(x) .
3
2 1
▪ k1 = 〈 f(x) . r1(x) 〉 = ∫0 (4−x) (0.7071) dx = ((0.7071) ln 2) − 0 = 0.49012
2 1 1 2 1.732 x −1.732
▪ k2 = 〈 f(x) . r2(x) 〉 = ∫0 (4−x) (1.2247 x − 1.2247)dx = ∫ ( (4−x) ) dx
√2 0
−3.4641 + 3.6016
k2 = ( ) − 0 = 0.09729
1.4142
2 1 1 2 3√5 x2 − 6√5 x + 2√5
▪ k3 = 〈 f(x) . r3(x) 〉 = ∫0 ( ) (2.3717x2 − 4.7434x + 1.5811)dx = ∫ ( ) dx
4−x 2√2 0 (4−x)
2.2360((9.0109) − 9)
=( ) − 0 = 0.01725
1.4142
Dengan demikian :
2
d) Tentukan jarak minimum antara fungsi f(x) terhadap f-(x)
▪ Norma dari f(x)
3
2 2
‖f(x) ‖ = ∑(ki ) = 0.490122 + 0.097292 + 0.017252 = 0.24999
i=1
Atau :
2
2 2
‖f(x) ‖ = ∫ (0.04092 x2 + 0.03731 x + 0.25469) dx
0
2
2
‖f(x) ‖ = ∫ 0.00167x4 + 0.00305x3 + 0.02223x2 + 0.01900x + 0.06486 dx
0
2 2
‖q3 (x)‖ = 0.00167x4 + 0.00305x3 + 0.02223x2 + 0.01900x + 0.06486 |
0
2
‖q3 (x)‖ = ((0.00167(2)4 + 0.00305(2)3 + 0.02223(2)2 + 0.01900(2) + 0.06486) − 0)
2
‖f(x) ‖ = 0.24996 → mendekati hasil diatas (OK!)
▪ Nampak bahwa nilai dmin relative kecil terhadap ‖f(x)‖ maupun ‖f(x) ‖ , dengan
1
demikian fungsi f(x) = 4−x dapat didekati dengan fungsi f(x)
1
≈ 0.04092 x 2 + 0.03731 x + 0.25469
4−x
3
e) Lakukan pemeriksaan/evaluasi melalui kurva, apakah fungsi f(x) dapat didekati f(ҧ x)
1
x f(x) = f(ҧ x) = 0.04092 x2 + 0.03731 x + 0.25469
4 −𝑥
0.60
0.50
0.40
f(x) atau f ̅(x)
0.30
0.20
0.10
0.00
0.00 0.50 1.00 1.50 2.00
x
f(x) f'(x)
4
2. Diketahui fungsi f(x) yng kuravnya sebagaimana tergambar di samping.
Lakukan ekspansi “sepotong” fungsi f(x) tersebut dengan
melakukan manipulasi matematik menjadi 3 (tiga) opsi
berikut:
Penyelesaian:
a. Dari ketiga deret Fourier yang didapat, dengan bantuan computer gambar kurva dari deret Fourier
tersebut untuk 5; 10 dan 50 unsur pertama untuk nilai −4 ≤ 𝑥 ≤ + 4 kekonvergensiannya
terhadap fungsi asal f(x) di atas.
x
0
-4 -3 -2 -1 0 1 2 3 4
▪ Formula transformasi f(x) ke dalam deret Fourier untuk kondisi pengembangan fungsi periodik
diatas adalah sebagai berikut:
∞
a0
f(x) = + ∑{an cos(nπx) + bn sin(nπx)}
2
n=1
5
▪ Koefisien-koefisien Fourier an dan bn ditentukan melalui formula berikut :
2
an = ∫ f(x) cos(nπx) dx ; n = 0,1,2, . . … , ∞
0
2
bn = ∫ f(x) sin(nπx) dx ; n = 0,1,2, … … , ∞
0
2 1 2
b) bn = ∫0 f(x) sin(nπx) dx = ∫0 2x sin(nπx) dx + ∫1 (3 − x) sin(nπx) dx
1 2
bn = 2 ∫ x sin(nπx) dx + ∫ 3 sin(nπx) − x sin(nπx) dx
0 1
2 1 3 1 2
bn = ( 2 2 (−nπx cos(nπx) + sin(nπx)))| + − cos(nπx) − 2 2 (−nπx cos(nπx) + sin(nπx))|
n π 0 πn π n 1
2 3 1
bn = (−nπ cos(nπ) + sin(nπ)) + (− cos(2nπ) + cos(nπ)) − 2 2 (−2πn cos(2nπ)
n2 π2 πn π n
+ sin(2nπ) + nπ cos(nπ) − sin(nπ)
2 1 2 2
1 12
c) a0 = ∫0 f(x) dx = ∫0 2x dx + ∫1 3 − x dx = x2 | 0 + (3x − x2 )| 1 = (1 − 0)𝐴 = 𝜋𝑟2 + (4 − 2.5) = 2.5
2 2
∞ ∞
6 1 1 1
f(x) = 1.25 − 2 ∑ ( 2
) cos[2n − 1)πx] − ∑ ( ) sin(𝑛πx)
𝜋 (2n − 1) 𝜋 n
n=1 n=1
6
Berikut adalah kurva dari deret Forier untuk Piecewise Periodic Function pada n = 5, 10, dan 50
0
-4 -3 -2 -1 0 1 2 3 4
x
0
-4 -3 -2 -1 0 1 2 3 4
x
2
f(x)50
0
-4 -3 -2 -1 0 1 2 3 4
x
7
2. Perluasan f(x) sebagai Even periodic function
x
0
-4 -3 -2 -1 0 1 2 3 4
▪ Formula transformasi f(x) ke dalam deret Fourier untuk kondisi pengembangan fungsi periodik
diatas adalah sebagai berikut:
∞
a0 nπx
f(x) = + ∑ {a n cos ( )}
2 2
n=1
nπ
2sin(nπ) 12cos ( ) − 4cos(nπ) − 8
2
an = + 2
nπ n2 π
2 1 2 2 1
b) a 0 = ∫0 f(x) dx = ∫0 2x dx + ∫1 3 − x dx = x 2 | 10 + (3x − x 2 )| 21 = (1 − 0) + (4 − 2.5) = 2.5
2 2
∞ nπ
2sin(nπ) 12cos ( 2 ) − 4cos(nπ) − 8 nπx
f(x) = 1.25 + ∑ {( + ) cos ( )}
nπ n2 π2 2
n=1
8
Berikut adalah kurva dari deret Forier untuk Even Periodic Function pada n = 5, 10, dan 50
0
-4 -3 -2 -1 0 1 2 3 4
x
0
-4 -3 -2 -1 0 1 2 3 4
x
0
-4 -3 -2 -1 0 1 2 3 4
x
9
3. Perluasan f(x) sebagai Odd periodic function
Odd Periodic Function
2L = 4 → L = 2
f(x)
2
x
0
-4 -3 -2 -1 0 1 2 3 4
-1
-2
▪ Formula transformasi f(x) ke dalam deret Fourier untuk kondisi pengembangan fungsi periodik
diatas adalah sebagai berikut:
∞
nπx
f(x) = ∑ {bn sin ( )}
2
n=1
nπ
−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ)
2
bn =
n2 π2
∞ nπ
−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ) nπx
f(x) = ∑ {( 2 ) sin ( )}
n2 π2 2
n=1
10
Berikut adalah kurva dari deret Forier untuk Odd Periodic Function pada n = 5, 10, dan 50
1
f(x)5
0
-4 -3 -2 -1 0 1 2 3 4
-1
-2
x
1
f(x)10
0
-5 -4 -3 -2 -1 0 1 2 3 4 5
-1
-2
x
1
f(x)50
0
-4 -3 -2 -1 0 1 2 3 4
-1
-2
x
11
b. Dari ketiga deret Fourier yang didapat, lakukan pemeriksaan adanya phenomena GIBBS pada
titik dimana fungsi f(x) bersifat diskontinu.
Dengan demikian nilai deret Fourier pada titik x = 0 ; 1.25 – 0.75 = 0.5
1 1
{𝑓(𝑘𝑖𝑟𝑖) + 𝑓(𝑘𝑎𝑛𝑎𝑛) = {1 + 0} = 0.5 𝑇𝑒𝑟𝑏𝑢𝑘𝑡𝑖!
2 2
∞ nπ
−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ) nπ(0)
2
𝑓(0) = ∑ [ ] sin ( )
n2 π2 2
n=1
= 0 Terbukti!
12