Anda di halaman 1dari 30

Nama :Calvin Genio Fisabilli

Nim :202112024

SOAL 1
Diberikan data-data pengukuran sebagai berikut :
n xn f(xn)
0 0.b 2.b
1 2a 8.a
2 3.b 6.b
3 4.a 4.b
4 5.a 2b
5 6.b - 2.b
6 8.a - 8.a
7 9.b 3.b
8 11.a 13,a

dengan interpolasi orde-5 (data pilih sendiri )hitumglah nilai dari f(xo),xo=2,8b dengan
pendekatan metode (a) Newton (b) Lagrange (NIM ganjil mulai dari n ganjil, NIM genap mulai dari n genap)

Jawab : Diketahui :NIM =24, maka a = 2, dan b = 4

n xn f(xn)
0 0.4 2.4
1 2.2 8.2
2 3.4 6.4
3 4.2 4.4
4 5.2 2.4
5 6.4 -2.4
6 8.2 -8.2
7 9.4 3.4
8 11.2 13,2

a.) Metode Newton

n xn f(xn)
1 0.4 2.4
2 2.2 8.2
3 3.4 6.4
4 4.2 4.4
5 5.2 2.4

Polinomial orde-5
f(x)=
Data percobaaan
n xn f(xn) b1 b2 b3 b4 b5
0 2.84 8.4 2.459016 -1.192509 -0.681366 0.708836 -0.302419
1 0.4 2.4 3.222222 -1.574074 0.282651 -0.004873
2 2.2 8.2 -1.5 -0.5 0.259259
3 3.4 6.4 -2.5 0.277778
4 4.2 4.4 -2
5 5.2 2.4

Hitung nilai f(x)


b0 b1 b2 b3 b4 b5
x= 5 8.4 2.459016 -1.192509 -0.681366 0.708836 -0.302419
x-xo 2.16 2.16 2.16 2.16 2.16 2.16
x-x1 4.6 4.6 4.6 4.6 4.6
x-x2 2.8 2.8 2.8 2.8
x-x3 1.6 1.6 1.6
x-x4 0.8 0.8
f(x) 8.4 5.311475 -11.84877 -18.95615 31.55262 -10.76934

Jadi, f(x), x= 5 adalah 14.45918


Errornya adalah -10.76934
SOAL 1
Diberikan data-data pengukuran sebagai berikut :
n xn f(xn)
0 0.b 2.b
1 2a 8.a
2 3.b 6.b
3 4.a 4.b
4 5.a 2b
5 6.b - 2.b
6 8.a - 8.a
7 9.b 3.b
8 11.a 13,a

dengan interpolasi orde-5 (data pilih sendiri )hitumglah nilai dari f(xo),xo=2,8b dengan
pendekatan metode (a) Newton (b) Lagrange (NIM ganjil mulai dari n ganjil, NIM genap mulai dari n genap)

Jawab : Diketahui :NIM = 24, maka a = 2, dan b = 4

n xn f(xn)
0 0.4 2.4
1 2.2 8.2
2 3.4 6.4
3 4.2 4.4
4 5.2 2.4
5 6.4 -2.4
6 8.2 -8.2
7 9.4 3.4
8 11.2 13,2

a.) Metode Newton

n xn f(xn)
1 0.4 2.4
2 2.2 8.2
3 3.4 6.4
4 4.2 4.4
5 5.2 2.4

Polinomial orde-5
f(x)=
Data percobaaan
n xn f(xn) orde-1 orde-2 orde-3 orde-4
0 2.84 8.4 3.442623 5.379098 -9.605533 7.062892
1 0.4 2.4 -0.983607 0.546448 -0.182149 0.047934
2 2.2 8.2 -7.118056 5.931713 -2.965856
3 3.4 6.4 3.174603 -3.968254
4 4.2 4.4 0.532121
5 5.2 2.4

Koefisien orde,
x= 5
x-xo 2.16 4.6 12.88 20.608 16.4864
x-x1 4.6 2.16 6.048 9.6768 7.74144
x-x2 2.8 9.936 15.8976 12.71808
x-x3 1.6 27.8208 22.25664
x-x4 0.8 44.51328
x-x5 -0.2
Nilai fungsi 14.45918

Nilai fungsi f(x), x= 5 adalah 14.45918


Sedangkan errornya adalah -10.76934
orde-5
-2.992751
-0.009986
0.988619
2.204586
-0.532121
0.039234
-0.302419

-3.29728
-1.548288
-2.543616
-4.451328
-8.902656
35.61062
Soal 2
〖𝑓 (𝑥)=5,𝑏𝑥 〗 ^1,5−0,1𝑥^2−0,1𝑎𝑥^3,5
Hitunglah luas daerah yang dibatasi oleh,
dan sumbu x, dari x=0 sampai dengan x=5.Dengan metode (a) trapezium, (b) Simpson 1/3
dan (c) Simpson 3/8. Jumlah segmen N=2b

Jawab : diketahui :NIM = 24, maka a = 2, dan b = 4

〖𝑓 (𝑥)=5,4𝑥 〗 ^1,5−0,1𝑥^2−0,12𝑥^3,5
〖𝑓′ (𝑥)=8,1𝑥 〗 ^0,5−0,2𝑥−0,42𝑥^2,5
〖𝑓′′ (𝑥)=4,05𝑥 〗 ^(−0,5)−0,2−1,05𝑥^1,5
a=xo= 0
b=xn= 5
n= 24
h= 0.208333

