Professional Documents
Culture Documents
Differential Equations
Differential Equation: An equation involving the derivatives or
differentials of the dependent variable
e.g.
2T 2T 2T 1 T
Unsteady state heat conduction
x 2 y 2 z 2 t In a 3D medium
1
d 2 y dy diy
and y (i )
x2 2 y sin( x) 2nd order ODE, Linear dt i
dx 2 dx If not in this form then it is NON-Linear
Also:
d3y d2y dy If g(t) = 0 == homogeneous
3
a 2 by dCos( x) 3rd order ODE, Non-Linear
dx dx dx If g(t) ≠0 == non-homogeneous
1
CHE 374 Module # 6; Part 1 IVP, Euler’s , Midpoint and Heun’s Methods
y (a) Auxiliaryconditions.
1 1 1
y (t h) y (t ) y(t )h y(t )h 2 y(t ) h3 ... y ( m ) (t )h m
2! 3! n!
Predicts y at (t+h) from the information available
yi 1 yi hf (ti , yi ) O ( h)
The last kept term in the series determines the order
1
Truncation error: e y ( m1) ( )h m 1 t t h
m 1!
The first derivative provides a
y ( m) (t h) y ( m ) (t )
Using finite difference approximation y ( m1) ( )
h direct estimate of the slope at t i
(forward difference): m
h
e y ( m) (t h) y ( m ) (t )
We obtain a more useable form m 1!
2
CHE 374 Module # 6; Part 1 IVP, Euler’s , Midpoint and Heun’s Methods
h h
t t
i t n
i1
t n to
h i 0,1, 2,... n interval [t0 , t n ]
n
3
CHE 374 Module # 6; Part 1 IVP, Euler’s , Midpoint and Heun’s Methods
yi 1 yi hf (tm , ym )
1
tm ti h
2
h
ym f (ti , yi )
2
h
yi 1 yi f (ti , yi ) f (ti 1 , yi 1 )
2