Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
Lecture
1
Content
Solution of first order ordinary differential equations
Hours
1
References:
BradieBAFriendlyIntroductiontoNumericalAnaysisPearsonEducation,2007
BurdenRL,FairesJDNumericalAnalysisCengageLearning,2007
ChapraSC,Canale,RPNumericalMethodsforEngineersTataMcGrawHill,2003
GeraldC.F.,WheatleyPOAppliedNumericalanalysis,AddisonWesley,1998
Lecture 1
Numerical solution of first order ordinary differential equations
Keywords: Initial Value Problem, Approximate solution, Picard method, Taylor series
equation is an equation relating y, t and its first order derivatives. The most general
form is :
F(t,y(t),y(t)) 0
(1.1)
i)
y(t) is differentiable
ii)
The first of these equations represents the exponential decay of radioactive material
where y represent the amount of material at any given time and k=2 is the rate of decay.
It may be noted that y(t) c exp( 2t) is the solution of differential equation as it
identically satisfies the given differential equation for arbitrarily chosen constant c. This
means that the differential equation has infinitely many solutions for different choices of
c. In other words, the real world problem has infinitely many solutions which we know is
not true. In fact, an initial condition should be specified for finding the unique solution of
the problem:
y(0) A
That is, the amount of radioactive material present at time t=0 is A. When this initial
condition is imposed on the solution, the constant c is evaluated as A and the solution
y(t) A exp( 2t) is now unique. The expression can now be used for computing the
t 0 t b with y(t 0 ) y 0
(1.2)
There exist several methods for finding solutions of differential equations. However, all
differential equations are not solvable. The following well known theorem from theory of
differential equations establishes the existence and uniqueness of solution of the IVP:
Let f(t,y(t)) be continuous in a domain D={ (t,y(t)): t0tb, cyd } R2. If f satisfies
Lipschitz condition on the Variable y and (t0,y0) in D, then IVP has a unique solution
y=y(t) on the some interval t0 t t0+.
{The function f satisfies Lipschitz condition means that there exists a positive constant L
such that f(t,y) f(t,w) L y w }
The theorem gives conditions on function f(t, y) for existence and uniqueness of the
solution. But the solution has to be obtained by available methods. It may not be
possible to obtain analytical solution (in closed form) of a given first order differential
equation by known methods even when the above theorem guarantees its existence.
Sometimes it is very difficult to obtain the solution. In such cases, the approximate
solution of given differential equation can be obtained.
Approximate Solution
The classical methods for approximate solution of an IVP are:
i)
ii)
(1.3)
t0
From the theory of differential equations, it can be proved that the above sequence of
approximations converges to the exact solution of IVP.
Example 1.1: Obtain the approximate solution of IVP using Picard method. Obtain its
y(0) 1
and so on.
1 t t 2 / 2 t 3 / 3 t 4 / 8 t 5 /15 t 6 / 48
The differential equation in example 1.1 is a linear first order equation. Its exact solution
can be obtained as
t
The closed form solution of differential equation in this case is possible. But the
expression involving an integral is difficult to analyze. The sequence of polynomials as
obtained by Picard method gives only approximate solution, but for many practical
problems this form of solution is preferred.
The IVP gives the solution y0 at initial point t=t0. for given step size h, the solution at
t=t0+h can be computed from Taylor series as
y(t1 ) y(t 0 h) y(t 0 ) h y (t 0 )
h2
h3
y (t 0 )
y (t 0 ) ...
2
6
(1.4)
2 f
f
y (t 0 ) 2 2
and so on
y ( y )2
ty
y
t
t t0
Substituting these derivatives and truncating the series (1.4) gives the approximate
solution at t1.
Example 1.2: Obtain the approximate solution y(t) of IVP using Taylor series method.
y(0) 1
y y ty
y 2y ty
yiv (2y 1)y xy y and so on
Or
Or
It may be noted that fifth term and subsequent terms are smaller than the accuracy
requirement, the Taylor series can be truncated beyond fourth term. Accordingly
y(0.1)=1.1.53.
Observe that the Picard method involves integration while Taylor series method
involves differentiation of the function f. Depending on the ease of operation, one can
select the appropriate method for finding the approximate solution. The number of
iterations in Picard method depends upon the accuracy requirement. The step size h
can be chosen sufficiently small to meet the accuracy requirement in case of Taylor
series method. For fixed h, more terms have to be included in the solution when more
accuracy is desired.
In the category of methods that include Picard method and Taylor series method, the
approximate solution is given in the form of a mathematical expression.