Académique Documents
Professionnel Documents
Culture Documents
1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Part 7
Ordinary Differential Equations
Equations which are composed of an unknown
function and its derivatives are called differential
equations.
Differential equations play a fundamental role in
engineering because many physical phenomena are
best formulated mathematically in terms of their rate
of change.
dv
c
g v
dt
m
v- dependent variable
t- independent variable
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure PT7.2
5
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure PT7.5
6
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Runga-Kutta Methods
Chapter 25
This chapter is devoted to solving ordinary
differential equations of the form
dy
f ( x, y )
dx
Eulers Method
7
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.2
8
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
f ( xi , yi )
where f(xi,yi) is the differential equation evaluated at
xi and yi. This estimate can be substituted into the
equation:
yi 1 yi f ( xi , yi )h
Figure 25.3
10
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
f ( xi , yi ) 2
Ea
h
2!
Ea O ( h 2 )
Propagated truncation error
In conclusion,
the error can be reduced by reducing the step size
If the solution to the differential equation is linear, the
method will provide error free predictions as for a straight
line the 2nd derivative would be zero.
12
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.4
13
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Heuns Method/
One method to improve the estimate of the slope
involves the determination of two derivatives for the
interval:
At the initial point
At the end point
Predictor :
yi01 yi f ( xi , yi )h
f ( xi , yi ) f ( xi 1 , yi01 )
Corrector : yi 1 yi
h
2
15
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.9
16
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.10
17
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
yi 1 yi f ( xi 1/ 2 , yi 1/ 2 )h
18
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.12
19
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
a1k1 a2 k 2 an k n
Increment function
a' s constants
k1 f ( xi , yi )
k 2 f ( xi p1h, yi q11k1h) ps and qs are constants
k3 f ( xi p3h, yi q21k1h q22k 2 h)
yi 1 yi (a1k1 a2 k 2 )h
k1 f ( x i , yi )
k 2 f ( xi p1h, yi q11k1h)
21
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
22
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.14
24
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Systems of Equations
Many practical problems in engineering and science
require the solution of a system of simultaneous ordinary
differential equations rather than a single equation:
dy1
f1 ( x, y1 , y2 , , yn )
dx
dy2
f 2 ( x, y1 , y2 , , yn )
dx
dyn
f n ( x, y1 , y2 , , yn )
dx
25
Figure 25.20
26
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Step-Size Control/
The strategy is to increase the step size if the error is too small
and decrease it if the error is too large. Press et al. (1992) have
suggested the following criterion to accomplish this:
D new
hnew h present
D present
28
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.