Professional Documents
Culture Documents
dy
f ( x, y , ) 0
dx
y ( x0 ) y0
y ( xi ) ?
(x0, x0+hn)
Donde
k1 h. f ( xi , y1 )
h
k2
k3 h. f xi , y1
2
2
h
k1
k 2 h. f xi , y1
2
2
k 4 h. f xi h, y1k3
Ejemplo
Resolver analtica y numricamente la ecuacin por el
de variables es:
1
2 x2
1
y (0)
2
Solucin numrica
Se toma un incremento h = -0,1 para poder retroceder
y0 1
f x , y 2x y
k1 h f x0 , y0 0.2
k1
h
k2 h f x0 , y0
0.154
2
2
k2
h
k3 h f x0 , y0
0.162
2
2
k4 h f x0 h , y0 k3 0.126
1
y1 y0 k1 2k2 2k3 k4 0.84
6
x1 1 0.1 0.9
y1 0.84
k1 h f x1 , y1 0.127
k1
h
k2 h f x1 , y1
0.103
2
2
k2
h
k3 h f x1 , y1
0.106
2
2
k4 h f x1 h , y1 k3 0.086
1
y2 y1 k1 2k2 2k3 k4 0.735
6
x2 x1 0.1 0.8
y2 0.735
k1 h f x2 , y2 0.087
k1
h
k2 h f x2 , y2
0.072
2
2
k2
h
k3 h f x2 , y2
0.073
2
2
k4 h f x2 h , y2 k3 0.061
1
y3 y2 k1 2k2 2k3 k4 0.662
6
Resumen de resultados
xn
yn
k1
k2
k3
k4
Runge
Kutta
1.0
1.0000
-0.2000
-0.1539
-0.1619
-0.1264
0.84033
0.84034
0.9
0.8403 -0.1271
-0.1026
-0.1058
-0.0863
0.73529
0.73529
0.8
0.7353 -0.0865
-0.0718
-0.0734
-0.0613
0.66225
0.66225
0.7
0.6622 -0.0614
-0.0519
-0.0526
-0.0446
0.60975
0.60976
0.6
0.6098 -0.0446
-0.0380
-0.0384
-0.0326
0.57142
0.57143
0.5
0.5714 -0.0327
-0.0277
-0.0280
-0.0236
0.54347
0.54348
0.4
0.5435 -0.0236
-0.0198
-0.0199
-0.0164
0.52356
0.52356
0.3
0.5236 -0.0164
-0.0133
-0.0134
-0.0104
0.51020
0.51020
0.2
0.5102 -0.0104
-0.0077
-0.0077
-0.0051
0.50251
0.50251
0.1
0.5025 -0.0051
-0.0025
-0.0025
0.0000
0.50000
0.50000
0.0
0.5000 0.0000
0.0025
0.0025
0.0051
0.50251
0.50000
y analtica
0,90
0,85
y analtica
0,80
Runge Kutta
0,75
0,70
0,65
0,60
0,55
0,50
0,45
0,40
0,0
0,2
0,4
0,6
0,8
1,0
Deber
Resolver analtica y numricamente el problema de valor inicial
con el mtodo de Runge Kutta
dy
2 xy
dx
y (1) 1
y (2) ?