Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
y ( x1 ) = y 0 + y y 0 + f ( x0 , y 0 )x = y1 Una vez que y1 ha sido obtenida como la aproximacin a y ( x1 ) , el mismo procedimiento puede repetirse en ( x1 , y1 ) para obtener y ( x 2 ) = y ( x1 ) + y y1 + f (x1 , y1 )x = y 2 ; y as sucesivamente hasta donde se necesite. Este mtodo se conoce con el nombre de Mtodo de Euler
Ahora bien, habiendo obtenido y1 como una primera aproximacin a y ( x1 ) por el mtodo de Euler, podemos usar ahora la ecuacin diferencial para calcular y en el nuevo punto P1 : ( x1 , y1 ) y usar entonces el promedio de las derivadas en los puntos P0 : ( x0 , y 0 ) y P1 : ( x1 , y1 ) para obtener una mejor aproximacin de y , y por tanto de y ( x1 ) antes de calcular la siguiente aproximacin y ( x 2 ) . Este mtodo nos da el 1 valor y [ y ( x0 ) + y ( x1 )]x , y la estimacin mejorada del siguiente punto es 2 entonces: y 0 + y y 0 +
1 [ f (x0 , y0 ) + f (x1 , y1 )]x = ( y1 )2 . Este proceso se conoce 2 con el nombre de Mtodo Modificado de Euler
Otra posibilidad adicional, despus de haber obtenido y1 como una primera aproximacin a y ( x1 ) por el mtodo de Euler, consiste en reaproximar y y y ( x1 ) usando la derivada en el punto medio de P0 : ( x0 , y 0 ) y P1 : ( x1 , y1 ) en lugar de usar el promedio de las derivadas, esto es en el punto:
Dos casos especiales del Mtodo de Runge-Kutta de Tercer Orden vale la pena anotar. Para listarlos usaremos la notacin convencional: x = h ; (y )1 = k1 ; (y )2 = k 2 ; (y )3 = k 3
a=
CASO 1:
1 3 ; b=0 ; c= ; 4 4 1 y (y )4 = (k1 + 3k 3 ) 4 k1 = f ( x0 , y 0 )h 1 1 k 2 = f x0 + h, y 0 + k1 h 3 3 2 2 k 3 = f x0 + h, y 0 + k 2 h 3 3
p=
1 2 ; q=r= 3 3
a=
CASO 2:
2 2 k 2 = f x0 + h, y 0 + k1 h 3 3 2 2 k 3 = f x0 + h, y 0 + k 2 h 3 3
La discusin anterior puede extenderse sin dificultad, (excepto los detalles), para llegar a procedimientos de solucin en los cuales el error es del orden de h 5 = (x )5 En particular los dos conjuntos de frmulas siguientes son bastante tiles:
y (y )5 =
1 (k1 + 2k 2 + 2k 3 + k 4 ) 6 k1 = f ( x0 , y 0 )h 1 1 k 2 = f x0 + h, y 0 + k1 h 2 2 1 1 k 3 = f x0 + h, y 0 + k 2 h 2 2 k 4 = f ( x0 + h, y 0 + k 3 )h
CASO 3:
1 (k1 + 3k 2 + 3k 3 + k 4 ) 8 k1 = f ( x0 , y 0 )h y (y )5 =
CASO 4:
1 1 k 2 = f x0 + h, y 0 + k1 h 3 3 2 1 k 3 = f x0 + h, y 0 k1 + k 2 h 3 3 k 4 = f ( x0 + h, y 0 + k1 k 2 + k 3 )h
Ejemplo de solucin de una Ecuacin Diferencial de Primer Orden por el Mtodo de Runge-Kutta: y'=2xy n 0 1 2 3 4 5 6 7 8 9 10 Xn 1.00 1.10 1.20 1.30 1.40 1.50 1.60 1.70 1.80 1.90 2.00 Yn 1.0000 1.2337 1.5527 1.9937 2.6116 3.4902 4.7586 6.6188 9.3923 13.5969 20.0813 k1 0.20000 0.27141 0.37265 0.51836 0.73126 1.04706 1.52274 2.25040 3.38121 5.16682 8.03251 k2 k3 0.23100 0.23426 0.31496 0.31997 0.43475 0.44252 0.60827 0.62041 0.86341 0.88257 1.24426 1.27483 1.82157 1.87088 2.71041 2.79091 4.10066 4.23375 6.31032 6.53331 9.87998 10.25872 k4 kprom 0.27154 0.23367 0.37287 0.31902 0.51876 0.44099 0.73195 0.61795 1.04826 0.87858 1.52481 1.26834 2.25401 1.86028 3.38751 2.77342 5.17788 4.20465 8.05208 6.48436 12.74279 ########
k1 = hf ( x n , y n ) k h k 2 = hf x n + , y n + 1 2 2 k prom =
k2
k h k 3 = hf x n + , y n + 2 2 2 k 4 = hf ( x n + h, y n + k 3 )
1 (k1 + 2k 2 + 2k 3 + k 4 ) 6
k4
x n +1 = x n + h
y n +1 = y n + k prom
k3
h = 1.0500 2 k y1 + 2 = 1.1155 2 f = 2.34255 k 3 = 0.234255 x1 + h = 1.1500 2 k y 2 + 2 = 1.3911 2 f = 3.199716 k 3 = 0.319971 x2 + h = 1.2500 2 k y 3 + 2 = 1.7701 2 f = 4.42519 k 3 = 0.44252 x3 +
k prom
x1 = 1.0000
1
x1 = 1.0000 y1 = 1.0000
h = 1.0500 2 k y1 + 1 = 1.1000 2 f = 2.3100 k 2 = 0.2310 x1 + h = 1.1500 2 k y 2 + 1 = 1.3694 2 f = 3.14962 k 2 = 0.314962 x2 + h = 1.2500 2 k y 3 + 1 = 1.7390 2 f = 4.34756 k 2 = 0.434756 x3 +
x 2 = 1.1000
2
x 2 = 1.1000 y 2 = 1.2337
x3 = 1.2000
3
x3 = 1.2000
y 3 = 1.5527
x 4 = 1.3000
y 4 = 1.9937