Está en la página 1de 8

DIFERENCIACIÓN NUMERICA

CONCEPTO:
Técnica de análisis numérico para calcular una aproximación a la derivada de una
función en un punto utilizando los valores y propiedades de la misma.

APLICACIONES:
Este método se puede utilizar en dos casos:

 Cuando estamos interesados en calcular el valor de alguna derivada en algún


punto prefijado, que a menudo se ha obtenido empíricamente.
 Las fórmulas de derivación numérica se usan para obtener métodos numéricos
en la resolución de ecuaciones diferenciales ordinarias y en derivadas
parciales.
FORMULAS:
PRIMERA DERIVADA:

PRIMERA DERIVADA

DIFERENCIAS f ( x0 + h )−f (x 0) 0h
FINITAS f ' (x 0)=
h
PROGRESIVAS
−3 f ( x0 ) + 4 f ( x0 + h )−f (x 0 +2 h) 0 h2
f ' (x 0)=
2h
DIFERENCIAS f ( x0 + h )−f (x 0−h) 0 h2
FINITAS f ' (x 0)=
2h
CENTRADAS
f ( x 0−2 h)−8 f ( x 0 −h ) +8 f ( x0 + h )−f ( x 0 +2 h) 0 h4
f ' (x 0)=
12 h
DIFERENCIAS f ( x0 ) −f ( x 0−h) 0h
FINITAS f ' (x 0)=
h
REGRESIVAS
f ( x0 −2 h )−4 f ( x 0 −h ) +3 f ( x 0 ) 0 h2
f ' (x 0)=
2h

SEGUNDA DERIVADA

SEGUNDA DERIVADA

DIFERENCIAS f ( x0 ) −2 f ( x 0 +h ) + f (x 0 +2 h) 0h
FINITAS f ' ' (x 0)=
h2
PROGRESIVAS
2 f ( x 0 ) −5 f ( x 0+ h ) + 4 f ( x 0 +2 h ) −f ( x 0 +3 h) 0 h2
f ' ' (x 0)=
h2
DIFERENCIAS f ( x0 −h ) −2 f ( x 0 ) +f ( x 0 +h ) 0 h2
FINITAS f ' ' (x 0)=
h2
CENTRADAS
−f ( x 0−2 h ) +16 f ( x 0 −h ) −30 f ( x 0 ) +16 f ( x 0 +h ) −f ( x0 +2 h) 0 h4
f ' ' (x 0)=
12h 2
DIFERENCIAS f ( x0 −2 h )−2 f ( x 0 −h ) + f (x 0) 0h
FINITAS f ' ' (x 0)=
h2
REGRESIVAS
−f ( x 0−3 h ) + 4 f ( x 0−2h )−5 f ( x 0−h ) +2 f ( x 0 ) 0 h2
f ' ' (x 0)=
h2
TERCERA DERIVADA

TERCERA DERIVADA

DIFERENCIAS −f ( x 0 ) +3 f ( x 0 +h ) −3 f ( x 0 +2 h ) +f ( x 0+3 h) 0h
FINITAS f ' ' ' (x 0)= 3
h
PROGRESIVAS
−5 f ( x0 ) + 18 f ( x 0+ h )−24 f ( x 0 +2 h ) +14 f ( x0 +3 h )−3 f (x 0+ 4 h) 0 h2
f ' ' ' (x 0)=
2 h3
DIFERENCIAS 0 h2
FINITAS −f ( x 0−2 h ) +2 f ( x 0−h )−2 f ( x 0 +h )−f (x 0+ 2 h)
CENTRADAS f ' ' ' (x 0)=
8 h3

f ( x 0−3 h)−8 f ( x 0−2 h ) +13 f ( x 0−h )−13 f ( x0 + h ) +8 f ( x 0 +2 h ) −f ( x 0 +3 h) 0 h4


f ' ' ' (x 0)=
8 h3
DIFERENCIAS −f ( x 0−3 h ) +3 f ( x0 −2 h )−3 f ( x0 −h ) + f (x 0 ) 0h
FINITAS f ' ' ' (x 0)= 3
h
REGRESIVAS
3 f ( x 0 −4 h )−14 f ( x 0−3 h ) +24 f ( x 0−2 h ) −18 f ( x 0−h )+ 5 f ( x 0 ) 0 h2
f ' ' (x 0)=
2 h3

DEMOSTRACIÓN DE LA ALGUNAS FÓRMULAS:

A partir de la serie de Taylor.

' h2 ' ' h3 ' ' '


f ( x +h ) =f ( x ) +h f ( x ) + f ( x ) + f ( x )+ … Ecuación 1
2 3!

h2 ' ' h3 ' ' '


'
h f ( x )=f ( x +h )−f ( x )− [ 2
f ( x ) + f ( x )+ …
3! ]
f ( x+ h )−f ( x ) h ' ' h2 ' ' '
'
f ( x )=
h [
− f ( x ) + f ( x ) +…
2 3! ]
Para x=x 0

'
f ( x 0+ h )−f ( x 0 )
f ( x0 ) ≈ PROGRESIVA
h
Por Taylor:

' h2 ' ' h3 ' ' '


f ( x−h )=f ( x )−h f ( x ) + f ( x )− f ( x ) +… Ecuación 2
2 3!

h2 ' ' h3
h f ' ( x )=f ( x )−f ( x−h ) + [ 2
f ( x )− f '' ' ( x ) +…
3! ]
f ( x )−f ( x−h ) h ' ' h2 ' ' '
'
f ( x )=
h [
+ f x − f ( x )+ …
2
( )
3! ]
Para x=x 0

