Integrasi Numerik
1. Teori Integrasi Numerik
𝑏
𝐼= 𝑓 𝑥 𝑑𝑥
𝑎
Keterangan:
• a dan b batas-batas integrasi,
• f adalah fungsi yang dapat diberikan secara eksplisit dalam bentuk
persamaan ataupun secara empirik dalam bentuk tabel nilai.
1. Teori Integrasi Numerik
x f(x)
0.00 6.0
0.25 7.5
0.50 8.0
0.75 9.0
1.00 8.5
1. Teori Integrasi Numerik
y = f(x)
a b x
• Metode Pias
Daerah integrasi dibagi atas sejumlah pias (strip) yang berbentuk
segiempat. Luas daerah integrasi dihampiri dengan luas seluruh pias.
• Metode Newton-Cotes
Fungsi integrand f(x) dihampiri dengan polinom interpolasi pn(x).
Selanjutnya, integrasi dilakukan terhadap pn(x).
xr = a + rh, r = 0, 1, 2, ..., n
x1
∫f (x)dx hf (x ) 0
x0
x1
∫f (x)dx hf (x ) 1
x0
2. Metode
Kaidah Segiempat (Rectangle Rule)
𝑥1
𝑓 𝑥 𝑑𝑥 ≈ ℎ𝑓(𝑥0 )
𝑥0
𝑥1
𝑓 𝑥 𝑑𝑥 ≈ ℎ𝑓(𝑥1 )
𝑥0
+
𝑥1
2 𝑓 𝑥 𝑑𝑥 ≈ ℎ[𝑓 𝑥0 + 𝑓 𝑥1 ]
𝑥0
𝑥1
ℎ
𝑓 𝑥 𝑑𝑥 ≈ [𝑓 𝑥0 + 𝑓 𝑥1 ]
𝑥0 2
2. Metode
Kaidah Segiempat (Rectangle Rule)
Jadi, kaidah segiempat gabungan adalah
b h n1
h
∫ f ( x)dx
2
( f0 + 2f1 + 2f2+ ... + 2fn-1 + fn) =
2
(f0+ 2 ∑f i + fn)
a i1
y = f(x)
...
𝑥1
ℎ
𝑓 𝑥 𝑑𝑥 ≈ [𝑓 𝑥0 + 𝑓 𝑥1 ]
𝑥0 2
2. Metode
Kaidah Trapesium (Trapezoidal Rule)
Kaidah trapesium gabungan
b x1 x2 xn
h h h
[ f(x 0) + f(x 1)] + [ f(x 1)+ f(x )]
2 + ... + [ f(x n-1 ) + f(x n)]
2 2 2
n1
h
2
( f0 + 2 ∑f + f ) 1 n
i1
h
∫ f (x)dx h f(x
0 + h/2) h f(x1/2)
x0
x0 x0+h/2 x1 x
2. Metode
Kaidah Titik Tengah (Mid Point Rule)
Kaidah titik-tengah gabungan adalah
2. Metode
Metode Newton-Cotes
• Metode Newton-Cotes adalah metode yang umum untuk menurunkan
kaidah integrasi numerik.
• Polinom interpolasi menjadi dasar metode Newton-Cotes.
• Gagasannya adalah menghampiri fungsi f(x) dengan polinom interpolasi
pn(x) b b
I =
∫f (x)dx ∫
p n ( x)dx
a a
• Tetapi dalam kuliah ini polinom interpolasi yang kita pakai adalah polinom
Newton-Gregory maju:
1!h 2!h2
n f 0
(x - x0)(x - x1). ..(x - xn-1)
n!h n
• Kaidah integrasi numerik yang diturunkan dari metode Newton-Cotes,
tiga di antaranya yang terkenal adalah:
1. Kaidah trapesium (Trapezoidal rule)
2. Kaidah Simpson 1/3 (Simpson's 1/3 rule)
3. Kaidah Simpson 3/8 (Simpson's 3/8 rule)
2. Metode
Kaidah Trapesium
y = p1 (x)
y
y = f(x)
x0 = 0 x1 = h x
Polinom interpolasi Newton-Gregory derajat 1 yang melalui kedua buah titik itu adalah
f x0 f
p1(x) = f(x0) + x = f0 + x 0
h h
2. Metode
Kaidah Trapesium
Persamaan kaidah trapesium adalah
h
h
∫ f ( x)dx
2
( f0 + f1)
0
Kaidah trapesium untuk integrasi dalam selang [0, h] kita perluas untuk
menghitung
b
∫
I = f (x)dx
a
b x1 x2 xn
• Untuk itu, dibutuhkan 3 buah titik data, misalkan (0, f(0)), (h, f(h)), dan (2h,
f(2h)).
2. Metode
Kaidah Simpson 1/3
y y = p 2 (x)
y = f(x)
x0 = 0 x1 = h x 2 = 2h x
ℎ
𝐼 ≈ (𝑓0 + 4𝑓1 + 𝑓2 )
3
Persamaan untuk kaidah Simpson 1/3 gabungan:
b x2 x4 xn
a) Kaidah Trapesium
b) Kaidah 1/3 Simpson
c) Kaidah Titik Tengah
Gunakan jarak antar titik h=0.25.
Tugas 3
Pengumpulan Tugas
1. Kumpulkan tugas dalam format .xls dengan nama file
(Nama-NPM-Tugas3).
2. Batas waktu pengumpulan tugas 3 (14 April 2021 (pukul
00.00 WIB)).
3. Kirimkan tugas ke email : 106624601@cc.ncu.edu.tw
dengan subjek (Nama-NPM-Tugas3).