=
Terdapat kesalahan positif (hasil yang diperoleh
lebih besar dari nilai yang sebenarnya).
y=f(x)
x=a
x=b
y=f(x)
x=a
x=b
Interval x = a s/d x = b
dibagi menjadi dua sub
Interval sama lebarnya.
x
1
I
2
I
1
h h
( ) n a b h / =
{ } ) ( ) (
2
1 1
a f x f
h
I + =
{ } ) ( ) (
2
1 2
b f x f
h
I + =
n=2
{ } ) ( ) ( 2 ) (
2
1 2 1
b f x f a f
h
I I I
tr
+ + = + =
x
n
x
0
Multipel Segmen:
n
x x
h
n 0
=
h
f(x
i
) f(x
i-1
)
I
i
{ } ) ( ) (
2
1 i i i
x f x f
h
I + =
Luas trapesium ke i:
{ } { }
{ } { }
1 2
1
0 1 1 2
1 1
... ...
[ ( ) ( ) ( ) ( ) ...
2
( ) ( ) ... ( ) ( ) ]
n
k i n
k
i i n n
I I I I I I
h
f x f x f x f x
f x f x f x f x
=
= = + + + + +
= + + + +
+ + + + +
tr
( )
n
x f x f x f
x x
x f x f x f
h
I
n
j
n j
n
n
j
n j
2
) ( ) ( 2 ) (
) ( ) ( 2 ) (
2
1
1
0
0
1
1
0
=
+ +
=
)
`
+ + =
tr
Hitung integral itu menggunakan pendekatan
trapesium dengan
a. n = 1
b. n = 2
d. n = 8
( ) 3333 , 13
3
40
5 4
5
1
2
= = + =
}
dx x x I Diketahui:
Contoh
c. n = 4
Jawab
0
1
1,00
5,00
2,00
10,00
i
x
i
f(x
i
)
{ } 24 ) ( ) (
2
1 0
= + = x f x f
h
I
a. Untuk n = 1 maka h = 4 dan didapat
nilai-nilai fungsi berikut:
f(x) = x
2
- 4x + 5
0
1
2
1,00
3,00
5,00
2,00
2,00
10,00
i
x
i
f(x
i
)
b. Untuk n = 2 maka h = 2 dan didapat
nilai-nilai fungsi berikut:
{ } 16 ) ( ) ( 2 ) (
2
2 1 0
= + + = x f x f x f
h
I
f(x) = x
2
- 4x + 5
0
1
2
1,00
2,00
5,00
2,00
2,00
10,00
c. Untuk n = 4 maka h = 1 dan didapat
nilai-nilai fungsi berikut:
i
x
i
f(x
i
)
3
4
4,00
3,00
1,00
5,00
{ } | |
14
) ( ) ( ) ( ) ( 2 ) (
2
4 3 2 1 0
=
+ + + + = x f x f x f x f x f
h
I
f(x) = x
2
- 4x + 5
2,50
2,00
2,50
4,00
6,50
10,00
14,50
0 1,00 2,00
1 1,50 1,25
2 2,00 1,00
3 2,50 1,25
4 3,00 2,00
5 3,50 3,25
6 4,00 5,00
7 4,50 7,25
8 5,00
10,00
42,00
i x
i
f(x
i
) 2 f(x
i
)
) ( 2
i
x f
d. Untuk n = 8 maka h = 0,5 dan didapat nilai-nilai
fungsi berikut:
f(x) = x
2
- 4x + 5
( )
( )
5 , 13
16
10 42 2
1 5
2
) ( ) ( 2 ) (
1
1
0
0
=
+ +
=
+ +
=
=
n
x f x f x f
x x I
n
j
n j
n
y=f(x)
x
0
=a
x
2
=b
x
1
h
h
f
2
(x)
2. ATURAN SIMPSON
Pendekatan derajat dua.
Untuk mendapatkan fungsi
derajat dua diperlukan tiga
titik (dua sub interval)
( )( )
( )( )
( )( )
( )( )
( )( )
( )( )
) (
) (
) ( ) (
2
1 2 0 2
1 0
1
2 1 0 1
2 0
0
2 0 1 0
2 1
2
x f
x x x x
x x x x
x f
x x x x
x x x x
x f
x x x x
x x x x
x f
+
+
=
Pers. kurva derajat dua:
2
a b
h
=
( )
{ }
6
) ( ) ( 4 ) (
2 1 0
x f x f x f
a b I
simp
+ +
=
{ } ) ( ) ( 4 ) (
3
) (
2 1 0
2
2
0
x f x f x f
h
dx x f I
x
x
simp
+ + =
=
}
y=f(x)
f
2
(x)
x
0
=a
x
2
=b
h
h
x
1
n=2
I
2
I
1
{ } ) ( ) ( 4 ) (
3
2 1 0 1
x f x f x f
h
I + + =
4
a b
h
=
{ } ) ( ) ( 4 ) (
3
4 3 2 2
x f x f x f
h
I + + =
{ } | | ) ( ) ( 2 ) ( ) ( 4 ) (
3
4 2 3 1 0
2 1
x f x f x f x f x f
h
I I I
simp
+ + + + =
+ =
n=4
x
0
=a x
4
=b
x
2
Multipel Segmen:
n
x x
h
n 0
=
n genap
m simp
I I I I + + + = ...
2 1
( )
n
x f x f x f x f
x x I
n
i
n
j
n j i
n simp
3
) ( ) ( 2 ) ( 4 ) (
1
3 , 1
2
4 , 2
0
0
=
+ + +
=
x
n
x
0
Hitung integral itu menggunakan pendekatan
simpson dengan
a. n = 2
b. n = 4
Diketahui:
Contoh
c. n = 8
79908 , 26
2
0
2
= =
}
xdx e I
x
0
1
2
0,00
1,00
2,00
0,00
2,718282
109,1963
i
x
i
f(x
i
)
a. Untuk n = 2 maka h = 1,0 dan didapat
nilai-nilai fungsi berikut:
Jawab
2
) (
x
xe x f =
( )
02314 , 40
6
) ( ) ( 4 ) (
2 1 0
0 2
=
+ +
=
x f x f x f
x x I
0
1
2
0,00
0,50
2,00
0,00
2,71828
109,19630
i
x
i
f(x
i
)
3
4
1,50
1,00
0,64201
14,23160
( )
{ }
29,02122
12
) ( ) ( 2 ) ( ) ( 4 ) (
4 2 3 1 0
0 2
=
+ + + +
=
x f x f x f x f x f
x x I
2
) (
x
xe x f =
b. Untuk n = 4 maka h = 0,5 dan didapat
nilai-nilai fungsi berikut:
2
) (
x
xe x f =
0 0,00 0,00
1 0,25 0,26612
2 0,50 0,64201
3 0,75 1,31629
4 1,00 2,71828
5 1,25 5,96342
6 1,50 14,23160
7 1,75 37,41665
8 2,00 109,19630
i
x
i
f(x
i
)
c. Untuk n = 8 maka h = 0,25 dan didapat
nilai-nilai fungsi berikut:
( )
n
x f x f x f x f
x x I
n
i
n
j
n j i
n simp
3
) ( ) ( 2 ) ( 4 ) (
1
3 , 1
2
4 , 2
0
0
=
+ + +
=
01917 , 27 =
} }
= =
1
1
) ( ) ( du u F dx x f I
b
a
Integran f(x) dengan batas-batas dari x = a s/d x = b
ditransformasi ke integran F(u) dengan batas-batas
dari u = -1 s/d u = 1.
3. GAUSS-QUADRATURE
Transformasi
a
b
x
f(x)
-1 1
u
F(u)
TRANSFORMASI VARIABEL DARI x KE u:
x = b u = 1
x = a
0
+ a
1
u
x = a u = -1
b = a
0
+ a
1
(ii)
a = a
0
- a
1
(i)
Solusi simultan (i) dan (ii) adalah:
2 2
1 0
a b
a
a b
a
=
+
=
Jadi hubungan variabel lama x dengan variabel
baru u adalah
u
a b a b
x
2 2
+
+
=
du
a b
dx
2
=
} }
= =
1
1
) ( ) ( du u F dx x f I
b
a
|
.
|
\
|
+
+
|
.
|
\
|
= u
a b a b
f
a b
u F
2 2 2
) (
a
b
x
f(x)
-1 1
u
F(u)
f(x) = x
2
- 4x + 5
u u x + =
+
+
= 2
2
1 3
2
1 3
Transformasi:
( )
3
8
5 4
3
1
2
= + =
}
dx x x I
3
1
x
f(x)
1 ) 2 ( ) (
2
+ = + = u u f u F
u
F(u)
1
-1
( )
3
8
1
1
1
2
= + =
}
du u I
Pembobot c
1
dan c
2
adalah sedemikian hingga
terjadi keseimbangan antara kesalahan positif
dengan kesalahan negatif.
) ( ) ( ) (
2 2 1 1
1
1
u F c u F c du u F I + ~ =
}
Pendekatan:
-1 1
u
F(u)
-1 1
u
F(u)
F(u)
u
1
u
2
Ke empat bilangan yang belum diketahui u
1
, u
2
,
c
1
, dan c
2
dicari sebagai berikut:
-1
F(u) = u
-1 1
F(u)=1
1
= + ) ( ) (
2 2 1 1
u F c u F c
= + ) ( ) (
2 2 1 1
u F c u F c
(2)
(1)
}
= = +
1
1
2 2 1 1
0 udu u c u c
}
= = +
1
1
2 1
2 du c c
= + ) ( ) (
2 2 1 1
u F c u F c
F(u)=u
3
-1 1
= + ) ( ) (
2 2 1 1
u F c u F c
(4)
}
= = +
1
1
3 3
2 2
3
1
0
1
du u u c u c
(3)
}
= = +
1
1
2 2
2 2
2
1
3 / 2
1
du u u c u c
-1 1
F(u)=u
2
Solusi Simultan pers (1) s/d (4) adalah:
c
1
= c
2
= 1
577350269 , 0
3
1
2 1
= = = u u
Rumus Umum
) ( ... ) ( ) (
2 2 1 1 n n
u F c u F c u F c I + + + ~
Faktor-faktor pemberat c dan argumen fungsi u
untuk sampai dengan 6 (enam) titik adalah
sebagaimana diberikan dalam tabel 14.1:
Numerical Methods For Engineer with Personal
Computer Applications.
Steven C Chapra
Hitung integral itu menggunakan pendekatan
Gauss quadrature dengan
a. 2 titik
b. 3 titik
Diketahui:
Contoh
c. 4 titik
79908 , 26
2
0
2
= =
}
xdx e I
x
Jawab:
x =u + 1
( )
2
) 1 (
1 ) (
+
+ =
u
e u u F
a. 2 titik
=
|
.
|
\
|
+ =
+
2
) 1
3
1
(
1
3
1
)
3
1
( e F
=
|
.
|
\
|
+ =
+
2
) 1
3
1
(
1
3
1
)
3
1
( e F
+
= + ~ )
3
1
( )
3
1
( F F I
0,50531
18,98747
19,49278
b. 3 titik
( ) = + =
+
2
) 1 7746 , 0 (
1 1
1 7746 , 0 55556 , 0 ) ( e u F c
( ) = + =
+
2
) 1 0 (
2 2
1 0 88889 , 0 ) ( e u F c
( ) = + =
+
2
) 1 7746 , 0 (
3 3
1 7746 , 0 55556 , 0 ) ( e u F c
+
= + + ~ ) ( ) ( ) (
3 3 2 2 1 1
u F c u F c u F c I
Dari tabel:
1 3 2 1
2 3 2 1
0 7746 , 0
88889 , 0 55556 , 0
u u u u
c c c c
= = =
= = =
0,13175
2,41625
22,98867
25,53667
c. 4 titik
( ) = + =
+
2
) 1 33998 , 0 (
2 2
1 33998 , 0 65214 , 0 ) ( e u F c
( ) = + =
+
2
) 1 86114 , 0 (
1 1
1 86114 , 0 34785 , 0 ) ( e u F c
( ) = + =
+
2
) 1 33998 , 0 (
3 3
1 33998 , 0 65214 , 0 ) ( e u F c
( ) = + =
+
2
) 1 86114 , 0 (
4 4
1 86114 , 0 34785 , 0 ) ( e u F c
+
= + + + ~ ) ( ) ( ) ( ) (
4 4 3 3 2 2 1 1
u F c u F c u F c u F c I
1 4 2 3 2 1
1 4 2 3 2 1
33998 , 0 86114 , 0
65214 , 0 34785 , 0
u u u u u u
c c c c c c
= = = =
= = = =
0,04924
0,66541
5,26301
20,67753
26,65520
Tabel c dan x
Points Weighting
Factors
Function
Arguments
2 c
1
= 1.000000000
c
2
= 1.000000000
x
1
= -0.577350269
x
2
= 0.577350269
3 c
1
= 0.555555556
c
2
= 0.888888889
c
3
= 0.555555556
x
1
= -0.774596669
x
2
= 0.000000000
x
3
= 0.774596669
4 c
1
= 0.347854845
c
2
= 0.652145155
c
3
= 0.652145155
c
4
= 0.347854845
x
1
= -0.861136312
x
2
= -0.339981044
x
3
= 0.861136312
x
4
= 0.339981044
Tabel c dan x
Points Weighting
Factors
Function
Arguments
5 c
1
= 0.236926885
c
2
= 0.478628670
c
3
= 0.568888889
c
4
= 0.478628670
c
5
= 0.236926885
x
1
= -0.906179846
x
2
= -0.538469310
x
3
= 0.000000000
x
4
= 0.538469310
x
5
= 0.906179846
6 c
1
= 0.171324492
c
2
= 0.360761573
c
3
= 0.467913935
c
4
= 0.467913935
c
5
= 0.360761573
c
6
= 0.171324492
x
1
= -0.932469514
x
2
= -0.661209386
x
3
= -0.171324492
x
4
= 0.171324492
x
5
= 0.661209386
x
6
= 0.932469514