Anda di halaman 1dari 10

Tugas Analisa Numerik Nama : Muhammad Hadi P.

NIM : 1031611040

Kelas : III B

1. Diketahui () = (4t 3 ) exp( 2 ) , 0 2 dan n = 256. Hitunglah


2
0 () dengan:
(a) Kaidah Trapesium
(b) Kaidah Simpson 1/3
(c) Kaidah Titik Tengah
(d) Metode Romberg
(e) Kaidah Gauss-Legendre 3-titik dan Gauss-Legendre 4-Titik

2. Diketahui () = 2 cos( 2 ) , 1.5 2.5 dan h = 0.1. Hitunglah


2.5
1.5 () dengan
(a) Kaidah Trapesium
(b) Kaidah Simpson 1/3
(c) Kaidah Titik Tengah
(d) Metode Romberg
(e) Kaidah Gauss-Legendre 3-titik dan Gauss-Legendre 4-Titik.

PENYELESAIAN :
1. Fungsi integrasi-nya:

() = (4t 3 ) exp( 2 ) , 0 2
20
Nilai h : =
256

= 0.0078125

Tabel diskrit disajikan sebagai berikut:

r xr f(xr) r xr f(xr)
0 0 0
1 0.0078125 0.031251431 254 1.984375 6.337887571
2 0.015625 0.062511445 255 1.9921875 3.288242997
256 2 0
(a) Kaidah Trapesium

Nilai integrasinya :
2
0 () 2 (0 + 21 + 22 + + 22 + 21 + 256 )

0.0078125
(0 + 2(0.03125) + 2( 0.0625) + + 2(3.28) + 0)
2

24.797

(b) Kaidah Simpson 1/3

Nilai Integrasinya :
2
0 () 3 (0 + 41 + 22 + + 22 + 41 + 256 )

0.0078125
(0 + 4(0.03125) + 2( 0.0625) + + 4(3.28) + 0)
3

24.799

(c) Kaidah Kaidah Titik Tengah


Tabel diskrit disajikan sebagai berikut:

r xr f(xr) r xr f(xr)
0.003906 0.015624179
3/2 0.0078125 0.046878828 507/2 1.984375 7.777708101
5/2 0.015625 0.078146354 509/2 1.9921875 4.842098831
511/2 2 1.674952981

Nilai Integrasinya :
2
0 () (1/2 + 3/2 + 5/2 + + 509/2 + 511/2 )

0.0078125 (0.0156 + 0.04687 + 0.078 + + 4.842 + 1.675)

24.800

(d) Metode Romberg

Dari perhitungan menggunakan Metode Romberg, didapat hasil yang


tersaji pada Tabel Romberg berikut:

k O(h2) O(h4) O(h6) O(h8)


0 0
1 8.1548 10.873
45 13
2 17.733 20.926 21.597
85 85 1
3 22.663 24.306 24.532 24.578
56 8 13 72
4 24.235 24.759 24.789 24.794 24.794
71 76 96 05 9
5 24.656 24.796 24.798 24.799 24.799 24.799
26 44 89 03 05 05
6 24.763 24.798 24.799 24.799 24.799 24.799 24.799
25 91 07 07 07 07 07
7 24.790 24.799 24.799 24.799 24.799 24.799 24.799 24.799
11 06 07 08 08 08 08 08
8 24.796 24.799 24.799 24.799 24.799 24.799 24.799 24.799 24.799
83 07 08 08 08 08 08 08 08
2
Jadi, 0 () 24.79908
(e) Kaidah Gauss-Legendre 3-titik dan Gauss-Legendre 4-Titik.
1
Ubah () menjadi 1 ()

( + ) + ( )
=
2

=
2

=0 =2

(0 + 2) + (2 0) 2 + 2
= = =1+ (1)
2 2
= (2)
(1) (2)
2 1

= (4t 3 ) exp( 2 ) = ((4 (1 + t)) (1 + )3 )exp(1 + )3


0 1
1

= ((4 (1 + t)) (1 + )3 )exp(1 + )3


1

Dari pencarian di atas, didapatkan bahwa :

() = ((4 (1 + t)) (1 + )3 )exp(1 + )3

Maka :

(e.1) Gauss-Legendre Titik 3

(0.774596669)
= ((4 (1 + (0.774596669)))
(1 + (0.774596669))3 )exp(1
+ (0.774596669))3

= 0.93655606 (0)
= ((4 (1 + 0)) (1 + 0)3 )exp(1 + 0)3

= 8.154845485
(0.774596669) = ((4 (1 + 0.774596669)) (1 +
0.774596669)3 )exp(1 + 0.774596669)3

= 35.20528245

Dengan demikian,
2 1

() = (4t 3 ) exp( 2 ) = ((4 (1 + t)) (1 + )3 )exp(1 + )3


0 1

