Professional Documents
Culture Documents
NM Ch6
NM Ch6
NM Ch6
Numerical Methods
6.1 Introduction
6.2 Initial value problem (Cauchy problem)
We conside the simplest case of a single, first-order equation of the general type
dy / dx = f(x,y), with initial condition y(0) = A
y ' f ( x, y )
......................(*)
y ( x0 ) y0
6.2.1 Method of successive approximation (Picard or iterative method)
Solving the equation (*) is to do a formal integration of this equation. This yields
x x x
dy f (t, y)dt
x0 x0
y(x ) y(x 0 ) f ( t , y )dt
x0
or: y ( x) y0 f (t , y (t ))dt.........(**)
x0 4
Faculty
Faculty
Faculty of ofofwater
Water
Faculty waterrecouces
recouces
Resources
of Project engineering
engineering
Engineering
Management LOGO
BMCSKTTL
TS. KHOA
PhD. VanLê VănLE
Thao ThảoM.S. Nguyen Van A
f
Asumption that f(x,y) is continue function and K
y
x
y1 y 0 f ( t , y 0 )dt
x0
x
Similarly: y 2 y 0 f ( t , y1 )dt
x0
Then we can systematically generalize this process by defining the following
successive approximation scheme:
x
y n y 0 f ( t , y n1 )dt , n = 1,2,3,…
x0
x
M (KC) n
Estimated error: y n ( x ) y( x ) where : f ( x, y) M
K .n!
y(ci )
y(x) y(xi ) y(x i ).(x - x i ) ( x xi ) 2
2!
where: ci = xi + (x - xi), 0 < <1
y(ci )
There fore: y(x i 1 ) y(xi ) h.f(xi , y(x i )) h . 2
2!
If the step size h is sufficiently small, the last term may be ignore
Estimated error
f
If: L and y '' K where L, K are constant
y
Then:
ei ui y(x i ) M ( e0 h)
K
M e L ( x i x 0 )
, 7
2
Faculty
Faculty
Faculty of ofofwater
Water
Faculty waterrecouces
recouces
Resources
of Project engineering
engineering
Engineering
Management LOGO
BMCSKTTL
TS. KHOA
PhD. VanLê VănLE
Thao ThảoM.S. Nguyen Van A
1
ui +1 = ui + (k 1 2k 2 2k 3 k 4 )
6
where
k 1 h.f (x i , ui )
k h.f (x 0.5h, u 0.5k )
2 i i 1
k 3 h.f (x i 0.5h, ui 0.5k 2 )
k 4 h.f (x i h, ui k 3 )
Y’ = f(x , y)
by any method (Exp: Runghe-Kutta methods), we find out continuously three roots
of this ODE :
Based on (x0,Y0), (x1,Y1), (x2,Y2), (x3,Y3), we can evaluate q0, q1, q2, q3.
xo yo qo
yo q0
x1 y1 q1 2 q0
y1 q1
3 q0
x2 y2 q2 2 q1 -------
-
y2 q2 --------
x3 y3 q3 -------
Knowings the term in the diagoanal, we can fint out y3 by Adam formulas:
1 5 2 3 3
y 3 q3 .q2 . q1 . .q0
2 12 8
Continuing, we calculate:
Y5 = Y4 + Y4
and so on,… 11
Faculty
Faculty
Faculty of ofofwater
Water
Faculty waterrecouces
recouces
Resources
of Project engineering
engineering
Engineering
Management LOGO
BMCSKTTL
TS. KHOA
PhD. VanLê VănLE
Thao ThảoM.S. Nguyen Van A
PROBLEMS
1. Determine the roots of the following simultaneous linear eq. using the Gauss-
Seidel iteration method:
12
Faculty
Faculty
Faculty of ofofwater
Water
Faculty waterrecouces
recouces
Resources
of Project engineering
engineering
Engineering
Management LOGO
BMCSKTTL
TS. KHOA
PhD. VanLê VănLE
Thao ThảoM.S. Nguyen Van A
END of CHAPTER 6
13