Beruflich Dokumente
Kultur Dokumente
UNIT-5
BOUNDARY VALUE PROBLEMS FOR ORDINARY AND PARTIAL
DIFFERENTIAL EQUATIONS
BVP for ODE
Finite Difference Method to solve Second order Differential Equations
Suppose the second order DE is + p(x) +q(x)y = f(x) together with the
_______________ (1)
boundary conditions y( = , y( = when x
( , ) is to be solved using finite
difference method.
The central difference approximations to the first two derivatives of at x = are
given as follows:
=
=
_____________ (2)
2
_____________ (3)
y1
y2
y3
x0 = 0
x1
x2
x3
y 4 = y n= 0
x4 = xn = 1
2|6
_____ (1)
ELLIPTIC EQUATIONS
1.
Laplaces equation
An elliptic equation of the form + = 0 is said to be Laplaces equation in two
dimensions.
In this equation replacing the second order derivatives by difference quotients, we get
,
1
, , , !
4 ,
This equation is known as Standard Five Point Formula (SFPF). See Figure 2(a).
Sometimes, we rotate the coordinate system through the angle 45, we get the following
formula.
1
, , , , , !
4
This is known as Diagonal Five Point Formula (DFPF). See Figure 2 (b).
Prepared by Dr.P.Venugopal/Maths Dept /SSNCE
3|6
ui-1, j+1
ui,j+1
ui+1, j+1
D
ui-1,j
C
ui+1,j
E
A
u i,j
B ui,j-1
u i,j
B
u i+1, j-1
ui-1, j-1 E
(a)
(b)
Figure 2(a) SFPF (b) DFPF
For both these formulas, Value of u at A = average of the values of u at B, C, D and E (See
Figure 2(a) and (b)).
Note: The error in DFPF if 4 times higher than SFPF, so preferably use SFPF whenever
possible.
Method: The problem of elliptic type is solve the equation + = 0 over a square
mesh, with given boundary points, we have to find the value of u at the inner grid points.
For this initially we get all the inner mesh point values using SFPF and DFPF (where SFPF
is not possible). Then use only SFPF, and using iteration procedure with the latest available
values, we improve these inner mesh values.
The iterative formula is
,
1
", , , , #
4
Poissons equation
An elliptic equation of the form + = f (x, y), where f (x, y) is a function of x and y
only, is called POISSONS equation.
This equation can be solved numerically at the interior grid points of a square
network when the boundary values are known.
Replacing the derivatives in the Poisson equation by difference quotients by taking
x = ih, y= jh (since h = k, for a square mesh), it reduces to
, , , , 4, = $
%&$, '$
Now apply this formula at each inner grid point to get a system of equations. Solving these
equations, we get the inner mesh point values.
Prepared by Dr.P.Venugopal/Maths Dept /SSNCE
4|6
PARABOLIC EQUATIONS
One dimensional heat equation
equation.
( )
=
,
(*
(
()
( )
(
where =
()
(*
,-
is an example of parabolic
= 0.
Our aim is to solve this equation, using the method of finite differences with boundary
conditions u(0.t) = T0, u(l, t) = Tl and the initial condition u(x.0)= f (x), 0 < x < l.
Applying these conditions, we have the values of u at the boundary points (extreme left and
right column, shown in red colour) and the first row (in blue colour).
x
x0 =0
x-direction
x2
x1
xn = l
t-direction
t=0
u(x,0)= f(x)
t1
t2
u(0,t)=T0
u(l,t)=Tl
Figure 3
Now to find the values of u at the inner points, we have two methods:
1.
The formula is
where 0 =
2$
, =
1
2
785
5
, , !
5|6
u i,j
ui-1, j
C
ui+1, j
ui,j+1
Note: When a one dimensional equation is asked to solve by Bender-Schmidts method and
nothing is mentioned about k (step-size in t-direction), choose k in such a way that 0 = .
2.
The formula is
9
= , , + ( 0 1 ,
5
where 0 =
2$
ui-1,j E
B
ui-1, j+1
ui+1,j
ui,j+1
ui+1, j+1
Note: When a one dimensional equation is asked to solve by Crank-Nicholson method and
6|6
HYPERBOLIC EQUATIONS
One dimensional wave equation (vibration of strings) 2
** 0 is an example for
hyperbolic equation. Our aim is to solve this wave equation with boundary
conditions 0, ; 0, <, ; 0 and the initial conditions , 0 %, * , 0 %.
The Explicit formula or scheme to solve wave equation is
, = , , ,
The Schematic diagram is
ui, j-1
D
B
ui-1,j
ui+1,j
A
ui,j+1
Here as in parabolic type, extreme columns are filled using boundary conditions (here 0 at extreme
columns). Also the first horizontal row is filled as in parabolic type. Now for filling the second
horizontal row, we apply the condition * , 0 % .
1
This implies , = , , !.
2
That is two get the second row values, simply apply Bender-Schmidt formula for 0 =
. After
getting first two initial row values, we can apply the explicit formula to get the remaining
values of u.
. So 0 = . implies k = .
.