Numerical Solution of First-Order Ordinary Differential Equations
Numerical Solution of First-Order Ordinary Differential Equations
dx
f (t , x )
dt
Differential Equation Model
Graphical Model
dx
Direction field for the equation t x (1 x)
dt
h . f(t1, X1)
(t1, X1) h
dx
h . f(t0, x0) Change in x f (t , x)
dt
h dx f (t , x)dt
(t0, x0) x f (t , x) . h
t
t = h
Note: The numerical approximation solution of a differential equation is denoted by a CAPITAL letter X.
Example
Initial value of t.
xt
Given x(1) = 2 t X (h)
xt
1 2.0000 0.1500
1.1 2.1500 0.1374
t + t 1.2 2.2874 0.1271
(t=h) 1.3 2.4145 0.1183 x
1.4 2.5328 0.1109 2.1500
1.5 2.6437 0.1045 = 2.0000 + 0.1500
1.6 2.7482 0.0989
1.7 2.8471 0.0939
1.8 2.9410 0.0896
Initial value of x. 1.9 3.0306 0.0856
Given x(1) = 2 2 3.1162
t X X - 2t h.(x - 2t)
0 1.0000 1.0000 0.1000
t+h 0.1 1.1000 0.9000 0.0900
0.2 1.1900 0.7900 0.0790
0.3 1.2690
1.1000
= 1.0000 + 0.1000