Documentos de Académico
Documentos de Profesional
Documentos de Cultura
10.1 - Diferenciación Numérica - Presentación v.20
10.1 - Diferenciación Numérica - Presentación v.20
13)
Diferenciación numérica
𝑁 = 3, 𝑂𝐷 = 1 ⇒ 𝑂𝑃 = 2
2 3
𝑓´´ 𝑥1 𝑥0 − 𝑥1 𝑓´´´ 𝑥1 𝑥0 − 𝑥1
2• Desarrollo Taylor 𝑓 𝑥0 = 𝑓 𝑥1 + 𝑓´ 𝑥1 𝑥0 − 𝑥1 + + + 𝑂(ℎ4 )
2! 3!
2 3
𝑓´´ 𝑥1 𝑥2 − 𝑥1 𝑓´´´ 𝑥1 𝑥2 − 𝑥1
𝑓 𝑥2 = 𝑓 𝑥1 + 𝑓´ 𝑥1 𝑥2 − 𝑥1 + + + 𝑂(ℎ4 )
2! 3!
𝑁 = 3, 𝑂𝐷 = 1 ⇒ 𝑂𝑃 = 2
2 3
𝑓´´ 𝑥1 −ℎ 𝑓´´´ 𝑥1 −ℎ
2• Desarrollo Taylor 𝑓 𝑥0 = 𝑓 𝑥1 + 𝑓´ 𝑥1 −ℎ + + + 𝑂(ℎ4 ) 𝑥0 − 𝑥1 = −ℎ
2! 3!
𝑓´´ 𝑥1 ℎ2 𝑓´´´ 𝑥1 ℎ3 𝑥2 − 𝑥1 = ℎ
𝑓 𝑥2 = 𝑓 𝑥1 + 𝑓´ 𝑥1 ℎ+ + + 𝑂(ℎ4 )
2! 3!
3• Reemplazo en (1)
2 3
𝑓´´ 𝑥1 −ℎ 𝑓´´´ 𝑥1 −ℎ 4
𝑓´´ 𝑥1 ℎ2 𝑓´´´ 𝑥1 ℎ3
𝑓´ 𝑥1 = 𝑎 𝑓 𝑥1 + 𝑓´ 𝑥1 −ℎ + + + 𝑂(ℎ ) + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥1 + 𝑓´ 𝑥1 ℎ+ + + 𝑂(ℎ4 )
2! 3! 2! 3!
06/12/2020 Tarela - Ezcurra - Poltarak - Hirschmann - Alderete - Diaz 4
Diferenciación numérica
2 3
𝑓´´ 𝑥1 −ℎ 𝑓´´´ 𝑥1 −ℎ 4
𝑓´´ 𝑥1 ℎ2 𝑓´´´ 𝑥1 ℎ3
𝑓´ 𝑥1 = 𝑎 𝑓 𝑥1 + 𝑓´ 𝑥1 −ℎ + + + 𝑂(ℎ ) + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥1 + 𝑓´ 𝑥1 ℎ+ + + 𝑂(ℎ4 )
2! 3! 2! 3!
ℎ2 𝑎 ℎ2 𝑐 −ℎ3 𝑎 ℎ3 𝑐
𝑓´ 𝑥1 = 𝑎 + 𝑏 + 𝑐 𝑓 𝑥1 + −ℎ𝑎 + ℎ𝑐 𝑓´ 𝑥1 + + 𝑓´´ 𝑥1 + + 𝑓´´´ 𝑥1 + 𝑂(ℎ4 )
2 2 6 6
0 1
0 Error trunc.
𝑎+𝑏+𝑐 =0 1 1 1 𝑎 0 −1 1
𝑎= ; 𝑏=0 ; 𝑐=
2ℎ 2ℎ
−ℎ𝑎 + ℎ𝑐 = 1 -ℎ 0 ℎ 𝑏 = 1
ℎ2 𝑎 ℎ2 𝑐 ℎ2 0 ℎ2 𝑐 0
+ =0 2 2
2 2
−1 1 𝑓 𝑥2 − 𝑓(𝑥0)
⇒ 𝑓´ 𝑥1 ≈ 𝑓 𝑥𝑜 + 0 𝑓 𝑥1 + 𝑓(𝑥2) ⇒ 𝑓´ 𝑥1 ≈ Aproximación de la f’(x1), con 3 puntos
2ℎ 2ℎ 2ℎ
Análisis de 𝑒𝑇
ℎ2 𝑎 ℎ2 𝑐 −ℎ3 𝑎 ℎ3 𝑐
𝑓´ 𝑥1 = 𝑎 + 𝑏 + 𝑐 𝑓 𝑥1 + −ℎ𝑎 + ℎ𝑐 𝑓´ 𝑥1 + + 𝑓´´ 𝑥1 + + 𝑓´´´ 𝑥1 + 𝑂(ℎ4 )
2 2 6 6
Error trunc.
−ℎ3 𝑎 ℎ3 𝑐 −1 1
𝑒𝑇 ≤ + máx 𝑓´´´ 𝑥 𝑐𝑜𝑛 𝑥0 ≤ x ≤ 𝑥2 𝑎= ; 𝑏=0 ; 𝑐=
6 6 2ℎ 2ℎ
ℎ2 ℎ2
𝑒𝑇 ≤ + máx 𝑓´´´ 𝑥
12 12
ℎ2
𝑒𝑇 ≤ máx 𝑓´´´ 𝑥 Cota de 𝒆𝑻 .
6
Esquema de orden 2
06/12/2020 Tarela - Ezcurra - Poltarak - Hirschmann - Alderete - Diaz 6
Diferenciación numérica
Eje 2. Estimar el valor de f´(1,000) utilizando la siguiente tabla de valores para función sen(x): x f(x)
0,920 0,79560
1,000 0,84147
N =2 ⇒ OP=N - OD
OD=1 OP= 1
2
2• Desarrollo Taylor 𝑓´´ 𝑥1 −ℎ1
𝑓 𝑥0 = 𝑓 𝑥1 + 𝑓´ 𝑥1 −ℎ1 + + 𝑂(ℎ1 3 )
2!
2
𝑓´´ 𝑥1 −ℎ1
3• Reemplazo en (1) 𝑓´ 𝑥1 = 𝑎 𝑓 𝑥1 + 𝑓´ 𝑥1 −ℎ1 + + 𝑂(ℎ1 3 ) + 𝑏 𝑓 𝑥1
2!
ℎ1 2 𝑎
𝑓´ 𝑥1 = 𝑎 + 𝑏 𝑓 𝑥1 + −ℎ1 𝑎 𝑓´ 𝑥1 + 𝑓´´ 𝑥1 + 𝑂(ℎ1 3 )
2
0 1
Error de trunc.
06/12/2020 Tarela - Ezcurra - Poltarak - Hirschmann - Alderete - Diaz 7
Diferenciación numérica
Eje 2. Estimar el valor de f´(1,000) utilizando la siguiente tabla de valores para función sen(x): x f(x)
0,920 0,79560
1,000 0,84147
−1
𝑎+𝑏 =0 ⇒ 𝑎=
ℎ1
−ℎ1 𝑎 = 1
1
𝑏=
ℎ1
⇒ 𝑓´ 𝑥1 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1
−1 1
𝑓´ 𝑥1 ≈ 𝑓 𝑥0 + 𝑓 𝑥1
ℎ1 ℎ1
1
𝑓´ 1,000 ≈ [−0,79560 + 0,84147]
0,08
𝑓´ 1,000 ≈ 0,57338
Error de trunc.
ℎ1 2 𝑎
𝑒𝑇 ≤ máx 𝑓´´ 𝑥 𝑐𝑜𝑛 0,920 ≤ x ≤ 1,000 Cota del 𝒆𝑻
2
ℎ1
𝑒𝑇 ≤ −sen 1 −
2
1
𝑓´ 𝑥1 ≈ 𝑓 𝑥1 − 𝑓 𝑥0
ℎ2
1
𝑓´ 𝑥1 ≈ 0,84147 − 0,81342
0,05
𝑓´ 1,000 ≈ 0,56100
𝑒𝑇 ≤ 0,021 ≈ 0,03
𝑓´ 𝑥1 = co s( 1,000) = 0,54030
¿Cómo podría mejorar el resultado?
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2
2 3
𝑓´´ 𝑥2 𝑥0 − 𝑥2 𝑓´´´ 𝑥2 𝑥0 − 𝑥2
𝑓 𝑥0 = 𝑓 𝑥2 + 𝑓´ 𝑥2 𝑥0 − 𝑥2 + + + 𝑂(ℎ1 4 )
2! 3!
Desarrollo Taylor
2 3
𝑓´´ 𝑥2 𝑥1 − 𝑥2 𝑓´´´ 𝑥2 𝑥1 − 𝑥2
𝑓 𝑥1 = 𝑓 𝑥2 + 𝑓´ 𝑥2 𝑥1 − 𝑥2 + + + 𝑂(ℎ2 4 )
2! 3!
2 3
𝑓´´ 𝑥2 −ℎ1 𝑓´´´ 𝑥2 −ℎ1
𝑓 𝑥0 = 𝑓 𝑥2 + 𝑓´ 𝑥2 −ℎ1 + + + 𝑂(ℎ1 4 )
2! 3!
2 3
𝑓´´ 𝑥2 −ℎ2 𝑓´´´ 𝑥2 −ℎ2
𝑓 𝑥1 = 𝑓 𝑥2 + 𝑓´ 𝑥2 −ℎ2 + + + 𝑂(ℎ2 4 )
2! 3!
06/12/2020 Tarela - Ezcurra - Poltarak - Hirschmann - Alderete - Diaz 12
Diferenciación numérica
Eje 2. Estimar el valor de f´(1,000) utilizando la siguiente tabla de valores para función sen(x) y un x f(x)
esquema de orden 2: 0,920 0,79560
0,950 0,81342
1,000 0,84147
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2
ℎ1 2 𝑎 ℎ2 2 𝑏 −ℎ1 3 𝑎 ℎ2 3 𝑏
𝑓´ 𝑥2 = 𝑓 𝑥2 𝑎 + 𝑏 + 𝑐 + 𝑓´ 𝑥2 −ℎ1 𝑎 − ℎ2 𝑏 + 𝑓´´ 𝑥2 + + 𝑓´´´ 𝑥2 − + 𝑂(ℎ1 4 ) + 𝑂(ℎ2 4 )
2 2 6 6
0 1 0 Error de trunc.
𝑎+𝑏+𝑐 =0 𝑎 = 20,833
⇒ −ℎ1 𝑎 − ℎ2 𝑏 = 1 ⇒ 𝑏 = −53,333
ℎ1 2 𝑎 ℎ2 2 𝑏
+ =0 c = 32,500
2 2
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2 1,000 0,84147
𝑓´ 1,000 ≈ 0,54038
Error de trunc.
−ℎ1 3 𝑎 ℎ2 3 𝑏
𝑒𝑇 ≤ má x | 𝑓´´´ 𝑥 | − 𝑐𝑜𝑛 0,920 ≤ x ≤ 1,000
6 6
𝑒𝑇 ≤ 0,000403 ≈ 0,0005
𝑓´ 𝑥1 = co s( 1,000) = 0,54030
0,57338 − 0,56100
𝑓´𝑅 (1,000) = 0,57338 + 1
0,05
−1
0,08
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2
Si f(x)=1 → f´(x)=0 → 𝑓´ 𝑥2 = 0 = 𝑎 1 + 𝑏 1 + 𝑐 1
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2
Si f(x)=1 𝑓´(𝑥2) = 0 = 𝑎 + 𝑏 + 𝑐
1 1 1 0
Si f(x)=(x-x2) 𝑓´ 𝑥2 = 1 = 𝑎 −ℎ1 + 𝑏 −ℎ2
-h1 -h2 0 1
-h1² -h2² 0 0
Si f(x)=(x-x2) 2 𝑓´ 𝑥2 = 0 = 𝑎 (−ℎ1)2 + 𝑏 (−ℎ2)2
𝑎 = 20,833 ; 𝑏 = −53,333 ; 𝑐 = 32,500
𝑓´ 𝑥2 ≈ 𝑎 𝑓 𝑥0 + 𝑏 𝑓 𝑥1 + 𝑐 𝑓 𝑥2
𝑓´ 𝑥2 ≈ 0,54038
N=3
1 3 1 1 1 1 3
𝑓´ 𝑥1 ≈ − 𝑓 𝑥0 + 2𝑓 𝑥1 − 𝑓 𝑥2 𝑓´ 𝑥1 ≈ [−𝑓 𝑥0 + 𝑓 𝑥2 ] 𝑓´ 𝑥1 ≈ 𝑓 𝑥0 − 2𝑓 𝑥1 + 𝑓 𝑥2
ℎ 2 2 2ℎ ℎ 2 2
?
N=2
MUCHAS GRACIAS!
06/12/2020 Tarela - Ezcurra - Poltarak - Hirschmann - Alderete - Diaz 23