Anda di halaman 1dari 13

INTEGRASI

NUMERIS
INTEGRASI NUMERIS

• Perhitungan integral digunakan untuk menghitung


luas daerah yang dibatasi oleh fungsi y = f(x) dan
sumbu x.
• Integrasi numeris merupakan alat atau cara yang
digunakan oleh ilmuwan untuk memperoleh
jawaban hampiran (aproksimasi) dari
pengintegralan yang tidak dapat diselesaikan
secara analitik.
Dasar Pengintegralan
n
Numerik
f ( x)dx   ci f ( xi )
b

a
i 0

 c0 f ( x0 )  c1 f ( x1 )  ...  cn f ( xn )

f(x)

x0 x1 xn-1 xn x
Dasar Pengintegralan Numerik
• Melakukan penginteralan pada bagian-bagian kecil, seperti saat awal
belajar integral – penjumlahan bagian-bagian.

• Metode Numerik hanya mencoba untuk lebih cepat dan lebih


mendekati jawaban eksak.
12

10

0
3 5 7 9 11 13 15
INTEGRASI NUMERIK

• Luas daerah yang diarsir L dapat


dihitung dengan :
b
• L =  f x dx
a
Integrasi Trapezoidal
1
f ( x )dx   c i f ( x i )  c0 f ( x0 )  c 1 f ( x1 )
b

a
i 0

  f ( x0 )  f ( x 1 )
h
2
f(x)

L(x)

x0 x1 x
Aturan Komposisi Trapesium
b x1 x2 xn
a
f ( x )dx   f ( x )dx   f ( x )dx    
x0 x1 xn  1
f ( x )dx


h
 f ( x0 )  f ( x 1 )   h  f ( x 1 )  f ( x 2 )     h  f ( x n 1 )  f ( x n ) 
2 2 2
  f ( x0 )  2 f ( x1 )    2f ( x i )    2 f ( x n1 )  f ( x n )
h
2
f(x)

ba
h
n
x0 h x1 h x2 h x3 h x4 x
Metode Integrasi Trapezoidal
Li   f  xi   f  xi 1 .xi
1
2
atau  1
Li   f i  f i 1 .xi
1 L   Li
2 i 0

n 1
L   h f i  f i 1    f 0  2 f1  2 f 2  ...  2 f n1  f n 
1 h
i 0 2 2

h n 1 
L   f 0  2 f i  f n 
2 i 1 
Algoritma Metode Integrasi
Trapezoidal
• Definisikan y=f(x)
• Tentukan batas bawah (a) dan batas atas integrasi (b)
• Tentukan jumlah pembagi n
• Hitung h=(b-a)/n
• Hitung
h n 1 
L   f 0  2 f i  f n 
2 i 1 
Aturan Simpson 1/3
• Aproksimasi dengan fungsi parabola
2
f ( x )dx   c i f ( x i )  c0 f ( x0 )  c 1 f ( x1 )  c 2 f ( x 2 )
b
a
i 0


h
 f ( x0 )  4 f ( x 1 )  f ( x 2 ) 
3
L(x)
f(x)

x0 h x1 h x2 x
Aturan Simpson 1/3
( x  x1 )( x  x 2 ) ( x  x0 )( x  x 2 )
L( x )  f ( x0 )  f ( x1 )
( x0  x1 )( x0  x 2 ) ( x1  x0 )( x 1  x 2 )
( x  x0 )( x  x1 )
 f ( x2 )
( x 2  x0 )( x 2  x1 )
ab
let x0  a, x 2  b, x 1 
2
ba x  x1 dx
h ,  , d 
2 h h
 x  x 0    1

 x  x1    0
x  x    1
 2

 (  1)  (  1)
L( )  f ( x0 )  ( 1   2 ) f ( x 1 )  f ( x2 )
2 2
Aturan Simpson 1/3
 (  1)  (  1)
L( )  f ( x0 )  ( 1   ) f ( x 1 ) 
2
f ( x2 )
2 2
b 1 h 1
a
f ( x)dx  h  L( )dξ  f ( x0 )  ξ (ξ  1)dξ
1 2 1
1 h 1
 f ( x1 )h  ( 1  ξ )dξ  f ( x2 )  ξ (ξ  1)dξ
2
0 2 1
1 1
h ξ ξ 3 2
ξ 3
 f ( x0 ) (  )  f ( x1 )h(ξ  )
2 3 2 1 3 1
1
h ξ ξ 3 2
 f ( x2 ) (  )
2 3 2 1

f ( x )dx   f ( x0 )  4 f ( x1 )  f ( x 2 )
b h
a 3
Aturan Komposisi Simpson

ba
h
f(x)
n

…...

x0 h x1 h x2 h x3 h x4 xn-2 xn-1 xn x

Anda mungkin juga menyukai