f n ( x) = a0 + a1 x + .... + an 1 x n 1 + an xn
1
5/13/2016
f(x) f(x)
a b x a b x
Fungsi didekati polinomial order satu Fungsi didekati polinomial order dua
(parabola
f(x)
a b x
2
5/13/2016
f(x) f(x)
a b x a b x
Bentuk tertutup dari formula Newton- Bentuk terbuka dari formula Newton-
Cotes. Data bertitik dari awal dan Cotes dimana batas integral harus
akhir batas integral. diekstrapolasi .
Maka:
f ( x1 ) f ( x2 )
I = f ( x0 ) + ( x x0 )dx
a
x1 x0
3
5/13/2016
Hasilnya:
f ( a) + f (b)
I = (b a)
2
f(x)
a b x
ba
h=
n
4
5/13/2016
f ( x0 ) + f ( x1 ) f ( x1 ) + f ( x2 ) f ( xn 1 ) + f ( xn )
I =h +h + ... + h
2 2 2
Jika dikelompokkan suku-sukunya menjadi:
h n 1
I=
2
f ( x0 ) + 2
i =1
f ( xi ) + f ( xn )
Atau:
n 1
f ( x0 ) + 2 f ( xi ) + f ( xn )
I = (b a) i =1
2n
5
5/13/2016
b
( x x1 )( x x2 ) ( x x0 )( x x2 )
I = f ( x0 ) + f ( x1 )
a
( x 0 x1 )( x0 x 2 ) ( x1 x0 )( x1 x 2 )
( x x0 )( x x1 )
+ f ( x2 )
( x2 x0 )( x2 x1 )
6
5/13/2016
h
I= [ f ( x0 ) + 4 f ( x1 ) + f ( x2 )]
3
Ini merupakan rumus integral tertutup Newton-Cotes kedua.
Label 1/3 berasal dari fakta bahwa h dibagi dengan 3.
Selain polinomial Lagrange juga bisa digunakan polinomial
Newton-Gregory.
Aturan simpson 1/3 juga dapat dituliskan:
I = (b a )
[ f ( x0 ) + 4 f ( x1 ) + f ( x2 )]
6
ba
h=
n
7
5/13/2016
f ( x0 ) + 4 f ( x1 ) + f ( x2 )
I = 2h
6
f ( x2 ) + 4 f ( x3 ) + f ( x4 )
+ 2h
6
f ( x4 ) + 4 f ( x5 ) + f ( x6 )
+ ... + 2h
6
Atau dengan menggabungkan suku-suku akan menjadi:
n 1 n2
f ( x 0 ) + 4 i j = f ( x ) + 2 f ( x j ) + f ( x n
)
I = (b a ) i =1, 3, 5 2 , 4, 6
3n
b
( x x1 )( x x2 )( x x3 ) ( x x0 )( x x2 )( x x3 )
I = f ( x0 ) + f ( x1 )
a
( x 0 x1 )( x0 x 2 )( x 0 x3 ) ( x1 x0 )( x1 x 2 )( x1 x3 )
( x x0 )( x x1 )( x0 x3 ) ( x x0 )( x x1 )( x0 x2 )
+ f ( x2 ) + f ( x3 )
( x2 x0 )( x2 x1 )( x2 x3 ) ( x3 x0 )( x3 x1 )( x3 x2 )
8
5/13/2016
3h
I= [ f ( x0 ) + 3 f ( x1 ) + 3 f ( x2 ) + f ( x3 )]
8
I = (b a )
[ f ( x0 ) + 3 f ( x1 ) + 3 f ( x2 ) + f ( x3 )]
8
soal
Hitunglah:
A. secara analitik
B.aturan trapesoidal dengan n=1,2, 4
C. aturan simpson 1/3 dengan n=2,4,6
D. aturan simpson 3/8 dengan n=3 dan 6
9
5/13/2016
f ( x0 ) + f ( x1 ) f ( x1 ) + f ( x2 ) f ( xn 1 ) + f ( xn )
I = h1 + h2 + ... + hn
2 2 2
10
5/13/2016
I = I ( h) + E ( h )
11
5/13/2016
2
E ( h1 ) h1 h1
2
= dan E ( h1 ) = E ( h2 )
E ( h2 ) h2 2 h2
2
Sehingga:
2
h
I (h1 ) + E ( h2 ) 1 2 = I ( h2 ) + E ( h2 )
h2
I (h1 ) I (h2 )
E ( h2 ) = 2
Error pemotongan sebagai
h fungsi perkiraan integral dan
1 1 ukuran langkahnya.
h2
I = I (h2 ) + E (h2 )
1
I = I (h2 ) + 2 [I (h2 ) I (h1 )]
(h1 / h2 ) 1
12
5/13/2016
1
I = I (h2 ) + 2 [I (h2 ) I (h1 )]
( 2) 1
Atau:
4 1
I= I (h2 ) I (h1 )
3 3
4 k 1 I j +1, k 1 I j ,k 1
I j ,k =
4 k 1 1
13
5/13/2016
14
5/13/2016
f(x) f(x)
a b x a b x
I = c0 f (a ) + c1 f (b)
Dimana c adalah konstanta.
15
5/13/2016
(b a ) / 2
c 0 f ( a ) + c1 f ( b ) = 1dx
(b a ) / 2 ba
c0 = c1 =
(ba ) / 2
2
c 0 f ( a ) + c1 f ( b ) = xdx
(b a ) / 2
ba ba
Trapesoidal Technique I = f (a ) + f (b )
2 2
I = c0 f ( x0 ) + c1 f ( x1 )
1 1
x
3
c 0 f ( x 0 ) + c1 f ( x1 ) = xdx = 0 c 0 f ( x 0 ) + c 1 f ( x1 ) = dx = 0
1 1
16
5/13/2016
x = a0 + a1 xd
Maka:
a = a0 + a1 ( 1) b = a0 + a1 (1)
b+a ba (b + a ) + (b a ) xd (b a )
a0 = a1 = x= dx = dxd
2 2 2 2
17
5/13/2016
(0 , 2 + 25 x 200 x )
2
+ 675 x 3 900 x 4 + 400 x 5 dx
0
Menjadi:
1
{[ 0 , 2 + 25 ( 0 , 4 + 0 , 4 xd ) 200 ( 0 , 4 + 0 , 4 xd )
2
+ 675 ( 0 , 4 + 0 , 4 xd ) 3 900 ( 0 , 4 + 0 , 4 xd ) 4
+ 400 ( 0 , 4 + 0 , 4 xd ) 5 ]0 , 4 } dxd
18
5/13/2016
19