SlideShare a Scribd company logo
1 of 18
NUMERICAL METHODS
V. MUNEESWARI
ASST PROF OF MATHEMATICS,
SAC WOMEN’S COLLEGE,
CUMBUM.
AN OVERVIEW
 The Method of Finite Differences
 Error Approximations and Dangers
 Approxmations to Diffusions
 Crank Nicholson Scheme
 Stability Criterion
Finite Differences
 Approximating the derivative with a
difference quotient from the Taylor series
 Function of One Variable
 Choose mesh size Δx
 Then uj ~ u(jΔx)
First Derivative Approximations
 Backward difference: (uj – uj-1) / Δx
 Forward difference: (uj+1 – uj) / Δx
 Centered difference: (uj+1 – uj-1) / 2Δx
TAYLOR EXPANSION
 u(x + Δx) = u(x) + u΄(x)Δx + 1/2 u˝(x)(Δx)
+ 1/6 u˝΄(x)(Δx) + O(Δx)
 u(x – Δx) = u(x) – u΄(x)Δx + 1/2 u˝(x)(Δx)
- 1/6 u˝΄(x)(Δx) + O(Δx)
2
3
4
4
2
3
TAYLOR EXPANSION
u΄(x) = u(x) – u(x – Δx) + O(Δx)
Δx
u΄(x) = u(x + Δx) – u(x) + O(Δx)
Δx
u΄(x) = u(x + Δx) – u(x – Δx) + O(Δx)
2Δx
2
SECOND DERIVATIVE APPROXIMATION
 Centered difference: (uj+1 – 2uj + uj-1) / (Δx)
 Taylor Expansion
u˝(x) = u(x + Δx) – 2u(x) + u(x – Δx) + O(Δx)
(Δx)
2
2
2
FUNCTION OF TWO VARIABLES
u(jΔx, nΔt) ~ uj
 Backward difference for t and x
(jΔx, nΔt) ~ (uj – uj ) / Δt
(jΔx, nΔt) ~ (uj – uj ) / Δx
n
n n-1
n-1
n
∂u
∂t
∂u
∂x
FUNCTION OF TWO VARIABLES
 Forward difference for t and x
(jΔx, nΔt) ~ (uj – uj ) / Δt
(jΔx, nΔt) ~ (uj – uj ) / Δx
n+1
n+1 n
n
∂u
∂t
∂u
∂x
FUNCTION OF TWO VARIABLES
 Centered difference for t and x
(jΔx, nΔt) ~ (uj – uj ) / (2Δt)
(jΔx, nΔt) ~ (uj – uj ) / (2Δx)
n+1
n+1 n-1
n-1
∂u
∂t
∂u
∂x
FINITE DIFFERENCE EQN.
 uj
n+1 - uj
n = un
j+1 - 2uj
n + un
j-1
t x
( ) 2
Error: The local truncation error is O( t)
from the left hand side and is O( x)2 from
the right hand side.
Assumptions
 Assume that we choose a small change in
x, and that the denominator on both sides
of the equation are equal.
 We are now left with the scheme:
uj
n+1 = un
j+1 - un
j + un
j-1
 Solving u with this scheme is now easy to
do once we have the initial data.
Initial Data
 Let u(x,0) = h(x) = a step function with
the following properties:
h(x) = 0 for all j except for j = 5, so
hj = 0 0 0 0 1 0 0 0 0 0 0 ….
 Initially, only a certain section, which is
at j = 5 is equal to the value of 1.
 “j” serves as the counter for the x
values.
How to solve?
 We know u0
j = 1 at j = 5 and 0 at all other j
initially (given by superscript 0).
 We can plug into our scheme to solve for u1
j at
all j’s.
 u1
j = u0
j-1 - u0
j + u0
j+1
 u1
5 = -1; u1
4 = 1; u1
6 = 1
 Now we can continue to increase the # of
iterations, n, and create a table…
Solution for 4 iterations
4 1 -4 10 -16 19 -16 10 -4 1 0
3 0 1 -3 6 -7 6 -3 1 0 0
2 0 0 1 -2 3 -2 1 0 0 0
1 0 0 0 1 -1 1 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0
1 2 3 4 5 6 7 8 9 10
j values
n
-
v
a
l
u
e
s
Analysis of Solution
 Is this solution viable?
 Maximum principle states that the solution must
be between 0 and 1 given our initial data
 At n = 4, our solution has already ballooned to u
