Integracion Numerica
Integracion Numerica
Integracion Numerica
Métodos numéricos
Motivación
xk = a + kh, k = 0, 1, . . . , N
Solución:
π−0
N = 3, h= 3 = π3 .
π 2π
x0 = 0, x1 = , x2 = , x3 = π
3 3
Entonces,
Z π
π/2
sen(x) dx ≈ [sen(0) + sen(π) + 2(sen(π/3) + sen(2π/3))]
0 3
≈ 1.81379
f 00 (x) = −sen(x)
(π/3)2 (π)
ET = (−sen(π/2))
12
= 0.28709
Solucion: N = 4, h = π4 .
π π 3π
x0 = 0, x1 = , x2 = , x3 = , x4 = π
4 2 4
Entonces,
Z π
π/4
sen(x) dx ≈ [sen(0) + sen(π) + 4[sen(π/4) + sen(3π/4)]
0 3
+ 2sen(π/2)]
≈ 2.00455
R π/3
Usar la regla de Simpson 1/3 simple para estimar 0 sen2 (x) dx.
Solución:
" #
Z π/3
π
sen2 (x) dx ≈ sen2 (0) + sen2 (π/3) + 4sen2 (π/6)
0 18
≈ 0.3054326
+3 f (x3k+2 ) + 2 f (x3k )
k=0 k=1
Error local
3
Ek = h5 f (iv) (ξk ),
80
para algún ξ ∈ (xk , xk+3 ) con k = 0, 3, . . . , N − 3.
Caso simple (N = 3)
Z b " ! !#
b−a 2a + b a + 2b
f (x) dx ≈ f (a)+f (b)+3f +3f
a 8 3 3
Solución:
Caso compuesto
Caso simple