Professional Documents
Culture Documents
From the start point x 0 to the end point x 0.5 , by one step, we need a step size
of h 0.5 .
- 55 -
Numerical Analysis / Civil Eng. / 3rd Class Prepared by: Dr. Ahmed Sagban Saadoon
d2y dy
y et , y(0) 1, (0) 0 .
dt 2 dt
- 55 -
Numerical Analysis / Civil Eng. / 3rd Class Prepared by: Dr. Ahmed Sagban Saadoon
(k1 ) 2 f 2 (0,1,0) 1 e 0 2 ,
0.1 0.1 0.1
(k 2 )1 f1 ((0 ), (1 0), (0 2)) f1 (0.05,1,0.1) 0.1,
2 2 2
0.1 0.1 0.1
(k 2 ) 2 f 2 ((0 ), (1 0), (0 2)) f 2 (0.05,1,0.1) 1 e 0.05 2.051271 ,
2 2 2
y0.1 1 (0.1)(0.1) 1.01 , and
z0.1 0 (0.1)(2.051271) 0.205127 . (Not required, representing the slope)
For the given ODE, using central finite differences approximations of O(h) 2 we get,
f 2f f
j 1 j 1
f
j
, substituting this derivative into the given ODE yields,
j 2
h
y 2y y t
j 1 j 1
yj e j ,
j
h2 0 0.1 0.2
t
y j 1 (2 h 2 ) y j y j 1 h 2 .e j .
At t j 0.1, (Note: from the first condition y0 y(0) 1)
- 55 -
Numerical Analysis / Civil Eng. / 3rd Class Prepared by: Dr. Ahmed Sagban Saadoon
3f 4f f
j 1 j 2
f , substituting into the 2nd condition yields:
j
j 2h
3y 4 y y
0 0.1 0.2
0 4 y0.1 y0.2 3 ……(2)
2h
Adding Eqs. (1) and (2) gives: 1.99 y0.1 2.011052 y0.1 1.010579 .
- 55 -