Perhitungan integral
n xi f(xi) 2f(xi) f''(xi)
0 0 0 0
1 0.208333 0.372103 0.744207 0.276592
2 1.208333 0.372103 0.744207 3.692739
3 2.208333 0.372103 0.744207 8.869709
4 3.208333 0.372103 0.744207 15.18145
5 4.208333 0.372103 0.744207 22.35719
6 5.208333 0.372103 0.744207 30.23367
7 6.208333 0.372103 0.744207 38.69835
8 7.208333 0.372103 0.744207 47.66752
9 8.208333 0.372103 0.744207 57.07574
10 9.208333 0.372103 0.744207 66.87003
11 10.20833 0.372103 0.744207 77.00634
12 11.20833 0.372103 0.744207 87.44728
13 12.20833 0.372103 0.744207 98.16063
14 13.20833 0.372103 0.744207 109.1182
15 14.20833 0.372103 0.744207 120.2951
16 15.20833 0.372103 0.744207 131.6691
17 16.20833 0.372103 0.744207 143.2202
18 17.20833 0.372103 0.744207 154.9303
19 18.20833 0.372103 0.744207 166.7829
20 19.20833 0.372103 0.744207 178.7629
21 20.20833 0.372103 0.744207 190.8563
22 21.20833 0.372103 0.744207 203.0504
23 22.20833 0.372103 0.744207 215.3331
24 23.20833 0.372103 0.744207 227.6933
Jumlah 17.86096 2395.249
Integral/error 3.323061 -10.28395
Soal 2
Hitunglah luas daerah yang dibatasi oleh,〖𝑓 (𝑥)=5,𝑏𝑥 〗 ^1,5−0,1𝑥^2−0,1𝑎𝑥^3,5
dan sumbu x, dari x=0 sampai dengan x=5.Dengan metode (a) trapezium, (b) Simpson 1/3
dan (c) Simpson 3/8. Jumlah segmen N=2b

Jawab : diketahui :NIM = 24, maka a = 2, dan b = 4

〖𝑓 (𝑥)=5,4𝑥 〗 ^1,5−0,1𝑥^2−0,12𝑥^3,5
〖𝑓′ (𝑥)=8,1𝑥 〗 ^1,5−0,2𝑥^2−0,42𝑥^3,5
〖𝑓′′ (𝑥)=12,5𝑥 〗 ^1,5−0,4𝑥^2−1,47𝑥^3,5
〖𝑓′′′ (𝑥)=18,75𝑥 〗 ^1,5−0,8𝑥^2−5,145𝑥^3,5
〖𝑓′′′′ (𝑥)=28,125𝑥 〗 ^1,5−0,16𝑥^2−18,0075𝑥^3,5
a=xo= 0
b=xn= 5
n= 24
h= 0.208333

Perhitungan integral b.) Simpson 1/3 c.) Simpson 3/8


n xi f(xi) 4/2 f(xi) Error 3/8 f(xi) Errro
0 0 0 0 0
1 0.208333 0.5183254 2.07330176 2.755692 1.554976 2.755692
2 0.416667 1.4753331 2.95066628 8.43304 4.425999 8.43304
3 0.625 2.7303955 5.46079098 17.43486 8.191186 17.43486
4 0.833333 4.2407574 8.48151488 31.01956 12.72227 31.01956
5 1.041667 5.9879291 11.9758581 50.84784 17.96379 50.84784
6 1.25 7.9650186 15.9300373 78.87814 23.89506 78.87814
7 1.458333 10.172088 20.3441764 117.3167 30.51626 117.3167
8 1.666667 12.613947 25.2278939 168.5875 37.84184 168.5875
9 1.875 15.298932 30.597865 235.3111 45.8968 235.3111
10 2.083333 18.238167 36.4763339 320.2895 54.7145 320.2895
11 2.291667 21.445068 42.890136 426.4939 64.3352 426.4939
12 2.5 24.93501 49.870019 557.0544 74.80503 557.0544
13 2.708333 28.725075 57.4501494 715.2525 86.17522 715.2525
14 2.916667 32.833871 65.6677418 904.5136 98.50161 904.5136
15 3.125 37.281386 74.5627715 1128.401 111.8442 1128.401
16 3.333333 42.088873 84.1777456 1390.609 126.2666 1390.609
17 3.541667 47.278759 94.557518 1694.963 141.8363 1694.963
18 3.75 52.874568 105.749135 2045.409 158.6237 2045.409
19 3.958333 58.900855 117.80171 2446.014 176.7026 2446.014
20 4.166667 65.383154 130.766307 2900.96 196.1495 2900.96
21 4.375 72.347927 144.695855 3414.542 217.0438 3414.542
22 4.583333 79.822528 159.645057 3991.166 239.4676 3991.166
23 4.791667 87.835162 175.670325 4635.345 263.5055 4635.345
24 5 96.414855 192.82971 5351.696 289.2446 5351.696
Jumlah 1655.85262 32633.3 2482.224 32633.3
Integral/error 114.989765 -1.707629 193.9237 -1.707629
SOAL 3
carilah nilai (Maksimal-NIM Ganjil) atau minimum (NIM Genap) untuk fungsi berikut ini
〖𝑓 (𝑥)=(1,2𝑏𝑥 〗 ^3,2𝑏−10,6 〖𝑏𝑥〗 ^2,1𝑏+19,𝑎𝑥^1,1𝑎)𝑒^0,1𝑏𝑥
Dengan menggunakan metode (nilai h dari 0,1 s.d 0,0001)
(a) beda maju persamaan kedua Nim Genap
(b) beda mundur persamaan kedua Nim Ganjil
(c) beda terpusat dengan persamaan kedua SeluruhMhs

Jawab : diketahui :NIM = 24, maka a = 2, dan b = 4

〖𝑓 (𝑥)=(1,24𝑥 〗 ^3,24−10,64𝑥^2,14+19,2𝑥^1,02)𝑒^0,14𝑥
Teori kalkulus, bahwa nilai maksimum:
f'(x)= 0
f''(x)= negatif

Rumus turunan model 2


