Chapter 5 ODE Ashu
Chapter 5 ODE Ashu
Chapter 5 ODE Ashu
The single step methods for the solution of the IVP in (1):
1. Taylor series method
The Taylor series method is the fundamental numerical method for the solution of the IVP given
in (1).
Expanding ( ) in Taylor series about a point ,
( ) ( )( ( )
( ) ( ) ( )( ) ( ) ) …….. (2)
We denote the numerical solution and the exact solution at by and ( ), respectively.
Now, consider the interval [ ]. Substituting the length of the interval and
in (2), we obtain
( ) ( ) ( ) ( ) ( )( )
1
Examples: Solve the following IVPs by using Taylor series method of 1st, 2nd and 3rd order.
a. ( ) in with .
b. ( ), ( ) in with .
c. , ( ) at and .
Exercise:
Take h = 0.1.
ii. Use the fourth order Taylor series method with a single integration step to determine
( ) given that ( ) .
2. Euler’s Method
Euler’s explicit method (also called the forward Euler method) is a single-step, explicit method
for solving a first-order ordinary differential equation.
Let the differential equation is given by:
( ) with ( ) ( )
( ) ( ) ( )
( ) ( ) ( )
2
and .
Example: Using Modified Euler’s method solves the following IVPs correct to 2 decimal places.
i. ( ) and at .
4. Runge-Kutta Methods
Euler’s method is less efficient in practical problems since it requires to be small for obtaining
reasonable accuracy. The Runge-Kutta methods are designed to give greater accuracy and they
possess the advantage of requiring only the function values at some selected points in the
subinterval.
i. First-order Runge-Kutta method
The Euler’s method is called First-order Runge-Kutta method
3
( )
ii. Second- order Runge-Kutta method
The Euler’s modified method is called Second-order Runge-Kutta method
( )
where, ( ) and ( )
iii. Third- order Runge-Kutta method
( )
( )
iv. Fourth- order Runge-Kutta method: is the most commonly used.
( )
where, ( ), ( ), ( ) and
( )
Example:
i. Use the second order Runge-Kutta method with find and for
( )