'
f ( x 0) −f ( x 0 +h )
f ( x0 ) ≈ REGRESIVA
h

Restando la ecuación 1 con la 2:

' h2 ' ' h3 ' ' '


f ( x +h ) =f ( x ) +h f ( x ) + f ( x )+ f ( x )+ … Ecuación 1
2 3!

' h2 ' ' h3 ' ' '


f ( x−h )=f ( x )−h f ( x ) + f ( x )− f ( x ) +… Ecuación 2
2 3!

3
' 2 h '' ' ( )
f ( x +h ) −f ( x−h )=2 h f ( x ) + f x +…
3!
f ( x+ h )−f ( x−h ) h2 '' ' ( )
=f ' x + f x +…
( )
2h 3!
f ( x +h ) −f ( x−h )
f ' ( x )= +0 h2
2h

Para x=x 0

'
f ( x 0+ h )−f ( x 0−h )
f ( x0) ≈ CENTRAL
2h
Considerando la formula progresiva de la primera derivada, se tiene la siguiente
fórmula para la segunda derivada:

'
f ( x 0+ h )−f ( x 0 )
f ( x0 ) ≈ PROGRESIVA
h

''
f ' ( x 0 +h )−f ' ( x0 )
f ( x0 )≈
h

f ( x 0 +2 h ) −f ( x 0 +h ) f ( x 0+ h )−f ( x 0 )
'
f ' ( x0 ) ≈
h
− [h ]
h

''
f ( x 0 +2 h )−2 f ( x0 + h ) +f ( x 0 )
f ( x 0 )=
h2
Del mismo modo se pueden deducir las demás.

EJERCICIO:

Tenemos la siguiente ecuación:

f ( x )=−0.1 x 4−0.15 x 3−0.5 x 2−0.25 x +1.2


Estimar la derivada en x=0.5 y un tamaño de paso: h= 0.25 usando diferenciación
numérica.

x f(x)

X0-2h 0 1.2
X0-h 0.25 1.103516
X0 0.5 0.925
X0+h 0.75 0.6363281
X0+2h 1 0.2

f ' ( x )=−0.4 x 3−0.45 x 2−1 x 1−0.25

f ' ( 0.5 )=−0.4 (0.5)3−0.45(0.5)2 −1(0.5)1−0.25

f ' ( 0.5 ) =−0.9125 Valor verdadero

En este caso aplicamos la fórmula de primera derivada centrada.


f ( x 0−2 h)−8 f ( x 0 −h ) +8 f ( x0 + h )−f ( x 0 +2 h)
f ' (x 0)=
12 h
1.2−8(1.103516)+8 (0.6363281)−0.2
f ' (0.5)=
12(0.25)

f ' ( 0.5 ) =−0.9125

Erp= |Vv−Va
Vv |
x 100 %

Erp= | −.9125−(−0.9125)
−0.9125
x 100 % |
Erp=0 %

En el caso de segunda derivada seria lo siguiente:

f ( x )=−0.1 x 4 −0.15 x3 −0.5 x2 −0.25 x+1.2

f ' ( x )=−0.4 x 3−0.45 x 2−1 x 1−0.25

f ' ' ( x )=−1.2 x 2−0.9 x−1

f ' ' ( 0.5 )=−1.2 ( 0.5 )2−0.9 (0.5)−1

f ' ' ( 0.5 )=−1.75 Valor verdadero

En este caso aplicamos la fórmula de segunda derivada centrada.

x f(x)

X0-2h 0 1.2
X0-h 0.25 1.103516
X0 0.5 0.925
X0+h 0.75 0.6363281
X0+2h 1 0.2
−f ( x 0−2 h ) +16 f ( x 0 −h ) −30 f ( x 0 ) +16 f ( x 0 +h ) −f ( x0 +2 h)
f ' ' (x 0)=
12h 2

−1.2+16(1.103516)−30 (0.925)+16 (0.6363281)−0.2


f ' ' (0.5)=
12(0.25)2

f ' ' ( 0.5 )=−1.749992533

Erp= |Vv−Va
Vv |
x 100 %

Erp= |
−1.75−(−1.749992533)
−1.75
x 100 % |
Erp=0,00044 %

En el caso de tercera derivada seria lo siguiente:

f ( x )=−0.1 x 4 −0.15 x3 −0.5 x2 −0.25 x+1.2

f ' ( x )=−0.4 x 3−0.45 x 2−1 x 1−0.25

f ' ' ( x )=−1.2 x 2−0.9 x−1


f ' ' ' ( x )=−2.4 x−0.9
f ' ' ' ( 0.5 )=−2.4 (0.5)−0.9

f ' ' ' ( 0.5 )=−2.1Valor verdadero

En este caso aplicamos la fórmula de tercera derivada centrada.

x f(x)

X0-3h -0.25 1.233203125


X0-2h 0 1.2
X0-h 0.25 1.103516
X0 0.5 0.925
X0+h 0.75 0.6363281
X0+2h 1 0.2
X0+3h 1.25 -0.430859375

f ( x 0−3 h)−8 f ( x 0−2 h ) +13 f ( x 0−h )−13 f ( x0 + h ) +8 f ( x 0 +2 h ) −f ( x 0 +3 h)


f ' ' ' (x 0)=
8 h3

1.233203125−8 (1.2)+13(1.103516)−13(0.6363281)+ 8(0.2)−(−0.430859375)


f ' ' ' (0.5)=
8(0.25)3

f ' ' ' ( 0.5 )=−2.0999584

Erp= |Vv−Va
Vv |
x 100 %

Erp= | −2.1−(−2.0999584)
−2.1
x 100 % |
Erp=0,0002 %

También podría gustarte