Академический Документы
Профессиональный Документы
Культура Документы
Ecuaciones Diferenciales
Ordinarias
Dr. Samir Al-Amer
Term 053
Traducido por Rosa Garrido J
SE301:Numerical Methods
Topic 8
Solution of ODE
2
d y ( x)
4 y ( x) 0
dt 2
y (0) a
y (0) b
y(0)
y(h)
y (a h) y (a) h f ( y (a), a)
y (1) 4
y (1.01) 4 0.01(1 (1) 2 ) 3.98
y (1.02) 3.98 0.01 1 1.01 3.9598
2
y (1.03) 3.9598 0.011 1.02 3.9394 2
2
Error Local de Truncación O(h )
Error Global de Truncación O(h )
SE301_Topic 8 (c)Al-Amer 2006 16
Método del Predictor-Corrector de Heun
Problema Máetodo de Heum
y ( x) f ( x, y ) y 0 y ( x0 )
y ( x0 ) y 0 Predictor : y ik1 y i h f ( xi , y i )
Corrector : y k 1
i 1 yi
h
2
f ( xi , y i ) f ( xi 1 , y ik1 )
y i 1 y i h f ( x 1 ,y 1 )
i i
2 2
Aproximación Error
Define
i
d
i
i d f ( x)
h f ( x) h f ( x) h
(i ) i
dx
i
dx
La expansión de la serie de Taylor de f(x)
n 1 i n
1 d 1 d
f ( x h) h f ( x ) h f ( x )
i 0 i! dx n! dx
x esta entre x y x h
SE301_Topic 8 (c)Al-Amer 2006 23
Definiciones
i i
f
h f ( x , y ) h i
x x i
0
h k f ( x, y ) f ( x, y )
x y
1
f ( x, y) f ( x, y )
h k f ( x, y ) h k
x y x y
2
2
f ( x , y ) 2
f ( x , y ) 2
f ( x, y)
h k f ( x, y ) h2 2 h k k 2
x y x 2 xy y 2
x x+h
SE301_Topic 8 (c)Al-Amer 2006 25
Expansión de la Serie de Taylor
f(x, y) ( x 1)( x y 2) 2
h2 h3
x (t h) x (t ) hx ' (t ) x ' ' (t ) x ' ' ' (t ) ...
2 6
x (t h) x (t ) w1h f (t , x ) w 2 hf (t h, x h f (t , x ))
2
1
f (t h, x h f ) f h f t h f x h h f (t , x )
2 t x
x (t h) x (t ) w1 w 2 h f (t , x ) w 2 h2 f t w 2 h2 f f x O (h3 )
SE301_Topic 8 (c)Al-Amer 2006 28
Método de Runge-Kutta
h2 h3
x (t h) x (t ) hx ' (t ) x ' ' (t ) x ' ' ' (t ) ...
2 6
x (t h) x (t ) w1 w 2 h f (t , x ) w 2 h2 f t w 2 h2 f f x O ( h3 )
w1 w2 1, w2 0.5, w2 0.5
Una posible solución
w1 0.5, w2 0.5, 1, 1
K1 h f (t , x )
K 2 h f (t h, x K1 )
x (t h) x (t ) K1 K 2
1
2
x (t h) x (t ) F1 F2
h
2
w1 w2 1, w2 0.5, w2 0.5
otra solución
Escoja cualquier - número no cero
1 1
, w1 1 , w2
2 2
Fórumulas de Segundo Orden (seleccion ar 0)
K 1 h f (t , x)
K 2 h f (t h, x K 1 )
1 1
x(t h) x(t ) 1 F1 F2
2 2
SE301_Topic 8 (c)Al-Amer 2006 32
Método de Runge Kutta de orden 2
Ejemplo
STEP 1 :
K1 h f (t , x ) 0.01(1 x 2 t 3 ) 0.18
K 2 h f (t h, x K1 ) 0.01(1 ( x 0.18) 2 (t .01)3 ) 0.1692
STEP 2
K1 h f (t , x) 0.01(1 x 2 t 3 ) 0.1666
K 2 h f (t h, x K1 ) 0.01(1 ( x 0.1666) 2 (t .01)3 ) 0.1545
K1 h f (t , x )
1 1
K 2 h f (t h, x K1 )
2 2
1 1
K 3 h f (t h, x K 2 )
2 2
K 4 h f (t h, x K 3 )
x (t h) x (t ) K1 2 K 2 2 K 3 K 4
1
6
SE301_Topic 8 (c)Al-Amer 2006 36
Ejemplo
Runge Kutta de cuarto orden
dy
1 y x 2
dx
y (0) 0.5
h 0.2
Calcule y (0.2) e y (0.4)
SE301_Topic 8 (c)Al-Amer 2006 37
Ejemplo
Método de Runge-Kutta de Cuarto Orden
Iteración 1 de RK4 ( x 0, y 0.5)
K 1 h f ( x, y ) 0.3000
1 1
K 2 h f ( x h, y K 1 ) 0.3280
2 2
1 1
K 3 h f ( x h, y K 2 ) 0.3308
2 2
K 4 h f ( x h, y K 3 ) 0.3482
y ( x h) y ( x) K 1 2 K 2 2 K 3 K 4 0.8276
1
6
SE301_Topic 8 (c)Al-Amer 2006 38
EDO de mayor Orden
High order EDO
Systems of High order EDO
Procedure
Examples
X (t ) F (t , X )
z1 z2 4
z 1 3z 6 z , Z (0) 1
2 2 1
SE301_Topic 8 (c)Al-Amer 2006 43
Ejemplo of conversión de una EDO de alto
orden en un sist. de primer orden de EDOs
Convertir
Un grado menos
x 2 x 7 x 8 x 0 que la mas grande
x(0) 9, x (0) 1; x(0) 4 derivada
1
z z 1
Z F (Z ) 2
, Z (0)
z2 2 2 z 2 8 z1 2