Anda di halaman 1dari 13

SI-5101 ANALISIS REKAYASA

TUGAS 1

oleh

25019325 Firstka Safira


NIM NAMA

DOSEN
Dr. Ir. Sigit Darmawan

PROGRAM STUDI TEKNIK SIPIL


FAKULTAS TEKNIK SIPIL DAN LINGKUNGAN
INSTITUT TEKNOLOGI BANDUNG
2020
1. Dengan menggunakan prosedur GRAM – SCHMIDT untuk mengorthogonalisasikan kumpulan
fungsi – fungsi sembarang, ubahlah ketiga fungsi p 1(x) = 1 ; p 2(x) = x ; dan p 3(x) = x2, yang didefinisikan
pada interval 0 ≤ x ≤ 2, menjadi kumpulan fungsi-fungsi orthogonal q i(x) ; i = 1, 2, 3, dengan q 1(x)
sebagai basisnya.
a) Periksa kebenaran keorthogonalan fungsi-fungsi q i(x) ; i = 1, 2, 3 yang didapat tersebut.
b) Buatlah fungsi – fungsi q i(x) menjadi kumpulan fungsi-fungsi orthonormal r i(x) ; 1, 2, 3.
1
c) Tentukan proyeksi fungsi 𝑓(𝑥) = pada kumpulan fungsi-fungsi orthonormal r i(x) yaitu f(x) .
4−𝑥
d) Tentukan jarak minimum antara fungsi f(x) terhadap f(x) .
e) Lakukan pemeriksaan/evaluasi melalui kurva, apakah fungsi f(x) dapat didekati f(x) .

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)

〈p3(x) .q1(x) 〉 〈p3(x) .q2(x) 〉


3. q3(x) = p3(x) − 2 q1(x) − 2 q2(x)
‖q1(x) ‖ ‖q2(x) ‖

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)

Pemeriksaan keoorthogonalan antar fungsi q i(x) :


2 1 1
1. 〈 q2(x) . q1(x) 〉 = ∫0 (𝑥 − 1)(1) 𝑑𝑥 = 2 x 2 − x| 20 = (2 (2) − 2) − 0 = 0 → OK !
2 1
2. 〈 q3(x) . q1(x) 〉 = ∫0 (x 2 − 2x + 0.6667)(1) dx = 3 x 3 − x 2 + 0.6667x| 20
1
= (3 . (2)3 − (2)2 + 0.6667(2)) − 0 = 0 → OK !
2 2
3. 〈 q3(x) . q2(x) 〉 = ∫0 (x 2 − 2x + 0.6667)(x − 1) dx = ∫0 (x 3 − 3x 2 + 2.6667x − 0.6667) dx

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 !

b) Buatlah fungsi – fungsi q i(x) menjadi kumpulan fungsi-fungsi orthonormal r i(x) ; 1, 2, 3


2
1. Hitung ‖q3(x) ‖
2 2 2
‖q3(x) ‖ = ∫ (x2 − 2x + 0.6667)2 dx = ∫ x4 − 4x3 + 5.3334x2 − 2.6667x + 0.4445 dx
0 0

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

2. Didapatkan kumpulan fungsi-fungsi orthonormal sebagai berikut:


1 1 1
▪ r1 (𝑥) = ‖q . q1 (x) = (1) = 2 √2 = 0.7071
1 (x)‖ √2
1 1
▪ r2 (𝑥) = ‖q . q 2 (x) = (x − 1) = 1.2247 x − 1.2247
2 (x)‖ √0.6667
1 1
▪ r3 (𝑥) = ‖q . q3 (x) = (x 2 − 2x + 0.6667) = 2.3717x 2 − 4.7434x + 1.5811
3 (x)‖ √0.1778

1
c) Tentukan proyeksi fungsi 𝑓(𝑥) = 4 − 𝑥 pada kumpulan fungsi-fungsi orthonormal r i(x)

yaitu f(x) .
3

f(x) = ∑{ ki . ri(x) } 𝑑𝑖𝑚𝑎𝑛𝑎 ki = 〈f(x) . ri(x) 〉


i=1

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 :

f(x) = k1 . r1(x) + k2 . r2(x) + k3 . r3(x)

f(x) = (0.49012) (0.7071) + 0.09729(1.2247 x − 1.2247) + 0.01725(2.3717x2 − 4.7434x + 1.5811)

f(x) = (0.04092 x2 + 0.03731 x + 0.25469)

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!)

Sehingga, ‖f(x) ‖ = 0.49999

▪ Norma dari fungsi f(x)


2
1 2 1
‖fx ‖2 = ∫ ( ) dx = = 0.25
0 4−x 4
Sehingga, ‖f(x) ‖ = 0.5

▪ Nampak bahwa : ‖f(x) ‖ ≈ ‖f(x) ‖ = 0.5 ≈ 0.49999

▪ Jarak minimum antara fungsi dmin


