SlideShare a Scribd company logo
1 of 33
Download to read offline
0
NUMERICAL SOLUTIONS OF PARTIAL
DIFFERENTIAL EQUATIONS
PRIYA LEKSHMI S
1
PREFACE
Partial differential equations occur in many branches of applied
mathematics. Some of the area of application includes hydrodynamics,
elasticity, quantum mechanics and electromagnetic theory. The analytic
treatment of these equations is rather involved process and requires
application of advanced mathematical methods. This book is intended to
familiarize the reader with the basic concept of partial differential equation
and its numerical solution. Chapter I contain Preliminaries, chapter II
contains Partial Differential Equations of 2nd
order, chapter III contains
Parabolic Equations and chapter IV contains Hyperbolic Equations.
2
INDEX
Sl.No. Content Page
Number
1 Preface 1
2 Introduction 3
3 Chapter I
Preliminaries
4
4 Chapter II
Partial Differential
Equations of second order
6
5 Chapter III
Parabolic Equations
9
6 Chapter IV
Hyperbolic Equations
3
INTRODUCTION
In the language of mathematics, changing entities are called variables and
the rate of change of one variable with respect to another a derivative.
Equations which express a relationship among these variables and their
derivatives are called differential equations. If there are two or more
independent variables present, so that the equations contains partial
derivatives, it is called partial differential equations.
Second order partial differential equations are classified into elliptic,
parabolic and hyperbolic types.
4
CHAPTER-I
PRELIMINARIES
Definition 1.1
Let y=f(x) be a function of x. Let ∆x be the increment in the value of
x and ∆y, the corresponding increment in the value of v so that
y +∆y = f(x+∆x)
y = f(x + ∆x) - f(x)
( ) ( ) ⁄
⁄ is called incremental ratio.
Definition 1.2
If f is differentiable at each point of its domain D, then f is said to be
a differentiable function.
Definition 1.3
An equation involving independent and dependent variables and the
derivatives or differentials of one or more dependent variables with respect
to one or more independent variables is called differential equation.
Definition 1.4
A differential equation which involves derivatives with respect to a
single independent variables is known as an ordinary differential equation.
5
Definition 1.5
A differential equation which contains two or more independent
variables and partial derivatives with respect to them is called a partial
differential equation.
Definition 1.6
The order of the highest order derivative involved in a differential
equation is called the order of a differential equation.
Definition 1.7
The degree of a differential equation is the degree of the highest
order derivative present in the equation.
6
CHAPTER-II
PARTIAL DIFFERENTIAL EQUATIONS OF
SECOND ORDER
2:1 - Classification of Second Order Partial Differential Equation
The general second order linear partial differential equations in two
independent variables is of the form.
which can be written as,
Auxx + Buxy + Cuvy + Dux + Euy + Fu = G where A, B. C, D, E, F, G
are functions of x and y
The above equations is said to be elliptic or parabolic or hyperbolic at
point (x,y) in the plane according as B2
- 4AC <0 or B2
- 4AC = 0 or
B2
- 4AC >0
It is possible for a second order partial differential equation to be
elliptic in one region, parabolic in another and hyperbolic in some other
region.
For example consider
xuxx + uyy = 0 →(2.1)
Here A=x; B = 0; C =1 so that,
7
B2
-4AC =-4x
The equation (2.1) is elliptic if B2
-4AC <0
-4x < 0 if x>0
Similarly, parabolic If x = 0
And hyperbolic if x < 0
Examples 2:2:1
Classify the equations
(i) uxx + 2uxy + uyy = 0
(ii) x2
fxx+(1-y2
)fyy=0
(iii) uxx + 4uxy + (x2
+ 4y2
)uyv = sinxy
Solution: (i) comparing the given equations with the general second order
linear, partial differential equation, we have
A = 1; B = 2; C = 1
Now B2
- 4AC = 4 - 4 = 0
The given equation is parabolic
(ii) Here A=x2
; B=0; C=1-y2
Now B2
- 4AC = 0 - 4x2
(1-y2
)= 4x2
(y2
-1)
We note that x 2
>0 for all x except x = 0 and y2
-1 < 0 for all y
such that -1 <y< 1
8
B2
-4AC <0 for all x≠0 and - 1 <y< 1
The equations is elliptic in the region given by x≠0 and - 1<y<1
Similarly the equation is hyperbolic in the region given by x≠0 and
y < -1 or y > 1
B2
- 4AC = 4x2
(y2
-1) = 0
If x = 0 or y2
=1,
The equation is parabolic if x = 0 or y=±1
(iii) uyy + uyy + (x2
+ 4y2
)uyy = sin xy
Here A=1, B=4 and C=x2
+4y2
Now, B2
- 4AC = 16 - 4(x2
+ 4y2
)
= 4[4 - x2
- 4y2
]
The equation is elliptic if 4 - x 2
- 4y2
< 0
ie, if x2
+4y 2
> 4
if ⁄ ⁄
The equation is elliptic in the region outside ellipse ⁄ ⁄
It is hyperbolic inside the ellipse ⁄ ⁄
It is hyperbolic on the ellipse ⁄ ⁄
9
CHAPTER - III
PARABOLIC EQUATIONS
3:1 - Parabolic Equations
We consider the heat conduction equation.
, C being a constant  (3:1)
Let the (x,t) plane divided into smaller rectangles by means at the sets of
lines
x=ih,i=0,1,2,…
t=jk, j=0,1,2,…
Using the approximations
And
⁄
Equation (3:1) can be replaced by the finite - difference analogue.
⁄ [ ] ⁄ ( )
Which can be written as.
( )
10
Where
( )⁄
This formula express the unknown function value at the (i,j+l)th
interior point in terms of the known function. Values and hence it is called
the explicit formula, it can be shown that this formula is valid only for
⁄
For ⁄
⁄ ( )
Which is called Bender-Schmidt recurrence relation.
We have used the function values along the jth
row only the
approximation of
Crank and Nicolson proposed a method in 1947 according to which
is replaced by the average of its finite difference approximations on the
jth
and (j+1)th
rows.
11
Thus,
⁄
Hence the equation (5;1) is replaced by
⁄ [ ] ⁄
Which gives on rearranging
( ) ( )
where
( )⁄
On the left side we have three unknowns and on the right side all the
three quantities are known which is an implicit scheme is called Crank-
Nicolson formula and is convergent for all finite values of .
Problem: 3:1:1
Solve the parabolic equation
Given that ux(0,t) = 0
u(2,t) = 1
u(x,0) = 1 if 0 < x < 2 & i > 0
giving the solution for x = 0(0.5)2.0 and t = 0(0.125)0.5 ( t varies from 0 to
0.5 with step 0.125).
12
Solution: Given
a = 1 , Also h = 0.5 , and k = 0.125
Hence ⁄ = 0.5
u2,t = I and u(x,0) =1,
give all values of u as 1 along the last column and first row.
We know that ,
( )
ux(0,t) = 0 implies u i, j = u -1 , j
Thus the initial condition. ux(0,t)= 0 implies that the values of u at different
points along the lines x = k, and x = -k are equal.
In particular
u0.5,0 = u-0.5,0 =1
The other values of ui,j are found by using Schmidt’s equation as
shown below.
13
i
j
-0.5 0 0.5 1.0 1.5 2.0
-1 0 1 2 3 4
0 0 1 1 1 1 1 1
0.125 1 1 1 1 1 1 1
0.250 2 1 1 1 1 1 1
0.375 3 1 1 1 1 1 1
0.50 4 1 1 1 1 1 1
3:2 Schmidt’s Method
Consider a rectangular mesh in the x-t plane with side length h and k
in the x and t directions respectively.
Let us denote the mesh point
(x,y) = (ih,jk) by i , j
Then we have,
=
Substituting in the equation
= 0 , we get ,
( )
14
( )
( )
where =
 ( )