= { (0.555555556 0.93655606) + (0.888888889


8.154845485) + (0.555555556 35.20528245 )
= .

Jadi, hasilnya adalah .

(e.2) Gauss-Legendre Titik 4

(0.861136312 )
= ((4 (1 + (0.861136312 )))
(1 + (0.861136312 ))3 )exp(1 + (0.861136312 ))3

= 0.56353973 (0.339981044 )
= ((4 (1 + (0.339981044 )))
(1 + (0.339981044 ))3 )exp(1 + (0.339981044 ))3

= 3.636883072

(0.339981044)
= ((4 (1 + 0.339981044 ))
(1 + 0.339981044)3 )exp(1 + 0.339981044 )3

= 17.79082855
(0.861136312 )
= ((4 (1 + 0.861136312 ))
(1 + 0.861136312 )3 )exp(1 + 0.861136312 )3

= 31.87157753

Dengan demikian,
2 1

() = (4t 3 ) exp( 2 ) = ((4 (1 + t)) (1 + )3 )exp(1 + )3


0 1

= { (0.347854845 0.56353973) + (0.652145155


3.636883072) + (0.652145155 17.79082855)
+ (0.347854845 31.87157753)
= .

Jadi, hasilnya adalah .

2. Fungsi integrasi-nya:

() = 2 cos( 2 )
2.51.5
Nilai n : =
0.1

= 10

Tabel diskrit disajikan sebagai berikut:

r xr f(xr) r xr f(xr)
0 1.5 -1.413390651
1 1.6 -2.139107269 8 2.3 2.888467394
2 1.7 -2.799014605 9 2.4 4.989496688
10 2.5 6.246558864

(a) Kaidah Trapesium

Nilai integrasinya :
2.5
1.5 () 2 (0 + 21 + 22 + + 22 + 21 + 10 )

0.1
2 (1.413 + 2(2.139) + 2( 2.799) + + 2(4.989) + 6.246)

-0.4400

(b) Kaidah Simpson 1/3

Nilai Integrasinya :
2.5
1.5 () 3 (0 + 41 + 22 + + 22 + 41 + 10 )

0.1
3 (1.413 + 4(2.139) + 2( 2.799) + + 4(4.989) + 6.246)

-0.4515

(c) Kaidah Kaidah Titik Tengah

Tabel diskrit disajikan sebagai berikut:

r xr f(xr) r xr f(xr)
1.55 -1.77564
3/2 1.65 -2.48689 15/2 2.25 1.736448
5/2 1.75 -3.05293 17/2 2.35 4.000299
19/2 2.45 5.767597

Nilai Integrasinya :
2.5
1.5 () (1/2 + 3/2 + 5/2 + + 17/2 + 19/2 )

0.1 (-1.77564 + (-2.48689) + (-3.05293) ++ 4 + 5.767597)

-0.45674

(d) Metode Romberg


Dari perhitungan menggunakan Metode Romberg, didapat hasil yang tersaji
pada Tabel Romberg berikut:

K O(h2) O(h4) O(h6) O(h8)


0 2,4165841064
1 -0,0989951885 -0,9375216202
2 -0,3786170768 -0,4718243729 -0,4407778897
3 -0,4337846399 -0,4521738276 -0,4508637913 -0,4510238849

2.5
Jadi, 1.5 () -0,4510238849

(e) Kaidah Gauss-Legendre 3-titik dan Gauss-Legendre 4-Titik.


1
Pertama, Ubah () menjadi 1 ()

( + ) + ( )
=
2

=
2
= 1.5 = 2.5

(1.5 + 2.5) + (2.5 1.5) 4+


= = (1)
2 2

= (2)
2
(1) (2)
2.5 1
4+ 2 4+ 2
= 2 cos( 2 ) = ( ) cos( ) 0.5
2 2
1.5 1
1
4+ 2 4+ 2
= 0.5 ( ) cos( )
2 2
1

Dari pencarian di atas, didapatkan bahwa :


4+ 2 4+ 2
() = ( ) cos( )
2 2
Maka :

(e.1) Gauss-Legendre Titik 3

(0.774596669)
4 + (0.774596669) 2 4 + (0.774596669) 2
=( ) cos( )
2 2
4 + (0) 2 4 + (0) 2
= 2.22968276 (0) = ( ) cos( )
2 2
= 2.614574483

4 + (0.774596669) 2 4 + (0.774596669) 2
(0.774596669) = ( ) cos( )
2 2
= 4.754656315

Dengan demikian,
2.5 1
4+ 2 4+ 2
2 cos( 2 ) = ( ) cos( ) 0.5
2 2
1.5 1
= 0.5 { (0.555555556 2.22968276) + (0.888888889
2.614574483) + (0.555555556 4.754656315)
= .

Jadi, hasilnya adalah .

(e.2) Gauss-Legendre Titik 4


(0.861136312 )
4 + (0.861136312) 2 4 + (0.861136312) 2
=( ) cos( )
2 2
= 1.917609653 (0.339981044 )
4 + (0.339981044 ) 2 4 + (0.339981044 ) 2
=( ) cos( )
2 2
= 3.27720566

4 + (0.339981044) 2 4 + (0.339981044) 2
(0.339981044) = ( ) cos( )
2 2
= 0.016622778

4 + (0.861136312) 2 4 + (0.861136312) 2
(0.861136312 ) = ( ) cos( )
2 2
= 5.495990067

Dengan demikian,
2.5 1
4+ 2 4+ 2
2 cos( 2 ) = ( ) cos( ) 0.5
2 2
1.5 1
= 0.5 { (0.347854845 1.917609653) + (0.652145155
3.27720566) + (0.652145155 0.016622778)
+ (0.347854845 5.495990067)
= .

Jadi, hasilnya adalah .