= 19!
 Clearly, there are cases when the finite
difference method can pose serious problems.
Charting the Error
 Assume the solution is constant and equal to 0.5 (halfway between
the possible 0 and 1)
CONCLUSION
 While the finite difference method is easy
and convenient to use in many cases,
there are some dangers associated with
the method.
 We will investigate why the assumption
that allowed us to simplify the scheme
could have been a major contributor to
the large error.

More Related Content

What's hot

Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolationHarshad Koshti
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009akabaka12
 
Newton backward interpolation
Newton backward interpolationNewton backward interpolation
Newton backward interpolationMUHAMMADUMAIR647
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Engr 213 sample midterm 2b sol 2010
Engr 213 sample midterm 2b sol 2010Engr 213 sample midterm 2b sol 2010
Engr 213 sample midterm 2b sol 2010akabaka12
 
Higher Differential Equation
Higher Differential Equation Higher Differential Equation
Higher Differential Equation Abdul Hannan
 
Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009akabaka12
 
Exact & non differential equation
Exact & non differential equationExact & non differential equation
Exact & non differential equationSiddhi Shrivas
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equationPratik Sudra
 
Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010akabaka12
 
Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009akabaka12
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010akabaka12
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Yuliyamira
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its applicationKrishna Peshivadiya
 

What's hot (20)

Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009
 
Newton backward interpolation
Newton backward interpolationNewton backward interpolation
Newton backward interpolation
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Engr 213 sample midterm 2b sol 2010
Engr 213 sample midterm 2b sol 2010Engr 213 sample midterm 2b sol 2010
Engr 213 sample midterm 2b sol 2010
 
Higher Differential Equation
Higher Differential Equation Higher Differential Equation
Higher Differential Equation
 
Ch04 2
Ch04 2Ch04 2
Ch04 2
 
Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009
 
Exact & non differential equation
Exact & non differential equationExact & non differential equation
Exact & non differential equation
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equation
 
Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010
 
Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Dual simplexmethod
Dual simplexmethodDual simplexmethod
Dual simplexmethod
 
Ecuaciones diferenciales c1
Ecuaciones diferenciales c1Ecuaciones diferenciales c1
Ecuaciones diferenciales c1
 
Two phase method lpp
Two phase method lppTwo phase method lpp
Two phase method lpp
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its application
 
Operations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simpOperations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simp
 

Similar to Numerical Methods Overview and Finite Difference Approximations

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
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt msFaeco Bot
 
1 hofstad
1 hofstad1 hofstad
1 hofstadYandex
 
Low rank tensor approximation of probability density and characteristic funct...
Low rank tensor approximation of probability density and characteristic funct...Low rank tensor approximation of probability density and characteristic funct...
Low rank tensor approximation of probability density and characteristic funct...Alexander Litvinenko
 
Three Different Algorithms for GeneratingUniformly Distribut.docx
Three Different Algorithms for GeneratingUniformly Distribut.docxThree Different Algorithms for GeneratingUniformly Distribut.docx
Three Different Algorithms for GeneratingUniformly Distribut.docxherthalearmont
 
Mit18 330 s12_chapter4
Mit18 330 s12_chapter4Mit18 330 s12_chapter4
Mit18 330 s12_chapter4CAALAAA
 
Natalini nse slide_giu2013
Natalini nse slide_giu2013Natalini nse slide_giu2013
Natalini nse slide_giu2013Madd Maths
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...ieijjournal
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...ieijjournal
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical AnalysisMostafijur Rahman
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment HelpEdu Assignment Help
 
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...Alexander Litvinenko
 
Numerical_PDE_Paper
Numerical_PDE_PaperNumerical_PDE_Paper
Numerical_PDE_PaperWilliam Ruys
 

