Unit 3
Unit 3
Contents
Ordinary differential equations : Taylor’s series, Euler and modified Euler’s methods. Runge
Kutta method of fourth order for solving first and second order
equations.Milne’sandAdam’spredicator-correctormethods.Partialdifferential
equations:FinitedifferencesolutiontwodimensionalLaplaceequationandPoissionequation,
Implicitandexplicitmethodsforonedimensionalheatequation(Bender-SchmidtandCrank-
Nicholsonmethods), Finite difference explicit method for wave equation
Ordinary differential equations: Many problems in Engineering and Science can be formulated
into ordinary differentional equations satisfying certain given conditions. If these conditions are
prescribed for one point only, then the differential equation together with the condition is
known as an initial value problem. If the conditions are prescribed for two or more points, then
the problem is termed as boundary value problem. A limited number of these differentional
equations can be solved by analytical methods. Hence numerical methods play very important
role in the solution of differential equations.
We shall discuss some of the following methods for obtaining numerical solution of first order
and first degree Ordinary Differential Equation.
[II]Euler’s method.
-------------------------- (1)
Subject to
If then
i.e.
andso on
At
Method-II :Numerical Solution to Ordinary Differential Equation By Euler’smethod
Euler’smethod,as such, is of very little practical importance, but illustrates in simple form ,the
basic idea of those numerical methods,which seek to determine the change corresponding
to small increase in the argument
-------------------------- (1)
Subject to
In an small interval, a curve is nearly a straight line. This is the property used in Euler’smethod.
= + where
With
= + where (1)
We
take
Old +0.1
-------------------------- (1)
Subject to
In each step of this method ,we first compute the auxiliary value
= + where (2)
……….(3)
where
This Modified method is a Predictor-Corrector method; because in each step,we first predict a
value by (2) and then correct it by (3).
Subject to i.e.
= + where (1)
……….(2)
Where n
= +
where
= +
=1.52402
where
= +
where
=1.88496
Similarly by putting
-------------------------- (1)
Subject to
Then the predictor formula for finding is
[2
[2
Now from above ,it is clear that only possible i.e. we shall find
,we must required four prior values of .
Subject to
We have by Milne’smethod,
[2
[2
[2 …………………(3)
We get , [2
Now ,we shall correct this value of of by the corrector formula (2) as
put
[2
i.e.
Runge-Kutta method is more accurate method of great practical importance. The working
procedure is as follows,
Hence,
Therefore , we can notice that the only change in the formulae for succeeding intervals is in the
values of This refinement was carried out by two German mathematicians C.D.T.
Runge (1856-1927) and M.W.Kutta (1867-1944).
Subject to
Hence,
-------------------------- (1)
Subject to
[55
Now from above, it is clear that,for applying this method , we require four starting values of .
Note :-In practice ,the Adam’s Bashforthmethod together with fourth order Runge-Kutta method
have been found to be most useful.
Subject to
Hence ,
Similarly ,
[55
and
[9
[9
i.e.
…………………………………(1)
[I]If at a point in the plane, then the equation (1) is called Elliptic
(1) TwodimensionalLaplaceequation
(2) TwodimensionalPoissionequation
[II]If at a point in the plane, then the equation (1) is called parabolic.
Numerical methods for solving boundary value problems for each three types are slightly
different from one another.Most commonly used numerical method to solve such problems is
termed as finite difference method or net method. In this method, the derivatives appearing in
the equation and the boundary conditions are replaced by their finite difference
approximations. Then the given equation is changed into a system of linear equations, which
are solved by iterative procedures.This process is slow but produces good resultsin many
boundary value problems.
Geometrical representation of Partial Difference Quotients:
(i, j+2)
(i, j+1)
K=1
(i, j-1)
(i, j-2)
h=1
Now ,we can interpret the above idea in a different notation by drawing two sets of parallel lines
and ,
The point of intersection of these family of lines are called mesh points or lattice points. The point
is called the grid point and is surrounded by the neighboring points as shown in below figure (2).
If is a function of two variables then the values of at the point is denoted
by
We can write
,
Now replacing the derivatives in any partial differential equation by their corresponding difference
approximations, we obtain the finite difference analogues of the given equations.
This type of equation arises in potential and steady state flow problems. The solution u of (1) is
satisfied at every point of the region subject to given boundary conditions on the closed curve. Consider a
rectangular region for which u is known at the boundary. Divide this region for which u is
Known at the boundary.Divide this region into a network of square mesh of side .
Since ,
……………………… (2)
This shows that the value of at any interior mesh point is the average of it’s values at four
neighboring points to left, right, above and below.This is called the Standard five point formula (SFPF) or
as Lineman’s averaging procedure.
…………………… (3)
This shows that the value of is the average (or Arithmetic mean) of its values at the four
neighboring diagonal mesh points. This is called the Diagonal five point formula (DFPF).
Although (3) is less accurate than (2), yet it serves as a reasonably good approximation for obtaining the
starting values at the mesh points. In the iteration procedure, but whenever possible formula (2) is
preferred in comparison to formula (3).
Now to solve a Laplace equation by finite difference method, we adapt the following set
procedure
Suppose that the given boundary values are , ………….., .Now ,we are to determine
initial values of at the interior mesh points region Since the value at the center an
therefore the values are computed by using Diagonal five point formula (DFPF),
therefore ,we have
;
;
;
;
The values at the remaining interior mesh points i.e. the values of are computed by using,
Standard five point formula (SFPF) therefore, we have
;
;
;
This expression is called the replacement formula.Applying this equation at each internal mesh
point ,we get a system of linear equations in ui,where ui are the values of u at the internal mesh
points.Solving the equations, the values ui are known.
u(0,y)=u(x,0)=0,u(x,1)=u(1,y)=100 with the square meshes ,each of length h=1/3.
******************************************************************************