Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTEGRACIÓN Y
DIFERENCIACIÓN NUMÉRICA
2.2.1. COMENTARIOS
2.2.2. MÉTODOS DE NEWTON – COTES
2.2.3. ERRORES DE TRUNCAMIENTO
2.2.3. INTEGRACIÓN DE ROMBERG
2.2.4. CUADRATURA GAUSSIANA
2.2.5. CUADRATURA ADAPTABLE
2.2.6. INTEGRALES MÚLTIPLES
2.2.7. INTEGRALES IMPROPIAS
2.2.8. DIFERENCIACIÓN NUMÉRICA
2.2.8.1. FORMULAS DE ALTA EXACTITUD
2.2.8.3. APLICACIONES.
xn
x0
f ( x ) dx
Pn ( x) :
xn
x0
Pn ( x) dx
d
f (x) en el mismo punto aunque Pn (x) sea una buena aproximación
dx
b
Es decir supongamos que nos interesa determinar I
a
f ( x ) dx ;
entonces, tenemos:
f(x)
f(x)
a b x a b x
En otros términos:
, siendo , (1)
…
x0 x1 x2 x3 xi xi + 1
h h h h h ...
a b
b x1
a
f ( x) dx
x0
Pi ( x ) d ( x ) Área del trapecio con vértices
x 0 , x1 , f ( x 0 ), f ( x1 )
x1
4. Para realizar la integración
x0
P1 ( x ) dx , se requiere usar una
En nuestro caso:
f ( x ) P1 ( x ) , luego
P1 ( x) P1 ( x 0 sh) f x 0 sf x 0
Tenemos la integral
f x sf x dx
b x1
a
f ( x )dx
x0
0 0
(2)
x x 0 sh ;
dx hds
Luego:
f ( x 0 )
h f ( x0 )
2
Pero : f ( x 0 ) f ( x 0 h) f ( x 0 )
f ( x1 ) f ( x 0 )
f ( x1 ) f ( x 0 )
Luego tenemos: h f ( x0 )
2
f ( x1 ) f ( x 0 )
h
2
h
f ( x1 ) f ( x 0 ) ,
b
a
f ( x )dx
2
(3)
Puntos 0 1 2 3 4 5
f (x) 9 13 18 25 25 27
d) Aproximar: A4 2
senxdx ; e) Aproximar: A5 2 cos xdx
0 0
Solución:
b) h = 6 – 0 = 6 ; x0 = 0 , x1 = 6
6
A2 f f (0) f (6) 3 1 7 24 A2 24u 2
2
A3
6
2
2 6 4(4) 2 12 4(4) 2 312 78 2700u 2
d) h 0 h , x 0 0 , x1 , f ( x) senx
2 2 2
2
A4 sen0 sen 2 4 A4 4 u
4
e) h ; x 0 0 , x1 , f ( x) cos x
2 2
2
A5 u
4
s s 1 2
P2 ( x) P2 ( x 0 sh) f ( x 0 ) sf ( x 0 ) f ( x0 )
2!
En consecuencia
, tenemos
,.........(4)
1800 500
h 650; X 0 500; X 1 500 650 1150; X 2 1800
2
650
A1 f (500) 4 f (1150 ) f (1800) f(X1) se encuentra interpolando
3
650
A1 9 4(16.08) 23 20869.33
3
5
(2) Aproximar A2 2 3 x dx
0
50
h 2.5; X 0 0; X 1 0 2.5 2.5; X 2 5
2
2 .5
A2 f ( X 0 ) 4 f ( X 1 ) f ( X 2 )
3
2 .5
A2 2 4(2 3(2.5)) (2 3(5) )
3
2 .5
A2 2 4(9.5) 17 47.5
3
4
2
(3) Aproximar A3 1 2 x 3 x dx
2
4 ( 2)
h 3; X 0 2; X 1 2 3 1; X 2 4
2
f ( 2) 1 2( 2) 3( 2) 2 9
f (1) 1 2(1) 3(1) 2 6
f ( 4) 1 2( 4) 3( 4) 2 57
3
A3 9 4(6) 57 90
3
Generalizando
s s 1 2 s( s 1)( s 2) 3
Pn ( x) Pn ( x 0 sh) f ( x 0 ) sf ( x 0 ) f ( x0 ) f ( x 0 ) ...
2! 3!
b
Entonces la aproximación de la integral f ( x )dx estará dado por:
a
b xn n
f ( x)dx Pn ( x) dx h Pn ( x 0 sh)ds
a x0 0
b s2 s3 s 2 2 s4 s3 s 2 3 s5 s 4 11s 3 s 2
f ( x ) dx h sf ( x 0 ) f ( x 0 ) f ( x0 ) f ( x0 )
2! 6 4 24 6 6 120 16 72 8
a
b n2 n3 n 2 4 3 2 5 4 3 2
f ( x)dx h nf ( x 0 ) f ( x 0 ) 2 f ( x ) n n n 3 f ( x ) n n 11n n
6 0 0
2! 4 24 6 6 120 16 72 8
a
Que ocurre si n = 1
x1 h
f ( x)dx f ( x0 ) f ( x1 )
x0 2
Trapezoidal
Pues:
x1
h h h
f ( x)dx h f ( x 0 ) f ( x 0 ) 2 f ( x 0 ) f ( x 0 ) 2 f ( x 0 ) f ( x1 ) f ( x 0 ) f ( x 0 ) f ( x1 )
x0 2 2 2 2
x2 h x2
f ( x)dx P2 ( x 0 sh)ds
x0 2x
0
2
h P2 ( x 0 sh) ds
0
2 s s 1 2
h f ( x 0 ) sf ( x 0 ) f x 0 ds
0 2!
2
s2 s3 s 2 2
h sf ( x 0 ) f ( x 0 ) f ( x 0 )
2! 6 4
0
1
h 2 f ( x 0 ) 2f ( x 0 ) 2 f ( x 0 )
3
Pero:
f ( x 0 ) f ( x 0 h) f ( x 0 ) f ( x1 ) f ( x 0 )
2 f ( x 0 ) f ( x 0 2h) 2 f ( x 0 h) f ( x 0 ) f ( x 2 ) 2 f ( x1 ) f ( x 0 )
x2 h
f ( x)dx f ( x 0 ) 4 f ( x1 ) f ( x 2 ) Simpson 1/3
x0 3
Si n = 3
x3 3h
f ( x )dx f ( x0 ) 3 f ( x1 ) 3 f ( x 2 ) f ( x3 ) Simpson 3/8
x0 8
f (X2)
f (X1)
h 5 IV f (X0)
90
f X;
ab
X
2
ba
h
2 a = X0 X1 X2 = b
X x X rica
0
Integracióó 1
n y Diferenciacióó n Numeó X0 x1 x2 xn-1 xn Paó gina 12
a b
a b
Métodos Numéricos Aplicados a la Ingeniería
b x1 x2 x3 xn b
f ( x)dx P1( x)dx P2 ( x)dx P3 ( x)dx Pn ( x)dx
a a x0 x1 x2 xn 1
Donde:
Pi(x): es un polinomio de primer orden, i.e., la recta que pasa por (X i-1, f(Xi-
1)), (Xi, f(Xi)).
x x x x x x
I 1 0 f ( x 0 ) f ( x1 ) 2 1 f ( x1 ) f ( x 2 ) n n 1 f ( x n 1 ) f ( x n )
2 2 2
Que ocurre si todos los intervalos tienen la misma longitud h, i.e., Xi+1 - Xi =
hi; i=0, 1,2,…,(n-1).
h
I f ( x0 ) 2 f ( x1 ) 2 f ( x 2 ) 2 f ( x n1 ) f ( x n )
2
h n 1
I f ( x 0 ) 2 f ( x i ) f ( x n ) (5)
2 i 1
EJERCICIOS RESULTOS1
1
Ver Métodos Numericos aplicados a Ingenieria de Nieves y Domínguez
1
Solución A 8 2(10 10 20 76) 238 239
2
Observación:
1 4
A f ( x 0 ) 2 f ( xi ) f ( x 5 )
2
i 1
1
A 8 2(10 10 20 76) 238 239
2
b x2 x4 x6 xn b
I f ( x)dx P1 ( x)dx P2 ( x)dx P3 ( x)dx Pn ( x)dx
a a x0 x2 x4 xn 2
Donde Pi; i=1,2,…; es el polinomio de grado dos que pasa por tres puntos
consecutivos usando el método del Trapezoide.
h h h
I 1 f ( x 0 ) 4 f ( x1 ) f ( x 2 ) 2 f ( x 2 ) 4 f ( x 3 ) f ( x 4 ) n f ( x n 2 ) 4 f ( x n 1 ) f ( x n )
3 3 3
Donde:
h1 x1 x 0 x 2 x1
h2 x 3 x 2 x 4 x 3
hn x n1 x n 2 x n x n 1
h
I f ( x 0 ) 4 f ( x1 ) f ( x 2 ) h f ( x 2 ) 4 f ( x3 ) f ( x 4 ) h f ( x n2 ) 4 f ( x n1 ) f ( x n )
3 3 3
Luego:
h n 1
I f ( x 0 ) 4 f ( xi ) 2 f ( x i ) f ( x n )
3 i 1 i 2 (6)
Ejemplos:
1
A1 f ( x0 ) 4( f ( x1 ) f ( x 2 )) 2 f ( x 2 ) f ( x3 )
3
1
8 4(10 20) 2(10) 76 74.666
3
1
A2 76 238 157
2
Luego:
x2
4) Hallar la integral aproximada de f ( x)
1
e 2 entre -1 y 1
2
Solución:
1 ( 1)
Con n = 1 h 2
1
2 1
I ( f ( x 0 ) f ( x1 )) (0.606 0.606) 0.484
2 2 2
0.484 0.682
E n 1 0.29 ó 29%
0.682
1 ( 1)
Si n = 2 h 1
2
2 1
I ( f ( x 0 ) 2 f ( x1 ) f ( x 2 )) (0.606 2(1) 0.606) 0.64
2 2 2 2
0.64 0.682
E2 0.0587 ó 5.87%
0.682
1 (1)
Si n = 4 h 0.5
4
0.5
I ( f ( x 0 ) 2 f ( x1 ) 2 f ( x 2 ) 2 f ( x 3 ) f ( x 4 ))
2 2
0.5
(0.606 2(0.882) 2(1) 2(0.882) 0.606) 0.672
2 2
0.672 0.682
E4 0.0147 Ó 1.47%
0.682
Solución:
1 ( 1)
Si n=2 h 1
2
1 1
I ( f ( x 0 ) 4 f ( x1 ) f ( x 2 )) (0.606 4(1) 0.606) 0.693
3 2 3 2
0.693 0.682
E2 0.0162 Ó 1.62%
0.682
1 (1)
Si n =4 h 0.5
4
0.5
I ( f ( x 0 ) 4 f ( x1 ) 2 f ( x 2 ) 4 f ( x 3 ) f ( x 4 ))
3 2
0.5
(0.606 4(0.882) 2(1) 4(0.882) 0.606) 0.683
3 2
0.683 0.682
E4 0.0015 Ó 0.15%
0.682
, (7)
, (8)
, (9)
Como h=xi-xi-1.
, (10)
, (11)
, (11)
, (12)
, (13)
, (14)
, (15)
5
1. ( 2 3 x )dx
0
5
2
2. ( 2 3 x x) dx
0
5
3
3. (5 3 x x)dx
0
/2
5. senxdx
0
/2
6. sen 2 xdx
0
/2
7. cos xdx ,
0
2
3
8. (2 x 4 x 2) dx
2
6
3 2
9. (4 x 2 x 8) dx
0
2
x
10. e dx
2
3
2
11. ( x 4 x ) dx
3
6
x
12. e dx
4
3. y x3 x 2 , y las rectas x 1 , x 2
4. y x2 2 x y 4.
5. y x2 2 , y x x 2 , x2 .
6. x 3 y 2 , y x 1.
7. y x 3 y0 entre x 3 , x 3 .
8. y x 2 2x , y x2 .
9. x 8 y y 2 , x 0.
10. x (3 y )( y 1) , x 0 .
11.- x y2 2y , x y 4 0 .
12.- y 4 x x 2 y el eje Y.
13.- y 4 x 2 , y 4 4x .
14.- y 2 4x , 2x y 4 .
15.- y x2 , y x3 , x y 2 .
16. y x 2 2 x 4; x 2, X 4
siguiente