Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1.791759 − 0 𝒇 𝒙 = 𝒍𝒏(𝒙)
a) 𝑓 3 = ln 1 + 3 − 1 = 0.7167036
6−1
valor
1.098612−0.7167036
𝜀𝑡 = 1.098612
× 100% = 𝟑𝟒. 𝟕𝟔% 𝟏. 𝟓 verdadero
𝑓1
b) 1.386294 − 0 Estimaciones
𝑓 3 = ln 1 + 3 − 1 = 0.924196 lineales
4−1
1.098612−0.924196
𝜀𝑡 = × 100% = 𝟏𝟓. 𝟖𝟕%
1.098612
𝟎 𝟓 𝒙
Interpolación cuadrática
Polinomio cuadrático
f2(x) = b0 + b1(x – x0) + b2(x – x0)(x – x1) …(1) f2(x) = b0 + b1x – b1x0 + b2x2 + b2x0 x1 – b2xx0 – b2xx1
Podemos escribirlo como f2(x) = a0 + a1x + a2x2
Donde: a0 = b0 – b1x0 + b2x0 x1, a1 = b1 – b2x0 – b2x1, a2=b2
Podemos evaluar b0, b1 y b2 sustituyendo x0, x1 y x2 en la ecuación (1), se obtiene
𝑓 𝑥2 − 𝑓 𝑥1 𝑓 𝑥1 − 𝑓 𝑥0
𝑓 𝑥1 − 𝑓 𝑥0 −
b0 = f(x0) 𝑏1 = 𝑥2 − 𝑥1 𝑥1 − 𝑥0
𝑥1 − 𝑥0 𝑏2 = 𝒇 𝒙 = 𝒍𝒏(𝒙)
𝑥2 − 𝑥0
Ejemplo 2
𝒇 𝒙
Calculemos ln3 con ln4 y ln6, los punto que se conocen son:
𝟐
x0 = 1 f(x0) = 0 x1 = 4 f(x1) =1.386294 x2 = 6 f(x2) = 1.791759 𝒇𝟐 (𝒙)
b0 = 0
valor verdadero de ln3 = 1.098612 valor
verdadero Estimación
b1 = (1.386294 – 0)/(4 – 1) = 0.4620981 𝟏. 𝟓 cuadrática
b2 = ((1.791759 – 1.386294)/(6 – 4) – 0.4620981)/(6 – 1)= – 0.0518731
El polinomio es: f2(x) = 0.4620981(x – 1) – 0.0518731(x – 1)(x – 4)
𝟏
Estimación
f2(3) = 1.0279424 1.098612−1.0279424 lineal
𝜀𝑡 = × 100% = 𝟔. 𝟒𝟑%
1.098612
𝟎 𝟓 𝒙
Forma General
Polinomio general fn(x) = b0 + b1(x – x0) +...+ bn(x – x0)(x – x1)... (x – xn–1)
Los coeficientes se calculan con
b0 = f(x0)
b1 = f [x1, x0]
b2 = f [x2, x1, x0]
bn = f [xn, xn–1, ..., x1, x0]
Donde los paréntesis cuadrados se denominan diferencias divididas finitas.
𝑓 𝑥𝑖 −𝑓(𝑥𝑗 )
La primera diferencia dividida finita en forma general se representa 𝑓 𝑥𝑖 , 𝑥𝑗 =
𝑥𝑖 −𝑥𝑗
La segunda diferencia dividida finita en forma general se representa 𝑓 𝑥𝑖 ,𝑥𝑗 −𝑓 𝑥𝑗 ,𝑥𝑘
𝑓 𝑥𝑖 , 𝑥𝑗 , 𝑥𝑘 =
𝑥𝑖 −𝑥𝑘
Resolución:
La tabla de diferencias dividas es:
𝒇(𝒙𝒊 ) Primero Segundo Tercero
1.386294−0 0.2027326−0.4602981 −0.20411−(−0.051873)
𝒇 𝒙𝟎 𝑓 𝑥1 , 𝑥0 = = 𝟎. 𝟒𝟔𝟐𝟗𝟖𝟏 𝑓 𝑥2 , 𝑥1 , 𝑥0 =
6−1
=-0.05187311 𝑓 𝑥3 , 𝑥2 , 𝑥1 , 𝑥0 = 5−1
=0.00786552
4−1
1.791759−1.386294 0.1823216−0.2027326
𝒇 𝒙𝟏 𝑓 𝑥2 , 𝑥1 = 6−4
= 𝟎. 𝟐𝟎𝟐𝟕𝟑𝟐𝟔 𝑓 𝑥3 , 𝑥2 , 𝑥1 =
5−4
=-0.02041100
1.609438−1.791759
𝒇 𝒙𝟐 𝑓 𝑥3 , 𝑥1 = = 0.1823216
5−6
𝒇 𝒙𝟑
1.098612−1.07513
𝜀𝑡 = × 100% = 𝟐. 𝟏𝟒%
1.098612
Estimación del Error
La serie de Taylor se expresa en forma general como
𝑓 𝑛+1 (ξ)
𝑅𝑛 = (𝑥𝑖+1 − 𝑥𝑖 )𝑛+1
𝑛+1 !
Donde ξ está en alguna parte del intervalo de xi a xi+1. Para un polinomio de interpolación de
n-ésimo grado, una expresión análoga para el error es
𝑓 𝑛+1 (ξ)
𝑅𝑛 = (𝑥 − 𝑥0 ) (𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 )
𝑛+1 !
Donde ξ está en alguna parte del intervalo que contiene la incógnita y los datos.
𝑅𝑛 = 𝑓 𝑥, 𝑥𝑛 , … , 𝑥1 𝑥0 (𝑥 − 𝑥0 ) (𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 )
Si tiene un dato más f (xn+1) puede usarse para estimar el error como sigue:
𝑅𝑛 ≅ 𝑓 𝑥𝑛+1 , 𝑥𝑛 , … , 𝑥1 𝑥0 (𝑥 − 𝑥0 ) (𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 )
Ejemplo 4
Calcular el error cometido en la interpolación del ejemplo 3.
𝒇 𝒙𝟑
𝑅𝑛 ≅ 𝑓 𝑥𝑛+1 , 𝑥𝑛 , … , 𝑥1 𝑥0 (𝑥 − 𝑥0 ) (𝑥 − 𝑥1 ) … (𝑥 − 𝑥𝑛 )
𝑅3 ≅ 𝑓 𝑥3 , 𝑥2 , 𝑥1 𝑥0 (𝑥 − 𝑥0 )(𝑥 − 𝑥1 )(𝑥 − 𝑥2 )