Vous êtes sur la page 1sur 7

Calculo Diferencial e Integral II 16 de octubre de 2013

1
Metodos Numericos de Integracion
Metodo del Punto Medio
La regla del punto mdio es la siguiente:
Para n N particionamos (de la misma manera que antes)P = {a = t
o
, t
1
, ..., t
n
= b} con t
i
= a + ih y
aproximamos
_
b
a
f(x)dx I
nm
=
n

i=1
f
_
a + (2i 1)
h
2
_
(h)
Es decir, aproximamos cada integral en [t
i1
, t
i
] por el area del rectangulo de altura f(C
i
) y base t
i
t
i1
En otras palabras, calculamos la integral de la funcion que en cada intervalo [t
i1
, t
i
) es constante y
coincide con f en C
i
[t
i1
, t
i
]
Teorema 1. (Estimacion del error de la regla del punto medio). Sea f : [a, b] R una funcion con
segunda derivada continua en [a,b]. Si M
3
= M ax
[a,b]
|f

|, entonces

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h)

M
3
24
(b a)
3
n
2
Demostracion. Dada una particion P = {a, a + h, a + 2h, ..., a + nh} del intervalo [a, b], tenemos que el
conjunto de puntos medios es:
P
medios
=
_
a +
h
2
, a +
3
2
h, a +
5
2
h, , b
h
2
_
Prof. Esteban Ruben Hurtado Cruz 1 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
donde el k-esimo termino se puede poner a + (2k 1)
h
2
donde k = 1, , n por lo tanto el area del
k-esimo rectangulo es:
f
_
a + (2k 1)
h
2
_
h
y por tanto
_
b
a
f(x)dx
n

i=1
f
_
a + (2k 1)
h
2
_
h
llamamos c
k
al punto medio del subintervalo
_
a + (2k 1)
h
2
, a + (2k 1)
h
2
_
y como es el punto medio,
podemos llamar a + (2k 1)
h
2
= c
k
t y a + (2k + 1)
h
2
= c
k
+ t
Deno

k
(t) =
_
c
k
+t
c
k
t
f(x) dx f(c
k
)2t
derivamos con respecto a t y tenemos

k
(t) = f(c
k
+ t) + f(c
k
t) 2f(c
k
)
derivamos de nuevo y tenemos

k
(t) = f

(c
k
+ t) f

(c
k
t)
Ahora usando el teorema del valor medio se tiene
f

(c
k
+ t) f

(c
k
t)
2t
= f

() con [c
k
t, c
k
+t] f

(c
k
+t)f

(c
k
t) = 2tf

() con [c
k
t, c
k
+t]
por lo tanto

k
(t) = f

(c
k
+ t) f

(c
k
t) = 2tf

() con [c
k
t, c
k
+ t]
Prof. Esteban Ruben Hurtado Cruz 2 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
como f tiene segunda derivada continua en [a, b] existen m, M = [c
k
t, c
k
+ t] tales que
m f

(x) M x [c
k
t, c
k
+ t] en particular
m f

() M m2t f

()2t M2t m2t

k
(t) M2t
vamos ahora a integrar esta ultima expresion
_
m2t dt
_

k
(t) dt
_
M2t dt mt
2

k
(t) Mt
2
de nuevo integramos la ultima expresion
_
mt
2
dt
_

k
(t) dt
_
Mt
2
dt m
t
3
3

k
(t) M
t
3
3
evaluando en t =
h
2
se tiene
m
h
3
24

k
(h) M
h
3
24
m
h
3
24

_
c
k
+
h
2
c
k

h
2
f(x) dx f(c
k
)h M
h
3
24
tomando la suma desde 1 hasta n
n

k=1
m
h
3
24

n

k=1
_
_
c
k
+
h
2
c
k

h
2
f(x) dx f(c
k
)h
_

k=1
M
h
3
24
se tiene
nm
h
3
24

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h) nM
h
3
24
como h =
b a
n
entonces
nm
(b a)
3
24n
3

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h) nM
(b a)
3
24n
3
es decir
m
(b a)
3
24n
2

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h) M
(b a)
3
24n
2
y como M
3
= max
[
a, b]|f

| entonces
M
3
(b a)
3
24n
2
m
(b a)
3
24n
2

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h) M
(b a)
3
24n
2
M
3
(b a)
3
24n
2
y por lo tanto

_
b
a
f(x)dx
n

k=1
f
_
a + (2k 1)
h
2
_
(h)

