Está en la página 1de 10

Integración Numérica

6.2 INTEGRACIÓN NUMÉRICA

TEOREMA (Teorema del valor medio para integrales). Si 𝑓: R → R es continua sobre


[a,b], 𝑔: R → R integrable sobre y g no cambia de signo en [a, b] ,   c  a, b  /

b b
a f (x)g(x) dx  f (c)a g(x) dx

f (n 1) () n
Sea f (x)  Pn (x)  E n (x) = Pn (x)   (x  xi )
(n  1)! i  0

b b b
a f (x) dx  a Pn (x) dx  a E n (x) dx
ERROR

b b
a f (x) dx  a Pn (x) dx

6.2.1 FÓRMULAS CERRADAS DE NEWTON-COTES

Elegimos puntos igualmente espaciados (x i , f (x i )) i  0, n tales que

x i  x 0  ih , i  0, n

ba
h
n

Sea 𝑥 = 𝑥0 + sh, s ∈ 〈a, b〉

n n n
xx n n
h(s  k)
Pn   f (x i )Li (x) =  f (xi ) xi  xkk =  f (xi ) h(i  k)
i0 i0 k0 i0 k 0
k i k i

n n
sk
 Pn   f (x i )
i0 k0 i  k
k i

Si x  x 0  sh  dx  hds

Si x=a  a=a+sh  s=0

Si x=b  b=a+sh  s=(b-a)/n  s=n

Luego, reemplazando en

Dra.Pilar Nuñez Blas Página 1


Integración Numérica

b b
a f (x) dx  a Pn (x) dx
se tiene

n n
sk
 0 
b n
a f (x) dx  h
i0
f (x i )
k0 i  k
ds
k i

Respecto a su ERROR (teórico) se puede demostrar que:

Si n es IMPAR 

h n  2 f (n 1) () n
(n  1)! 0
ERROR= s(s  1)(s  2) (s  n) ds

Si n es PAR 

h n  3 f (n  2) () n 2
(n  2)! 0
ERROR= s (s  1)(s  2) (s  n) ds

A estas fórmulas se le llaman FÓRMULAS CERRADAS DE NEWTON-COTES.

6.2.2 CASOS PARTICULARES DE LAS FÓRMULAS CERRADAS

1) REGLA DEL TRAPECIO (n=1)

b h
a f (x) dx  2 [f (x 0 )  f (x1)]
donde

h=b-a, x0=a, x1=x0+h=b

La fórmula anterior se puede reescribir en la forma:

b ba
a f (x) dx  2
[f (a)  f (b)]

Dra.Pilar Nuñez Blas Página 2


Integración Numérica

2) REGLA DE SIMPSON DE 1/3 (n=2)

b h
a f (x) dx  3 [f (x 0 )  4f (x1)  f (x 2 )]
donde

ba
h , x0=a, xi=x0+ih, x2=b
2

La fórmula anterior se puede reescribir en la forma:

b ba  ab 
a f (x) dx  6 
f (a)  4f    f (b) 
 2  

3) REGLA DE SIMPSON DE 3/8 (n=3)

b 3h
a f (x) dx  8
[f (x 0 )  3f (x1 )  3f (x 2 )  f (x 3 )]

donde

ba
h , x0=a, xi=x0+ih, x3=b
3

4) n=4

b 2h
a f (x) dx  45 [7f (x 0 )  32f (x1)  12f (x 2 )  32f (x 3 )  7f (x 4 )]
donde

ba
h , x0=a, xi=x0+ih, x4=b
4

Dra.Pilar Nuñez Blas Página 3


Integración Numérica

6.2.3 FÓRMULAS ABIERTAS DE NEWTON-COTES

Sean

x i  x 0  ih , i  1, n  1

ba
h
n2

𝑥 = 𝑥0 + sh, s ∈ 〈a, b〉

x0  a  h , xn  b  h , x 1  a , x i  x 0  ih

Si x=a  a=x0+sh=a+h+sh  s=-1