2 2
‖d𝑚𝑖𝑛 ‖2 = ‖f(x) ‖ − ‖f(x) ‖ = 0.25 − 0.24999 = 9.30238 𝑥 10−6 > 0

d𝑚𝑖𝑛 = √9.30238 𝑥 10−6 = 0.00304 ≥ 0

▪ 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.000000 0.250000 0.254694


0.125000 0.258065 0.259997
0.250000 0.266667 0.266580
0.375000 0.275862 0.274441
0.500000 0.285714 0.283581
0.625000 0.296296 0.294000
0.750000 0.307692 0.305698
0.875000 0.320000 0.318675
1.000000 0.333333 0.332931
1.125000 0.347826 0.348466
1.250000 0.363636 0.365280
1.375000 0.380952 0.383372
1.500000 0.400000 0.402744
1.625000 0.421053 0.423394
1.750000 0.444444 0.445323
1.875000 0.470588 0.468532
2.000000 0.500000 0.493019

Perbandingan grafik yang diperoleh adalah sebagai berikut:

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:

1. Perluasan f(x) sebagai Piecewise periodic function


2. Perluasan f(x) sebagai Even periodic function
3. Peluasan f(x) sebagai Odd periodic function

Selanjutnya transformasikan ketiga fungsi periodik yang diperoleh tersebut ke dalam


deret Fourier.
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.
b. Dari ketiga deret Fourier yang didapat, lakukan pemeriksaan adanya phenomena GIBBS pada titik
dimana fungsi f(x) bersifat diskontinu.

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.

1. Perluasan f(x) sebagai Picewise periodic function

Piecewise Periodic Function


2L = 2 → L = 1 f(x)
2

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

▪ Penentuan koefisien-koefisien fourier sebagai berikut :


2 1 2
a) an = ∫0 f(x) cos(nπx) dx = ∫0 2x cos(nπx) dx + ∫1 (3 − x) cos(nπx) dx
1 2
a n = 2 ∫ x cos(nπx) dx + ∫ 3 cos(nπx) − x cos(nπx) dx
0 1
1 1 1 3 1 1 2
a n = 2 ( x sin(nπx) + 2 2 cos(nπx))| + ( sin(nπx) − x sin(nπx) − 2 2 cos(nπx))|
nπ n π 0 nπ nπ n π 1

1 1 1 sin(2nπ) 3 cos(nπ) − cos(2nπ) − 2


a n = 2 ( x sin(nπx) + 2 2 cos(nπx) − 2 2 ) + ( + )
nπ n π n π nπ n2 π2
6
= − , untuk n = ganjil
𝑛 2 𝜋2
sin(2nπ) 3 cos(nπ) − cos(2nπ) − 2
an = +
nπ n2 π2
= 0 , untuk n = genap

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π)

−nπ cos(2nπ) + 3 sin(nπ) − sin(2nπ) 1


bn = = − , untuk n = ganjil = genap
n2 π2 𝑛𝜋

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

▪ Diperoleh rumus f(x) sebagai berikut



a0
f(x) = + ∑{an cos(nπx) + bn sin(nπx)}
2
n=1

∞ ∞
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

Piecewise Periodic Function f(x)5


2
f(x)5

0
-4 -3 -2 -1 0 1 2 3 4
x

Piecewise Periodic Function f(x)10


2
f(x)10

0
-4 -3 -2 -1 0 1 2 3 4
x

Piecewise Periodic Function f(x)50

2
f(x)50

0
-4 -3 -2 -1 0 1 2 3 4
x

7
2. Perluasan f(x) sebagai Even periodic function

Even Periodic Function


2L = 4 → L = 2 f(x)
2

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

▪ Koefisien Fourier an ditentukan melalui formula berikut :


2
2 nπx
an = ∫ f(x) cos ( ) dx ; n = 0,1,2, … . . , ∞
2 0 2

▪ Penentuan koefisien-koefisien fourier berikut :


2 nπx 1 nπx 2 nπx
a) an = ∫0 f(x) cos ( ) dx = ∫0 2x cos ( ) dx + ∫1 (3 − x) cos ( ) dx
2 2 2
1 2
nπx nπx nπx
an = 2 ∫ x cos ( ) dx + ∫ 3 cos ( ) − x cos ( ) dx
0 2 1 2 2
2 nπx 4 nπx 1 6 πnx 2 nπx 4 nπx 2
an = 2 ( xsin ( ) + 2 2 cos ( ))| + ( sin ( ) − 𝑥 sin ( ) − 2 2 cos ( ))|
nπ 2 n π 2 0 πn 2 πn 2 π n 2 1
2 nπ 4 nπ 4 4 nπ 2 2nπ 4 nπ 4 2nπ
an = 2 ( sin ( ) + cos ( ) − ) + (nπ sin ( 2 ) + nπ sin ( ) + n2 π2 cos ( 2 ) − n2 π2 cos ( ))
nπ 2 n2 π2 2 n2 π2 2 2


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

