<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OALibJ</journal-id><journal-title-group><journal-title>Open Access Library Journal</journal-title></journal-title-group><issn pub-type="epub">2333-9705</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/oalib.1101614</article-id><article-id pub-id-type="publisher-id">OALibJ-68453</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Business&amp;Economics</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Earth&amp;Environmental Sciences</subject><subject> Engineering</subject><subject> Medicine&amp;Healthcare</subject><subject> Physics&amp;Mathematics</subject><subject> Social Sciences&amp;Humanities</subject></subj-group></article-categories><title-group><article-title>
 
 
  Numerical Solutions of Initial Value Ordinary Differential Equations Using Finite Difference Method
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Negesse</surname><given-names>Yizengaw</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Mathematics Department, University of Gondar, Gondar, Ethiopia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>negessey95@gmail.com</email></corresp></author-notes><pub-date pub-type="epub"><day>30</day><month>06</month><year>2015</year></pub-date><volume>02</volume><issue>06</issue><fpage>1</fpage><lpage>7</lpage><history><date date-type="received"><day>25</day>	<month>May</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>12</month>	<year>June</year>	</date><date date-type="accepted"><day>23</day>	<month>June</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   
   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. 
  
 
</p></abstract><kwd-group><kwd>Ordinary Differential Equation</kwd><kwd> Finite Difference Method</kwd><kwd> Interpolation</kwd><kwd> Error Estimation</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>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 [<xref ref-type="bibr" rid="scirp.68453-ref1">1</xref>] . 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 [<xref ref-type="bibr" rid="scirp.68453-ref2">2</xref>] . 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. [<xref ref-type="bibr" rid="scirp.68453-ref3">3</xref>] : calculations with these methods are best carried out with fairly small length of step. Suppose that the first order IV differential equation</p><disp-formula id="scirp.68453-formula1000"><label>(1.1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x5.png"  xlink:type="simple"/></disp-formula><p>is integrated numerically by dividing the interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x6.png" xlink:type="simple"/></inline-formula> on which the solution is desired, into a finite number of sub intervals</p><disp-formula id="scirp.68453-formula1001"><graphic  xlink:href="http://html.scirp.org/file/68453x7.png"  xlink:type="simple"/></disp-formula><p>The points are called mesh points or grid points. The spacing between the points is given by</p><disp-formula id="scirp.68453-formula1002"><graphic  xlink:href="http://html.scirp.org/file/68453x8.png"  xlink:type="simple"/></disp-formula><p>If the spacing is uniform, then<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x9.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x10.png" xlink:type="simple"/></inline-formula>. For this discussion, consider the case of uniform mesh only. Let the range of integration be covered by the equally spaced points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x11.png" xlink:type="simple"/></inline-formula> with the constant difference <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x12.png" xlink:type="simple"/></inline-formula> (the step length) and let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x13.png" xlink:type="simple"/></inline-formula> be an approximation to the value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x14.png" xlink:type="simple"/></inline-formula> of the exact solution at the point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x15.png" xlink:type="simple"/></inline-formula>. The finite difference methods are based on the integrated form</p><disp-formula id="scirp.68453-formula1003"><label>(1.2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x16.png"  xlink:type="simple"/></disp-formula><p>That is obtained by integrating Equation (1.1) in the interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x17.png" xlink:type="simple"/></inline-formula> 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 <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x18.png" xlink:type="simple"/></inline-formula> by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x19.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x20.png" xlink:type="simple"/></inline-formula> respectively. Suppose that the integration has already been carried as far as the point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x21.png" xlink:type="simple"/></inline-formula> so that approximations <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x22.png" xlink:type="simple"/></inline-formula> and hence also approximate values<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x23.png" xlink:type="simple"/></inline-formula>, are known. The aim is to calculate<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x24.png" xlink:type="simple"/></inline-formula>.</p><p>Since <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x25.png" xlink:type="simple"/></inline-formula> cannot be integrated without knowing<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x26.png" xlink:type="simple"/></inline-formula>, which is the solution to the problem, instead integrate an interpolating polynomial, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x27.png" xlink:type="simple"/></inline-formula>determined by some of the previously obtained data points</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x28.png" xlink:type="simple"/></inline-formula>. Assuming, in addition, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x29.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x30.png" xlink:type="simple"/></inline-formula>, then,</p><disp-formula id="scirp.68453-formula1004"><label>(1.3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x31.png"  xlink:type="simple"/></disp-formula><p>This takes the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula> at a certain number of points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula> and then integrates this polynomial over the interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x34.png" xlink:type="simple"/></inline-formula> to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x35.png" xlink:type="simple"/></inline-formula>. We need to have a sequence of approximations<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x36.png" xlink:type="simple"/></inline-formula>. If the solution at any point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x37.png" xlink:type="simple"/></inline-formula> is obtained using the solution at only the previous points, then the method is called an explicit method. If the right hand side of (1.2) depends on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x38.png" xlink:type="simple"/></inline-formula> also, then it is called an implicit method. According to [<xref ref-type="bibr" rid="scirp.68453-ref4">4</xref>] , a general p-step explicit method can be written as</p><disp-formula id="scirp.68453-formula1005"><graphic  xlink:href="http://html.scirp.org/file/68453x39.png"  xlink:type="simple"/></disp-formula><p>And a general p-step implicit method can be written as</p><disp-formula id="scirp.68453-formula1006"><graphic  xlink:href="http://html.scirp.org/file/68453x40.png"  xlink:type="simple"/></disp-formula><p>The objective of finite difference method for solving an ordinary differential equation is to transform a calculus problem to an algebra problem [<xref ref-type="bibr" rid="scirp.68453-ref5">5</xref>] . Consequently the finite-difference methods consist of two distinct stages:</p><p>I) Approximations<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x41.png" xlink:type="simple"/></inline-formula>, the “starting values” (we reserve the “initial values” for values at the initial point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x42.png" xlink:type="simple"/></inline-formula>) sufficiently many to calculate the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x43.png" xlink:type="simple"/></inline-formula> required for the first application of the finite difference formula, are obtained by some other means.</p><p>II) The solution is continued step by step by the finite-difference formulae; these give the values of y at the point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x44.png" xlink:type="simple"/></inline-formula> once the values at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x45.png" xlink:type="simple"/></inline-formula> are known “main calculation”.</p><p>The approximate solution in finite difference method is converging to the true solution (convergence). If</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x46.png" xlink:type="simple"/></inline-formula>satisfies the Lipschitz condition i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x47.png" xlink:type="simple"/></inline-formula>. L being a constant, then the se-</p><p>quence of approximations to the numerical solution converges to the exact solution [<xref ref-type="bibr" rid="scirp.68453-ref6">6</xref>] . A finite difference method is convergent if the numerical solution approaches the exact solution as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x48.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s2"><title>2. Calculation of Starting Values</title><p>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:</p><sec id="s2_1"><title>2.1. Using Some Other Method of Integration</title><p>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.</p></sec><sec id="s2_2"><title>2.2. Using the Taylor Series for y(x)</title><p>If the function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x49.png" xlink:type="simple"/></inline-formula> is of simple analytical form, the derivatives <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x50.png" xlink:type="simple"/></inline-formula> can determined by differentiation of the differential equation; starting values can be calculated from the Taylor series</p><disp-formula id="scirp.68453-formula1007"><label>(1.4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x51.png"  xlink:type="simple"/></disp-formula><p>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<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x52.png" xlink:type="simple"/></inline-formula>; this usually posses advantages over using (2.4) for v =1, 2, particularly as regards convergence.</p></sec><sec id="s2_3"><title>2.3. Using Quadrature Formulae</title><p>Using the forward difference relation, we have</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x53.png" xlink:type="simple"/></inline-formula>⤇<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x54.png" xlink:type="simple"/></inline-formula></p><p>Here the procedure which is suitable for the construction of two <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x55.png" xlink:type="simple"/></inline-formula> or three <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x56.png" xlink:type="simple"/></inline-formula> starting values can be given. The procedure is completely described by the following formulae.</p><p>1)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x57.png" xlink:type="simple"/></inline-formula>, consequently <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x58.png" xlink:type="simple"/></inline-formula></p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x59.png" xlink:type="simple"/></inline-formula></p><p>Again we have the following formulae</p><disp-formula id="scirp.68453-formula1008"><graphic  xlink:href="http://html.scirp.org/file/68453x60.png"  xlink:type="simple"/></disp-formula><p>⤇<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x61.png" xlink:type="simple"/></inline-formula> From these there is also</p><p>3)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x62.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x63.png" xlink:type="simple"/></inline-formula></p><p>Improving these, the following three starting values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x64.png" xlink:type="simple"/></inline-formula> can be obtained as;</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x65.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.68453-formula1009"><graphic  xlink:href="http://html.scirp.org/file/68453x66.png"  xlink:type="simple"/></disp-formula><p>5)</p><disp-formula id="scirp.68453-formula1010"><label>(1.6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x67.png"  xlink:type="simple"/></disp-formula><p>Generally for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x68.png" xlink:type="simple"/></inline-formula> (or<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x69.png" xlink:type="simple"/></inline-formula>)</p><disp-formula id="scirp.68453-formula1011"><label>(1.7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x70.png"  xlink:type="simple"/></disp-formula><p>Thus alternatively three y values can be improved and the function values can be revised. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x71.png" xlink:type="simple"/></inline-formula>and their differences. This starting process should be carried out with a sufficiently small step length.</p></sec></sec><sec id="s3"><title>3. Formulae for the Main Calculation</title><p>The next approximate value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x72.png" xlink:type="simple"/></inline-formula> can be obtained once the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x73.png" xlink:type="simple"/></inline-formula> at the points<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x74.png" xlink:type="simple"/></inline-formula> have been computed. To do this the following methods are used.</p><sec id="s3_1"><title>3.1. The Adams Extrapolation Method</title><p>In the extrapolation methods we consider first the function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x75.png" xlink:type="simple"/></inline-formula> is reduced by the interpolation poly-</p><p>nomial P(x) which takes the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula> at the points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula> [where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x78.png" xlink:type="simple"/></inline-formula>]. In effect the integral can be evaluated and with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x79.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x80.png" xlink:type="simple"/></inline-formula> replacing <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x81.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x82.png" xlink:type="simple"/></inline-formula>, (1.1) becomes</p><disp-formula id="scirp.68453-formula1012"><label>(1.8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x83.png"  xlink:type="simple"/></disp-formula><p>The exact solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x84.png" xlink:type="simple"/></inline-formula> satisfies the corresponding exact form</p><disp-formula id="scirp.68453-formula1013"><label>(1.9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x85.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x86.png" xlink:type="simple"/></inline-formula> is the remainder term and it is estimated by integrating Newton forward interpolation formula for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x87.png" xlink:type="simple"/></inline-formula>, we have the following.</p><disp-formula id="scirp.68453-formula1014"><graphic  xlink:href="http://html.scirp.org/file/68453x88.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_2"><title>3.2. The Adams Interpolation Method</title><p>Here the integrand <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x89.png" xlink:type="simple"/></inline-formula> in the Equation (1.1) is replaced by the polynomial P<sup>*</sup>(x) which takes the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x90.png" xlink:type="simple"/></inline-formula> at the points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x91.png" xlink:type="simple"/></inline-formula> then from the quadrator formula, it follows that</p><disp-formula id="scirp.68453-formula1015"><label>(1.10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x92.png"  xlink:type="simple"/></disp-formula><p>For the exact solution y(x) we have the following formula</p><disp-formula id="scirp.68453-formula1016"><label>(1.11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x93.png"  xlink:type="simple"/></disp-formula><p>With the remainder term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x94.png" xlink:type="simple"/></inline-formula>, for which an estimate is given by</p><disp-formula id="scirp.68453-formula1017"><graphic  xlink:href="http://html.scirp.org/file/68453x95.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_3"><title>3.3. Central Difference Interpolation Method</title><p>If we integrate both sides of Equation (1.3) over the interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x96.png" xlink:type="simple"/></inline-formula> to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x97.png" xlink:type="simple"/></inline-formula>, using Stirling’s interpolation formula, we obtain (with p even)</p><disp-formula id="scirp.68453-formula1018"><graphic  xlink:href="http://html.scirp.org/file/68453x98.png"  xlink:type="simple"/></disp-formula><p>In the remainder term is neglected, the approximations<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x99.png" xlink:type="simple"/></inline-formula>, is</p><disp-formula id="scirp.68453-formula1019"><label>(1.12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x100.png"  xlink:type="simple"/></disp-formula><p>Usually this formula is truncated after the term in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x101.png" xlink:type="simple"/></inline-formula>, which gives Simpson’s rule:</p><disp-formula id="scirp.68453-formula1020"><graphic  xlink:href="http://html.scirp.org/file/68453x102.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68453-formula1021"><label>(1.13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x103.png"  xlink:type="simple"/></disp-formula><p>An estimate for the remainder term <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x104.png" xlink:type="simple"/></inline-formula> in the corresponding formula</p><disp-formula id="scirp.68453-formula1022"><label>(1.14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x105.png"  xlink:type="simple"/></disp-formula><p>for the exact solution the remainder term is calculated as</p><disp-formula id="scirp.68453-formula1023"><graphic  xlink:href="http://html.scirp.org/file/68453x106.png"  xlink:type="simple"/></disp-formula></sec></sec><sec id="s4"><title>4. Recursive Error Estimates</title><p>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.</p><p>I) Taylor series method: If the necessary starting values are calculated by Taylor series method, the error can</p><p>usually be estimated very easily; the maximum rounding error, i.e. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x107.png" xlink:type="simple"/></inline-formula>for a d decimal number, will often provide a suitable upper bound [<xref ref-type="bibr" rid="scirp.68453-ref7">7</xref>] .</p><p>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</p><disp-formula id="scirp.68453-formula1024"><label>(1.15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x108.png"  xlink:type="simple"/></disp-formula><p>In which there is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x109.png" xlink:type="simple"/></inline-formula> have the from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x110.png" xlink:type="simple"/></inline-formula> at three points (p = 3)</p><disp-formula id="scirp.68453-formula1025"><graphic  xlink:href="http://html.scirp.org/file/68453x111.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68453-formula1026"><label>(1.16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/68453x112.png"  xlink:type="simple"/></disp-formula><p>Similarly,</p><p><img data-original="http://html.scirp.org/file/68453x113.png" />,<img data-original="http://html.scirp.org/file/68453x114.png" /> (1.17)</p><p>III) Adams interpolation method: Let us investigate the Adams interpolation method, which is based on the formula (1.11).</p><disp-formula id="scirp.68453-formula1027"><graphic  xlink:href="http://html.scirp.org/file/68453x115.png"  xlink:type="simple"/></disp-formula><p>A similar relation, but with a remainder term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x116.png" xlink:type="simple"/></inline-formula>, holds for the exact solution</p><disp-formula id="scirp.68453-formula1028"><graphic  xlink:href="http://html.scirp.org/file/68453x117.png"  xlink:type="simple"/></disp-formula><p>The truncation error is then <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/68453x118.png" xlink:type="simple"/></inline-formula></p><p>For this remainder term, or “truncation error”, there exists the estimate</p><disp-formula id="scirp.68453-formula1029"><graphic  xlink:href="http://html.scirp.org/file/68453x119.png"  xlink:type="simple"/></disp-formula></sec><sec id="s5"><title>5. Conclusion</title><p>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.</p></sec><sec id="s6"><title>Cite this paper</title><p>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</p></sec></body><back><ref-list><title>References</title><ref id="scirp.68453-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Burden, R.L. and Faires, J.D. (2011) Numerical Analysis. 9th Edition, Brookscole, Boston, 259-253.</mixed-citation></ref><ref id="scirp.68453-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">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.</mixed-citation></ref><ref id="scirp.68453-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Colletz, L. (1966) The Numerical Treatment of Differential Equations. 3rd Edition, Vol. 60, Springer-Verlag, Berlin, 48-94.</mixed-citation></ref><ref id="scirp.68453-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Iyengar, S.R.K. and Jain, R.K. (2009) Numerical Methods. New Age International Publishers, New Delhi, 182-184.</mixed-citation></ref><ref id="scirp.68453-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Hoffman, J.D. (2001) Numerical Methods for Engineers and Scientists. 2nd Edition, Marcel Dekker, Inc., New York, 323-416.</mixed-citation></ref><ref id="scirp.68453-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kress, R. (1998) Graduate Texts in Mathematics. Springer-Verlag, New York.</mixed-citation></ref><ref id="scirp.68453-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Grewal, B.S. (2002) Numerical Methods in Engineering &amp; Science. 6th Edition, Khanna Publishers, India.</mixed-citation></ref></ref-list></back></article>