Similar to Numerical Methods Overview and Finite Difference Approximations (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
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt ms
 
1 hofstad
1 hofstad1 hofstad
1 hofstad
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Maths digital text
Maths digital textMaths digital text
Maths digital text
 
Bayes gauss
Bayes gaussBayes gauss
Bayes gauss
 
Low rank tensor approximation of probability density and characteristic funct...
Low rank tensor approximation of probability density and characteristic funct...Low rank tensor approximation of probability density and characteristic funct...
Low rank tensor approximation of probability density and characteristic funct...
 
Three Different Algorithms for GeneratingUniformly Distribut.docx
Three Different Algorithms for GeneratingUniformly Distribut.docxThree Different Algorithms for GeneratingUniformly Distribut.docx
Three Different Algorithms for GeneratingUniformly Distribut.docx
 
Mit18 330 s12_chapter4
Mit18 330 s12_chapter4Mit18 330 s12_chapter4
Mit18 330 s12_chapter4
 
Natalini nse slide_giu2013
Natalini nse slide_giu2013Natalini nse slide_giu2013
Natalini nse slide_giu2013
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
9 pd es
9 pd es9 pd es
9 pd es
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
 
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...
Computing f-Divergences and Distances of\\ High-Dimensional Probability Densi...
 
Numerical_PDE_Paper
Numerical_PDE_PaperNumerical_PDE_Paper
Numerical_PDE_Paper
 
05_AJMS_332_21.pdf
05_AJMS_332_21.pdf05_AJMS_332_21.pdf
05_AJMS_332_21.pdf
 
01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf01_AJMS_158_18_RA.pdf
01_AJMS_158_18_RA.pdf
 

More from mathematicssac

A Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxA Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxmathematicssac
 
real life applications of network in graph theory.pptx
real life applications of network in graph theory.pptxreal life applications of network in graph theory.pptx
real life applications of network in graph theory.pptxmathematicssac
 
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptx
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptxDIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptx
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptxmathematicssac
 
application of graph theory in air traffic control.pptx
application of graph theory in air traffic control.pptxapplication of graph theory in air traffic control.pptx
application of graph theory in air traffic control.pptxmathematicssac
 
A Study on Queuing Theory and its real Life Applications.pptx
A Study on Queuing Theory and its  real Life Applications.pptxA Study on Queuing Theory and its  real Life Applications.pptx
A Study on Queuing Theory and its real Life Applications.pptxmathematicssac
 
A Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxA Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxmathematicssac
 
ICAMS033-G.NITHYA.pptx
ICAMS033-G.NITHYA.pptxICAMS033-G.NITHYA.pptx
ICAMS033-G.NITHYA.pptxmathematicssac
 

More from mathematicssac (13)

A Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxA Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptx
 
real life applications of network in graph theory.pptx
real life applications of network in graph theory.pptxreal life applications of network in graph theory.pptx
real life applications of network in graph theory.pptx
 
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptx
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptxDIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptx
DIGITAL TOPOLOGY OPERATING IN MEDICAL IMAGING WITH MRI TECHNOLOGY.pptx
 
application of graph theory in air traffic control.pptx
application of graph theory in air traffic control.pptxapplication of graph theory in air traffic control.pptx
application of graph theory in air traffic control.pptx
 
A Study on Queuing Theory and its real Life Applications.pptx
A Study on Queuing Theory and its  real Life Applications.pptxA Study on Queuing Theory and its  real Life Applications.pptx
A Study on Queuing Theory and its real Life Applications.pptx
 
A Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptxA Study on data analysis in Oncology.pptx
A Study on data analysis in Oncology.pptx
 
gsm nithya.pdf
gsm nithya.pdfgsm nithya.pdf
gsm nithya.pdf
 
ICAMS033-G.NITHYA.pptx
ICAMS033-G.NITHYA.pptxICAMS033-G.NITHYA.pptx
ICAMS033-G.NITHYA.pptx
 
GRAPH THEORY
GRAPH THEORYGRAPH THEORY
GRAPH THEORY
 
Functional analysis
Functional analysis Functional analysis
Functional analysis
 
Linear algebra
Linear algebraLinear algebra
Linear algebra
 
Statics
Statics   Statics
Statics
 
Cv ppt
Cv pptCv ppt
Cv ppt
 

Recently uploaded

Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxBerniceCayabyab1
 
TOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsTOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsssuserddc89b
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfBUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfWildaNurAmalia2
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantadityabhardwaj282
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfSwapnil Therkar
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...lizamodels9
 
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxPABOLU TEJASREE
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPirithiRaju
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)DHURKADEVIBASKAR
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxEran Akiva Sinbar
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 

Recently uploaded (20)

Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
 
TOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsTOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physics
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfBUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are important
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
 
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 