Now , the boundary conditions ,
u(0,t) = T0
u(1,t) = T1
Can be written in the difference notation as
u0,j = T0
and un,j = T1 where nh =1 and the condition
u(x,0) = f (x) as
ui,0 = f (ih) ; i = 1, 2, 3, …
we choose k in such a way that the coefficient of ui,j in (3:2) is zero
then (3:2) becomes
Coefficient of
( )
=
15
Further

This equation called Schmidt Recurrence equation.
Problem 3:2:1
Using Schmidt’s method solve
given that
u(0,t) = 0 ; u(1,t) = 0 ; u(x,0) =sin πx for 0 < x < 1 and taking h = 1
/3 ,
k = 1
/36 carry out the computation only for 2 levels ?
Solution :
Hence a = 1 ; since h = 1
/3 and k = 1
/36 ; ⁄
Since 0 < < 1
/2 we can use Schmidt’s explicit formula
( ) for ⁄
⁄ ⁄ ⁄
⁄ ( )
The boundary condition u(0,t) = 0 gives all values of ui,j on the t axis and
u(1,t) = 0 , gives all values of ui,j on the line x= 1
16
The initial condition,
u(x,0) = sin x can be written as
u1,0 = sin x
 u1,0 = sin( ⁄ )= √ ⁄
u2,0 = sin( ⁄ )= √ ⁄
Putting j = 0 and i = 1
u1,1 = ⁄ u2,0 + 2u1,0+ u0,0]
= ⁄ √ ⁄ (√ ⁄ )
=0.65
Putting j = 0 and i = 2
u2,1 = ⁄ u3,0 + 2u2,0+ u1,0]
= ⁄ (√ ⁄ ) (√ ⁄ )
=0.65
Putting j = 1 and i = 2 respectively , we get
u1,2 = ⁄ u2,1 + 2u1,1+ u0,1]
17
= ⁄ ( )
=0.49
U2,2 = ⁄ u3,1 + 2u2,1+ u1,1]
= ⁄ ( )
=0.49
3:3 – Crank-Nicholson Difference Method
In Schmidt’s explicit formula we used the function. Values along the j
th
row only in the approximation of uxx as.
=
Crank and Nicholson proposed a method in which uxx is replaced by
the average of it’s finite difference approximation in the
j th
and (j+1) th
rows.
Thus
⁄
For ut we use the forward difference approximation ,
18
The one dimensional heat equation reduces to
( )
Setting the above equation becomes,
 ( )
⁄ ⁄ ⁄ ⁄
 ( ) ( ) ( ) ( )
This equation is called Crank-Nicholson Difference Scheme or
Crank-Nicholson Difference Method .
Problem 3:3:1
Solve by Crank- Nicholson’s method
for 0 < x < 1 , t > 0
Given that u(0,t) = 0, u(1,t) = 0 and u(x,0) = 100(x-x2
) compute u for one
time step with h = ⁄
Solution : Here a = 1, h= ⁄
Choose k = ah2
= ⁄ , Hence = ⁄ = 1
 we can use the simplified formula of Crank- Nicholson for = 1
⁄ [ ] →(3:3)
19
Since we have to compute the values of u for only one step of time ‘t’ let the
required values of u be u1,u2,u3
Put j = 0 and i = 1,2, 3, 4 in (3:3)
We get all these values as follows :
Putting j =0 and i = 1,
u1,1= u 1 = ⁄ u0,1 + u2,1+ u0,0+ u2,0]
 u 1 = ⁄ 0 + u2+ 0 + 25]
Hence u 1 = ⁄ u2 + 25] →(3:4)
Putting j =0 and i = 2,
u2,1= u 2 = ⁄ u1,1 + u3,1+ u1,0+ u3,0]
 u 2 = ⁄ u1 + u3+ 18.75+18.75]
Hence u 2 = ⁄ u1 +u3+ 37.5] →(3:5)
Putting j = 0 and i = 3,
u3,1= u 3 = ⁄ u2,1 + u4,1+ u2,0+ u4,0]
 u 3 = ⁄ u2 + 0 + 25 +0]
