Uts TKN Tn1101 012100003 Augie Davin S
Uts TKN Tn1101 012100003 Augie Davin S
1. Dik:
𝑑𝑦
= 𝑦 + 𝑥 2 , h = 0,2, interval 0 – 1, syarat awal x = 0 y = 1, tentukan galat
𝑑𝑥
dari metode Heun Single Corrector dan analitisnya!
Metode Heun Single Corrector
Slope awal = 𝑓(𝑥𝑖 , 𝑦𝑖 )
0
𝑦𝑖+1 = 𝑦𝑖 + ℎ . 𝑠𝑙𝑜𝑝𝑒 𝑎𝑤𝑎𝑙
0
Slope akhir = 𝑓(𝑥𝑖+1 , 𝑦𝑖+1 )
Average slope = (slope awal+slope akhir)/2
𝑦𝑖+1 = 𝑦𝑖 + ℎ . 𝑎𝑣𝑒𝑟𝑎𝑔𝑒 𝑠𝑙𝑜𝑝𝑒
Perhitungan pada excel:
x slope awal y0i+1 y1i+1 avg slope y
0 1
0,2 1,2 1,24 1,28 1,24 1,248
0,4 1,288 1,5056 1,6656 1,4768 1,54336
0,6 1,70336 1,884032 2,244032 1,973696 1,938099
0,8 2,2980992 2,397719 3,037719 2,66790912 2,471681
1 3,111681024 3,094017 4,094017 3,60284913 3,192251
Analitis
𝑑𝑦
= 𝑦 + 𝑥2
𝑑𝑥
dy = y dx + 𝑥 2 dx
∫ 𝑑𝑦 = ∫ 𝑦 𝑑𝑥 + ∫ 𝑥 2 𝑑𝑥
1
y = xy + 𝑥 3 +C
3
C=1
Maka,
1
y = xy + 𝑥 3 +1
3
1
y-xy = 𝑥 3 +1
3
1
y(1-x) = 𝑥 3 +1
3
Penentuan Galat =
𝑌𝑛𝑢𝑚𝑒𝑟𝑖𝑘 − 𝑌𝑎𝑛𝑎𝑙𝑖𝑡𝑖𝑠
| 𝑥 100%|
𝑌𝑎𝑛𝑎𝑙𝑖𝑡𝑖𝑠
x Ynum Yanalitis
0 1 1
0,2 1,248 1,253
0,4 1,54336 1,702
0,6 1,938099 2,68
0,8 2,471681 5,853
Tak
1 3,192251 terdefinisi
𝑑𝑦 4𝑥 3 +12𝑥 2 +5
2. = , selesaikan persamaan tersebut dengan y = 10, x = 0!
𝑑𝑥 𝑦 2 −4𝑦+10
1 3
𝑦 − 2𝑦 2 + 10𝑦 + 𝐶1 = 𝑥 4 + 4𝑥 3 + 5𝑥 + 𝐶2
3
1 3
𝑦 − 2𝑦 2 + 10𝑦 = 𝑥 4 + 4𝑥 3 + 5𝑥 + 𝐶
3
Subs y=10 dan x = 0 ke pers di atas maka
1
(10)3 − 2(10)2 + 10(10) = 04 + 4(0)3 + 5(0) + 𝐶
3
700
C=
3
𝑑 4 700
(𝑦 2 − 4𝑦 + 10) = (𝑥 + 4𝑥 3 + 5𝑥 + )
𝑑𝑦 3
𝑑 𝑑𝑥 4 700
(𝑦 2 − 4𝑦 + 10) = . (𝑥 + 4𝑥 3 + 5𝑥 + )
𝑑𝑥 𝑑𝑦 3
𝑑 700 𝑑𝑥
(𝑦 2 − 4𝑦 + 10) = (𝑥 4 + 4𝑥 3 + 5𝑥 + ).
𝑑𝑥 3 𝑑𝑦
𝑑𝑥
(𝑦 2 − 4𝑦 + 10) = (4𝑥 3 + 12𝑥 2 + 5)
𝑑𝑦
𝑑𝑦 4𝑥 3 + 12𝑥 2 + 5
= 2
𝑑𝑥 𝑦 − 4𝑦 + 10
Karena sama dengan soal maka integral serta nilai C benar
3.
A.
WMA 3 Bulan
Periode Perm. Aktual Perm. Pred
1 76 0
2 78 0
3 75 0
4 74 76,16666667
5 77 75
6 79 75,66666667
7 80 77,5
8 75 79,16666667
9 73 77,33333333
10 x 74,83333333
Exponential smoothing
2 2 1
Menentukan α = dengan n adalah banyak data, maka α = =
𝑛+1 10 5
Periode Perm Aktual Perm Pred
1 76 76,33333333
2 78 76,26666667
3 75 76,61333333
4 74 76,29066667
5 77 75,83253333
6 79 76,06602667
7 80 76,65282133
8 75 77,32225707
9 73 76,85780565
10 76,08624452
Berdasarkan metode exp smoothing, prediksi permintaan untuk bulan ke
10 adalah 76,08624452