Numerical Methods Overview and Finite Difference Approximations

  • 1. NUMERICAL METHODS V. MUNEESWARI ASST PROF OF MATHEMATICS, SAC WOMEN’S COLLEGE, CUMBUM.
  • 2. AN OVERVIEW  The Method of Finite Differences  Error Approximations and Dangers  Approxmations to Diffusions  Crank Nicholson Scheme  Stability Criterion
  • 3. Finite Differences  Approximating the derivative with a difference quotient from the Taylor series  Function of One Variable  Choose mesh size Δx  Then uj ~ u(jΔx)
  • 4. First Derivative Approximations  Backward difference: (uj – uj-1) / Δx  Forward difference: (uj+1 – uj) / Δx  Centered difference: (uj+1 – uj-1) / 2Δx
  • 5. TAYLOR EXPANSION  u(x + Δx) = u(x) + u΄(x)Δx + 1/2 u˝(x)(Δx) + 1/6 u˝΄(x)(Δx) + O(Δx)  u(x – Δx) = u(x) – u΄(x)Δx + 1/2 u˝(x)(Δx) - 1/6 u˝΄(x)(Δx) + O(Δx) 2 3 4 4 2 3
  • 6. TAYLOR EXPANSION u΄(x) = u(x) – u(x – Δx) + O(Δx) Δx u΄(x) = u(x + Δx) – u(x) + O(Δx) Δx u΄(x) = u(x + Δx) – u(x – Δx) + O(Δx) 2Δx 2
  • 7. SECOND DERIVATIVE APPROXIMATION  Centered difference: (uj+1 – 2uj + uj-1) / (Δx)  Taylor Expansion u˝(x) = u(x + Δx) – 2u(x) + u(x – Δx) + O(Δx) (Δx) 2 2 2
  • 8. FUNCTION OF TWO VARIABLES u(jΔx, nΔt) ~ uj  Backward difference for t and x (jΔx, nΔt) ~ (uj – uj ) / Δt (jΔx, nΔt) ~ (uj – uj ) / Δx n n n-1 n-1 n ∂u ∂t ∂u ∂x
  • 9. FUNCTION OF TWO VARIABLES  Forward difference for t and x (jΔx, nΔt) ~ (uj – uj ) / Δt (jΔx, nΔt) ~ (uj – uj ) / Δx n+1 n+1 n n ∂u ∂t ∂u ∂x
  • 10. FUNCTION OF TWO VARIABLES  Centered difference for t and x (jΔx, nΔt) ~ (uj – uj ) / (2Δt) (jΔx, nΔt) ~ (uj – uj ) / (2Δx) n+1 n+1 n-1 n-1 ∂u ∂t ∂u ∂x
  • 11. FINITE DIFFERENCE EQN.  uj n+1 - uj n = un j+1 - 2uj n + un j-1 t x ( ) 2 Error: The local truncation error is O( t) from the left hand side and is O( x)2 from the right hand side.
  • 12. Assumptions  Assume that we choose a small change in x, and that the denominator on both sides of the equation are equal.  We are now left with the scheme: uj n+1 = un j+1 - un j + un j-1  Solving u with this scheme is now easy to do once we have the initial data.
  • 13. Initial Data  Let u(x,0) = h(x) = a step function with the following properties: h(x) = 0 for all j except for j = 5, so hj = 0 0 0 0 1 0 0 0 0 0 0 ….  Initially, only a certain section, which is at j = 5 is equal to the value of 1.  “j” serves as the counter for the x values.
  • 14. How to solve?  We know u0 j = 1 at j = 5 and 0 at all other j initially (given by superscript 0).  We can plug into our scheme to solve for u1 j at all j’s.  u1 j = u0 j-1 - u0 j + u0 j+1  u1 5 = -1; u1 4 = 1; u1 6 = 1  Now we can continue to increase the # of iterations, n, and create a table…
  • 15. Solution for 4 iterations 4 1 -4 10 -16 19 -16 10 -4 1 0 3 0 1 -3 6 -7 6 -3 1 0 0 2 0 0 1 -2 3 -2 1 0 0 0 1 0 0 0 1 -1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 2 3 4 5 6 7 8 9 10 j values n - v a l u e s
  • 16. Analysis of Solution  Is this solution viable?  Maximum principle states that the solution must be between 0 and 1 given our initial data  At n = 4, our solution has already ballooned to u = 19!  Clearly, there are cases when the finite difference method can pose serious problems.
  • 17. Charting the Error  Assume the solution is constant and equal to 0.5 (halfway between the possible 0 and 1)
  • 18. CONCLUSION  While the finite difference method is easy and convenient to use in many cases, there are some dangers associated with the method.  We will investigate why the assumption that allowed us to simplify the scheme could have been a major contributor to the large error.