20
Hence u 3 = ⁄ u2 +25] →(3:6)
From (3:4) & (3:5)
u1 = u3
Hence (5:4) & (5:5) become
u 1 = ⁄ u2 + 25]
u 2 = ⁄ 2u1 + 37.5]
Solving for u1 and u2 we get u1 = 9.82 , u2 = 14.29, u3 = 9.82
Problem 3:3:2
Solve by Schmidt’s method ut = 5uxx with the conditions,
u(0,t) = 0
u(5,t) = 60,
and u(x,0) = {
for 5 times steps having h = 1,
Solution: Given uxx = ⁄ ut →(3:7)
 a = ⁄ , take h = 1 , and
K = ⁄ ,  = ⁄ ⁄
21
Hence we can use Schmidt’s recurrence method to solve (3:7)
The boundary condition u(0,t) = 0 gives all entries zero in the first
column. Similarly u(5,t) = 60 gives all entries 60 in the fifth column,
The initial condition,
u(x,0) = {
gives the values of u i,j of the first row, they are
u1,0 =20, u2,0 =40, u3,0 =60,
u4,0 =60, u5,0 =60,
All these above values of u i,j are shown in the following table in bold
letters,
i 0 1 2 3 4 5
j 0 1 2 3 4 5
0 0 0 20 40 60 60 60
0.1 1 0 20 40 50 60 60
0.2 2 0 20 35 50 55 60
0.3 3 0 17.5 35 45 55 60
0.4 4 0 17.5 31.25 45 52.5 60
0.5 5 0 15.625 31.25 41.875 52.5 60
22
The other values of the u got from Schmidt’s recurrence formula
⁄
Problem 3:3:3
Using Crank - Nicholson methods
Solve uxx= ut subject to,
( ) ( ) ( )
Taking h = ⁄ & k = ⁄ compute u for one time step only?
Solution:
Here a = 1 , 0 ≤ x ≤ 1 and
t= 0 , ⁄
⁄
⁄
( ⁄ )
Since Crank – Nicholson formula , here,
[ ] [ ]
ie →(3:8)
The initial and boundary values of u , given in the table in bold
letters, and the other values are got from (5:8
Let →(3:9)
23
i
j 0 1 2 3 4
0 0 0 0 0 0
1 0 u1 u2 u3 ⁄
Putting j = 0 and i = 1 in (3:8) we have
u2,1 + u0,1+ u1,1 = u1,0 - u2,0- u0,0
(ie) u2 + 0 – 3u1 = 0 – 0- 0
(ie) u2 = 3u1  (3:10)
Putting j = 0 and i = 2 in (3:8) we have
u3,1 + u1,1-3 u2,1 = u2,0 – u3,0- u1,0
(ie) u3 + 0 – 3u2 = 0
(ie) u1 + u3 = 3u2  (3:11)
Putting j = 0 and i = 3 in (3:8) we have
u4,1 + u2,1-3 u3,1 = u3,0 – u4,0- u2,0
⁄ + u2 – 3u3 = 0
(ie) 3u3 – u2 = ⁄  (3:12)
Solving (3:10) , (3:11) & (3:12) , we get
u1 = 0.00595 , u2 = 0.01789 , u3 = 0.04762
24
CHAPTER – IV
HYPERBOLIC EQUATIONS
4:1-Hyperbolic Equations
We consider the equations
utt=c2
uxx  (4:1)
u (x,0)= f(x)  (4:2)
ut(x,0) = (x) (4:3)
u(0,t) = 1(t) (4:4)
u(1,t) = 2(t) (4:5)
For which models the traverse vibrations of a stretched string.
As in the previous cases, we use the following difference approximations
for the derivatives,
⁄ [ ] ( ) → (4:6)
and ⁄ [ ] ( ) → (4:7)
25
Where x = ih , i = 0 , 1 , 2,…..
and t =jk, j = 0 , 1 , 2 , ……..
ut(x,t) = +O(k2
)
Substituting (4:6),(4:7), in (4:1), we obtain
⁄ (ui,j-1 – 2ui,j + ui,j+1) = ⁄ (ui-1,j – 2ui,j + ui+1,j ) → (4:8)
Putting ⍺ = ⁄ in the above and rearranging the terms, we obtain
ui,j+1 = -ui,j-1 + (ui-1,j + ui+1,j) + 2(1- )ui,j → (4:9)
formula (6:9) shows that the function values at the j
th
and (j-1)th
time
levels are required in order to determine those at the (j+1)th
time level. Such
difference schemes are called three level difference schemes compared to
the two level schemes derived in the parabolic case.
By expanding the terms in (4:9) as Tayolr’s series and simplifying it
can be shown that the truncation error in (4:9) is 0( + ) Further ,
formula (4:9) holds good ⍺ < 1, which is the condition for stability.
26
There exist implicit finite difference schemes for the equation given by (4:1)
two such schemes are ,
= ⁄ ui+1,j+1 – 2ui,j+1 + ui-1,j+1]
+ ui+1,j-1 – 2ui,j-1 + ui-1,j-1] → (4:10)
and,
= ⁄ ui+1,j+1 – 2ui,j+1 + ui-1,j+1]
+2 ui+1,j – 2ui,j + ui-1,j]
+ ui+1,j-1 , 2ui,j-1 + ui-1,j-1] → (4:11)
Formula (6:10) & (6:11) hold good for all values of ⁄
Problem :4:1:1
Solve the equation
=
Subject to the following conditions
u(0,t) = 0 & u(1,t) = 0, if t < 0
27
and (0,t) = 0 & u(x,0) = sin
3
( x), for all x in 0 x 1
solution
u(x,t) = ⁄ sin x cos t - ⁄ sin x cos → (4:12)
we use the explicit formula,
ui,j+1 = -ui,j-1 + (ui-1,j + ui+1,j) + 2(1- )ui,j → (4:13)
where = ⁄ < 1
Let h = 0.25, and k = 0.2
Hence = ⁄ = 0.8
So that the stability condition is satisfied,
Let u i,j = u(ih, jk)
So that the boundary conditions become,
u0,j = 0 → ( )
u4,j = 0 → ( )
ui,0 = sin3
( ) → ( )
i = 1, 2, 3, 4
ui,j – ui,-1 = 0 so that
ui,-1 = ui, 1
Substituting the value of = 0.8
Equation (6:13) becomes
ui,j+1 = ui,j-1 + 0.64(ui-1,j + ui+1,j) + 2(0.36)ui,j → (iv)
At the first step j = 0
 ui,1 = -ui,-1 + 0.64(ui-1,j + ui+1,j) + 2(0.36)ui,j → (v)