A= 1.24 a= 3.24
B= -10.64 b= 2.14
C= 19.2 c= 1.02
h= 0.1 d= 0.14

x f(x)
0 0
0.1 1.781993
0.2 3.481495
0.3 5.046542
0.4 6.458528
0.5 7.706056
0.6 8.781308 f(x)
0.7 9.678762 15
0.8 10.39459
10
0.9 10.92632
1 11.27268 5
1.1 11.43346
0
1.2 11.40944 0 0.5 1 1.5 2 2.5 3 3.5
1.3 11.20235 -5
1.4 10.81486
1.5 10.25057 -10
1.6 9.513985
-15
1.7 8.610536
1.8 7.5466 -20
-10

-15

-20
1.9 6.329509
2 4.967571
2.1 3.470098
2.2 1.84743
2.3 0.110968
2.4 -1.726793
2.5 -3.652235
2.6 -5.650571
2.7 -7.705814
2.8 -9.800733
2.9 -11.91681
3 -14.0342
3.1 -16.13167

a.) Beda Maju

Metode diferensial numerik :

〖𝑓 (𝑥)=(1,24𝑥 〗 ^3,24−10,64𝑥^2,14+19,2𝑥^1,02)𝑒^0,14𝑥
A= 1.24 a= 3.24
B= -10.64 b= 2.14
C= 19.2 c= 1.02
h= 0.00001 d= 0.14

i xi f(x) f'(x) f''(x) f'''(x) Error


0 1.0232 11.3265 2.104555 -18.55724 35.52714 -5.921189E-05
1 1.02321 11.32653 2.104369 -18.55714 0 0
2 1.02322 11.32655 2.104183 -18.5576 0 0
3 1.02323 11.32657 2.103998 -18.55685 0 0
4 1.02324 11.32659 2.103812 -18.55721 0 0
5 1.02325 11.32661 2.103627 -18.55724 0 0
6 1.02326 11.32663 2.103441 -18.55724 0 0
7 1.02327 11.32665 2.103256 -18.55714 0 0
8 1.02328 11.32667 2.10307 -18.55692 0 0
9 1.02329 11.32669 2.102884 -18.55749 0 0
10 1.0233 11.32671 2.102699 -18.55682 0 0
11 1.02331 11.32674 2.102513 -18.55735 1.7E+16 -28317048667
12 1.02332 11.32676 2.102328 1.13E+11 -6.23E+16 103829125903
13 1.02333 11.32678 566343.1 -3.4E+11 7.36E+16 -122707070773
14 1.02334 11.3268 -1699020 2.27E+11 -2.83E+16 47194993534
2.5 3 3.5
3.c Metode Beda Terpusat dengan Persamaan Kedua

Tentukanlah nilai maksimum dari fungsi,

〖𝑓 (𝑥)=(1,24𝑥 〗 ^3,24−10,64𝑥^2,14+19,2𝑥^1,02)𝑒^0,14𝑥
Teori kalkulus, bahwa nilai mkasimum:
f'(x)= 0
f''(x)= negatif
Rumus beda mundut turunan model 2

h= 0.0001

i x f(x) f'(x) f''(x) f'''(x) Error


-3 1.444 11.86755
-2 1.4441 11.86735
-1 1.4442 11.86715
0 1.4443 11.86695 -2.005249 -14.58258 4.308109 -7.18E-05
1 1.4444 11.86675 -2.006707 -14.58214 4.301004 -7.17E-05
2 1.4445 11.86655 -2.008165 -14.58172 4.305223 -7.18E-05
3 1.4446 11.86635 -2.009623 -14.58128 4.331424 -7.22E-05
4 1.4447 11.86614 -2.011082 -14.58085 4.31144 -7.19E-05
5 1.4448 11.86594
6 1.4449 11.86574
7 1.445 11.86554
5. (a) Metode Euler

Tentukan solusi persamaan diferensial


