Professional Documents
Culture Documents
JAN
MTODOS
NUMRICOS
AYALA NAVARRO R .DANIEL
BRAVO MONTEZA IRWING
CARRASCO LOPEZ KATERINE
PREZ URIARTE JOSE
SOBERON SANCHEZ JORGE
YAJAHUANCA GAITAN JHON
CONTENIDO
CAPTULO 1.......................................................................................................
SOLUCIN DE ECUACIONES LINEALES..............................................................
1.2.
CONCEPTOS PRELIMINARES................................................................
1.2.2.
MATRIZ...........................................................................................
1.2.3.
TIPOS DE MATRICES......................................................................
1.2.4.
1.3.
MTODOS DE SOLUCIN......................................................................
1.2.6.
CAPITULO 2..................................................................................................... 18
2.1.
AJUSTE DE CURVAS........................................................................... 18
2.2.
REGRESION LINEAL............................................................................19
2.3.
2.4.
2.5.
PROGRAMACIN EN MAPLE:..............................................................22
2.6.
REGRESION POTENCIAL.....................................................................23
2.7.
REGRESIN NO LINEAL......................................................................25
METODOS NUMRICOS
CAPTULO 1
SOLUCIN DE ECUACIONES LINEALES
1.2.
CONCEPTOS PRELIMINARES
1.2.2. MATRIZ
Una matriz es un arreglo rectangular de nmeros reales ordenados en
filas y columnas. Las matrices se denotan con letras maysculas, tales como
A, B, C,..etc; y
aij
Filas
an an 2 an 3 a nm
[]
b1
[ B ]= b 2
bm
[ C ] =[ c 1 c 2 c n ]
Son llamados vectores rengln
METODOS NUMRICOS
1.2.3.2.
conjunto.
D(
).
EJEMPLO:
5
3 7 5
2 4
6 2
A4=
9 5 3 4
3
6
2 2
A4
Tr ( A 4 ) =14
METODOS NUMRICOS
fila determina el rango. El rango de A ser, por tanto, mayor o igual que uno y
menor o igual que el mnimo entre m y n.
1.2.3.5.
a33 x 3+
am 1 x 1+ 32 2 a m 2 x 2+
am 3 x 3 + . f
a m 1 am 2 am 3
amn bm
a11 a1 n
A=
am 1 amn
[]
b1
B=
bm
En conclusin:
Existen soluciones para el sistema si y solo si el rango de la matriz completa es
igual al rango de la matriz incompleta.
Entonces, si existen soluciones, ests forman un sub-espacio afn de
dimensiones
nrg(A ) . Adems.
METODOS NUMRICOS
de
i.
Si rg( A/ B)=n=rg(B)
ii.
Si rg( A/ B)=rg(B)< n
iii.
Matriz diagonal
Una matriz diagonal es aquella en la que todos los elementos son cero
excepto los de la diagonal principal.
a11 0
0
[ A ] = 0 a22 0
0
0 a33
1.2.4.3.
Matriz identidad
[ I ]= 1
1 1
]
[I ]
El smbolo
METODOS NUMRICOS
1.2.4.5.
a11 0 0
[ A ] = a21 a22 0
a31 a32 a 33
1.2.4.6.
Matriz bandeada
1.2.4.7.
Matriz aumentada
a11 a12 a 13 . b 1
[ A ] = a21 a22 a 23 . b 2
a31 a32 a 33 . b 3
METODOS NUMRICOS
para todo i y j.
se obtiene al sumar
[ D ] y [ E ] se obtienen al restar
[C]
[ D ] =g [ A ] =
ga11
g a21
[C]
g a12 g a1 m
ga22 g a 2 m
g an 1 g a n 2 g anm
[ C ] = [ A ][ B ] y se define
c ij = aik b jk
k=1
Donde
Es decir, el elemento
c ij
individuales del i-simo rengln de la primera matriz, en este caso [A], por la jsima columna de la segunda matriz [B].
METODOS NUMRICOS
1.3.
MTODOS DE SOLUCIN
En esta seccin se analizarn las ecuaciones algebraicas linales
a22 x 2
+ + a2 n xn b2
a n1 x 1
an 2 x2 +
+ a nm x n bm
][ ] [ ]
a 11 a12 a1 n x 1
b1
a 21 a22 a2 m x 2
b
= 2
bm
an 1 a n2 a nm x n
TRMINO
METODOS NUMRICOS
INDEPENDIENTE
DE
SOLUCIN
DE
SISTEMAS
PEQUEOS
DE
ECUACIONES
Estos mtodos son apropiados para la solucin de pequeos sistemas
de ecuaciones simultneas (tienen igual o menos de tres incgnitas) que no
solicitan de una computadora; los mtodos son los siguientes: el mtodo
grfico, la regla de Cramer y la eliminacin de incgnitas.
1.2.4.1.
Mtodo grfico
otro a
( )
x 2=
a21
b
x1 + 2
a22
a22
( )
x 2=
METODOS NUMRICOS
x2
x2
x1
x1
x2
en la interseccin de las
x 1=
b1 a12 a13
b2 a22 a23
b3 a32 a33
D
Determinante
METODOS NUMRICOS
10
Sea
| A|=
Se calcula como
A=
a11 a12
a 21 a22
a11 a12
=a 11 .a 22a12 . a 21
a 21 a22
a11 a 12 a13
[ A ] = a21 a 22 a23
Sea
Se calcula como
1.2.4.3.
a31 a 32 a33
| A|=a11
)
| |
| |
a22 a23
a
a
a a
a12 21 23 + a13 11 12
a32 a33
a31 a33
a21 a22
La eliminacin de incgnitas
Solucin:
Multiplicando la ecuacin
( ) por 2, tenemos:
4 x +2 y=32
3 x2 y=10
__________________
7x= 42
METODOS NUMRICOS
11
x= 6
Reemplazando el valor x en
( ) y =4
+ a1 n x n
a22 x 1
+ + a2 n x n b 22
a 11 x 1
+
a12 x 1
+
b 11
a21 x1
+
an 1 x 1
a n 2 x 1 +
+ anm x n b
a21
a
a
a12 x2 ++ 21 a1 n x n= 21 b 1
a11
a11
a 11
a 22
a 21
a
a
a12 x2 ++ a 2 n 21 a1 n x n=b 2 21 b1
a11
a11
a11
METODOS NUMRICOS
12
a22 x 2 ++ a2 n x n= b2
Donde el superndice indica que los elemntos han cambiado sus valores
originales
a11
se denomina el coeficiente o
elemento pivote.
1.2.4.2.
GAUS JORDAN
METODOS NUMRICOS
13
==
[A B]
Se selecciona de la diagonal principal de A, el pivote; se normaliza la 1ra fila
(se divide entre el coeficiente de la primera incgnita).
Se multiplica la primera fila por el 1er coeficiente de las siguientes filas, y se
restan.
Se normaliza la 2da fila y se multiplica por el 2do coeficiente de las otras filas y
se restan.
METODOS NUMRICOS
14
Se normaliza la 3ra fila y se multiplica por el 3er coeficiente de las otras filas y
se restan.
Se repiten los pasos tantas veces como elementos tenga la diagonal principal,
es decir, hasta que en lugar de la matriz de coeficientes A se ha convertido en
una matriz identidad I, teniendo ahora el ltimo sistema equivalente, como,
[ I Bsol ]
Donde
III.
IV.
V.
VI.
ampliada.
A continuacin, evaluamos lo siguiente:
Se volver a evaluar :
w,n
VIII.
METODOS NUMRICOS
15
2x
+ 3 y + z 1
3 x 2 y 4 z 3
5x
y z 4
Solucin.
Primero, exprese los coeficientes y el lado derecho como una matriz
aumentada:
2 3
1 1
3 2 4 3
5 1 1 4
3 /2
13
0
2
17
0
2
1/2 1/2
11 9
2
2
7 3
2 2
3/2
1/2
11
0
1
13
0 17/2 7 /2
1/2
9
13
3/2
METODOS NUMRICOS
16
1 3 /2
0
1/2 1/2
11 9
13 13
96/13 192/13
1 3 /2 1/2 1/2
11 9
0 1
13 13
0 0
1 2
x 1=1 x 2=1 x 3 =2
De esta forma, la matriz de coeficientes se ha transformado
identidad, y la solucin se obtiene en el vector del lado derecho.
Ejemplo 2.
2x
x
5 x
3x
+ 5 y + 6 z 5 w 38
+ 2 y 4 z + w 34
++
23
4 y + 2 z + + 3 w
3y
4z
2 w 35
1.2.4.1.
METODOS NUMRICOS
17
en la matriz
a22 x 2
+ + a2 n xn b2
a n1 x 1
an 2 x2 +
+ a nm x n bm
x1
x 1=
x 2=
b2a 21 x 1a23 x3 a2 n x n
a22
x n=
bnan 1 x 1a n 2 x 2ann1 x n1
a nn
x2
y as sucesivamente.
Se empieza el proceso de solucin usando un valor inicial para las x. Todas las
x valen cero (0).
Se sustituyen los valores en la 1ra ecuacin para hallar
reemplazar el valor hallado de
x1
, para luego
METODOS NUMRICOS
x1
18
x2
, y as
V.
x 1=
b1a 2 x 2a3 x 03 a n x n
a1
x n=
VI.
VII.
Para que pare de iterar tenemos que evaluar si el error de cada variable
n2
Ejemplo:
Tenemos un sistema de ecuaciones:
3x-5y-2z=6
x + 6 y - 4 z = -15
4 x - 5 y + 6 z = 35
1. Despejamos las variables
6+5 y +2 z
x=
3
y=
15x +4 z
6
METODOS NUMRICOS
19
z=
354 x+ 5 y
6
z 1=
152+40
y 1=2.8333
6
3542+52.8333
z 1=2.1388
6
= 254.69 %
15+1.2929+ 42.1388
y 2 =4.1728
6
E
z 2=
x2
y2
= 32.1%
3541.2929+54.1728
z 2=3.220
6
E
z2
=33.57%
n2
x 17=
E
y 17=
= 0.000106 %
154.217+ 42.1388
y 17=5.391
6
E
z 17=
x 17
y 17
= 0.00041%
3544.217+55.391
z 17=4.152
6
E
z 17
=0.00037%
METODOS NUMRICOS
20
CAPITULO 2
2.1.
AJUSTE DE CURVAS
pares
ordenados
(X ,
Y) ,
correspondientes
a valores
2.2.
REGRESION LINEAL
METODOS NUMRICOS
21
El anlisis
en general, nos
funcin lineal de
de regresin lineal,
permite obtener una
una o ms variables
x
predictoras ( 1 ,
independientes o
x2
,...
xk
i=1
i=1
Ei = ( y i bax i)
Pero esta estrategia, y otras ms, son inadecuadas. La mejor estrategia
S
consiste en minimizar la suma de los cuadrados de los residuos ( i ):
n
S i= E i = ( y i bax i)2
i=1
i=1
S i= ( y ibax i )2
i=1
METODOS NUMRICOS
22
n
Si
=2 ( y ibaxi )x i
a
i=1
n x i y i x i y i
2
n x 2i ( x)
b= y a x
Error Estndar de la Aproximacin
Cuantifica la dispersin alrededor de la lnea de dispersin:
S y / x=
sr
n2
S y / x : medida de dispersin
y
x
Donde el subndice
s t = ( y i y )
23
r 2=
S t S r
St
r
: Coeficiente de determinacin
S t S r
St
2.3.
algoritmo de regresion lineal
1. Copiamos nuestra nube de puntos.
2. Calculamos, la suma de todos los x, la suma de todos los y , la suma de
la multiplicacin de los x*y, la resta de los y con la media aritmtica de y
elevada al cuadrado.
3. Encontramos el a y el b con la siguiente formula:
a=
n x i y i x i y i
2
n x 2i ( x)
b= y a x
sr
n2
s r = ( y i f ( x i ))2
r 2=
r=
S t S r
St
S t S r
St
2
5. Si r
METODOS NUMRICOS
24
r 2 es
2.4.
X
Y
2
14
3
20
5
32
7
42
5.1538461
5
X+
8
44
Solucin
X
2
3
5
7
8
25
Y
14
20
32
42
44
152
2.5.
restart;
n:
XY
28
60
160
294
352
894
N=
A=
B=
5
X^2
4
9
25
49
64
151
Y=
5.15384615
4.63076923
4.63076923
PROGRAMACIN EN MAPLE:
colocamos el numero de valores
with(LinearAlgebra);
with(plots)
X := [valores de x];
Y := [valores de y];
Promediox := evalf((sum(X[i], i = 1 .. n))/n);
Promedioy := evalf((sum(Y[i], i = 1 .. n))/n);
a1 := evalf((n*(sum(X[i]*Y[i], i = 1 .. n))-(sum(X[i], i = 1 .. n)).(sum(Y[i], i = 1
SR := evalf(sum((Y[i]-f(X[i]))^2, i = 1 .. n));
ST := evalf(sum((Y[i]-Promedioy)^2, i = 1 .. n));
SY := evalf(sqrt(ST/(n-1)));
S(y/x) := evalf(sqrt(SR/(n-2)));
r2 := (ST-SR)/ST;
r := sqrt(r2);
Mnimos cuadrados.mw
METODOS NUMRICOS
25
2.6.
REGRESION POTENCIAL
METODOS NUMRICOS
26
log y i=loga+log xi
n x y x y
2
n x 2( x )
a = y b x
y i=a x i
2.6.1.
ALGORITMO DE LA REGRESION POTENCIAL
I. Escribimos nuestra nube de puntos
II. Linealizo mi ecuacin al tipo potencial.
y=a2 x b
2
POTENCIAL
log ylog y
IV. Ahora obtengo una nueva nube de puntos, con la cual usare mi
regresin lineal, explicada anteriormente.
METODOS NUMRICOS
27
1,25
11,25
20
30,5
logx
1.25
n=
5
a=
11.25
20
30.5
15
68
b=
logy
logx*logy
0.096910
0
01
0
0.210410
5
0.30103 0.69897
94
1.99019
0.477121
1.051152 0.501527
25 655
52
21
0.09887
0.602059
0.783298
99 661
1.30103
11
1.484299 1.037481
0.69897
84
07
2.079181 4.632362 2.532717
25
37
32
(logx)^2
0
0.090619
06
0.227644
69
0.362476
23
0.488559
07
1.169299
05
0.09887661
b=10
b= 1.25567316
y=1.25567316 x 0.09887661
La ecuacin:
2.7.
REGRESIN NO LINEAL
METODOS NUMRICOS
28
MODELO EXPONENCIAL:
a1e b x
1
ln ( y )=ln ( a1eb x )
1
ln ( y )
ln ( a 1) + ln ( e b x )
1
( y )= ln ( a1 ) +b1 x ln ( e )
ln
METODOS NUMRICOS
29
y =ln ( a1 ) +b 1 x
a1
b1
LINEALIZACION:
METODOS NUMRICOS
30
ln ( y )
Donde s representamos el
ln ( a 1) .
1
3
1.2 1.5
3.4 5
2
2
3
4.1
3.7
5
4
7
4.5
6.5
Linealizacin:
a1e b x
1
y=
ln ( y )=ln ( a1eb x )
1
ln ( y )
ln ( a 1) + ln ( e b x )
1
( y )= ln ( a1 ) +b1 x ln ( e )
ln
ln ( y )=ln ( a1 ) +b1 x
y =ln ( a1 ) +b 1 x
Mi nueva nube de puntos seria:
X
1
ln(y
)
1.0986
1.2
1.5
3.7
1.2237
1.6094
0.6931
1.4109
1.6094
Programa en geogebra:
y = 0.2160x + 0.8684
a1
ln ( a 1) =0.8684
a1=e0.8684
METODOS NUMRICOS
31
4
1.945
9
4.5
1.871
8
a1=2.3830
La ecuacin final sera:
y=2.3830 e 0.2160x
MODELO DE SATURACION:
El modelo de saturacin tiene la forma:
y=
a1 x
b1 + x
1 b1 + x
=
y a1 x
1 1 b1
= +
y a1 a1 x
1
y
una interseccin de
1
a1
1
x
contra
b1
a1
Obtenemos una ecuacin lineal adaptada que ser semejante al de una recta
que tiene como puntos (
([ x1 , y1 ) ,( x1 , y1 ) , . ,( x1 y1 )] ).
METODOS NUMRICOS
32
y=
1 b1
+ x
a 1 a1
1
3
1.2
3.4
1.5
5
2
2
3
4.1
3.7
5
4
7
4.5
6.5
1
0.3333
3
1/y
0.8333
0.2941
1
0.666
0.5
0.3333
0.27
0
0.2
0.5
0.2439
0.2
0.222222
0.25 22
0.14 0.153846
2
15
Programa en geogebra:
y=0.19 x +0.16
1
=0.16
a1
a1=6.25
b1
=0.19
a1
b1=1.1875
Por lo tanto el modelo es:
y=
6.25 x
1.1875+ x
METODOS NUMRICOS
33
EXPONENCIAL
POTENCIAL
DE SATURACION
x
y=a3
b3 +x
y=a1 e b x
y=a2 x b
ln y=ln a1+ b1 x
III.
1 b3 1 1
=
+
y a3 x a 3
EXPONENCIAL
POTENCIAL
0. 6.
0
5 1
0. 6.
4
2
0. 6.
8
log xlog y
ln y
9
1
DE SATURACION
1. 7
3
-
4
2.
0. 8
3
9
0. 3.
3
1
x
2.
4
3
1
y
0.
5
1.
5
0
3
1.
IV.
V.
VI.
METODOS NUMRICOS
34
INTERPOLACIN
Supongamos
que
(x 0 , y 0 ),(x1 , y 0) , ... ,( x n , y n )
conocemos
n+1
puntos
y=f (x)
que se
p(x)
P ( X n ) =Y n
METODOS NUMRICOS
35
y=f ( x)
(la
+ .. a n x 1=Y 1
a0 +a1 x1 + a2 x 21
+ .. a n x n=Y n
a0 +a1 x n+ a2 x 2n
)( ) ( )
1 x 0 x 20 .. x n0 a0
y0
2
n
1 x 1 x 1 x 1 a1 = y 1
2
n
an
yn
1 xn x n x 1
a0 =
a1=
an =
P (x )
xi
Pn ( x )=Y 0+ P 1 ( x ) Y 1 + P2 ( x ) Y 2 + + Pn ( x ) Y n
Donde
pj ( x )
es un polinomio de grado n y
pn ( x )
( xx 0 )( x x1 ) + + ( xx i1 )( x xi +1 )+ +( xx n)
( x jx 0 ) ( x jx 1 ) ++ ( x jx i1 )( x jx i+1 ) ++( x j x n)
METODOS NUMRICOS
36
pi ( x i ) =
( x ix 0 ) ( x ix 1 ) ++ ( x ix i1 ) ( x ix i+1 ) ++(x ix n)
=1
( x ix 0 ) ( x ix 1 ) ++ ( x ix i1 ) ( x ix i+1 ) ++(x ix n)
pi ( x j )=
( x jx 0 ) ( x j x1 ) + + ( x jx i1 ) ( x jx i +1) + +( x jx n)
=0
( x jx 0 ) ( x j x1 ) + + ( x jx i1 ) ( x jx i +1) + +( x jx n)
Pj ( xi )
se define como:
P j ( x i )= 1; i= j
0 ; i j
Ahora para un mejor entendimiento del polinomio de Lagrange planteamos un
ejemplo:
x0
x1
x2
x3
y0
y1
y2
y3
p ( x )=
( xx 1)( x x2 )(xx 3)
(xx 0 )( xx 2)( xx 3 )
( xx 0 )(xx 1)(xx 3 )
(xx 0 )(
y0 +
y1 +
y2 +
(x0 x 1)( x 0x 2)(x 0 x3 )
( x 1x 0)(x 1x 2 )(x1 x3 )
(x 2x 0)( x 2x 1 )( x2x 3 )
( x 3x 0)(x
( xx 0 )( x x1 ) ( xx 2 ) ( xx i1 )( x xi +1 ) (xx n)
=1
( x ix 0 ) ( xi x 1) ( x ix 2 ) ( x ix i1) ( x ix i+1 ) ( xi xn )
De donde:
METODOS NUMRICOS
37
Li ( x ) =
j=1
j 1
( x x j)
; L ( x )=K ij = 1; i= j
(x ix j ) i j
0;i j
p ( x )= Li ( x ) y i
i=0
p ( x )=
i=1 j=0
j i
(xx j )
y
(x ix j) i
Fin.
EJEMPLO
EN
MAPLE
interpolacion\LAGRANGE
C:\Users\KHATERINE\Documents\jose
maple.mw
C:\Users\KHATERINE\Documents\jose
EN
GEOGEBRA
interpolacion\geogebra
interpolacion.ggb
INTEGRACIN NUMRICA
Etimolgicamente integrar, significa juntar las partes en un todo; unir;
indicar la cantidad total, etc.
La integracin tiene bastantes aplicaciones en la ingeniera, que van
desde la localizacin de centroides (centro de gravedad) de formas extraas
hasta el clculo de cantidades totales basadas en medidas discretas. Adems,
METODOS NUMRICOS
38
I= f ( x ) dx
a
METODOS NUMRICOS
f ( x)
39
f ( x)
en un intervalo
[a ,b ]
f (x)
I= f (x) dx f n( x) dx
a
Donde
f n( x)
es un polinomio de la forma;
f n( x) =
a0 + a1 ( x ) ++a n1 ( x n1 ) +a n( xn )
METODOS NUMRICOS
40
I= f ( x)dx P1 (x) dx
a
Donde:
P1 ( x )=
( xb )
( xa )
f ( a )+
f (b )
ab
ba
f ( x ) dx= h2 [f ( x 0 ) +f ( x 1 ) ]
a
f ( x ) dx= h2 [f ( x 0 ) +2 f ( x 1 )+ 2 f ( x 2) + 2 f ( x3 ) + 2 f ( xn1 ) + f ( x n ) ]
a
i.Defino mi integral
f (x)dx , declaro mi a , b ,
a
=n
METODOS NUMRICOS
41
y el nmero de trapecios
H=
ii. Calculo el
iii.
ba
,
n
Calculo , x i=a+ iH ; f ( x i ) ,
n1
f ( x ) dx= h2 f ( x 0 ) +2 f ( x i ) + f ( x n )
a
v.
i=1
i.
Defino mi integral
de rectngulos.
ii.
iii.
iv.
Calculo el
Calculo , x i=a+ iH ; mi=
H=
f ( x)dx , declaro mi a , b
a
, n = numero
ba
n
x i1 + x i
2
I =H f ( mi )=integral aproximada
i=1
i.
ii.
iii.
iv.
v.
Defino mi integral
f (x) dx , declaro mi a , b ,
a
METODOS NUMRICOS
42
vi.
Finalmente
P(x )dx
a
Y OBTENGO LA APROXIMACIN.
I = f ( x ) dx P ( x)dx
a
Para obtener:
I=
H
f ( x )+ 4 f ( x1 )+ f ( x2 )]
3 [ 0
Donde h=(b a)/2 . Esta ecuacin se llama regla de Simpson 1/3 debido a que h
est dividida entre 3.
Para este mtodo nosotros mostraremos como se resuelve el polinomio por medio de
LAGRANGE
( xx 1 ) ( xx 2 )
( xx 0 ) ( xx 2 )
( x x0 ) ( xx 1 )
P ( x )=
f ( x0 )+
f ( x1 )+
f ( x2 )
( x 0x 1 ) ( x 0x 2 )
( x 1x 0 ) ( x 1x 2)
( x2 x0 ) ( x 2x 1 )
Integramos nuestro polinomio y obtenemos:
b
I = P ( x ) dx=
a
H
[ f ( x 0 ) + 4 f ( x1 ) + f ( x 2) ]
3
Tambin aplicamos esta regla para n-simo puntos los cuales veremos a continuacin, donde
a=x 0
b=x n
y
:
b=x n
x2
x4
xn
x0
x2
x n2
Integramos y obtenemos:
I=
H
H
H
f ( x 0 ) + 4 f ( x 1 ) + f ( x 2 ) ] + [ f ( x2 ) + 4 f ( x3 ) + f ( x 4 ) ] + + [ f ( x n2 ) +4 f ( x n1 ) +4 f ( x n1) + f ( x n ) ]
[
3
3
3
METODOS NUMRICOS
43
f ( x i ) +2
i=2,4,6,8
f ( x i ) + f ( x n)
n1
f ( x0 ) + 4
I=
i=1,3,5,7
i. Defino mi integral
f (x) dx , declaro mi a , b ,
a
el
Calculo , x i=a+ iH ; f ( x i ) ,
iv.
f ( x i ) +2
i=2,4,6,8
f ( x i ) + f ( x n)
n1
f ( x0 ) + 4
i=1,3,5,7
I = f ( x ) dx P ( x)dx
a
Para obtener:
METODOS NUMRICOS
44
I=
3H
f ( x 0 ) +3 f ( x 1 ) +3 f ( x 2 ) + f (x 3) ]
8 [
se multiplica por
3/8
P ( x )=
a=x 0
; b=
x3
( xx 1) ( x x2 ) ( xx 3 )
( xx 0 ) ( xx 2 )( xx 3)
( xx 0 ) ( xx 1 ) ( xx 3 )
( x x
f ( x0 )+
f ( x1 )+
f ( x2 ) +
( x 0x 1 ) ( x 0x 2 )( x0 x3 )
( x 1x 0 )( x 1x 2 ) ( x 1x 3 )
( x 2x 0 )( x2 x1 ) ( x 2x 3 )
( x 3x
I = P ( x ) dx=
a
3H
f ( x ) +3 f ( x1 ) +3 f ( x2 ) + f (x 3) ]
8 [ 0
Tambin aplicamos esta regla para n-simo puntos los cuales veremos a
continuacin, donde
b=x n
a=x 0
x3
b=x n
x6
xn
x0
x3
x n3
Integramos y obtenemos:
I=
3H
3H
3H
f ( x 0 ) +3 f ( x 1 ) +3 f ( x 2 ) + f (x 3) ] +
f ( x 3 ) +3 f ( x 4 ) +3 f ( x 5 ) + f ( x 6) ] ++
f ( x n3 )+ 3 f ( x n2 )+ 3 f
[
[
8
8
8 [
METODOS NUMRICOS
45
f ( x i ) +3
n1
f ( x i) + 2
i=2,5,8,11
i=3,6,9,12
n3
f ( x 0 ) +3
i =1,4,7,10
I=
3H
i. Defino mi integral
f (x) dx , declaro mi a , b ,
a
el
Calculo , x i=a+ iH ; f ( x i ) ,
Evalu mis datos en la frmula :
x
f ( i)+ f (x n)
n2
f ( x i ) +3
n1
f ( x i) + 2
i=2,5,8,11
i=3,6,9,12
n3
f ( x 0 ) +3
i =1,4,7,10
I=
3H
METODOS NUMRICOS
46