28
ui,1 = 0.32(ui-1,j + ui+1,j) + 0.36ui,j
using (vi)
Hence u1,1 = 0.32(u0,j + u2,0) + 0.36u1,0
= 0.32(0+1) + 0.36(0.357)
= 0.4473
The exact value u(0.25, 0.2) = 0.4838
u2,1 = 0.32[0.3537 + 0.3537] + 0.36(1.0) = 0.5867
Exact value = 0.5296
finally,
u3,1 = 0.32 (1.0+0) + 0.36 (0.3537)
= 0.4473,
exact value = 0.4838
4:2-Wave Equation
One of the most important and typical homogeneous hyperbolic
differential equations is the wave equation.
It is of the form
Where C is the wave speed. This differential equation is used in
many branches of physics and Engineering and is seen in many situations
such as transverse vibrations of a string or membrane, longitudinal
29
vibrations in a bar, propagation of sound waves, electromagnetic waves, sea
waves, elastic waves in solids, and surface waves as in earth quakes.
The solution of a wave equation is called a wave function,
An example for inhomogeneous wave equation is
Where F is a given function of partial variables and time. In physical
problems F represents an external driving force such as gravity force,
Another related equation is,
Where is a real positive constant. This equation is called a wave
equation with damping term, the amplitude of which decreases
exponentially as t decreases.
Definition 4:2:1-The one dimensional wave equation
The one dimensional wave equation is given by,
30
This is a hyperbolic equation
We proceed to develop a method for obtaining numerical solution of
the one – dimensional wave equation.
a2
uxx – uu = 0 → (4:14)
Subject to the boundary conditions
u(0,t) = 0 → (4:15)
u(1,t) = 0 → (4:16)
and the initial condition
u(x,0) = f(x) → (4:17)
ut(x,0) = 0 → (4:18)
Replacing the partial derivatives in(4:14) by the difference quotients.
uxx =
utt =
we get a2
= [ - ]
ie,
Taking ⁄ , we get.
( )
( ) ( ) → (4:19)
This scheme is called an explicit scheme for the solution of the wave
equation.
Problem: 4:2:2
Solve 4uxx=utt subject to the conditions
u(0,t) = 0 = u(4,t),
ut(x,0) = 0 and
31
u(x,o) = x (4-x)
Take h = 1, and obtain solution up to 5 time steps ?
Solution:
Here a2
= 4 and h =1, we choose k such that k = ⁄ = 0.5
The boundary conditions,
u(0 ,t) = 0 and u(0 ,t) = 0
give all values 0 in the first and fourth columns.
Now , u(x,0) = x (4-x)
= 0;
= 3;
= 4;
= 3;
= 0;
Now ut(x,0) = 0
⁄
for …
we get,
⁄ [ ] ⁄
32
⁄ [ ] ⁄
⁄ [ ] ⁄
The other values of u1,1 are obtained from the recurrence relation.
And are the given in the table
i
j
0 1 2
3 4
0 1 2
3 4
0 0 0 3 4 3 0
0.5 1 0 2 3 2 0
1.0 2 0 0 0 0 0
1.5 3 0 -2 -3 -2 0
2.0
4
0
-3 -4 -3
0
2.5 5
0 -2
-3
-2 0

More Related Content

What's hot

Deriving the composition of functions
Deriving the composition of functionsDeriving the composition of functions
Deriving the composition of functionsAlona Hall
 
Continuity of a Function
Continuity of a Function Continuity of a Function
Continuity of a Function Vishvesh Jasani
 
Lesson 18: Maximum and Minimum Values (slides)
Lesson 18: Maximum and Minimum Values (slides)Lesson 18: Maximum and Minimum Values (slides)
Lesson 18: Maximum and Minimum Values (slides)Matthew Leingang
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at InfinityMatthew Leingang
 
Inverse Function.pptx
Inverse Function.pptxInverse Function.pptx
Inverse Function.pptxSerGeo5
 
Two Step Equations Jeopardy
Two Step Equations JeopardyTwo Step Equations Jeopardy
Two Step Equations Jeopardykwest
 
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)inaz2
 
Newton Forward Difference Interpolation Method
Newton Forward Difference Interpolation MethodNewton Forward Difference Interpolation Method
Newton Forward Difference Interpolation MethodAdeel Rasheed
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualReece1334
 
Chapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformChapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformAttaporn Ninsuwan
 
Evaluating Functions
Evaluating FunctionsEvaluating Functions
Evaluating FunctionsNICO MONTERO
 
Equation of a circle
Equation of a circleEquation of a circle
Equation of a circlevhughes5
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolationVISHAL DONGA
 
vector space and subspace
vector space and subspacevector space and subspace
vector space and subspace2461998
 
Lesson 19: Partial Derivatives
Lesson 19: Partial DerivativesLesson 19: Partial Derivatives
Lesson 19: Partial DerivativesMatthew Leingang
 

What's hot (20)

Deriving the composition of functions
Deriving the composition of functionsDeriving the composition of functions
Deriving the composition of functions
 
Euler theorems
Euler theoremsEuler theorems
Euler theorems
 
Continuity of a Function
Continuity of a Function Continuity of a Function
Continuity of a Function
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Lesson 18: Maximum and Minimum Values (slides)
Lesson 18: Maximum and Minimum Values (slides)Lesson 18: Maximum and Minimum Values (slides)
Lesson 18: Maximum and Minimum Values (slides)
 
Chapter2
Chapter2Chapter2
Chapter2
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at Infinity
 
Inverse Function.pptx
Inverse Function.pptxInverse Function.pptx
Inverse Function.pptx
 
Two Step Equations Jeopardy
Two Step Equations JeopardyTwo Step Equations Jeopardy
Two Step Equations Jeopardy
 
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)
ROP Illmatic: Exploring Universal ROP on glibc x86-64 (ja)
 
Newton Forward Difference Interpolation Method
Newton Forward Difference Interpolation MethodNewton Forward Difference Interpolation Method
Newton Forward Difference Interpolation Method
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manual
 
Chapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformChapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier Transform
 
Evaluating Functions
Evaluating FunctionsEvaluating Functions
Evaluating Functions
 
Fourier series 2
Fourier series 2Fourier series 2
Fourier series 2
 
Equation of a circle
Equation of a circleEquation of a circle
Equation of a circle
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 
vector space and subspace
vector space and subspacevector space and subspace
vector space and subspace
 
Unit1 vrs
Unit1 vrsUnit1 vrs
Unit1 vrs
 
Lesson 19: Partial Derivatives
Lesson 19: Partial DerivativesLesson 19: Partial Derivatives
Lesson 19: Partial Derivatives
 

Viewers also liked

Digital text book
Digital text bookDigital text book
Digital text bookaliyamol
 