▪ Diperoleh rumus f(x) sebagai berikut



a0 nπx
f(x) = + ∑ {a n cos ( )}
2 2
n=1

∞ 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

Even Periodic Function f(x)5


2
f(x)5

0
-4 -3 -2 -1 0 1 2 3 4
x

Even Periodic Function f(x)10


2
f(x)10

0
-4 -3 -2 -1 0 1 2 3 4
x

Even Periodic Function f(x)50


2
f(x)50

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

▪ Koefisien Fourier bn ditentukan melalui formula berikut :


2
nπx
bn = ∫ f(x) sin ( ) dx ; n = 0,1,2, … … , ∞
0 2

▪ Penentuan koefisien fourier berikut :


2 nπx 1 nπx 2 nπx
a) bn = ∫0 f(x) sin ( ) dx = ∫0 2x sin ( ) dx + ∫1 (3 − x) sin ( ) dx
2 2 2
1 2
nπx nπx nπx
bn = ∫ 2x sin ( ) dx + ∫ 3 sin ( ) − x sin ( ) dx
0 2 1 2 2
8 πn nπx nπx 1 6 nπx 4 −nπ nπx nπx 2
bn = (− x cos ( ) + sin ( ))| + (− cos ( )− 2 2( x cos ( ) + sin ( )))|
n2 π2 2 2 2 0 πn 2 π n 2 2 2 1
8 nπ πn nπ 6 nπ 4 nπ nπ nπ
bn = (sin ( ) − cos ( )) + (− cos(nπ) + cos ( )) − 2 2 (−πn cos(nπ) + sin(nπ) + cos ( ) − sin ( ))
n2 π2 2 2 2 nπ 2 n π 2 2 2


−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ)
2
bn =
n2 π2

▪ Diperoleh rumus f(x) sebagai berikut



nπx
f(x) = ∑ {bn sin ( )}
2
n=1

∞ 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

Odd Periodic Function f(x)5


2

1
f(x)5

0
-4 -3 -2 -1 0 1 2 3 4

-1

-2
x

Odd Periodic Function f(x)10


2

1
f(x)10

0
-5 -4 -3 -2 -1 0 1 2 3 4 5

-1

-2
x

Odd Periodic Function f(x)50


2

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.

Setelah mendapatkan persamaan deret Fourier, lakukan pemeriksaan terhadap phenomena


GIBBS yang terjadi pada pada titik dimana fungsi f(x) bersifat diskontinu.yang terjadi pada
nilai x = 0. Berdasarkan gambar grafik dapat diketahui bahwa phenomena GIBBS terjadi pada
piecewise periodic function dan odd continuous periodic function. Berikut langkah
perhitungannya:

1. Piecewise periodic function


∞ ∞
6 1 1 1
Pada x = 0 f(x) = 1.25 − 2
∑( 2
) cos[2n − 1)πx] − ∑ ( ) sin(𝑛πx)
𝜋 (2n − 1) 𝜋 n
n=1 n=1
∞ ∞
6 1 1 1
Pada x = 0 f(x) = 1.25 − 2 ∑ ( 2
) cos[2n − 1)π(0)] − ∑ ( ) sin(𝑛π(0))
𝜋 (2n − 1) 𝜋 n
n=1 n=1

6 1
Pada x = 0 f(x) = 1.25 − ∑( )
𝜋2 (2n − 1)2
n=1

Nilai deret ukur perlu dicari!


Untuk itu diambil persamaan transformasi f(x) ke dalam deret Fourier di atas untuk nilai x = 2
∞ ∞
6 1 1 1
Pada x = 0 f(x) = 2 = 1.25 − 2 ∑ ( 2
) cos[2n − 1)π(2)] − ∑ ( ) sin(𝑛π(2))
𝜋 (2n − 1) 𝜋 n
n=1 n=1

6 1
∑( ) = 2 − 1.25 = 0.75
𝜋2 (2n − 1)2
n=1

Dengan demikian nilai deret Fourier pada titik x = 0 ; 1.25 – 0.75 = 0.5
1 1
{𝑓(𝑘𝑖𝑟𝑖) + 𝑓(𝑘𝑎𝑛𝑎𝑛) = {1 + 0} = 0.5 𝑇𝑒𝑟𝑏𝑢𝑘𝑡𝑖!
2 2

2. Odd periodic function


∞ nπ
−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ) nπ(x)
2
Pada x = 0 𝑓(x) = ∑ [ 2 2
] sin ( )
n π 2
n=1

∞ nπ
−2nπ cos(nπ) + 12 sin ( ) − 4 sin(nπ) nπ(0)
2
𝑓(0) = ∑ [ ] sin ( )
n2 π2 2
n=1

= 0 Terbukti!

Kesimpulan: Phenomena GIBBS terbukti terjadi pada nilai x = 0

12

Anda mungkin juga menyukai