2. NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
CONTENTS
Power Series approximations
Solution by Taylor series (Type 1)
Euler’s Method
Runge-Kutta Method
7. Euler’s Method
In solving a first order differential equation by numerical methods, we come across two types of solutions:
• A series solution of y in terms of x, which will yield the value of y at a particular value of x by direct substitution in
the series solution.
• Values of y at specified values of x.
8. Runge-Kutta Method
The use of the previous methods to solve the differential equation numerically is restricted due to either slow
convergence or due to labour involved, especially in Taylor series method. But, in Runge-Kutta methods, the derivatives
of higher order are not required and we require only the given function values at different points. Since the derivation of
fourth order Runge-Kutta method is tedious, we will derive Runge-kutta method of second order.
Second order Runge-Kutta method (for first order O.D.E.)
By Taylor series
9. where a, b and m are constants to be determined to get the better accuracy of
where ℎ =∆𝑥.
Second order R.K. algorithm
10. Since the derivation of third and fourth order Runge-Kutta algorithms are tedious, we state them below for use.
The third order Runge-Kutta method algorithm is given below:
Third order
R.K. algorithm
The fourth order Runge-Kutta method algorithm is mostly used in problem unless other mentioned. It is
29. x 0 0.01 0.02 0.03 0.04
Y 1 0.9900 0.9801 0.9703 0.9606
Exact y 1 0.9900 0.9802 0.9704 0.9608
Tabular values (step values) are
since y=e-x is the exact solution.
By fourth order Runge-Kutta method,