Fractional calculus and applications
Fractional calculus and applicationsFractional calculus and applications
Fractional calculus and applicationsPlusOrMinusZero
 
Digital text book.
Digital text book.Digital text book.
Digital text book.ashapta
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Chyi-Tsong Chen
 
Finite DIfference Methods Mathematica
Finite DIfference Methods MathematicaFinite DIfference Methods Mathematica
Finite DIfference Methods Mathematicaguest56708a
 

Viewers also liked (8)

Digital text book
Digital text bookDigital text book
Digital text book
 
C programming
C programmingC programming
C programming
 
Fractional calculus and applications
Fractional calculus and applicationsFractional calculus and applications
Fractional calculus and applications
 
FPDE presentation
FPDE presentationFPDE presentation
FPDE presentation
 
Digital Textbook Report 2014
Digital Textbook Report 2014Digital Textbook Report 2014
Digital Textbook Report 2014
 
Digital text book.
Digital text book.Digital text book.
Digital text book.
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
Finite DIfference Methods Mathematica
Finite DIfference Methods MathematicaFinite DIfference Methods Mathematica
Finite DIfference Methods Mathematica
 

Similar to Maths digital text

Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life OlooPundit
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODEkishor pokar
 
Solution set 3
Solution set 3Solution set 3
Solution set 3慧环 赵
 
Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Yuliyamira
 
adv-2015-16-solution-09
adv-2015-16-solution-09adv-2015-16-solution-09
adv-2015-16-solution-09志远 姚
 
Presentation - Copy.pdf
Presentation - Copy.pdfPresentation - Copy.pdf
Presentation - Copy.pdfbushratufail3
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...Alexander Decker
 
Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Rani Sulvianuri
 
Advanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdfAdvanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdfWhitney Anderson
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - NotesDr. Nirav Vyas
 
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxMA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxinfantsuk
 

Similar to Maths digital text (20)

Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
 
Cs jog
Cs jogCs jog
Cs jog
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODE
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
 
Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Ecuaciones diferenciales c1
Ecuaciones diferenciales c1
 
160280102051 c3 aem
160280102051 c3 aem160280102051 c3 aem
160280102051 c3 aem
 
adv-2015-16-solution-09
adv-2015-16-solution-09adv-2015-16-solution-09
adv-2015-16-solution-09
 
Presentation - Copy.pdf
Presentation - Copy.pdfPresentation - Copy.pdf
Presentation - Copy.pdf
 
Calc 6.1a
Calc 6.1aCalc 6.1a
Calc 6.1a
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...
 
Mech MA6351 tpde_notes
Mech MA6351 tpde_notes Mech MA6351 tpde_notes
Mech MA6351 tpde_notes
 
Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014
 
ODE.pdf
ODE.pdfODE.pdf
ODE.pdf
 
Advanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdfAdvanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdf
 
Unit v
Unit vUnit v
Unit v
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - Notes
 
1. introduction to complex numbers
1. introduction to complex numbers1. introduction to complex numbers
1. introduction to complex numbers
 
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docxMA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
MA 243 Calculus III Fall 2015 Dr. E. JacobsAssignmentsTh.docx
 
9 pd es
9 pd es9 pd es
9 pd es
 
Ma2002 1.16 rm
Ma2002 1.16 rmMa2002 1.16 rm
Ma2002 1.16 rm
 

More from VISHNUNIVASPRIYA (6)

Lesson plan
Lesson planLesson plan
Lesson plan
 
(675275769) neethuimporta
(675275769) neethuimporta(675275769) neethuimporta
(675275769) neethuimporta
 
Article of priya
Article of priyaArticle of priya
Article of priya
 
Priya1
Priya1Priya1
Priya1
 
Priya
PriyaPriya
Priya
 
Priya lekshmi
Priya lekshmiPriya lekshmi
Priya lekshmi
 

