Open Access Library Journal
Vol.02 No.06(2015), Article ID:68453,7 pages
10.4236/oalib.1101614
Numerical Solutions of Initial Value Ordinary Differential Equations Using Finite Difference Method
Negesse Yizengaw
Mathematics Department, University of Gondar, Gondar, Ethiopia
Email: negessey95@gmail.com
Copyright © 2015 by author and OALib.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/


Received 25 May 2015; accepted 12 June 2015; published 23 June 2015
ABSTRACT
Initial value ordinary differential equations arise in formulation of problems in various fields such as physics and Engineering. The present paper shows the method how to solve the initial value ordinary differential equation on some interval by using finite difference method in a very accurate manner with the formulation of error estimation.
Keywords:
Ordinary Differential Equation, Finite Difference Method, Interpolation, Error Estimation
Subject Areas: Mathematical Analysis, Ordinary Differential Equation

1. Introduction
Differential equations are used to model problems in science and engineering that involve the change of some variable with respect to the other. Most of these problems require the solution of an initial-value problem, that is, the solution to a differential equation that satisfies a given initial condition. In common real-life situations, the differential equation that models the problem is too complicated to solve exactly [1] . There are numerical methods which simplify such problems and the one is finite difference method which is a numerical procedure that solves a differential equation by discrediting the continuous physical domain into a discrete finite difference grid [2] . Finite difference methods are very suitable when the functions being dealt with are smooth and the differences decrease rapidly with increasing orderas discussed by Colletz, L. [3] : calculations with these methods are best carried out with fairly small length of step. Suppose that the first order IV differential equation
(1.1)
is integrated numerically by dividing the interval
on which the solution is desired, into a finite number of sub intervals

The points are called mesh points or grid points. The spacing between the points is given by

If the spacing is uniform, then
,
. For this discussion, consider the case of uniform mesh only. Let the range of integration be covered by the equally spaced points
with the constant difference
(the step length) and let
be an approximation to the value
of the exact solution at the point
. The finite difference methods are based on the integrated form
(1.2)
That is obtained by integrating Equation (1.1) in the interval
then the aim of the finite difference method is to approximate this integral more accurately. Let denote the numerical solution and the exact solution at
by
and
respectively. Suppose that the integration has already been carried as far as the point 



Since 






This takes the values 






And a general p-step implicit method can be written as
The objective of finite difference method for solving an ordinary differential equation is to transform a calculus problem to an algebra problem [5] . Consequently the finite-difference methods consist of two distinct stages:
I) Approximations


II) The solution is continued step by step by the finite-difference formulae; these give the values of y at the point 

The approximate solution in finite difference method is converging to the true solution (convergence). If


quence of approximations to the numerical solution converges to the exact solution [6] . A finite difference method is convergent if the numerical solution approaches the exact solution as
2. Calculation of Starting Values
The starting values needed for the main calculation can be obtained in a variety of ways. Particular care must be exercised in the calculation of these starting values, for the whole calculation can be rendered useless by inaccuracies in them. Several possible ways of obtaining starting values are mentioned below:
2.1. Using Some Other Method of Integration
Provided that it is sufficiently accurate, any method of integration which does not require starting values (as distinct from initial values) can be used. Bearing in mind the high accuracy desired, one would normally choose the Runge-Kutta method: further one would work preferably with a step of half the length to be used in the main calculation and with a great number of decimals.
2.2. Using the Taylor Series for y(x)
If the function 


of which as many terms are taken as are necessary for the truncation not to affect the last decimal carried (always assuming that the series converges).Several of the finite difference methods needs three starting values, and for these it suffices to use (1.4) for
2.3. Using Quadrature Formulae
Using the forward difference relation, we have

Here the procedure which is suitable for the construction of two 

1)
2)
Again we have the following formulae
⤇
3)
Improving these, the following three starting values 
4)
5)

Generally for 


Thus alternatively three y values can be improved and the function values can be revised. 
3. Formulae for the Main Calculation
The next approximate value 


3.1. The Adams Extrapolation Method
In the extrapolation methods we consider first the function 
nomial P(x) which takes the values 







The exact solution 

where 

3.2. The Adams Interpolation Method
Here the integrand 



For the exact solution y(x) we have the following formula

With the remainder term
3.3. Central Difference Interpolation Method
If we integrate both sides of Equation (1.3) over the interval 

In the remainder term is neglected, the approximations

Usually this formula is truncated after the term in

An estimate for the remainder term 

for the exact solution the remainder term is calculated as
4. Recursive Error Estimates
This section describes how error is estimated for the finite difference methods. Care must be taken that the number of decimals carried in the calculation is sufficient for rounding errors to be neglected.
I) Taylor series method: If the necessary starting values are calculated by Taylor series method, the error can
usually be estimated very easily; the maximum rounding error, i.e. 
II) Quadrature formulae: If the iteration method quadrature formula (1.6) is used to obtain the starting values, the error can be estimated as follows. For the exact solution we have

In which there is 


Similarly,


III) Adams interpolation method: Let us investigate the Adams interpolation method, which is based on the formula (1.11).
A similar relation, but with a remainder term
The truncation error is then
For this remainder term, or “truncation error”, there exists the estimate
5. Conclusion
In this research, finite difference approximate methods for solving initial value ordinary differential equation have been studied. Even if the method is long, it is shown that finite difference method is fundamental to get very accurate solution. Basically the solution method is based on Equation (1.2) by some rearrangement of Equation (1.1). Finite-difference methods are very suitable when the functions being dealt with are smooth and the differences decrease rapidly with increasing order; calculations with these methods are best carried out with a fairly small length of step. On the other hand, if the functions are not smooth, perhaps given by experimental results, or if we want to use a large step, then the Runge-Kutta method is to be preferred; it is also advantageous to use this method when we have to change the length of step frequently, particularly when this change is a decrease. Clearly we should not choose too large a step even for the Runge-Kutta method.
Cite this paper
Negesse Yizengaw, (2015) Numerical Solutions of Initial Value Ordinary Differential Equations Using Finite Difference Method. Open Access Library Journal,02,1-7. doi: 10.4236/oalib.1101614
References
- 1. Burden, R.L. and Faires, J.D. (2011) Numerical Analysis. 9th Edition, Brookscole, Boston, 259-253.
- 2. Kumar, M. and Mishra, G. (2011) An Introduction to Numerical Methods for the Solutions of Partial Differential Equations. American Journal of Mathematics, 2, 1327-1338.
- 3. Colletz, L. (1966) The Numerical Treatment of Differential Equations. 3rd Edition, Vol. 60, Springer-Verlag, Berlin, 48-94.
- 4. Iyengar, S.R.K. and Jain, R.K. (2009) Numerical Methods. New Age International Publishers, New Delhi, 182-184.
- 5. Hoffman, J.D. (2001) Numerical Methods for Engineers and Scientists. 2nd Edition, Marcel Dekker, Inc., New York, 323-416.
- 6. Kress, R. (1998) Graduate Texts in Mathematics. Springer-Verlag, New York.
- 7. Grewal, B.S. (2002) Numerical Methods in Engineering & Science. 6th Edition, Khanna Publishers, India.




















