Professional Documents
Culture Documents
Obeso Fernández
3
de modo que la regla de los 8
de Simpson con error es
Zb n−1 n
3h 9h X 9h X
f (x)dx = [f (a) + f (b)] + f (x3k−2 ) + f (x3k−1 )+
8 8 k=1 8 k=1
a
n
hX b − a 4 (4)
f (x3k−3 ) − h f (c) (5.55)
4 k=1 80
Zb
hi h i b−a
2i−1
X−1
f (x)dx = f (a) + f (b) + 2 f (xk ) − h2i f (c),
2 k=1
12
a
b−a
con hi = y xk = a + khi , sea
2i−1
hi h i
2i−1
X−1
R(i, 1) = f (a) + f (b) + 2 f (a + khi ) ,
2 k=1
entonces
h1
R(1, 1) = [f (a) + f (b)],
2
pero h1 = b − a, luego
b−a
R(1, 1) = [f (a) + f (b)], (5.56)
2
ahora
h2 b−a b−a
R(2, 1) = [f (a) + f (b) + 2f (a + h2 )] = [f (a) + f (b)] + 2 f (a + h2 ),
2 4 4
b−a
ya que h2 = luego
2
b−a b−a
R(2, 1) = [f (a) + f (b)] + f (a + h2 )
4 2
1hb − a i
= {f (a) + f (b)} + (b − a)f (a + h2 ) ,
2 2
pero por 5.56, se tiene que,
1h i
R(2, 1) = R(1, 1) + h1 f (a + h2 ) . (5.57)
2
Pero
h3 h i
X3
R(3, 1) = f (a) + f (b) + 2 f (a + kh3 ) ,
2 k=1
luego
h3
R(3, 1) = [f (a) + f (b) + 2{f (a + h3 ) + f (a + 2h3 ) + f (a + 3h3 )}],
2
b−a
como h3 = , entonces
22
h3 ³ b − a´
R(3, 1) = [f (a) + f (b) + 2f a + 2 2 + 2{f (a + h3 ) + f (a + 3h3 )}]
2 2
h3 ³ b − a´
= [f (a) + f (b) + 2f a + + 2{f (a + h3 ) + f (a + 3h3 )}]
2 2
b−a
= [f (a) + f (b) + 2f (a + h2 ) + 2{f (a + h3 ) + f (a + 3h3 )}],
8
de modo que
1hb − ah i b−a b−a i
R(3, 1) = f (a)+f (b) + f (a+h2 )+ {f (a+h3 )+f (a+3h3 )} ,
2 4 2 2
pero de 5.57 se tiene que
1h i
R(3, 1) = R(2, 1) + h2 {f (a + h3 ) + f (a + 3h3 )} .
2
Continuando con este proceso se tiene que
1h i
X 2k−2
R(k, 1) = R(k − 1, 1) + hk−1 {f (a + (2i − 1)hk )} (5.58)
2 i=1
con h = 5
Solución
Ahora π
2
+ π2 h 3π πi
R(1, 1) = cos + cos = 0,
2 2 2
luego
1
R(2, 1) = [R(1, 1) + πf (a + h2 )]
2
1 h ³ π π ´i 1
= 0 + π cos − + = π = 1.570879633.
2 2 2 2
1 h n π π oi 1 π√
R(3, 1) = R(2, 1) + h2 cos + cos = [1.57079633 + 2]
2 4 4 2 2
= 1.89611890524.
Pero entonces
1h n 3π π π 3π oi
R(4, 1) = R(2, 1) + h3 cos + cos + cos + cos
2 8 8 8 8
1h n 3π π oi
= 1.89611890534 + h3 2 cos + 2 cos
2 8 8
1
= [1.89611890534 + 2.05234431668] = 1.97423161101.
2
Y finalmente
1h n
R(5, 1) = R(4, 1) + h4 f (a + h5 ) + f (a + 3h5 ) + f (a + 5h5 ) + f (a + 7h5 )
2
oi
+f (a + 9h5 ) + f (a + 11h5 ) + f (a + 13h5 ) + f (a + 15h5 ) ,
luego,
1h πn 7π 5π 3π π oi
R(5, 1) = R(4, 1) + 2Cos + 2 cos + 2 cos + 2 cos ,
2 8 16 16 16 16
por lo tanto
1h πn 7π 5π 3π π oi
R(5, 1) = R(4, 1) + cos + cos + cos + cos ,
2 4 16 16 16 16
de modo que
1
R(5, 1) = [1.97423161101 + 2.01290909611] = 1.99357035356.
2
el error es entonces E = |2 − 1.99357035356| = 0.00642964644 ≈ 0, 6 %
¥
Sea f ∈ C ∞ [a, b], se puede probar que la regla compuesta del trapecio se
puede escribir (omitimos la demostración) como
Zb
f (x)dx − R(k, 1) = a1 h2 + a2 h4 + a3 h6 + . . . (5.59)
a
h
ası́ que si reemplazamos a k por k + 1 y h por en 5.59 se tiene que
2
Zb
h2 h4 h6
f (x)dx − R(k + 1, 1) = a1 + a2 + a3 + . . . (5.60)
4 16 64
a
luego
Zb h R(k + 1, 1) − R(k, 1) i a2 ³ h4 4 ´ a3 ³ h6 6 ´
f (x)dx− R(k+1, 1)+ = −h + −h +. . . ,
3 3 4 3 16
a