Professional Documents
Culture Documents
x x0 x1 x2 x3 … xn
P(x)=f[x0]+(x-x0)f[x0,x1]
𝑓 𝑥1 −𝑓[𝑥0 ]
𝑓 𝑥2 −𝑓 𝑥0 −(𝑥2 −𝑥0 ) 𝑥1 −𝑥0
Si 𝑥 = 𝑥2 , 𝑎2 =
(𝑥1 −𝑥0 )(𝑥2 −𝑥1 )
𝑓 𝑥2 − 𝑓[𝑥1 ] 𝑓 𝑥1 − 𝑓[𝑥0 ]
−
𝑥2 − 𝑥1 𝑥1 − 𝑥0
𝑎2 = = f 𝑥0 , 𝑥1 , 𝑥2
(𝑥2 −𝑥0 )
que es la segunda diferencia dividida respecto a x0,x1 y x2
Y que pasa por los puntos (0),(1),(2),…,(n); los coeficientes a0, a1,…,an
están dados por
Y que pasa por los puntos (0),(1),(2),…,(n); los coeficientes a0, a1,…,an
están dados por
a0=f[x0]
a1=f[x0,x1]
a2=f[x0,x1,x2]
.
.
.
an=f[x0,x1,x2,…,xn]
Pn(x)=σ𝑛𝑘=0 𝑎𝑘 ς𝑘−1
𝑖=0 (𝑥 − 𝑥1 )
Ejemplo 5.5
Elabore una aproximación polinomial de Newton para la información
tabular de las presiones de vapor de la acetona ( tabla 5.2 ) e interpole
la temperatura para una presión de 2atm.
Solución
Para el cálculo de los coeficientes del polinomio de Newton, se
construye la tabla de diferencias divididas.
diferencias divididas
14.125
1 5 113 -0.50482
4.533 0.0109
2 20 181 -0.8167
1.675
3 40 214.5
a)para n=1
b)para n=2
para n=3
De la tabla se obtienen
P3(x)= 56.5+14.125(x-1)-0.50482(x-1)(x-5)+0.01085(x-1)(x-5)(x-20)
Ejemplo 5.6
Aproxime la temperatura de ebullición de la acetona a una presión de
30 atm usando aproximación polinomial de newton de grado dos.
Solución
Se hace pasar el polinomio de Newton por los puntos (1), (2), (3) con lo
que toma la forma:
P2(x)= a0+a1(x-x1)+ a2(x-x1) (x-x2)
a0=f[x1]
a1=f[x1,x2]
a2=f[x1,x2,x3]
al sustituir
P2(x)= f[x1] + f[x1,x2] (x-x1)+ f[x1,x2,x3](x-x1)(x-x2)
=113+4.533(x-x1)+0.08167(x-x1)(x-x2)
T=p2(30) =113+4.533(30-5)-0,08167(30-5)(30-20)=205.9
𝑘−1
ෑ 𝑥 − 𝑥𝑖 ,
𝑖=0
de la ecuación 𝑝𝑛 𝑥 = σ𝑛𝑘=0 𝑎𝑘 ς𝑘−1
𝑖=0 𝑥 − 𝑥𝑖 en términos de Para
esto obsérvese que 𝑥1 − 𝑥0 = ℎ, 𝑥2 − 𝑥0 = 2ℎ, … , 𝑥𝑖 − 𝑥0 = 𝑖ℎ y
que restando 𝑥𝑖 0 ≤ 𝑖 ≤ 𝑛 en ambos miembros de 𝑥 = 𝑥0 + 𝑠ℎ, se
obtiene
𝑝𝑛 𝑥 = 𝑝𝑛 𝑥0 + 𝑠ℎ = 𝑓 𝑥0 + ℎ𝑠 𝑓 𝑥0 , 𝑥1 + ℎ2 𝑠(𝑠 −
de la ecuación 𝑝𝑛 𝑥 = σ𝑛𝑘=0 𝑎𝑘 ς𝑘−1
𝑖=0 𝑥 − 𝑥𝑖 en términos de
Para esto obsérvese que 𝑥1 − 𝑥0 = ℎ, 𝑥2 − 𝑥0 = 2ℎ, … , 𝑥𝑖 −
𝑥0 = 𝑖ℎ y que restando 𝑥𝑖 0 ≤ 𝑖 ≤ 𝑛 en ambos miembros de
𝑥 = 𝑥0 + 𝑠ℎ, se obtiene
𝑥 − 𝑥𝑖 = 𝑥0 − 𝑥𝑖 + 𝑠ℎ = −𝑖ℎ + 𝑠ℎ = ℎ 𝑠 − 𝑖 𝑝𝑎𝑟𝑎 (0 ≤
Al sustituir cada una de las diferencias 𝑥 − 𝑥𝑖 con
𝑠 − 𝑖 , en la ecuación 𝑝𝑛 𝑥 = 𝑎0 + 𝑎1 𝑥 − 𝑥0 +
𝑎2 𝑥 − 𝑥0 𝑥 − 𝑥1 + ⋯ + 𝑎𝑛 𝑥 − 𝑥0 𝑥 − 𝑥1 … (𝑥 −
Esta última ecuación puede simplificarse aún más si se introduce el
operador lineal∆, conocido como operador lineal en diferencias hacia
delante definido sobre 𝑓 𝑥 como.
∆𝑓 𝑥 = 𝑓 𝑥 + ℎ − 𝑓(𝑥)
∆ ∆𝑓(𝑥) = ∆2 𝑓 𝑥 = ∆ 𝑓 𝑥 + ℎ − 𝑓 𝑥 = ∆𝑓 𝑥 + ℎ − ∆𝑓 𝑥 =
𝑓 𝑥 + ℎ + ℎ − 𝑓 𝑥 + ℎ − 𝑓 𝑥 + ℎ + 𝑓 𝑥 = 𝑓 𝑥 + 2ℎ − 2𝑓 (𝑥 +
Estas diferencias se conocen como diferencias finitas hacia delante.
Análogamente cabe definir 𝛻 como operador lineal de diferencias
hacia atrás; así, la primera diferencia hacia atrás se expresa como:
𝛻𝑓 𝑥 = 𝑓 𝑥 − 𝑓 𝑥 + ℎ
𝛻2𝑓 𝑥 = 𝛻 𝛻 𝑓 𝑥 =𝛻 𝑓 𝑥 −𝑓 𝑥+ℎ
𝛻 2 𝑓 𝑥 = 𝑓 𝑥 − 𝑓 𝑥 − ℎ − 𝑓 𝑥 − ℎ + 𝑓 𝑥 − 2ℎ
𝛻 2 𝑓 𝑥 = 𝑓 𝑥 − 2𝑓 𝑥 − ℎ + 𝑓 𝑥 − 2ℎ
De tal modo que las diferencias hacia atrás de orden superior se
expresan en términos generales como:
𝛻 𝑖 𝑓 𝑥 = 𝛻 𝛻 𝑖−1 𝑓 𝑥
∆𝑓 𝑥0 = 𝑓 𝑥1 − 𝑓 𝑥0 = ℎ𝑓 𝑥0 , 𝑥1
de manera que:
1
𝑓 𝑥0 , 𝑥1 = ∆𝑓 𝑥0
ℎ
Del mismo modo:
𝑓 𝑥2 −𝑓 𝑥1 𝑓 𝑥1 −𝑓 𝑥0
𝑥2 −𝑥1
− 𝑥1 𝑓 𝑥2 −2𝑓 𝑥1 +𝑓 𝑥0
𝑓 𝑥0 , 𝑥1 , 𝑥2 = =
𝑥2 −𝑥0 2ℎ2
por lo que:
1 2𝑓
𝑓 𝑥0 , 𝑥1 , 𝑥2 = ∆ 𝑥0
2ℎ2
En general:
1
𝑓 𝑥0 , 𝑥1 , … , 𝑥𝑛 = 𝑛 ∆𝑛 𝑓 𝑥0 (5.33)
𝑛!ℎ
De igual manera, las diferencias divididas en función de las
diferencias hacia atrás quedan:
1
𝑓 𝑥𝑛 , 𝑥𝑛−1 , … , 𝑥0 = 𝑛 ∆𝑛 𝑓 𝑥𝑛 (5.34)
𝑛!ℎ
Consecuentemente, al sustituir 𝑓 𝑥0 , 𝑥1 , … , 𝑥𝑖 , 0 ≤ 𝑖 ≤ 𝑛 en
términos de diferencias finitas, la ecuación 5.31 queda:
𝑠(𝑠−1) 2
𝑝𝑛 𝑥 = 𝑝𝑛 𝑥0 + 𝑠ℎ = 𝑓 𝑥0 + 𝑠∆ 𝑓 𝑥0 + ∆ 𝑓 𝑥0 +
2!
𝑠 𝑠−1 𝑠−2 𝑠 𝑠−1 𝑠−2 …(𝑠 𝑛−1 ) 𝑛
∆3 𝑓 𝑥0 + ⋯ + ∆ 𝑓 𝑥0 (5.35)
3! 𝑛!
Ejemplo 5.7
Puntos 0 1 2 3 4 5
T°F 50 60 70 80 90 100
Solución
0 50 24.94
∆𝑓 𝑥0 = 5.17
1 60 30.11 ∆2 𝑓 𝑥0 = 0.77
∆𝑓 𝑥1 = 5.94 ∆3 𝑓 𝑥0 = 0.08
∆𝑓 𝑥2 = 6.79 ∆3 𝑓 𝑥1 = 0.09
∆𝑓 𝑥3 = 7.73 ∆3 𝑓 𝑥2 = 0.06
4 90 50.57 ∆2 𝑓 𝑥3 = 1
∆𝑓 𝑥4 = 8.73
5 100 59.30
Observe que en esta información h= 10, el valor por interpolar es 64 y
que el valor de s se obtiene de la expresión 𝑥 = 𝑥0 + 𝑠ℎ; esto es:
𝑥 − 𝑥0 64 − 50
𝑠= = = 1.4
ℎ 10
𝑝𝑛 𝑥 = 𝑓 𝑥1 + 𝑠ℎ
𝑠(𝑠 − 1) 2
= 𝑓 𝑥1 + 𝑠∆𝑓 𝑥1 + ∆ 𝑓 𝑥0 + ⋯
2!
𝑠 𝑠 − 1 … (𝑠 𝑛 − 1 ) 𝑛
+ ∆ 𝑓 𝑥1 (5.36)
𝑛!
𝑠(𝑠 − 1) 2
𝑝2 𝑥 = 𝑓 𝑥0 + 𝑠∆ 𝑓 𝑥0 + ∆ 𝑓 𝑥0
2!
donde:
𝑥 − 𝑥0 64 − 50
𝑠= = = 1.4
ℎ 10
1.4 1.4 − 1
𝑝2 64 = 24.94 + 1.4 5.17 + 0.77 = 32.39
2!
Primer paso
Obtención del polinomio de Newton en diferencias divididas hacia
atrás de grado n apoyado en el punto 𝑥𝑛 .
𝑆𝑖 𝑥 = 𝑥0 , 𝑎0 = 𝑝2 𝑥𝑛 = 𝑓 𝑥𝑛
𝑝2 𝑥𝑛−1 − 𝑝2 𝑥𝑛
𝑆𝑖 𝑥 = 𝑥𝑛−1 , 𝑎1 = = 𝑓 𝑥𝑛 , 𝑥𝑛−1
𝑥𝑛−1 − 𝑥𝑛
𝑝2 𝑥𝑛
= 𝑓 𝑥𝑛 + 𝑥 − 𝑥𝑛 𝑓 𝑥𝑛 , 𝑥𝑛−1 + 𝑥 − 𝑥𝑛 𝑥 − 𝑥𝑛−1 𝑓 𝑥𝑛 , 𝑥𝑛−1 , 𝑥𝑛−2
𝑝2 𝑥𝑛
= 𝑎0 + 𝑎1 𝑥 − 𝑥𝑛 + 𝑎2 𝑥 − 𝑥𝑛 𝑥 − 𝑥𝑛−1 + ⋯
+ 𝑎𝑛 𝑥 − 𝑥𝑛 𝑥 − 𝑥𝑛−1 … 𝑥 − 𝑥1 (5.37)
𝑎0 = 𝑓 𝑥𝑛
𝑎1 = 𝑓 𝑥𝑛 , 𝑥𝑛−1
𝑎𝑛 = 𝑓 𝑥𝑛 , 𝑥𝑛−1 , 𝑥𝑛−2 , … , 𝑥0
Segundo paso
𝑥 − 𝑥𝑛 = ℎ
𝑥 − 𝑥𝑛−1 = 𝑥𝑛 − 𝑥𝑛−1 + 𝑠ℎ = ℎ 𝑠 + 1
𝑥 − 𝑥𝑛−2 = 𝑥𝑛 − 𝑥𝑛−2 + 𝑠ℎ = ℎ 𝑠 + 2
𝑥 − 𝑥0 = 𝑥𝑛 − 𝑥0 + 𝑠ℎ = ℎ 𝑠 + 𝑛
Ejemplo 5.8
Solución
0 50 24.94
∆𝑓 𝑥1 = 5.17
1 60 30.11 ∆2 𝑓 𝑥2 = 0.77
∆𝑓 𝑥2 = 5.94 ∆3 𝑓 𝑥3 = 0.08
∆𝑓 𝑥3 = 6.79 ∆3 𝑓 𝑥4 = 0.09
∆4 𝑓 𝑥5
3 80 42.84 ∆2 𝑓 𝑥4 = 0.94
= −0.03
∆𝑓 𝑥4 = 7.73 ∆3 𝑓 𝑥5 = 0.06
4 90 50.57 ∆2 𝑓 𝑥5 = 1
∆𝑓 𝑥5 = 8.73
5 100 59.30
Si se usa un polinomio de primer grado, se tiene de la ecuación 5.38.
donde:
𝑥 − 𝑥𝑛 98 − 100
𝑠= = = −0.2
ℎ 10
𝑝𝑛 𝑥𝑛−1 + 𝑠ℎ
𝑠 𝑠+1 2
= 𝑓 𝑥𝑛−1 + 𝑠𝛻𝑓 𝑥𝑛−1 + 𝛻 𝑓 𝑥𝑛−1 + ⋯
2!
𝑠 𝑠+1 … 𝑠+ 𝑛−1
+ 𝛻 𝑛 𝑓 𝑥𝑛−1 (5.39)
𝑛!
Ejemplo 5.9
Solución
𝑥 − 𝑥0 98 − 100
𝑠= = = −0.2
ℎ 10
−0.2 −0.2 + 1
𝑝2 98 = 59.3 + −0.2 8.73 1 = 57.63
2!
ESTIMACIÓN DE ERRORES
EN LA APROXIMACIÓN
Sea la función:
𝐟 𝐱 = 𝐟 𝐱 𝟎 + 𝐱 − 𝐱 𝟎 𝐟 𝐱 𝟎 𝐱 𝟏 + 𝐑 𝟏 𝐱 = 𝐩𝟏 𝐱 + 𝐑 𝟏 (𝐱)
Despejando, tenemos:
𝐑 𝟏 𝐱 = 𝐱 − 𝐱 𝟎 (𝐟 𝐱 𝟎 𝐱 − 𝐟 𝐱 𝟎 𝐱 𝟏 )
𝐑 𝟏 𝐱 = 𝐱 − 𝐱 𝟎 𝐱 − 𝐱 𝟏 𝐟 𝐱, 𝐱 𝟎 , 𝐱 𝟏
Si se tiene otro valor de f(x), sea f(x2) (y la segunda diferencia
f x, x0 x1 no varía significativamente en el intervalo donde están los
puntos x0, x1 y x2), entonces R1 x se aproxima de la siguiente
manera:
𝐑 𝟏 𝐱 = 𝐱 − 𝐱𝟎 𝐱 − 𝐱𝟏 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐
𝐟 𝐱 = 𝐟 𝐱𝟎 + 𝐱 − 𝐱𝟎 𝐟 𝐱𝟎 𝐱𝟏 + 𝐱 − 𝐱𝟎 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐
𝐟 𝐱 = 𝐩𝟐 𝐱 + 𝐑 𝟐 𝐱
= 𝐟 𝐱𝟎 + 𝐱 − 𝐱𝟎 𝐟 𝐱𝟎 , 𝐱𝟏 + 𝐱 − 𝐱𝟎 𝐱 − 𝐱𝟏 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐 + 𝐑 𝟐 𝐱
∴ 𝐑 𝟐 𝐱 = 𝐱 − 𝐱𝟎 𝐱 − 𝐱𝟏 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐
f 𝐱, 𝐱 𝟎 , 𝐱 𝟏 , 𝐱 𝟐 = 𝐟 𝐱 𝟎 , 𝐱 𝟏 , 𝐱 𝟐 , 𝐱 𝟑
𝐟 𝐱 = 𝐩𝐧 𝐱 + 𝐑 𝐧 (𝐱)
Y 𝐑 𝐧 𝐱 = 𝐱 − 𝐱 𝟎 𝐱 − 𝐱 𝟏 … 𝐱 − 𝐱 𝐧 𝐟 𝐱, 𝐱 𝟎 , 𝐱 𝟏 , … , 𝐱 𝐧 , o
𝐑 𝐧 𝐱 = ς𝐧𝐢=𝟎(𝐱 − 𝐱 𝐢 ) 𝐟 𝐱, 𝐱 𝟎 , 𝐱 𝟏 , … , 𝐱 𝐧
𝐟 𝐱 = 𝐩𝐧 𝐱 + 𝐑 𝐧 (𝐱)
Ejemplo:
Solución:
Al interpolar linealmente con los puntos (0) y (1) queda:
𝐩 𝐱 = 𝐟 𝐱𝟏 + 𝐱 − 𝐱𝟏 𝐟 𝐱𝟏 , 𝐱𝟐
𝐩𝟐 𝐱 = 𝐟 𝐱 𝟎 + 𝐱 − 𝐱 𝟎 𝐟 𝐱 𝟎 , 𝐱 𝟏 + 𝐱 − 𝐱 𝟎 𝐱 − 𝐱 𝟏 𝐟 𝐱 𝟎 , 𝐱 𝟏 , 𝐱 𝟐
𝐩𝟑 𝐱
= 𝐟 𝐱𝟎 + 𝐱 − 𝐱𝟎 𝐟 𝐱𝟎 , 𝐱𝟏 + 𝐱 − 𝐱𝟎 𝐱 − 𝐱𝟏 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐
+ 𝐱 − 𝐱𝟎 𝐱 − 𝐱𝟏 𝐱 − 𝐱𝟐 𝐟 𝐱𝟎 , 𝐱𝟏 , 𝐱𝟐 , 𝐱𝟑
ෑ(𝑥 − 𝑥𝑖 )
𝑖=0
Donde, si n es muy grande, los factores (𝑥 − 𝑥𝑖 ) , son
numerosos y, si su magnitud es mayor de 1, evidentemente
su inflación será aumentar el error 𝑅𝑛 (𝑥).
De donde:
En este punto cabe empezar a hablar del cálculo de los polinomios 𝑃𝑖 (𝑥) por
tanto, como paso siguiente se aproxima 𝑃𝑖 𝑥 , 𝑖 = 1,2, … , 𝑛 con diferencias
divididas así.
𝑃𝑖 𝑥 = 𝑓 𝑥𝑖 + 𝑓 𝑥𝑖 , 𝑥𝑖 𝑥 − 𝑥𝑖 + 𝑓 𝑥𝑖 , 𝑥𝑖 , 𝑥𝑖+1 𝑥 − 𝑥𝑖 2 +
𝑓[𝑥𝑖 , 𝑥𝑖 , 𝑥𝑖+1 , 𝑥+1 ] 𝑥 − 𝑥𝑖 2 (𝑥 − 𝑥𝑖+1 ) (5.49)
Como:
𝑓 𝑥𝑖 +∆𝑥 −𝑓(𝑥)
𝑓 𝑥𝑖 , 𝑥𝑖 = lim = 𝑓 ′ (𝑥𝑖 )
∆𝑖→0 ∆𝑥
Y al sustituir (𝑥 − 𝑥𝑖+1 ) con (𝑥 − 𝑥𝑖 ) + (𝑥 − 𝑥𝑖+1 ) y
agrupar se tiene:
𝑃𝑖 𝑥 = 𝑓 𝑥𝑖 + 𝑓 ′ 𝑥𝑖 𝑥 − 𝑥𝑖 + (𝑓 𝑥𝑖 , 𝑥𝑖 , 𝑥𝑖+1 −
Con
Y
𝑔3 ′′ 𝑎 = 𝑔3 ′′ 𝑏 = 0 (5.56)
′′ ′′
𝑃𝑖−1 (𝑥𝑖 ) = 𝑃𝑖 (𝑥𝑖 ) 𝑖 = 1,2, … , 𝑛 − 1 (5.57)
O