Professional Documents
Culture Documents
EQUATIONS
Euler’s Method
-To approximate the solution of the initial value problem
y’ = f( t , y ) with y(a) = yo over [ a , b ] by computing
h = t 1 - t0 , k =0 , 1, 2, …..( n-1)
EXAMPLE:
Use Euler’s method to solve the IVP
t− y
y'= on [ 0 , 3 ] with y ( 0 )=1
2
t 1− y 1
y 2= y 1+ h (
2 )
y 2=0.875+ ( 12 )( 0.25−0.875
2 )=0.796875
t 2− y 2
y 3= y 2+h (
2 )
y 3=0.796875+ ( 12 )( 0.5−0.796875
2 )=0.759766
y 12=1.440573+ ( 12 )( 2.75−1.440573
2 )=1.60425 2
Runge-Kutta Method ( of order 4)
- RK4
where: f1 = f ( tk , yk )
f3 = f ( tk + h/2 , yk + h/2 f2 )
f4 = f ( tk + h , yk + h f3 )