y2 =
y1 + h k y1 = 0.82421875
k1 =
f(x1, y1)
= 2 y1 =
2 (0.82421875) = 1.6484375
k2 =
f( x1 + h/2 , y1 + hk1 / 2 ) =
2[(0.82421875 + 0.25((0.82421875/2)]
= 2.060546875
k3 =
f( x1 + h/2 , y1 + hk2 / 2 ) =
2[(0.82421875 + 0.25(2.060546875/2)]
= 2.163574219
k4 =
f( x2 , y1 + hk3 ) = 2[(0.82421875 + 0.25(2.163574219)] =
2.73022469
k
= (1/6) [ k1 +
2k2 + 2k3 +
k4 ] yexact
= 2 e2(0.5) =
1.359140914
So k
= [1.6484375+ 2(2.060546875)
+ 2(2.163574219) + 2.73022469]/6
= 2.137817383
y2 =
y1 + h k
= 0.82421875
+ 0.25 [2.137817383 ] =
1.358673096 at x
= 0.5
Click here to return to
the discussion of approximate methods for first order d.e.'s.
|