Recently uploaded

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Maths digital text

  • 1. 0 NUMERICAL SOLUTIONS OF PARTIAL DIFFERENTIAL EQUATIONS PRIYA LEKSHMI S
  • 2. 1 PREFACE Partial differential equations occur in many branches of applied mathematics. Some of the area of application includes hydrodynamics, elasticity, quantum mechanics and electromagnetic theory. The analytic treatment of these equations is rather involved process and requires application of advanced mathematical methods. This book is intended to familiarize the reader with the basic concept of partial differential equation and its numerical solution. Chapter I contain Preliminaries, chapter II contains Partial Differential Equations of 2nd order, chapter III contains Parabolic Equations and chapter IV contains Hyperbolic Equations.
  • 3. 2 INDEX Sl.No. Content Page Number 1 Preface 1 2 Introduction 3 3 Chapter I Preliminaries 4 4 Chapter II Partial Differential Equations of second order 6 5 Chapter III Parabolic Equations 9 6 Chapter IV Hyperbolic Equations
  • 4. 3 INTRODUCTION In the language of mathematics, changing entities are called variables and the rate of change of one variable with respect to another a derivative. Equations which express a relationship among these variables and their derivatives are called differential equations. If there are two or more independent variables present, so that the equations contains partial derivatives, it is called partial differential equations. Second order partial differential equations are classified into elliptic, parabolic and hyperbolic types.
  • 5. 4 CHAPTER-I PRELIMINARIES Definition 1.1 Let y=f(x) be a function of x. Let ∆x be the increment in the value of x and ∆y, the corresponding increment in the value of v so that y +∆y = f(x+∆x) y = f(x + ∆x) - f(x) ( ) ( ) ⁄ ⁄ is called incremental ratio. Definition 1.2 If f is differentiable at each point of its domain D, then f is said to be a differentiable function. Definition 1.3 An equation involving independent and dependent variables and the derivatives or differentials of one or more dependent variables with respect to one or more independent variables is called differential equation. Definition 1.4 A differential equation which involves derivatives with respect to a single independent variables is known as an ordinary differential equation.
  • 6. 5 Definition 1.5 A differential equation which contains two or more independent variables and partial derivatives with respect to them is called a partial differential equation. Definition 1.6 The order of the highest order derivative involved in a differential equation is called the order of a differential equation. Definition 1.7 The degree of a differential equation is the degree of the highest order derivative present in the equation.
  • 7. 6 CHAPTER-II PARTIAL DIFFERENTIAL EQUATIONS OF SECOND ORDER 2:1 - Classification of Second Order Partial Differential Equation The general second order linear partial differential equations in two independent variables is of the form. which can be written as, Auxx + Buxy + Cuvy + Dux + Euy + Fu = G where A, B. C, D, E, F, G are functions of x and y The above equations is said to be elliptic or parabolic or hyperbolic at point (x,y) in the plane according as B2 - 4AC <0 or B2 - 4AC = 0 or B2 - 4AC >0 It is possible for a second order partial differential equation to be elliptic in one region, parabolic in another and hyperbolic in some other region. For example consider xuxx + uyy = 0 →(2.1) Here A=x; B = 0; C =1 so that,
  • 8. 7 B2 -4AC =-4x The equation (2.1) is elliptic if B2 -4AC <0 -4x < 0 if x>0 Similarly, parabolic If x = 0 And hyperbolic if x < 0 Examples 2:2:1 Classify the equations (i) uxx + 2uxy + uyy = 0 (ii) x2 fxx+(1-y2 )fyy=0 (iii) uxx + 4uxy + (x2 + 4y2 )uyv = sinxy Solution: (i) comparing the given equations with the general second order linear, partial differential equation, we have A = 1; B = 2; C = 1 Now B2 - 4AC = 4 - 4 = 0 The given equation is parabolic (ii) Here A=x2 ; B=0; C=1-y2 Now B2 - 4AC = 0 - 4x2 (1-y2 )= 4x2 (y2 -1) We note that x 2 >0 for all x except x = 0 and y2 -1 < 0 for all y such that -1 <y< 1
  • 9. 8 B2 -4AC <0 for all x≠0 and - 1 <y< 1 The equations is elliptic in the region given by x≠0 and - 1<y<1 Similarly the equation is hyperbolic in the region given by x≠0 and y < -1 or y > 1 B2 - 4AC = 4x2 (y2 -1) = 0 If x = 0 or y2 =1, The equation is parabolic if x = 0 or y=±1 (iii) uyy + uyy + (x2 + 4y2 )uyy = sin xy Here A=1, B=4 and C=x2 +4y2 Now, B2 - 4AC = 16 - 4(x2 + 4y2 ) = 4[4 - x2 - 4y2 ] The equation is elliptic if 4 - x 2 - 4y2 < 0 ie, if x2 +4y 2 > 4 if ⁄ ⁄ The equation is elliptic in the region outside ellipse ⁄ ⁄ It is hyperbolic inside the ellipse ⁄ ⁄ It is hyperbolic on the ellipse ⁄ ⁄
  • 10. 9 CHAPTER - III PARABOLIC EQUATIONS 3:1 - Parabolic Equations We consider the heat conduction equation. , C being a constant  (3:1) Let the (x,t) plane divided into smaller rectangles by means at the sets of lines x=ih,i=0,1,2,… t=jk, j=0,1,2,… Using the approximations And ⁄ Equation (3:1) can be replaced by the finite - difference analogue. ⁄ [ ] ⁄ ( ) Which can be written as. ( )
  • 11. 10 Where ( )⁄ This formula express the unknown function value at the (i,j+l)th interior point in terms of the known function. Values and hence it is called the explicit formula, it can be shown that this formula is valid only for ⁄ For ⁄ ⁄ ( ) Which is called Bender-Schmidt recurrence relation. We have used the function values along the jth row only the approximation of Crank and Nicolson proposed a method in 1947 according to which is replaced by the average of its finite difference approximations on the jth and (j+1)th rows.
  • 12. 11 Thus, ⁄ Hence the equation (5;1) is replaced by ⁄ [ ] ⁄ Which gives on rearranging ( ) ( ) where ( )⁄ On the left side we have three unknowns and on the right side all the three quantities are known which is an implicit scheme is called Crank- Nicolson formula and is convergent for all finite values of . Problem: 3:1:1 Solve the parabolic equation Given that ux(0,t) = 0 u(2,t) = 1 u(x,0) = 1 if 0 < x < 2 & i > 0 giving the solution for x = 0(0.5)2.0 and t = 0(0.125)0.5 ( t varies from 0 to 0.5 with step 0.125).
  • 13. 12 Solution: Given a = 1 , Also h = 0.5 , and k = 0.125 Hence ⁄ = 0.5 u2,t = I and u(x,0) =1, give all values of u as 1 along the last column and first row. We know that , ( ) ux(0,t) = 0 implies u i, j = u -1 , j Thus the initial condition. ux(0,t)= 0 implies that the values of u at different points along the lines x = k, and x = -k are equal. In particular u0.5,0 = u-0.5,0 =1 The other values of ui,j are found by using Schmidt’s equation as shown below.
  • 14. 13 i j -0.5 0 0.5 1.0 1.5 2.0 -1 0 1 2 3 4 0 0 1 1 1 1 1 1 0.125 1 1 1 1 1 1 1 0.250 2 1 1 1 1 1 1 0.375 3 1 1 1 1 1 1 0.50 4 1 1 1 1 1 1 3:2 Schmidt’s Method Consider a rectangular mesh in the x-t plane with side length h and k in the x and t directions respectively. Let us denote the mesh point (x,y) = (ih,jk) by i , j Then we have, = Substituting in the equation = 0 , we get , ( )
  • 15. 14 ( ) ( ) where =  ( ) Now , the boundary conditions , u(0,t) = T0 u(1,t) = T1 Can be written in the difference notation as u0,j = T0 and un,j = T1 where nh =1 and the condition u(x,0) = f (x) as ui,0 = f (ih) ; i = 1, 2, 3, … we choose k in such a way that the coefficient of ui,j in (3:2) is zero then (3:2) becomes Coefficient of ( ) =
  • 16. 15 Further  This equation called Schmidt Recurrence equation. Problem 3:2:1 Using Schmidt’s method solve given that u(0,t) = 0 ; u(1,t) = 0 ; u(x,0) =sin πx for 0 < x < 1 and taking h = 1 /3 , k = 1 /36 carry out the computation only for 2 levels ? Solution : Hence a = 1 ; since h = 1 /3 and k = 1 /36 ; ⁄ Since 0 < < 1 /2 we can use Schmidt’s explicit formula ( ) for ⁄ ⁄ ⁄ ⁄ ⁄ ( ) The boundary condition u(0,t) = 0 gives all values of ui,j on the t axis and u(1,t) = 0 , gives all values of ui,j on the line x= 1
  • 17. 16 The initial condition, u(x,0) = sin x can be written as u1,0 = sin x  u1,0 = sin( ⁄ )= √ ⁄ u2,0 = sin( ⁄ )= √ ⁄ Putting j = 0 and i = 1 u1,1 = ⁄ u2,0 + 2u1,0+ u0,0] = ⁄ √ ⁄ (√ ⁄ ) =0.65 Putting j = 0 and i = 2 u2,1 = ⁄ u3,0 + 2u2,0+ u1,0] = ⁄ (√ ⁄ ) (√ ⁄ ) =0.65 Putting j = 1 and i = 2 respectively , we get u1,2 = ⁄ u2,1 + 2u1,1+ u0,1]
  • 18. 17 = ⁄ ( ) =0.49 U2,2 = ⁄ u3,1 + 2u2,1+ u1,1] = ⁄ ( ) =0.49 3:3 – Crank-Nicholson Difference Method In Schmidt’s explicit formula we used the function. Values along the j th row only in the approximation of uxx as. = Crank and Nicholson proposed a method in which uxx is replaced by the average of it’s finite difference approximation in the j th and (j+1) th rows. Thus ⁄ For ut we use the forward difference approximation ,
  • 19. 18 The one dimensional heat equation reduces to ( ) Setting the above equation becomes,  ( ) ⁄ ⁄ ⁄ ⁄  ( ) ( ) ( ) ( ) This equation is called Crank-Nicholson Difference Scheme or Crank-Nicholson Difference Method . Problem 3:3:1 Solve by Crank- Nicholson’s method for 0 < x < 1 , t > 0 Given that u(0,t) = 0, u(1,t) = 0 and u(x,0) = 100(x-x2 ) compute u for one time step with h = ⁄ Solution : Here a = 1, h= ⁄ Choose k = ah2 = ⁄ , Hence = ⁄ = 1  we can use the simplified formula of Crank- Nicholson for = 1 ⁄ [ ] →(3:3)
  • 20. 19 Since we have to compute the values of u for only one step of time ‘t’ let the required values of u be u1,u2,u3 Put j = 0 and i = 1,2, 3, 4 in (3:3) We get all these values as follows : Putting j =0 and i = 1, u1,1= u 1 = ⁄ u0,1 + u2,1+ u0,0+ u2,0]  u 1 = ⁄ 0 + u2+ 0 + 25] Hence u 1 = ⁄ u2 + 25] →(3:4) Putting j =0 and i = 2, u2,1= u 2 = ⁄ u1,1 + u3,1+ u1,0+ u3,0]  u 2 = ⁄ u1 + u3+ 18.75+18.75] Hence u 2 = ⁄ u1 +u3+ 37.5] →(3:5) Putting j = 0 and i = 3, u3,1= u 3 = ⁄ u2,1 + u4,1+ u2,0+ u4,0]  u 3 = ⁄ u2 + 0 + 25 +0]
  • 21. 20 Hence u 3 = ⁄ u2 +25] →(3:6) From (3:4) & (3:5) u1 = u3 Hence (5:4) & (5:5) become u 1 = ⁄ u2 + 25] u 2 = ⁄ 2u1 + 37.5] Solving for u1 and u2 we get u1 = 9.82 , u2 = 14.29, u3 = 9.82 Problem 3:3:2 Solve by Schmidt’s method ut = 5uxx with the conditions, u(0,t) = 0 u(5,t) = 60, and u(x,0) = { for 5 times steps having h = 1, Solution: Given uxx = ⁄ ut →(3:7)  a = ⁄ , take h = 1 , and K = ⁄ ,  = ⁄ ⁄
  • 22. 21 Hence we can use Schmidt’s recurrence method to solve (3:7) The boundary condition u(0,t) = 0 gives all entries zero in the first column. Similarly u(5,t) = 60 gives all entries 60 in the fifth column, The initial condition, u(x,0) = { gives the values of u i,j of the first row, they are u1,0 =20, u2,0 =40, u3,0 =60, u4,0 =60, u5,0 =60, All these above values of u i,j are shown in the following table in bold letters, i 0 1 2 3 4 5 j 0 1 2 3 4 5 0 0 0 20 40 60 60 60 0.1 1 0 20 40 50 60 60 0.2 2 0 20 35 50 55 60 0.3 3 0 17.5 35 45 55 60 0.4 4 0 17.5 31.25 45 52.5 60 0.5 5 0 15.625 31.25 41.875 52.5 60
  • 23. 22 The other values of the u got from Schmidt’s recurrence formula ⁄ Problem 3:3:3 Using Crank - Nicholson methods Solve uxx= ut subject to, ( ) ( ) ( ) Taking h = ⁄ & k = ⁄ compute u for one time step only? Solution: Here a = 1 , 0 ≤ x ≤ 1 and t= 0 , ⁄ ⁄ ⁄ ( ⁄ ) Since Crank – Nicholson formula , here, [ ] [ ] ie →(3:8) The initial and boundary values of u , given in the table in bold letters, and the other values are got from (5:8 Let →(3:9)
  • 24. 23 i j 0 1 2 3 4 0 0 0 0 0 0 1 0 u1 u2 u3 ⁄ Putting j = 0 and i = 1 in (3:8) we have u2,1 + u0,1+ u1,1 = u1,0 - u2,0- u0,0 (ie) u2 + 0 – 3u1 = 0 – 0- 0 (ie) u2 = 3u1  (3:10) Putting j = 0 and i = 2 in (3:8) we have u3,1 + u1,1-3 u2,1 = u2,0 – u3,0- u1,0 (ie) u3 + 0 – 3u2 = 0 (ie) u1 + u3 = 3u2  (3:11) Putting j = 0 and i = 3 in (3:8) we have u4,1 + u2,1-3 u3,1 = u3,0 – u4,0- u2,0 ⁄ + u2 – 3u3 = 0 (ie) 3u3 – u2 = ⁄  (3:12) Solving (3:10) , (3:11) & (3:12) , we get u1 = 0.00595 , u2 = 0.01789 , u3 = 0.04762
  • 25. 24 CHAPTER – IV HYPERBOLIC EQUATIONS 4:1-Hyperbolic Equations We consider the equations utt=c2 uxx  (4:1) u (x,0)= f(x)  (4:2) ut(x,0) = (x) (4:3) u(0,t) = 1(t) (4:4) u(1,t) = 2(t) (4:5) For which models the traverse vibrations of a stretched string. As in the previous cases, we use the following difference approximations for the derivatives, ⁄ [ ] ( ) → (4:6) and ⁄ [ ] ( ) → (4:7)
  • 26. 25 Where x = ih , i = 0 , 1 , 2,….. and t =jk, j = 0 , 1 , 2 , …….. ut(x,t) = +O(k2 ) Substituting (4:6),(4:7), in (4:1), we obtain ⁄ (ui,j-1 – 2ui,j + ui,j+1) = ⁄ (ui-1,j – 2ui,j + ui+1,j ) → (4:8) Putting ⍺ = ⁄ in the above and rearranging the terms, we obtain ui,j+1 = -ui,j-1 + (ui-1,j + ui+1,j) + 2(1- )ui,j → (4:9) formula (6:9) shows that the function values at the j th and (j-1)th time levels are required in order to determine those at the (j+1)th time level. Such difference schemes are called three level difference schemes compared to the two level schemes derived in the parabolic case. By expanding the terms in (4:9) as Tayolr’s series and simplifying it can be shown that the truncation error in (4:9) is 0( + ) Further , formula (4:9) holds good ⍺ < 1, which is the condition for stability.
  • 27. 26 There exist implicit finite difference schemes for the equation given by (4:1) two such schemes are , = ⁄ ui+1,j+1 – 2ui,j+1 + ui-1,j+1] + ui+1,j-1 – 2ui,j-1 + ui-1,j-1] → (4:10) and, = ⁄ ui+1,j+1 – 2ui,j+1 + ui-1,j+1] +2 ui+1,j – 2ui,j + ui-1,j] + ui+1,j-1 , 2ui,j-1 + ui-1,j-1] → (4:11) Formula (6:10) & (6:11) hold good for all values of ⁄ Problem :4:1:1 Solve the equation = Subject to the following conditions u(0,t) = 0 & u(1,t) = 0, if t < 0
  • 28. 27 and (0,t) = 0 & u(x,0) = sin 3 ( x), for all x in 0 x 1 solution u(x,t) = ⁄ sin x cos t - ⁄ sin x cos → (4:12) we use the explicit formula, ui,j+1 = -ui,j-1 + (ui-1,j + ui+1,j) + 2(1- )ui,j → (4:13) where = ⁄ < 1 Let h = 0.25, and k = 0.2 Hence = ⁄ = 0.8 So that the stability condition is satisfied, Let u i,j = u(ih, jk) So that the boundary conditions become, u0,j = 0 → ( ) u4,j = 0 → ( ) ui,0 = sin3 ( ) → ( ) i = 1, 2, 3, 4 ui,j – ui,-1 = 0 so that ui,-1 = ui, 1 Substituting the value of = 0.8 Equation (6:13) becomes ui,j+1 = ui,j-1 + 0.64(ui-1,j + ui+1,j) + 2(0.36)ui,j → (iv) At the first step j = 0  ui,1 = -ui,-1 + 0.64(ui-1,j + ui+1,j) + 2(0.36)ui,j → (v)
  • 29. 28 ui,1 = 0.32(ui-1,j + ui+1,j) + 0.36ui,j using (vi) Hence u1,1 = 0.32(u0,j + u2,0) + 0.36u1,0 = 0.32(0+1) + 0.36(0.357) = 0.4473 The exact value u(0.25, 0.2) = 0.4838 u2,1 = 0.32[0.3537 + 0.3537] + 0.36(1.0) = 0.5867 Exact value = 0.5296 finally, u3,1 = 0.32 (1.0+0) + 0.36 (0.3537) = 0.4473, exact value = 0.4838 4:2-Wave Equation One of the most important and typical homogeneous hyperbolic differential equations is the wave equation. It is of the form Where C is the wave speed. This differential equation is used in many branches of physics and Engineering and is seen in many situations such as transverse vibrations of a string or membrane, longitudinal
  • 30. 29 vibrations in a bar, propagation of sound waves, electromagnetic waves, sea waves, elastic waves in solids, and surface waves as in earth quakes. The solution of a wave equation is called a wave function, An example for inhomogeneous wave equation is Where F is a given function of partial variables and time. In physical problems F represents an external driving force such as gravity force, Another related equation is, Where is a real positive constant. This equation is called a wave equation with damping term, the amplitude of which decreases exponentially as t decreases. Definition 4:2:1-The one dimensional wave equation The one dimensional wave equation is given by,
  • 31. 30 This is a hyperbolic equation We proceed to develop a method for obtaining numerical solution of the one – dimensional wave equation. a2 uxx – uu = 0 → (4:14) Subject to the boundary conditions u(0,t) = 0 → (4:15) u(1,t) = 0 → (4:16) and the initial condition u(x,0) = f(x) → (4:17) ut(x,0) = 0 → (4:18) Replacing the partial derivatives in(4:14) by the difference quotients. uxx = utt = we get a2 = [ - ] ie, Taking ⁄ , we get. ( ) ( ) ( ) → (4:19) This scheme is called an explicit scheme for the solution of the wave equation. Problem: 4:2:2 Solve 4uxx=utt subject to the conditions u(0,t) = 0 = u(4,t), ut(x,0) = 0 and
  • 32. 31 u(x,o) = x (4-x) Take h = 1, and obtain solution up to 5 time steps ? Solution: Here a2 = 4 and h =1, we choose k such that k = ⁄ = 0.5 The boundary conditions, u(0 ,t) = 0 and u(0 ,t) = 0 give all values 0 in the first and fourth columns. Now , u(x,0) = x (4-x) = 0; = 3; = 4; = 3; = 0; Now ut(x,0) = 0 ⁄ for … we get, ⁄ [ ] ⁄
  • 33. 32 ⁄ [ ] ⁄ ⁄ [ ] ⁄ The other values of u1,1 are obtained from the recurrence relation. And are the given in the table i j 0 1 2 3 4 0 1 2 3 4 0 0 0 3 4 3 0 0.5 1 0 2 3 2 0 1.0 2 0 0 0 0 0 1.5 3 0 -2 -3 -2 0 2.0 4 0 -3 -4 -3 0 2.5 5 0 -2 -3 -2 0