Академический Документы
Профессиональный Документы
Культура Документы
Submitted by
ANUP SARKAR
Roll 001717, No. 0070
Reg. No. 2410472
Department of Mathematics
University of Gour Banga
Malda-732103
West Bengal
16 JULAY, 2018
Acknowledgement
Firstly I would like to express our immense gratitude towards our institution ”UNI-
VERSITY of GOUR BANGA”, which created a great platform to attain profound
technical skills in the field of M.Sc, thereby fulfilling our most cherished goal.
I sincerely express my gratitude to the Professor Dr. SANATAN DAS and Dr.
MANORANJAN MAITY for his inspiration and timely support in successful com-
pletion of my project work.
I am very much thankful to our Professor Dr. SIMANTA DE for extending his
guidance and cooperation in doing this project.
1 Introduction 1
4 PROBLEM 6
1 Introduction
In numerical analysis , the CRANK-NICILSON METHOD is a finite difference method
used for numerically solving the heat equuation and similar partial differential equa-
tions.It is a second order method in time.It is implicit in time and can be written as an
implicit Runge-Kutta method, and it is numerically stable.The method was developed
by John Crank and Phyllis Nicolson in the mid 20th century.For diffusion equation (and
many other equations), it can be shown the Crank-Nicolson method is unconditionally
stable. However, the approximate solution can still contain(decaying) spurious oscilla-
tions if the ratio of time step ∆t times the thermal diffusivity to the square of space
step,∆x2 is large(typically larger than 1/2 per Von Neumann stability analysis). For this
reason, Whenever large time steps or high spatial resolution is necessary, the less accurate
backward Euler method is often used, Which is both stable and immune to oscillations.
1
2 SOME IMPORTANT RESULT IN NUMERICAL
ANALYSIS:
(i)Finite difference method
From taylor’s expansion formula
h2 d2 y h3 d3 y
y(x + h) = y(x) + hy(x) + 2! dx2
+ 3! dx3
+ ... (1)
and
h2 d2 y h3 d3 y
y(x − h) = y(x) − hy(x) + 2! dx2
− 3! dx3
+ ... (2)
∂u ui+1,j −ui,j
∂x
| xi = h
where
ui,j=u(xi ,yj )
xi = x0 + ih
yj = y0 + jk
also we have
∂2u ∂2u
The laplace equation equation ∂x2
+ ∂y 2
=0 can be written as.
2
ui+1,j −2ui,j +ui−1,j u −2u +ui,j−1
h2
+ i,j+1 ki,j
2 =0
i = 1, 2, 3, ...n − 1
j = 1, 2, 3...n − 1
Heat equation:
∂u 2
the heat equation ∂t
= c2 ∂∂xu2 can be written as,
2c2 k
where r2 = h2
∂u ∂2u
∂t
= ∂x2
[put c = 1]
3
3 SOME IMPORTANT THEOREMS:
STATEMENT:
For the implicit method there exist a constant C > 0, independent of h ∆t, such that
max|u(xi , tn ) − uh ,∆t (xi , tn )| <= max|u0 (xi ) − uh ,∆t (xi , 0)| + C(h2 + ∆t)M, (xi , tn ) ∈
Q, i ∈ [0, N ], where M = max|uxxxx (x, t)|, |utt (x, t)|, (x, t) ∈ Q
Proof:
Using the same argument as for the exiplicit method, it is easy to show that the
pointwise error eni = u(xi , tn ) − uni satisfies
en+1
i − λ(en+1i−1 − 2ei
n+1
+ en+1 n
i+1 ) = ei + ∆tTE (xi , tn+1 ),
where λ = a∆th−2
and
TE (xi , tn+1 ) is the truncation error:
2 1 2 δ4 u
TE (xi , tn+1 ) = − 21 ∆t δδt2u (xi , θn+1 ) + 12 h δx4 (ηi , tn+1 )
|en+1 n+1
J | = max|ei |, i ∈ [1, n − 1]
τ = | 12 ∆t + 1 2
12
h |M
from which
En+1 = max|en+1
i = |en+1 n n
J | <= |eJ + ∆tτ <= max|ei + ∆tτ = En + ∆tτ, i ∈ [1, n − 1]
4
There are a number of ways to derive the Crank-Nicolson scheme. Perhaps the best
way is to first ”solve” the PDF by integrating in time on both side of the equation:
R t+∆t
u(x, t + ∆t) − u(x, t) = a t
(auxx (x, s) + f (x, s))ds
and then use the trapezoid rule to evaluate the integral on the right side:
u(x, t + ∆t) − u(x, t) = 12 ∆ta(uxx (x, t) + uxx (x, t + ∆t)) + 12 ∆t(f (x, t) + f (x, t +
1 1
∆t)) − 12 ∆t3 uxxtt (x, θt ) − 12 ∆t3 ftt (x, ηt )
Then, replacing the spatial derivatives with difference quotient , we get the length
expression
un+1
j −µ(un+1 n+1
j+1 −2uj +un+1 n n n n 1
j−1 ) = uj +µ(uj+1 −2uj +uj−1 )+ 2 ∆t(f (xj , tn+1 ))+f (xj , tn )
where unj = uh , ∆t(ti , tn ) = u(xj , tn ) is the approximate solution and µ = 12 ∆th−2 .This
is again a system of N − 1 equations in N − 1 unknowns, but it is slightly more involved
than is the system for the implicit method. However, it is still unconditionally stable and
it retains second-order accuracy in both space and time, as we shall soon see.
(I + µK)un+1 n 1 n
h , ∆t = (I − µK)uh , ∆t + 2 ∆tF ,
where
5
4 PROBLEM
Exampale:
2
Solve ∂u
∂t
= ∂∂xu2
u(0, t) = 0, u(1, t) = t, 0 <= x <= 1, 0 <= t <= 1
1
taking h = k = 4
using Crank-Nicolson Implicit method.
answer:
Now
10 −4 0 a 0
−4 10 −4 b = 0
0 −4 10 c 1
6
10 −4 0
∆ = −4 10 −4 = 680
0 −4 10
∆1∆ = 16
a = ∆∆1 = 680
16
= 0.35294
∆2 = 40
∆2
b= ∆
= 0.0588235
∆3 = 84
∆3
c= ∆
= 0.1235294
0 −4 10 f 2.49411765
solving d, e, f by using Cramer’s rule
∆ = 680
∆1∆ = 57.2235296
∆1
d= ∆
= 0.084152249
∆2 = 127.0588234
e = ∆∆2 = 0.1868512
f = ∆∆3 = 0.324152249
7
Now we put j = 2, andi = 1, 2, 3 we get
10g − 4h = 0.242491346
− 4g + 10h − 4k = 0.512110732
− 4h + 10k = 3.802491346
References
1. Dr. S.A. Mollah, Numerical Analysis and Computational Procedures.
2. Dr. N.Dutta, Dr.R.N.Jana,Introductory Numerical Analysis
3. Dr. Sanatan Das, An Integrated Approach To Numerical Analysis.
4. James F. Epperson, An Introduction To Numerical Methods and Analysis.
5. Sanyal, D.C. and Das, K.(2009), A Text Book of Numerical Analysis, U.N. Dhur
and Sons Private Ltd.,Kolkata.