Si x=b  b= x0+sh=a+h+sh  s+1= (b-a)/h=n+2  s=n+1

dx=h ds

Luego, reemplazando en

b b
a f (x) dx  a Pn (x) dx
se tiene

n n 1 n
sk
  1 
b
a f (x) dx  h
i0
f (x i )
k0 i  k
ds
k i

Respecto a su ERROR (teórico) se puede demostrar que:

Si n es IMPAR 

h n  2 f (n 1) () n 1
(n  1)! 1
ERROR= s(s  1)(s  2) (s  n) ds

Si n es PAR 

h n  3 f (n  2) () n 1 2
(n  2)! 1
ERROR= s (s  1)(s  2) (s  n) ds

A estas fórmulas se le llaman FÓRMULAS ABIERTAS DE NEWTON-COTES.

Dra.Pilar Nuñez Blas Página 4


Integración Numérica

6.2.4 FÓRMULAS COMPUESTAS

REGLA COMPUESTA DE SIMPSON

ba
n=2m, h  , a  x 0  x1   x 2m  b
2m

x j  x 0  jh , j  0, 1, , 2m


b x2 j
a f (x) dx 
j1
x 2 j 2
f (x) dx

h
m
 
5 
=    f (x 2 j 2 )  4f (x 2 j1 )f (x 2 j )   f ( 4) ( j ) 
h
j 1  3 90 

h  h5
m m m m
=   f (x 2 j 2 )  4 f (x 2 j1 )   f (x 2 j )    f ( 4 ) ( j )
3  j1  90
 j1 j1 j1

Según propiedad de sumatorias

h 
m 1
h5
m m m
=   f (x 2 j )  4 f (x 2 j1 )   f (x 2 j )    f ( 4 ) ( j )
3  j 0  90
 j1 j1 j1

Esto se transforma en

h 
m 1
h5
m m
= f (x 0 )  2 f (x 2 j )  4 f (x 2 j1 )  f (x 2m )    f ( 4 ) ( j )
3  90
 j1 j1 j1

 j  [x 2 j 2 , x 2 j ]

Consideremos
m m
j    f (4) ( j )  f (4) ()  
j 1
f ( 4 ) ( j )  
j1
f ( 4) ()  m f ( 4) ()

Tomando en cuenta esto en el paso anterior, arribamos al siguiente resultado:

h  h5
m 1 m

 
b
a f (x) dx  f (x 0 )  2 f (x 2 j )  4 f (x 2 j1 )  f (x 2m )   mf ( 4) ()
3  90
 j1 j1

Dra.Pilar Nuñez Blas Página 5


Integración Numérica

ba ba
Pero, h   m
2m 2h

Reemplazando esto en el anterior se obtiene la fórmula deseada

h 
m 1
h4
m

 
b
a f (x) dx   f (x 0 )  2 f (x 2 j )  4 f (x 2 j1 )  f (x 2 m )   
3  180
(b  a) f ( 4) ()
 j 1 j 1
ERROR

Es decir

h 
m 1 m

 
b
a f (x) dx  f (x 0 )  2 f (x 2 j )  4 f (x 2 j1 )  f (x 2m ) 
3 
 j1 j1

6.2.5 CUADRATURA GAUSSIANA O INTEGRACIÓN GAUSSIANA

La cuadratura gaussiana consiste en hallar c i y xi tales que


b
a w(x)f (x) dx 
i 1
ci f (x i )  E

Como existen 2n incógnitas entre los xi y ci, entonces consideremos f una función 2n-
veces diferenciable y {Pi} una sucesión de “polinomios ortogonales” en [a, b] relativos al
peso w(x).

Luego, f se puede interpolar con un polinomio Q(x) de grado 2n-1, y se puede escribir
de la forma:

f ( 2 n) ()
n
f (x)  Q(x) 
(2n)! 
i 1
(x  x i )2 (1)

donde

xi son los ceros de Pn(x) y x1  x 2   xn

Q(xi)=f(xi), <x1, xn>

