Professional Documents
Culture Documents
interpolation,
I.
FUNDAMENTO TERICO
INTRODUCCIN
f (c )+
'
''
'''
f (c )
f (c )
f (c )
( xc ) +
( xc )2 +
( xc )3 +
1!
2!
3!
f ( n) ( c )
n ! ( xc )n
n=0
Ec. 1 Serie de Taylor
Donde:
Se despeja el valor
Denota
f ' (x )=
la
el
f ( x )f ( xh ) f ' ' ( x)
f ( x ) f ( xh )
+
h+
h
2
h
f ' ( x )=lim
h0
f ( x +h ) f (x )
h
2) Segunda diferencia.
f ' ( x )
f ( x+ h )f (x )
h
f : R R , se trata de
f ( xh )=f ( x )f ' ( x ) h+
i)
Ejemplo Prctico.
1) Utilizando las formulas atrasadas de derivacin de
primer y segundo orden, encuentre las derivadas
numricas
f ( x)=x
en
4
el
punto
x=3,
sabiendo
que
f ' ( x )=
3 ( 3 ) 4( 2.9 ) + ( 2.8 )
0.2
f ' ( 3 )=107.766
f ' ( x )=4 x 3
f ' (3)=4 ( 3 )3
ii)
f ' ( 3 )=108
f ' ( x )=
f ( x )f (xh)
h
f ' ( 3 )=
f ( 3 )f (30.1)
0.1
f ' ( 3 )=
f ( 3 )f ( 2.9)
0.1
f ' ( 3 )=
( 3 )4 ( 2.9 )4
0.1
'
f ( 3 )=102.719
f ' ( x )=
3 f ( x ) 4 f ( xh ) + f (x2 h)
2h
3 f ( 3 )4 f ( 30.1 ) +f (320.1)
f ' ( x )=
20.1
f ' ( x )=
3 f ( 3 )4 f ( 2.9 ) + f (2.8)
0.2
D. Diferencias Centradas
f : R R , se trata de
f ( x +h )=f ( x )+ f ' ( x ) h+
''
f ( x ) 2 f ' ' ' (x ) 3
f ( xh )=f ( x )f ( x ) h+
h
h +
2
6
'
'
f (x) , y
f ' ( x )=4 x 3
'
f (3)=4 ( 3 )
( 3 )=108
f(' xh)
f
(
x+
h
)
f
(xh)
f
'
'
'
(
x)
f
(
x
+h
)
f
f ' ( x )=
h 2+
h
6
2h
El resto en este caso es de segundo orden O(
h2 ).
f ' ( x )=
1) Primera diferencia.
f ( x+ h )f ( xh)
2h
f ' ( 3 )=
f ( 3+ 0.1 )f (30.1)
20.1
f ' ( 3 )=
f ( 3.1 )f (2.9)
0.2
f ' ( 3 )=
( 3.1 )4 ( 2.9 )4
0.2
2) Segunda diferencia.
'
f ( 3 )=108.12
f ' ( x )=
f ( x +2 h ) +8 f ( x +h )8 f ( xh )+ f ( x2h)
12 h
i) Ejemplos Prcticos
f ' ( x )=
f ' ( x )=
f ' ( x )=
f ' ( 3 )=108
f ( x +h )=f ( x )+ f ' ( x ) h+
Se despeja el valor
'
f ( x ) , y se obtiene la frmula
f ' (x )=
h+
h
2
h
1) Primera diferencia.
2) Segunda diferencia.
f : R R , se trata de
i) Ejemplo Prctico
1) Utilizando las formulas adelantadas de derivacin de
primer y segundo orden, encuentre las derivadas
numricas
f (x)=x
en
4
el
punto
x=3,
sabiendo
que
( 3.2 )4 + 4( 3.1 )4
4
f ' ( x )=3( 3 )
0.2
f ' ( x )=4 x
f ' (3)=4 ( 3 )3
f ' ( 3 )=108
Conociendo que la frmula adelantada para calcular la
derivada numrica de primer orden es:
f ' ( x )=
'
f ( 3 )=107.754
f ( x+ h )f (x)
h
f ' ( 3 )=
f ( 3+ 0.1 )f (3)
0.1
f ' ( 3 )=
f ( 3.1 )f (3)
0.1
f ' ( 3 )=
( 3.1 )4 ( 3 )4
0.1
f ' ( 3 )=113.521
Conociendo que la frmula adelantada para calcular la
derivada numrica de segundo orden es:
f ' ( x )=
f ( x +2 h ) + 4 f ( x+h)3 f (x )
2h
f ' ( x )=
f ' ( x )=
F.
Clculo de error
f C
Si
n +1
([ a , b ])
[ a , b]
, donde
es un
x o , x 1 , , x n
|f ( x )P
'
'
n (x i )|
|f (n +1) |
[ a , b]
( n+1 ) !
}|
x ix 0|xi xn
E=
V . realV . prctico
100
V . real
Diagrama I. Diagrama de flujo de proceso de programacin
en Matlab
III.
IMPLEMENTACIN EN MATLAB
A. Comandos de Matlab
Tabla I. Comandos de Matlab.
Comando Definicin
switch
Ejecutar uno
de varios
grupos de
declaraciones
fprintf
Escribir datos
en archivo de
texto
subs
Sustitucin
simblica.
Sintaxis
switch(op)
case 1
disp(Hola )
Ejemplo
op=1
Hola
Fprintf(pen
diente =
%f, m)
syms ab
subs (a + b,
a, 4)
Pendiente
=0.5
Ans=
b+4
IV.
MANUAL DE USUARIO
B. Diagrama de Flujo
VI.
MTODOS SIMILARES
Mtodo
Lmite del
Cociente
Incremental
Descripcin
Se elige una sucesin
que
{h k }
tal
hk 0 y se calcula el lmite
de la sucesin
Dk=
para
Diferencias
Centradas
f ( x +h k )f ( x)
hk
k =1,2,
f ' (x)
V.
Diferencias
progresivas
regresivas
Derivada
Polinomio
Interpolar
Newton
C ONCLUSIONES
x0 .
del
de
x0
se
llaman
Frmulas
de
Diferencias
Progresivas(o regresiva).
Se utiliza cuando se trata de derivar
una funcin de la que se conocen slo
unos datos. En especial cuando esos
datos
estn
desigualmente
espaciados.
REFERENCIAS
[1]
[2]
BIBLIOGRAFA
Chapra, S., & Canale, R. (1999). Metodos Numericos para Ingenieria. 5ta
Edicion
Annimo, (2009). Derivacin e Integracin Numrica. Recuperado el 24
de
Enero
de
2015,
de:
http://exa.unne.edu.ar/matematica/metodos/5-3-materialteorico/tema_Dif_Integracion_2009.pdf