M
3
24
(b a)
3
n
2
Prof. Esteban Ruben Hurtado Cruz 3 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
Metodo de Simpson
En este metodo vamos a aproximar la integral de la funcion mediante parabolas que pasan por tres puntos
Nuestro primer trabajo consistira en hallar la parabola que pase por tres puntos dados, para esto trasla-
damos al origen y nos jamos en los puntos (0, y
0
), (h, y
1
) y (h, y
2
)
Sea P(x) = Ax
2
+ Bx + C dicha parabola, vamos a determinar los coecientes de P
Como pasa por (0, y
0
) entonces
A(0)
2
+ B(0) + C = y
0
C = y
0
Como pasa por (h, y
1
) y (h, y
2
) entonces
A(h)
2
+ B(h) + C = y
1
A(h)
2
+ B(h) + C = y
2
Sumando ambas ecuaciones y despejando A se tiene
A =
y
1
+ y
2
2y
0
2h
2
Prof. Esteban Ruben Hurtado Cruz 4 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
por lo tanto al sustituir
_
y
1
+ y
2
2y
0
2h
2
_
x
2
+ Bh + y
0
= y
2
B =
y
2
y
1
2h
por lo tanto
P(x) =
_
y
1
+ y
2
2y
0
2h
2
_
x
2
+
_
y
2
y
1
2h
_
x + y
0
si calculamos el area bajo la funcion P(x) se tiene
_
h
h
P(x) dx =
_
h
h
_
y
1
+ y
2
2y
0
2h
2
_
x
2
+
_
y
2
y
1
2h
_
x + y
0
dx =
_
1
3
_
(y
1
+ y
2
+ 4y
0
)
Por lo tanto dada una particion P = {a, a+ha+2h, ..., a+nh} del intervalo [a, b], con h =
b a
n
se tiene
que la aproximacion a la integral de f(x) en [a, b] es:
_
1
3
_
(f(a) + 4f(a + h) + f(a + 2h) + f(a + 2h) + 4f(a + 3h) + f(a + 4h) + + f(b 2h) + 4f(b h) + f(b))
Desde luego hay un error en la aproximacion, el cual vamos a estimar
Teorema 2. Si f tiene cuarta derivada continua en [a,b] y M
4
= max
[
a, b]|f
4
|, entonces
_
b
a
f(x) dx y
la aproximaci on de Simpson dieren en
M
4
(b a)
5
180n
4
Demostracion. Para probar esto, me jo en el k-esimo subintervalo de la particion P = {a, a + ha +
2h, ..., a + nh} del intervalo [a, b] y llamo c
k
= a + (2k 1)h
donde t [0, h] y denimos

k
(t) =
_
1
3
_
(f(c
k
t) + 4f(c
k
) + f(c
k
+ t)
_
c
k
+t
c
k
t
f(x) dx
Prof. Esteban Ruben Hurtado Cruz 5 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
derivemos
k
(t)

k
(t) =
_
1
3
_
(f(c
k
t) + 4f(c
k
) + f(c
k
+ t) + (f

(c
k
+ t) f

(c
k
t))t) f(c
k
t) f(c
k
+ t)
notar que

k
(0) = 0
derivemos de nuevo

k
(t) =
_
1
3
_
(f

(c
k
+t)f

(c
k
t)+t(f

(c
k
t)+f

(c
k
+t))+(f

(c
k
+t)f

(c
k
t)))(f

(c
k
+t)f

(c
k
t))
simplicando

k
(t) =
_
1
3
_
(f

(c
k
t) f

(c
k
+ t) + (f

(c
k
t) + f

(c
k
+ t))t)
notar que

k
(0) = 0
derivando de nuevo

k
(t) =
_
1
3
_
(f

(c
k
t) f

(c
k
+ t) + f

(c
k
+ t) + f

(c
k
t) + t(f

(c
k
+ t) f

(c
k
t)))
simplicando

k
(t) =
_
1
3
_
(t(f

(c
k
+ t) f

(c
k
t)))
por el teorema del valor medio se tiene
f
4
() =
f

(c
k
+ t) f

(c
k
t)
2t
[c
k
t, c
k
+t] 2tf
4
() = f

(c
k
+t)f

(c
k
t) [c
k
t, c
k
+t]
por lo tanto

k
(t) =
_
1
3
_
(t(f

(c
k
+ t) f

(c
k
t))) =
_
1
3
_
(t(2tf
4
())) =
_
1
3
_
(2t
2
f
4
())
como f tiene cuarta derivada continua entonces existe m.M [c
k
t, c
k
+ t] tal que
m f
4
(x) M x [c
k
t, c
k
+ t] m f
4
() M
m2
3
t
2

2
3
t
2
f
4
()
2
3
t
2
M
por lo tanto
m2
3
t
2

k
(t)
2
3
t
2
M
integrando esta ultima expresion obtenemos
2m
9
t
3

k
(t)
2M
9
t
3
integrando de nuevo se obtiene
2m
36
t
4

k
(t)
2M
36
t
4
Prof. Esteban Ruben Hurtado Cruz 6 of 7
Calculo Diferencial e Integral II 16 de octubre de 2013
integrando una vez mas
2m
180
t
5

k
(t)
2M
180
t
5
ahora evaluemos en t = h
2m
180
h
5

k
(h)
2M
180
h
5
es decir
m
90
h
5

k
(h)
M
90
h
5
si sumamos hasta
n
2
, obtenemos
n
m
180
h
5
Aprox
simpson

_
b
a
f(x) dx n
M
180
h
5
como h =
b a
n
se obtiene
m
180n
4
(b a)
5
Aprox
simpson

_
b
a
f(x) dx
M
180n
4
(b a)
5
al ser M
4
= max
[a,b]
|f
4
| entonces
M
4
180n
4
(b a)
5

m
180n
4
(b a)
5
Aprox
[simpson]

_
b
a
f(x) dx
M
180n
4
(b a)
5

M
4
180n
4
(b a)
5
por lo tanto

Aprox
[simpson]

_
b
a
f(x) dx

M
4
180n
4
(b a)
5
Prof. Esteban Ruben Hurtado Cruz 7 of 7

Vous aimerez peut-être aussi