Вы находитесь на странице: 1из 6

Ejemplo:

Calcula el valor del logaritmo de 4 mediante integración lineal, usar los


siguientes datos:

Número Logaritmo (Número)

3 0.477121 = f(x0)

4 …

4.5 0.653212 = f(x1)

5 0.698970

Caso (a)
[3 4.5]

𝑥0 𝑥1

𝑥 = 4 (Valor a interpolar)
Utilizando la fórmula de integración lineal:

[0.653212  0.477121]
f ( x)  0.477121  (4  3)
4.5  3
f ( x)  0.594515
a  1.3%

Valor real: 0.602059

Caso (b)
[3 5]
𝑥0 𝑥1
𝑥 = 4 (Valor a interpolar)

[0.698970  0.477121]
f ( x)  0.477121  (4  3)
53
f ( x)  0.588045
a  2.32%
1. INTERPOLACION CUADRATICA

Una estrategia para mejorar la aproximación en el proceso de


interpolación es la de introducir cierta curvatura en la línea que conecta
los puntos. Si se dispone de al menos 3 datos, lo anterior se puede llevar
a cabo con un polinomio de segundo orden.

f 2 ( x)  b0  b1 ( x  x0 )  b2 ( x  x0 )( x  x1 ) (2)

Esta ecuación es equivalente a:

f ( x)  a0  a1 x  a2 x 2 (3)

Donde:

a0  b0  b1 x0  b2 x0 x1 (4)
a1  b1  b2 x0  b2 x1 (5)
a2  b2 (6)

Luego para obtener los coeficientes b0, b1 y b2 se sustituyen los valores de


𝑥0 , 𝑥1 𝑦 𝑥2 en la ecuación (2).

Para 𝑏0 :
𝑓2 (𝑥0 ) = 𝑏0 + 𝑏1 (𝑥0 − 𝑥0 ) + 𝑏2 (𝑥0 − 𝑥0 )(𝑥0 − 𝑥1 ) (7)
𝑓2 (𝑥0 ) = 𝑏0 (8)

Para 𝑏1 :
𝑓2 (𝑥0 ) = 𝑏0 + 𝑏1 (𝑥1 − 𝑥0 ) + 𝑏2 (𝑥1 − 𝑥0 )(𝑥1 − 𝑥1 ) (9)
𝑓2 (𝑥0 ) = 𝑏0 + 𝑏1 (𝑥1 − 𝑥0 )
𝑓2 (𝑥0 ) = 𝑓2 (𝑥0 ) + 𝑏1 (𝑥1 − 𝑥0 )
𝑓2 (𝑥1 )−𝑓2 (𝑥0 )
= 𝑏1 (10)
𝑥1 −𝑥0

Para 𝑏2 :
f 2 ( x1 )  f 2 ( x0 )
f 2 ( x2 )  f 2 ( x0 )  ( x2  x0 )  b2 ( x2  x1 ) (11)
x1  x0
De (11) despejamos 𝑏2 :

f 2 ( x2 )  f 2 ( x0 ) f 2 ( x1 )  f 2 ( x0 )

x2  x1 x1  x0
b2 
x2  x0

Del ejemplo anterior usa interpolación cuadrática para encontrar el


logaritmo de 4

NRO Log(NRO)

X0 3 0.477121 𝑓(𝑥0 )

X 4 …………………..

X1 4.5 0.653212 𝑓(𝑥1 )

X2 5 0.698970 𝑓(𝑥2 )

Solución:

b0  f 2 ( x0 )  0.477121
(0.653212  0.477121)
b1   0.1173940
4.5  3
(0.698970  0.653218)
 0.1173940
b2  5  4.5
53
b2  0.01293900
f 2 (4)  0.477121  0.1173940(4  3)  (0.0129390)(4  3)(4  4.5)  0.600985

2. INTERPOLACION POR MEDIO DE POLINOMIOS CON DIFERENCIAS


DIVIDIDAS DE NEWTON DE ORDEN ‘N’

De acuerdo al análisis realizado para la interpolación cuadrática esta se


puede generalizar con un polinomio de n-esimo orden cuando se tiene
n+1 puntos, lo cual lo representamos:

f n ( x)  b0  b1 ( x  x0 )  ...  bn ( x  x0 )( x  x1 )...( x  xn1 ) (1)


Entonces para evaluar 𝑏0 , 𝑏1 , 𝑏2 , … , 𝑏𝑛 se emplean las siguientes
ecuaciones:

b0  f ( x0 ) (2)
b1  f [ x1 , x0 ] (3)
b2  f [ x2 , x1 , x0 ] (4)
bn  f [ xn , xn1 ,..., x1 , x0 ] (5)

