Many physical phenomena in applied science and engineering when formulated into
mathematical models fall into a category of system known as partial differential equations. A
partial differential equation is a differential equation involving more than one in independent
variables.
We can write a second order equation involving two independent variables in general form as :
Where a,b,c may be constant or function of x & y
The equation 1 is classified as
i. Elliptical if π 2 β 4ππ < 0
ii. Parabolic if π 2 β 4ππ = 0
iii. Hyperbolic if π 2 β 4ππ > 0
Two approaches of solving are
- Finite difference method (where regions are regular)
- Finite element method (where regions are irregular)
Finite difference method
The finite difference method is based on the formula for approximating first and second order
derivatives of a function. In this method derivatives that occurs in partial differential equation are
replaced by their finite difference equivalents. The difference equation is then written for each
grid points using function values at the surrounding grid points. Solving these equations
simultaneously give the values of the function of each grid points.
π₯π+1 = π₯π + β
Β π¦π+1 = π¦π + β
We have already discussed that if the function f(x) has a continuous fourth derivative, then itβs
first and second derivatives are given by the following central difference approximation.
The subscripts on f indicate the x value at which the function is evaluated. When f is a function of
two variables x and y, the partial derivatives of f with respect x or y are the ordinary derivatives
of f with respect to x or y when y or x does not change. We can use the equations 2 and 3 in the x
direction to determine derivatives with respect to x and in the y direction to determine
derivatives with respect to y. thus we have
It would be convenient to use double subscripts i,j on f to indicate x and y values.
Then above equation becomes;
We will use these finite difference equivalents of the partial derivatives to construct various types
of differential equations.
Elliptical equations
Elliptical equations are governed by condition on the boundary of closed domain. We consider
here the two most commonly encountered elliptical equations.
a. Laplaceβs equation
b. Poissonβs equation
Laplaceβs equation
Any equation of the form β 2π = 0 is called laplaceβs equation, where
Where a=1,b=0,c=1 and F(x,y,ππ /ππ₯ , ππ /ππ¦)=0
Where β 2 is called Laplacian operator, above equation can be written as
ππ₯π₯ + ππ¦π¦ = 0
Replacing the second order derivatives by their finite difference equivalents, at points (π₯π , π¦π ) we get
If we assume for simplicity, h=k, then we get
This is called Laplaceβs equation Above equation contains four neighboring points around central points (π₯π , π¦π ) as shown in figure, the above equation is known as five point difference formula for Laplaceβs equation.
we can also represent the relationship of pivotal values pictorially as below.
From above equation we can show that the function value at grid point(π₯π , π¦π ) is the average of the values at the four adjoining points. i.e
To evaluate numerically the solution of Laplace equation at the grid points we can apply equation 9 at the grid points where πππis required thus obtaining a system of linear equations in the pivotal values of πππ. The system of linear equations may be solved using either direct or iterative methods.
Example: Consider a steel plate of size 15cm x 15cm, if two of the side are held at 100oc and other two side are held at 0oc, what are the steady state temperature at interior points assuming a grid of 5cm x 5cm. Note: a problem with values known on each boundary is said to have Dirichlet boundary condition. This problem is illustrated below.
The system of equation is as follows
Point 1:
100 + 100 + π3 + π2 β 4π1 = 0 β¦ β¦ . .1
Point 2:
π1 + 100 + π4 + 0 β 4π2 = 0. . . . . . . .2
Point 3:
100 + π1 + 0 + π4 β 4π3 = 0. . . . . . . .3
Point 4:
π3 + π2 + 0 + 0 β 4π4 = 0. . . . . . . .4
On solving above four equations we get the values as:
π1 = 75, π2 = 50, π3 = 50, π4 = 25
So we can see the interior temperature points as above.
Poissonβs equation
If we put a=1, b=0, c=1 in the equation and F(x,y,f,ππ₯, ππ¦)=g(x,y) then
The above equation a is called poissonβs equation using the notation πππ = π(π₯π , π¦π) and laplace equation may be modified to solve the equation a. the finite difference formula for solving poissonβs equation then takes of the form
Example: Solve the poissonβs equation β 2π = 2π₯ 2π¦ 2 over the square domain 0 β€ π₯ β€ 3 & 0 β€ π¦ β€ 3 with f=0 on the boundary and h=1.
The domain is divided into squares of one unit size as in figure.
By applying equations b at each grid points
Point 1:
0 + 0 + π3 + π2 β 4π1 = 1 2π(1,2)
π2+π3 β 4π1 = 2π₯1 2π₯22
π2+π3 β 4π1 = 8 . . . . . . . . 1
Point 2:
π1 + 0 + 0 + π4 β 4π2 = 1
2π(2,2) π1+π4 β 4π2 = 2π₯2 2π₯2 2
π1 β 4π2 + π4 = 32 . . . . . . . . 2
Point 3:
0 + π1 + 0 + π4 β 4π3 = 1 2π(1,1)
π1+π4 β 4π3 = 2π₯1 2π₯1 2
π1 β 4π3 + π4 = 2 . . . . . . . . 3
Point 4:
π3 + π2 + 0 + 0 β 4π4 = 1 2π(2,1)
π2+π3 β 4π4 = 2π₯2 2 π2 + π3 β 4π4 = 8 . . . . . . . . 4
On solving we get
Therefore the interior points are as above.
Note: we can use any problem-solving methods already discussed for solving the values of fi
Parabolic equations
Elliptical equations studies previously described problems that are time independent, such problems are known as steady state problems, but we come across problems that are not steady state. This means that the function is dependent on both space and time. Parabolic equations for which π 2 β 4ππ = 0, describes the problem that depend on space and time variables.
A popular case for parabolic type of equation is the study of heat flow in one-dimensional direction in an insulated rod, such problems are governed by both boundary and initial conditions.
Let f represent the temperature at any points in rod, whose distance from left end is x. Heat is
flowing from left to right under the influence of temperature gradient. The temperature f(x,t) in
the at position x and time t governed by the heat equation.
Where π1is coefficient of thermal conductivity, π2 is the specific heat and π3 is density of the material.
Equation a can be simplified as
πππ₯π₯(π₯,π‘) = ππ‘ (π₯,π‘) β¦ β¦ . b
Where π = π1/ π2π
The initial condition will be the initial temperatures at all points along the rod .
π(π₯, 0) = π(π₯) 0 β€ π₯ β€ πΏ
The boundary conditions f(0,t) and f(L,t) describes the temperature at each end of the rod as
function of time, if they are held at constant then
π(0,π‘) = π10 β€ π‘ β€ β
π(πΏ,π‘) = π2 0 β€ π‘ β€ β
solution of heat equation
we can solve the heat equation in equation using the finite difference formula given below.
Bender Schmidt method
he recurrence of equation allows us to evaluate f at each point x and at any point t. if we choose
step size βπ‘ & βπ₯, such that
Equation f simplifies to
Equation h is known as Bender Schmidt recurrence equation. This equation determines the value of f at π₯ = π₯π , at time π‘ = π‘π + π as the average of the values right and left of π₯π at time π‘π.
Note that the step size in βπ‘ obtained from equation g.
π = β 2 / 2π
Gives the equation h , equation f is stable if and only if the we step size π satisfies the condition
π β€ β 2 / 2k
Example : Solve the equation 2ππ₯π₯(π₯,π‘) = ππ‘(π₯,π‘) , 0 < π‘ < 1.5 πππ 0 < π₯ < 4 given the initial condition
π(π₯, 0) = 50(4 β π₯)0 β€ π₯ β€ 4
And boundary condition
π(0,π‘) = 0, 0 β€ π‘ β€ 1.5
π(4,π‘) = 0, 0 β€ π‘ β€ 1.5
Solution
If we assume βπ₯ = β = 1, βπ‘ = π (using Bender Schmidt method)
Using the formula we can generate successfully f(x,t). the estimated are recorded in the following
table at each interior point, the temperature at any single point is just average of the values at the
adjacent points of the previous points.
Hyperbolic equation
Hyperbolic equation models the vibration of structure such as building beams and machines we
here consider the case of a vibrating string that is fixed at both the ends as figure.
The lateral displacement of string f varies with time t and distance x along the string. The
displacement f(x,t) is governed by the wave equation
Where T is the tension in the string and Ο is the mass per unit length.
Hyperbolic problems are governed by both boundary and initial conditions, if time is one of the
independent variables. Two boundary conditions are the vibrating string problems under
consideration are
π(0,π‘) = 0, 0 β€ π‘ β€ π
π(πΏ,π‘) = 0, 0 β€ π‘ β€ π
Two initial condition are
π(π₯, 0) = π(π₯), 0 β€ π‘ β€ πΌ
πt(π₯, 0) = π(π₯), 0 β€ π‘ β€ π
Solution hyperbolic equations
The domain of interest 0 β€ π‘ β€ π πππ 0 β€ π‘ β€ π is partitioned as shown in figure, the rectangle
size is βπ₯ = β, βπ‘ = π
The difference equation for ππ₯π₯(π₯,π‘) πππ ππ‘π‘(π₯,π‘) are
The values of f at π₯ = π₯π and π‘ = π‘π + π is equal to the um of the values of f, at the point π₯ = π₯π β β and π₯ = π₯π + β at the time π‘ = π‘π (ππππ£πππ’π π‘πππ) minus the value of f at π₯ = π₯πat time π‘ = π‘π β π.
From figure we can say
ππ΄ = ππ΅ + ππ· β πC
Starting values
We need two rows of starting values, corresponding to j=1 and j=2, in order to computer the
values of the third row. First row is obtained using the condition.
π(π₯, 0) = π(π₯)
The 2nd row can be obtained using the 2nd initial condition as ππ‘ (π₯, 0) = π(π₯)
Example: Solve numerically the wave equation
ππ‘π‘(π₯,π‘) = 4ππ₯π₯(π₯,π‘)0 β€ π₯ β€ 5 & 0 β€ π‘ β€ 2.5
With boundary condition
π(0,π‘) = 0 ππππ(5,π‘) = 0
And initial values
π(π₯, 0) = π(π₯) = π₯(5 β π₯)
ππ‘ (π₯, 0) = π(π₯) = 0
Solution
Let h=1
Given π/π = 4
Reference 1 : Numerical Methods , Dr. V.N. Vedamurthy & Dr. N. Ch. S. N. Iyengar, Vikas Publishing House.