12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
Syarat batas : x = 0, y(0) = 0 dan y'(0) = 4.42
Jawab:
Misalkan
z= y' y'= zi
z'= y'' z'= y''
Persamaan diferensial: 12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
12 〖 .4𝑍 〗 ^′+1.42𝑍+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
𝑧^′=𝑓2(𝑥,𝑦,𝑧)=(62 𝑒^(0.054𝑥 〖 )cos 〗⁡2.24𝑥−12.4𝑧′−1.42𝑧−54.2𝑦
Solusi persamaan diferensialnya adalah
y' = f1(x,y,z) = z
z' = f2(x,y,z) = (62 e^(-0.054x)cos 2.24x - 12.4z' - 1.42z -54.2y
Model literasinya adalah
y(i+1) = y(i) + h f1(x,y,z)
z(i+1) = z(i) + h f2(x,y,z)
Syarat batas:
x= 0
y= 0
z= 4.42
h= 0.2
i xi yi-Euler zi-Euler f1 f2
0 0 0 4.42 4.42 5.029917 300
1 0.2 0.884 5.425983 5.425983 0.511333
2 0.4 1.969197 5.52825 5.52825 -5.902072 200

3 0.6 3.074847 4.347836 4.347836 -12.94858 100


4 0.8 3.944414 1.75812 1.75812 -18.91899
5 1 4.296038 -2.025678 -2.025678 -22.0298 0
0 2 4 6 8 10
6 1.2 3.890902 -6.431637 -6.431637 -20.86162 -100
7 1.4 2.604575 -10.60396 -10.60396 -14.76262
8 1.6 0.483783 -13.55648 -13.55648 -4.118083 -200
9 1.8 -2.227514 -14.3801 -14.3801 9.588845 -300
10 2 -5.103535 -12.46233 -12.46233 23.95811
11 2.2 -7.596001 -7.670709 -7.670709 36.07646 -400
12 2.4 -9.130143 -0.455416 -0.455416 43.07534 -500
13 2.6 -9.221226 8.159651 8.159651 42.73702
yi-Euler zi-Euler
14 2.8 -7.589296 16.70705 16.70705 34.02656
15 3 -4.247885 23.51237 23.51237 17.43525
16 3.2 0.454589 26.99942 26.99942 -4.947106
17 3.4 5.854472 26.01 26.01 -29.66455
18 3.6 11.05647 20.07709 20.07709 -52.40836
19 3.8 15.07189 9.595414 9.595414 -68.73383
20 4 16.99097 -4.151351 -4.151351 -74.86154
21 4.2 16.1607 -19.12366 -19.12366 -68.42422
22 4.4 12.33597 -32.8085 -32.8085 -49.02389
23 4.6 5.774269 -42.61328 -42.61328 -18.49138
24 4.8 -2.748387 -46.31156 -46.31156 19.21397
25 5 -12.0107 -42.46876 -42.46876 58.47025
26 5.2 -20.50445 -30.77471 -30.77471 92.77233
27 5.4 -26.65939 -12.22025 -12.22025 115.7209
28 5.6 -29.10344 10.92393 10.92393 122.0809
29 5.8 -26.91866 35.34011 35.34011 108.7519
30 6 -19.85063 57.09049 57.09049 75.49422
31 6.2 -8.432537 72.18933 72.18933 25.28312
32 6.4 6.005329 77.24596 77.24596 -35.79822
33 6.6 21.45452 70.08631 70.08631 -99.15558
34 6.8 35.47178 50.2552 50.2552 -154.7353
35 7 45.52282 19.30814 19.30814 -192.4271
36 7.2 49.38445 -19.17727 -19.17727 -203.6528
37 7.4 45.549 -59.90784 -59.90784 -182.9282
38 7.6 33.56743 -96.49348 -96.49348 -129.1573
39 7.8 14.26873 -122.3249 -122.3249 -46.42559
40 8 -10.19626 -131.6101 -131.6101 55.90683
41 8.2 -36.51827 -120.4287 -120.4287 163.9326
42 8.4 -60.60401 -87.64219 -87.64219 260.7612
43 8.6 -78.13245 -35.48995 -35.48995 328.8057
44 8.8 -85.23044 30.27119 30.27119 352.541
45 9 -79.1762 100.7794 100.7794 321.3654
46 9.2 -59.02032 165.0525 165.0525 232.1131
47 9.4 -26.00983 211.4751 211.4751 90.7444
48 9.6 16.28519 229.624 229.624 -87.20384
49 9.8 62.20998 212.1832 212.1832 -277.6904
50 10 104.6466 156.6451 156.6451 -450.8378
51 10.2 135.9756 66.47756 66.47756 -575.0118
52 10.4 149.2712 -48.52481 -48.52481 -621.8536
53 10.6 139.5662 -172.8955 -172.8955 -571.5682
54 10.8 104.9871 -287.2092 -287.2092 -417.612
55 11 47.54525 -370.7316 -370.7316 -169.8814
56 11.2 -26.60106 -404.7078 -404.7078 144.3797
57 11.4 -107.5426 -375.8319 -375.8319 482.4749
58 11.6 -182.709 -279.3369 -279.3369 791.0737
59 11.8 -238.5764 -121.1222 -121.1222 1013.591
60 12 -262.8008 81.59609 81.59609 1099.272
6 8 10 12 14

yi-Euler zi-Euler
5. (b) Metode Huan

Tentukan solusi persamaan diferensial


12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
Syarat batas : x = 0, y(0) = 0 dan y'(0) = 4.42
Jawab:
Misalkan
z= y' y'= zi
z'= y'' z'= y''
Persamaan diferensial: 12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
12 〖 .4𝑍 〗 ^′+1.42𝑍+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
𝑧^′=𝑓2(𝑥,𝑦,𝑧)=(62 𝑒^(0.054𝑥 〖 )cos 〗⁡2.24𝑥−12.4𝑧′−1.42𝑧−54.2𝑦
Solusi persamaan diferensialnya adalah
y' = f1(x,y,z) = z
z' = f2(x,y,z) = (62 e^(-0.054x)cos 2.24x - 12.4z' - 1.42z -54.2y
Model literasinya adalah
y(i+1) = y(i) + (h/2)[f1(x,y,z+f(xi+h,y0(i+1)))
z(i+1) = z(i) + (h/2))[f2(x,y,z)+f20(x,y,z)]
Syarat batas:
x= 0
y= 0
z= 4.42
h= 0.2

i x(i) y(i)-Huan z(i)-Huan f1(x(i),y(i),zf2(x(i),y(i),z x(i+1) y(i+1) z(i+1)

0 0 0 4.42 4.42 4.643633 0.2 0.884 5.348727


1 0.2 0.976873 4.868369 4.868369 -0.502828 0.4 1.950546 4.767804
2 0.4 1.94049 4.147019 4.147019 -6.523366 0.6 2.769894 2.842346
3 0.6 2.639427 2.233378 2.233378 -11.83187 0.8 3.086102 -0.132995
4 0.8 2.849465 -0.562333 -0.562333 -14.86273 1 2.736998 -3.534878
5 1 2.439744 -3.646554 -3.646554 -14.50965 1.2 1.710433 -6.548484
6 1.2 1.42024 -6.274703 -6.274703 -10.46627 1.4 0.165299 -8.367956
7 1.4 -0.044026 -7.735467 -7.735467 -3.37185 1.6 -1.591119 -8.409837
8 1.6 -1.658556 -7.54067 -7.54067 5.285836 1.8 -3.16669 -6.483503
9 1.8 -3.060974 -5.570676 -5.570676 13.49636 2 -4.175109 -2.871404
10 2 -3.905182 -2.13463 -2.13463 19.20655 2.2 -4.332107 1.706681
11 2.2 -3.947976 2.074821 2.074821 20.8375 2.4 -3.533012 6.24232
12 2.4 -3.116262 6.126383 6.126383 17.70803 2.6 -1.890986 9.667989
13 2.6 -1.536825 9.062958 9.062958 10.25365 2.8 0.275767 11.11369
14 2.8 0.480839 10.1324 10.1324 -0.022216 3 2.50732 10.12796
15 3 2.506875 8.979734 8.979734 -10.86222 3.2 4.302822 6.807289
16 3.2 4.085578 5.751893 5.751893 -19.76628 3.4 5.235956 1.798636
17 3.4 4.84063 1.086044 1.086044 -24.58071 3.6 5.057839 -3.830099
18 3.6 4.566225 -4.019891 -4.019891 -24.02425 3.8 3.762247 -8.824741
19 3.8 3.281762 -8.427172 -8.427172 -18.02168 4 1.596327 -12.03151
20 4 1.235894 -11.11673 -11.11673 -7.759667 4.2 -0.987453 -12.66867
21 4.2 -1.142646 -11.42929 -11.42929 4.55504 4.4 -3.428505 -10.51828
22 4.4 -3.337404 -9.227673 -9.227673 16.18391 4.6 -5.182938 -5.99089
23 4.6 -4.85926 -4.941378 -4.941378 24.48023 4.8 -5.847536 -0.045333
24 4.8 -5.357931 0.519399 0.519399 27.50294 5 -5.254052 6.019986
25 5 -4.703993 5.962432 5.962432 24.47626 5.2 -3.511506 10.85768
26 5.2 -3.021981 10.18018 10.18018 15.98527 5.4 -0.985944 13.37724
27 5.4 -0.666239 12.22353 12.22353 3.859032 5.6 1.778467 12.99534
28 5.6 1.855648 11.61927 11.61927 -9.234175 5.8 4.179502 9.772433
29 5.8 3.994818 8.480796 8.480796 -20.3875 6 5.690977 4.403296
30 6 5.283227 3.486011 3.486011 -27.11388 6.2 5.98043 -1.936766
31 6.2 5.438152 -2.272989 -2.272989 -27.91035 6.4 4.983554 -7.855059
32 6.4 4.425347 -7.534116 -7.534116 -22.59839 6.6 2.918524 -12.05379
33 6.6 2.466556 -11.14762 -11.14762 -12.36251 6.8 0.237031 -13.62013
34 6.8 -0.010219 -12.33218 -12.33218 0.520709 7 -2.476655 -12.22804
35 7 -2.466241 -10.84667 -10.84667 13.19961 7.2 -4.635576 -8.20675
36 7.2 -4.371583 -7.039416 -7.039416 22.89063 7.4 -5.779466 -2.46129
37 7.4 -5.321654 -1.764861 -1.764861 27.50016 7.6 -5.674626 3.73517
38 7.6 -5.124623 3.811956 3.811956 26.08391 7.8 -4.362232 9.028737
39 7.8 -3.840554 8.477563 8.477563 19.04167 8 -2.145041 12.2859
40 8 -1.764208 11.23879 11.23879 8.007223 8.2 0.483551 12.84024
41 8.2 0.643696 11.53762 11.53762 -4.536653 8.4 2.95122 10.63029
42 8.4 2.860487 9.364901 9.364901 -15.82601 8.6 4.733467 6.199699
43 8.6 4.416947 5.249766 5.249766 -23.43455 8.8 5.4669 0.562856
44 8.8 4.998209 0.12988 0.12988 -25.80292 9 5.024185 -5.030703
45 9 4.508126 -4.865338 -4.865338 -22.56127 9.2 3.535059 -9.377592
46 9.2 3.083833 -8.667755 -8.667755 -14.57808 9.4 1.350282 -11.58337
47 9.4 1.058721 -10.5023 -10.5023 -3.731644 9.6 -1.041739 -11.24863
48 9.6 -1.116371 -10.04646 -10.04646 7.536141 9.8 -3.125663 -8.53923
49 9.8 -2.97494 -7.48446 -7.48446 16.77683 10 -4.471832 -4.129094
50 10 -4.136296 -3.447741 -3.447741 22.07463 10.2 -4.825844 0.967185
51 10.2 -4.384351 1.140688 1.140688 22.44757 10.4 -4.156214 5.630202
52 10.4 -3.707262 5.279605 5.279605 18.02588 10.6 -2.651341 8.884781
53 10.6 -2.290823 8.110836 8.110836 9.976303 10.8 -0.668656 10.1061
54 10.8 -0.46913 9.098922 9.098922 0.199797 11 1.350654 9.138881
55 11 1.35465 8.131249 8.131249 -9.119981 11.2 2.9809 6.307252
56 11.2 2.7985 5.520291 5.520291 -16.00955 11.4 3.902559 2.318381
57 11.4 3.582368 1.912469 1.912469 -19.12752 11.6 3.964861 -1.913035
58 11.6 3.582311 -1.871166 -1.871166 -18.02455 11.8 3.208078 -5.476077
59 11.8 2.847587 -5.023235 -5.023235 -13.19147 12 1.842939 -7.661529
60 12 1.57911 -6.923829 -6.923829 -5.896109 12.2 0.194344 -8.103051

300

200

100

0
0 2 4 6 8 10 12
300

200

100

0
0 2 4 6 8 10 12
-100

-200

-300

-400

-500
y(i)-Huan z(i)-Huan y(i)-Euler
z(i)-Eular Column D
f1(x(i+1),y f2(x(i+1),y
0(i+1),z0(i 0(i+1),z0(i y(i)-Euler z(i)-Eular
+1)) +1))
5.348727 -0.159942 0 4.42
4.767804 -6.71067 0.81 5.062458
2.842346 -12.61304 1.822492 5.23337
-0.132995 -16.12524 2.869166 4.181593
-3.534878 -15.97948 3.705484 1.767901
-6.548484 -11.77184 4.059064 -1.814968
-8.367956 -4.141372 3.696071 -6.025163
-8.409837 5.319818 2.491038 -10.04062
-6.483503 14.4141 0.482915 -12.90744
-2.871404 20.8641 -2.098573 -13.74168
1.706681 22.88796 -4.84691 -11.94361
6.24232 19.67812 -7.235632 -7.377059
9.667989 11.65771 -8.711044 -0.470216
11.11369 0.440785 -8.805087 7.792369
10.12796 -11.50445 -7.246613 15.99595
6.807289 -21.41618 -4.047423 22.52528
1.798636 -26.89221 0.457633 25.86089
-3.830099 -26.47863 5.62981 24.88883
-8.824741 -20.04856 10.60758 19.16463
-12.03151 -8.873947 14.4405 9.076743
-12.66867 4.634086 16.25585 -4.129527
-10.51828 17.46115 15.42994 -18.48349
-5.99089 26.67903 11.73325 -31.56448
-0.045333 30.12754 5.42035 -40.88374
6.019986 26.9274 -2.756397 -44.3144
10.85768 17.70126 -11.61928 -40.49981
13.37724 4.448214 -19.71924 -29.16967
12.99534 -9.901671 -25.55317 -11.30417
9.772433 -22.15055 -27.81401 10.8929
4.403296 -29.56035 -25.63543 34.22435
-1.936766 -30.47611 -18.79056 54.9142
-7.855059 -24.70092 -7.807717 69.1589
-12.05379 -13.5367 6.024063 73.74267
-13.62013 0.516933 20.7726 66.62856
-12.22804 14.3344 34.09831 47.43191
-8.20675 24.87295 43.58469 17.69027
-2.46129 29.85491 47.12274 -19.13557
3.73517 28.26802 43.29563 -57.96326
9.028737 20.57217 31.70298 -92.68635
12.2859 8.570646 13.16571 -117.0152
12.84024 -5.018979 -10.23733 -125.4649
10.63029 -17.19053 -35.3303 -114.3565
6.199699 -25.32534 -58.2016 -82.67608
0.562856 -27.76431 -74.73681 -32.63278
-5.030703 -24.14927 -81.26337 30.22036
-9.377592 -15.46291 -75.2193 97.3905
-11.58337 -3.767337 -55.7412 158.3925
-11.24863 8.290031 -24.0627 202.1717
-8.53923 18.08384 16.37165 218.8446
-4.129094 23.59036 60.14056 201.5197
0.967185 23.80966 100.4445 147.91
5.630202 18.9416 130.0265 61.43206
8.884781 10.28643 142.3129 -48.47481
10.1061 -0.095448 132.6179 -166.9899
9.138881 -9.87653 99.21997 -275.5588
6.307252 -16.98959 44.10822 -354.4311
2.318381 -20.06867 -26.77799 -385.7998
-1.913035 -18.70883 -103.9379 -357.1058
-5.476077 -13.49614 -175.3591 -263.9724
-7.661529 -5.814469 -228.1536 -112.2128
-8.103051 2.513593 -250.5961 81.57707

6 8 10 12 14
6 8 10 12 14

z(i)-Huan y(i)-Euler
Column D
5. (b) Metode RK-Railton

Tentukan solusi persamaan diferensial


12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
Syarat batas : x = 0, y(0) = 0 dan y'(0) = 4.42
Jawab:
Misalkan
z= y' y'= zi
z'= y'' z'= y''
Persamaan diferensial: 12,4𝑦"+1.42𝑦′+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
12 〖 .4𝑍 〗 ^′+1.42𝑍+54.2𝑦=62^(𝑒^(−0.054𝑥) ) cos⁡2.24𝑥
𝑧^′=𝑓2(𝑥,𝑦,𝑧)=(62 𝑒^(0.054𝑥 〖 )cos 〗⁡2.24𝑥−12.4𝑧′−1.42𝑧−54.2𝑦
Solusi persamaan diferensialnya adalah
y' = f1(x,y,z) = z
z' = f2(x,y,z) = (62 e^(-0.054x)cos 2.24x - 12.4z' - 1.42z -54.2y
Model iterasinya adalah
y(i+1) = y(i) + (h/2)f1.k2.h Rumus algoritamnya
k1.k1== f1(x,y,z) yi+1= yi+k2.h
k2.f1= f2(x,y,z) k1= f(xi,yi)
z(i+1) = z(i) + (h/2)f2.k2.h k2= f(xi+h/2,yi+k1.h/2)
k1.f2= f2(xi,yi,zi)
k2f2= f2(xi+h/2,yi+k1f1.h/2,zi+k1f2.h/2))

Syarat batas:
x= 0
y= 0
z= 4.42
h= 0.2
Algoritmanya adalah:
i xi yi-RK2 zi-RK2 f1k1 f1k2 xi+2h/3 yi+k1f1.h/ zi+k1f2.h2
Ralton Ralton 2 /2
0 0 0 4.42 4.42 4.643633 0.133333 0.589333 5.039151
1 0.2 0.976873 4.89884 4.89884 -0.385132 0.333333 1.630051 4.847489
2 0.4 1.948938 4.24785 4.24785 -6.146524 0.533333 2.515318 3.428314
3 0.6 2.675578 2.452137 2.452137 -11.25014 0.733333 3.002529 0.952119
4 0.8 2.941002 -0.214974 -0.214974 -14.34375 0.933333 2.912339 -2.127474
5 1 2.611133 -3.233581 -3.233581 -14.44769 1.133333 2.179989 -5.159939
6 1.2 1.675463 -5.941774 -5.941774 -11.2172 1.333333 0.883226 -7.437401
7 1.4 0.262764 -7.68153 -7.68153 -5.068227 1.533333 -0.76144 -8.357294
8 1.6 -1.374907 -7.953719 -7.953719 2.868432 1.733333 -2.435403 -7.571261
9 1.8 -2.908282 -6.546586 -6.546586 10.96116 1.933333 -3.78116 -5.085099
10 2 -3.998376 -3.606614 -3.606614 17.41803 2.133333 -4.479258 -1.28421
11 2.2 -4.371338 0.367522 0.367522 20.68195 2.333333 -4.322335 3.125115
12 2.4 -3.884195 4.610626 4.610626 19.79367 2.533333 -3.269445 7.249782
13 2.6 -2.566196 8.241258 8.241258 14.64023 2.733333 -1.467362 10.19329
14 2.8 -0.62514 10.44653 10.44653 6.028755 2.933333 0.767731 11.25037
15 3 1.584742 10.66246 10.66246 -4.438103 3.133333 3.006403 10.07071
16 3.2 3.628472 8.710178 8.710178 -14.66593 3.333333 4.789829 6.754721
17 3.4 5.077189 4.856377 4.856377 -22.49294 3.533333 5.724706 1.857318
18 3.6 5.598605 -0.218563 -0.218563 -26.14801 3.733333 5.569464 -3.704964
19 3.8 5.031933 -5.542046 -5.542046 -24.64526 3.933333 4.292993 -8.828081
20 4 3.430618 -10.0383 -10.0383 -18.02846 4.133333 2.092178 -12.4421
21 4.2 1.062388 -12.74776 -12.74776 -7.407637 4.333333 -0.637313 -13.73545
22 4.4 -1.635317 -13.03166 -13.03166 5.227203 4.533333 -3.372871 -12.3347
23 4.6 -4.137104 -10.71839 -10.71839 17.38397 4.733333 -5.566223 -8.40053
24 4.8 -5.933104 -6.15877 -6.15877 26.56509 4.933333 -6.754273 -2.616758
25 5 -6.633556 -0.175354 -0.175354 30.78299 5.133333 -6.656936 3.929045
26 5.2 -6.052967 6.087325 6.087325 28.98772 5.333333 -5.241323 9.952354
27 5.4 -4.255747 11.38407 11.38407 21.31535 5.533333 -2.737872 14.22612
28 5.6 -1.552627 14.6186 14.6186 9.100259 5.733333 0.39652 15.83197
29 5.8 1.553099 15.07104 15.07104 -5.357887 5.933333 3.56257 14.35665
30 6 4.460148 12.55599 12.55599 -19.23159 6.133333 6.134281 9.991781
31 6.2 6.586715 7.477026 7.477026 -29.7232 6.333333 7.583652 3.513933
32 6.4 7.487656 0.76333 0.76333 -34.63192 6.533333 7.589434 -3.854259
33 6.6 6.947684 -6.301596 -6.301596 -32.81491 6.733333 6.107471 -10.67692
34 6.8 5.031067 -12.32746 -12.32746 -24.44593 6.933333 3.387406 -15.58691
35 7 2.076657 -16.09267 -16.09267 -11.01424 7.133333 -0.069032 -17.56123
36 7.2 -1.362161 -16.79294 -16.79294 4.941709 7.333333 -3.60122 -16.13405
37 7.4 -4.621915 -14.21222 -14.21222 20.3181 7.533333 -6.516878 -11.50314
38 7.6 -7.057998 -8.779826 -8.779826 32.0538 7.733333 -8.228641 -4.505986
39 7.8 -8.172887 -1.499846 -1.499846 37.74283 7.933333 -8.372866 3.532532
40 8 -7.717999 6.235703 6.235703 36.12822 8.133333 -6.886572 11.0528
41 8.2 -5.748294 12.91495 12.91495 27.37572 8.333333 -4.026301 16.56504
42 8.4 -2.61779 17.20344 17.20344 13.06867 8.533333 -0.323998 18.94593
43 8.6 1.084272 18.21187 18.21187 -4.079971 8.733333 3.512522 17.66788
44 8.8 4.645047 15.6803 15.6803 -20.74568 8.933333 6.735753 12.91421
45 9 7.366193 10.04087 10.04087 -33.64074 9.133333 8.704976 5.555441
46 9.2 8.701553 2.344477 2.344477 -40.16591 9.333333 9.01415 -3.010978
47 9.4 8.36713 -5.936276 -5.936276 -38.93549 9.533333 7.575627 -11.12767
48 9.6 6.401165 -13.19049 -13.19049 -30.06976 9.733333 4.642433 -17.19979
49 9.8 3.161672 -17.98399 -17.98399 -15.19334 9.933333 0.763807 -20.00977
50 10 -0.738993 -19.34405 -19.34405 2.864127 10.13333 -3.318199 -18.96216
51 10.2 -4.55052 -16.95695 -16.95695 20.60936 10.33333 -6.811446 -14.20903
52 10.4 -7.529723 -11.23847 -11.23847 34.56472 10.53333 -9.028186 -6.629842
53 10.6 -9.086123 -3.261605 -3.261605 41.95269 10.73333 -9.521003 2.332087
54 10.8 -8.89939 5.445849 5.445849 41.25012 10.93333 -8.173277 10.94586
55 11 -6.985218 13.19537 13.19537 32.50169 11.13333 -5.225835 17.52893
56 11.2 -3.696109 18.46667 18.46667 17.328 11.33333 -1.233887 20.77707
57 11.4 0.343784 20.20701 20.20701 -1.376209 11.53333 3.038052 20.02352
58 11.6 4.357662 18.04196 18.04196 -19.99704 11.73333 6.763257 15.37569
59 11.8 7.566113 12.35511 12.35511 -34.90288 11.93333 9.213462 7.701397
60 12 9.339079 4.220114 4.220114 -43.15533 12.13333 9.901761 -1.53393

300

200

100

0
0 2 4 6 8
-100

-200

-300

-400

-500

yi-RK2 Ralton zi-RK2 Ralton yi-Euler


y-Huan zi-Huan 'rk2-rail
k2f1 k2f2 yi-Euler zi-Euler y-Huan zi-Huan

5.039151 1.644389 0 4.05 0 4.05


4.847489 -4.211555 0.81 5.062458 0.911246 4.641685
3.428314 -9.922577 1.822492 5.23337 1.848889 4.159497
0.952119 -14.0307 2.869166 4.181593 2.575268 2.513752
-2.127474 -15.34279 3.705484 1.767901 2.864304 -0.070021
-5.159939 -13.23873 4.059064 -1.814968 2.566029 -3.078181
-7.437401 -7.859306 3.696071 -6.025163 1.657248 -5.817129
-8.357294 -0.125182 2.491038 -10.04062 0.263513 -7.578391
-7.571261 8.424743 0.482915 -12.90744 -1.355673 -7.820445
-5.085099 15.9461 -2.098573 -13.74168 -2.85734 -6.320993
-1.28421 20.68823 -4.84691 -11.94361 -3.890855 -3.25894
3.125115 21.39338 -7.235632 -7.377059 -4.181654 0.798508
7.249782 17.60632 -8.711044 -0.470216 -3.602619 5.005351
10.19329 9.821749 -8.805087 7.792369 -2.214831 8.42062
11.25037 -0.570059 -7.246613 15.99595 -0.266128 10.22504
10.07071 -11.53585 -4.047423 22.52528 1.854387 9.919497
6.754721 -20.80337 0.457633 25.86089 3.697171 7.457034
1.857318 -26.33529 5.62981 24.88883 4.850918 3.274392
-3.704964 -26.77388 10.60758 19.16463 5.036758 -1.78766
-8.828081 -21.75997 14.4405 9.076743 4.175981 -6.660051
-12.4421 -12.05356 16.25585 -4.129527 2.414814 -10.27896
-13.73545 0.576564 15.42994 -18.48349 0.099341 -11.82458
-12.3347 13.67937 11.73325 -31.56448 -2.295002 -10.91032
-8.40053 24.60282 5.42035 -40.88374 -4.264426 -7.67816
-2.616758 31.03441 -2.756397 -44.3144 -5.386098 -2.776985
3.929045 31.49019 -11.61928 -40.49981 -5.411394 2.772737
9.952354 25.64906 -19.71924 -29.16967 -4.322055 7.798557
14.22612 14.45843 -25.55317 -11.30417 -2.336419 11.23116
15.83197 -0.017191 -27.81401 10.8929 0.136007 12.338
14.35665 -14.98099 -25.63543 34.22435 2.581763 10.8832
9.991781 -27.44925 -18.79056 54.9142 4.493287 7.178252
3.513933 -34.85024 -7.807717 69.1589 5.477222 2.01257
-3.854259 -35.55554 6.024063 73.74267 5.33747 -3.519989
-10.67692 -29.2341 20.7726 66.62856 4.115059 -8.259335
-15.58691 -16.95276 34.09831 47.43191 2.07659 -11.22893
-17.56123 -0.997081 43.58469 17.69027 -0.345542 -11.84201
-16.13405 15.55756 47.12274 -19.13557 -2.647386 -10.01977
-11.50314 29.44327 43.29563 -57.96326 -4.361075 -6.197213
-4.505986 37.8486 31.70298 -92.68635 -5.152311 -1.218047
3.532532 38.98938 13.16571 -117.0152 -4.886888 3.855873
11.0528 32.48557 -10.23733 -125.4649 -3.652777 7.97651
16.56504 19.46473 -35.3303 -114.3565 -1.734358 10.33128
18.94593 2.366618 -58.2016 -82.67608 0.454074 10.50646
17.66788 -15.51717 -74.73681 -32.63278 2.459774 8.558842
12.91421 -30.68094 -81.26337 30.22036 3.887392 4.9837
5.555441 -40.09573 -75.2193 97.3905 4.478453 0.590169
-3.010978 -41.81638 -55.7412 158.3925 4.158193 -3.684669
-11.12767 -35.38291 -24.0627 202.1717 3.041286 -6.979783
-17.19979 -21.93346 16.37165 218.8446 1.397378 -8.687009
-20.00977 -4.002575 60.14056 201.5197 -0.413999 -8.563711
-18.96216 14.95928 100.4445 147.91 -2.023391 -6.760415
-14.20903 31.25339 130.0265 61.43206 -3.128211 -3.762496
-6.629842 41.65754 142.3129 -48.47481 -3.55012 -0.264085
2.332087 44.06546 132.6179 -166.9899 -3.262007 2.993725
10.94586 37.91346 99.21997 -275.5588 -2.381059 5.382424
17.52893 24.30805 44.10822 -354.4311 -1.132031 6.508544
20.77707 5.826302 -26.77799 -385.7998 0.208884 6.274957
20.02352 -13.97492 -103.9379 -357.1058 1.375747 4.872509
15.37569 -31.24664 -175.3591 -263.9724 2.166217 2.70989
7.701397 -42.59904 -228.1536 -112.2128 2.475756 0.303037
-1.53393 -45.7689 -250.5961 81.57707 2.30714 -1.847205

4 6 8 10 12 14

zi-RK2 Ralton yi-Euler zi-Euler


zi-Huan 'rk2-railton'!# 'rk2-railton'!#

Anda mungkin juga menyukai