De (1)
f ( 2 n) ()
n

a w(x)
b b b
a a
2
w(x)f (x) dx  w(x)Q(x) dx  (x  x i ) dx
(2n)! i 1

f (2n) ()
n n

 
b b
a w(x)f (x) dx 
i 1
ci f (x i ) 
(2n)! a w(x)
i 1
(x  x i )2 dx

ERROR

Dra.Pilar Nuñez Blas Página 6


Integración Numérica

donde

b
ci  a w(x)Li (x) dx
n
xx
Li (x)   xi  xkk
k 0
k i

A los xi se le llaman abscisas de Gauss y a los ci la ponderación respectiva.

OBSERVACIÓN. Si f es un polinomio de grado 2n-1 


b
a w(x)f (x) dx 
i 1
ci f (x i )

Pues, el ERROR=0 porque f ( 2 n) ()  0

6.2.6 FÓRMULAS PARTICULARES

1) CUADRATURA DE GAUSS-LEGENDRE

w(x)=1, [a,b]=[-1,1]

b ba 1 b  a ba
a f (x) dx  2 1f  2
t
2 
dt

1 n

1 g(u) du  
i 1
ci g(x i )  ERROR O

1 n

 1 g(u) du  
i 1
ci g(x i )

donde

2(1  x i2 )
ci  xi son los ceros de Pn(x)
n 2  Pn 1 (x) 
2

2n 1 (n!) 4 f ( 2 n) ()
ERROR  <-1,1>
(2n  1)  (2n)!
3

N xi ci
1 0 2
2 0.5773503 1
3 0.7745967 0.5555556

Dra.Pilar Nuñez Blas Página 7


Integración Numérica

0 0.8888889
4 0.8611363 0.3478548
0.3399810 0.6521452
5 0.9061798 0.2369269
0.5384693 0.4786287
0 0.5688889

2) CUADRATURA DE GAUSS-LAGUERRE

w(x)=ex, [a,b]=[0,>

 n

0 e x f (x) dx  
i 1
ci f (x i )  ERROR

 n

0 e x f (x) dx  
i 1
ci f (x i )

donde

(n!) 2
ci 
x i [Pn' (x i )]2

(n!)2 f ( 2 n) ()
ERROR 
(2n)!

n xi ci
1 1 1
2 0.5857864 0.8535534
3.4142136 0.1464466
3 0.4157746 0.7110930
2.2942804 0.2785177
6.2899451 0.0103893
4 0.3225479 0.6031541
1.7457611 0.3574187
4.5366203 0.0388879
9.3950709 0.0005393
5 0.2635608 0.5217556
1.4134031 0.3986668
3.5964258 0.0759424
7.0858100 0.0036118
12.6408008 0.0000234

Dra.Pilar Nuñez Blas Página 8


Integración Numérica

3) CUADRATURA DE GAUSS-HERMITE
2
w(x)  e x , [a,b]=<-, >

 n

 
2
e  x f (x) dx  ci f (x i )  ERROR
i 1

 n

 
2
e  x f (x) dx  ci f (x i )
i 1

2n 1 n! 
ci  2
 Pn' (x i ) 
 

n! 
ERROR  f (2n) ()
2n (2n)!

xi ci
0 07724539
0.7071068 0.8862269
1.2247449 0.2954100
0 1.1816359
0.5246476 0.8049141
1.6506801 1.1816359
0 0.9453087
0.9585725 0.3936193
2.02011829 0.0199532

4) CUADRATURA DE GAUSS-CHEBYSHEV

1
w(x)  , [a,b]=[-1, 1]
1 x2


f  cos  22i n1     ERROR
n
1 1
1 1 x2
f (x) dx 
n 
i 1

2
ERROR  2n
f (2n) () , <-1,1>
2 (2n)!

x i  cos( 22i n1 )



ci 
n

Dra.Pilar Nuñez Blas Página 9


Integración Numérica

Dra.Pilar Nuñez Blas Página 10

También podría gustarte