En donde las evaluaciones de las funciones entre corchetes son


diferencias divididas finitas.

La primera diferencia dividida finita.

f ( xi )  f ( x j )
f [ xi , x j ]  (6)
xi  x j

La segunda diferencia dividida finita.

f [ xi , x j ]  f [ x j , xR ]
f [ xi , x j , xr ]  (7)
xi  xR

La n-esima diferencia dividida finita

f [ xn , xn 1 ,..., x1 ]  f [ xn 1 , xn  2 ,..., x0 ]
f [ xn , xn 1 ,..., x1 , x0 ]  (8)
xn  x0

Entonces la ecuación (1) representa la expresión de Newton para


interpolar con diferencias divididas. Para interpolar utilizando la ecuación
(1) no es necesario que los valores de las abscisas están igualmente
espaciadas, o que se encuentran en orden ascendente.
El error al usar un polinomio de orden ‘n’ se puede evaluar si se dispone
de un dato adicional 𝑓(𝑥𝑛+1 ) por medio de la siguiente expresión:

Rn  f [ xn1 , xn , xn1 ,..., x0 ]( x  x0 )( x  x1 )...( x  xn )


Las diferencias divididas también se pueden calcular en forma de tabla.

PRIMERA SEGUNDA CUARTA QUINTA DIFERENCIA


DIFERENCIA DIFERENCIA DIFERENCIA DIVIDIDA
DIVIDIDA DIVIDIDA DIVIDIDA
𝑥 𝑓(𝑥)

𝑥0 𝑓(𝑥0 )

𝐹[𝑥1 , 𝑥0 ]

𝑥1 𝑓(𝑥1 ) 𝐹[𝑥2 , 𝑥1 , 𝑥0 ]

𝐹[𝑥2 , 𝑥1 ] 𝐹[𝑥3 , 𝑥2 , 𝑥1 , 𝑥0 ]

𝑥2 𝑓(𝑥2 ) 𝐹[𝑥3 , 𝑥2 , 𝑥1 ] 𝐹[𝑥4 , 𝑥3 , 𝑥2 , 𝑥1 , 𝑥0 ]

𝐹[𝑥3 , 𝑥2 ] 𝐹[𝑥4 , 𝑥3 , 𝑥2 , 𝑥1 ]

𝑥3 𝑓(𝑥3 ) 𝐹[𝑥4 , 𝑥3 , 𝑥2 ]

𝐹[𝑥4 , 𝑥3 ]

𝑥4 𝑓(𝑥4 )

Ejemplo:

Numero Logaritmo10(N)

𝑥0 3 0.477121 𝐹(𝑥0 )

𝑥1 3.5 0.544068 𝐹(𝑥1 )

X 4 ? 𝐹(𝑥)

𝑥2 4.5 0.653212 𝐹(𝑥2 )

𝑥3 5 0.69897 𝐹(𝑥3 )

Hallar por interpolación numérica log10 (4):


Usar un polinomio de interpolación de diferencias divididas de Newton
de tercer orden 𝑓3 (4) =?
f3 ( x)  b0  b1 ( x  x0 )  b2 ( x  x0 )( x  x1 )  b3 ( x  x0 )( x  x1 )( x  x2 )
SOLUCIÓN:

b0  f ( x0 )  0.477121
f ( x1 )  f ( x0 )
b1  f [ x1 , x0 ] 
x1  x0
b1  0.133894

Mediante la ecuación:

b2  f [ x2 , x1 , x0 ]
f [ x2 , x1 ]  f [ x1 , x0 ]
b2 
x2  x0
f ( x2 )  f ( x1 )
 0.133894
x2  x1
b2 
x2  x0
0.653212  0.544068
 0.133894
b2  4.5  3.5
4.5  3
b2  0.016499

Para hallar b3

b3  f [ x3 , x2 , x1 , x0 ]
f [ x3 , x2 , x1 ]  f [ x2 , x1 , x0 ]
b3 
x3  x0
f [ x3 , x2 ] f [ x2 , x1 ]
  b2
x3  x2 x2  x1
b3 
x3  x0
f ( x3 )  f ( x2 ) f ( x2 )  f ( x1 )
  b2
x3  x2 x2  x1
b3 
x3  x0
b3  0.002373
f3 ( x)  b0  b1 ( x  x0 )  b2 ( x  x0 )( x  x1 )  b3 ( x  x0 )( x  x1 )( x  x2 )
f3 ( x)  0.602171
a  ?

Вам также может понравиться