SlideShare a Scribd company logo
1 of 9
Download to read offline
Equal Spacing: Newton’s Forward and Backward
Difference Interpolation
Dr. Varun Kumar
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 1 / 9
Outlines
1 Equal Spacing: Newton’s Forward Difference Formulation
Example
2 Equal Spacing: Newton’s Backward Difference Formulation
Example
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 2 / 9
Equal Spacing: Newton’s Forward Difference Formula
Important points
⇒ As per the Newton’s divide difference interpolation formula
f (x)= f0 + (x − x0)f [x0, x1] + (x − x0)(x − x1)f [x0, x1, x2] + ...+
(x − x0)(x − x1)....(x − xn−1)f [x0, ..., xn]
(1)
or
f [x0, ...., xk] =
f [x1, ....., xk] − f [x0, ...., xk−1]
xk − x0
⇒ Above expression is valid for arbitrarily spaced nodes.
⇒ In most of the practical experimentation, it can be adopted.
⇒ For some instances, the interval may be equi-spaced, i.e,
x0, x1 = x0 + h, x2 = x0 + 2h, ....., xn = x0 + nh (2)
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 3 / 9
Continued–
⇒ First forward difference of f at xj by
4fj = fj+1 − fj
⇒ Second forward difference of f at xj by
42
fj = 4fj+1 − 4fj
⇒ The kth forward difference of f at xj by
4k
fj = 4k−1
fj+1 − 4k−1
fj ∀ k = 1, 2, ...
⇒ In case of regular spacing in input (x), then
f [x0, x1, ....., xk] =
1
k!hk
4k
f0 (3)
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 4 / 9
Continued–
⇒ For k = 1, from (3)
f [x0, x1] =
f1 − f0
x1 − x0
=
1
h
(f1 − f0) =
1
1!h
4f0 (4)
⇒ Let xk+1 = x0 + (k + 1)h
f [x0, ......, xk+1] =
f [x1, ..., xk+1] − f [x0, ..., xk]
xk+1 − x0
=
1
(k + 1)h
h 1
k!hk
4k
f1 −
1
k!hk
4k
f0
i
=
1
(k + 1)!hk+1
4k+1
f0
(5)
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 5 / 9
Continued–
⇒ Applying Newton’s forward difference interpolation formula
f (x) ≈ pn(x) = f0 + r4f0 +
r(r − 1)
2!
42
f0 + ...+
r(r − 1)...(r − n + 1)
n!
4n
f0
(6)
where r = x−x0
h
Q Compute cosh 0.56. Utilize the four values in the following table and
estimate the error.
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 6 / 9
Equal Spacing: Newton’s Backward Difference Formulation
⇒ First backward difference of f at xj by
∇fj = fj − fj−1
⇒ Second backward difference of f at xj by
∇2
fj = ∇fj − ∇fj−1
⇒ kth backward difference of f at xj by
∇k
fj = ∇k−1
fj − ∇k−1
fj−1 (7)
⇒ As per Newton’s backward difference interpolation formula
f (x) ≈ pn(x) = f0 + r∇f0 +
r(r + 1)
2!
∇2
f0 + ... +
r(r + 1)...(r + n − 1)
n!
∇n
f0
(8)
where r = x−x0
h
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 7 / 9
Example
Q Compute a 7D value of the Bessel function J0(x) for x = 1.72 from
the four values in the following table, using
(a) Newton’s forward formula
(b) Newton’s backward formula
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 8 / 9
Exercise Problem
1 Calculate the Lagrange polynomial p2(x) for the values
Γ(1.00) = 1.0000, Γ(1.02) = 0.9888, Γ(1.04) = 0.9784 of the gamma
function and from it approximate Γ(1.01) and Γ(1.03).
2 Find e−0.25 and e−0.75 by linear interpolation of e−x with x0 = 0,
x1 = 0.5, and x0 = 0.5, x1 = 0, respectively. Then find p2(x) by
quadratic interpolation of e−x with x0 = 0, x1 = 0.5, and x2 = 1 and
from it e−0.25 and e−0.75 compare the errors.
3 Solve the above problem using Newton’s divide and difference
interpolation method.
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 9 / 9

More Related Content

What's hot

Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.Abu Kaisar
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian IntegrationReza Rahimi
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsMatthew Leingang
 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolationEasyStudy3
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleHapPy SumOn
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Asad Ali
 
1st order differential equations
1st order differential equations1st order differential equations
1st order differential equationsNisarg Amin
 
classification of second order partial differential equation
classification of second order partial differential equationclassification of second order partial differential equation
classification of second order partial differential equationjigar methaniya
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examplesSajjad Hossain
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 
Runge Kutta Method
Runge Kutta Method Runge Kutta Method
Runge Kutta Method Bhavik Vashi
 

What's hot (20)

Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functions
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
Bisection method
Bisection methodBisection method
Bisection method
 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolation
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 rule
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
1st order differential equations
1st order differential equations1st order differential equations
1st order differential equations
 
Bisection method
Bisection methodBisection method
Bisection method
 
classification of second order partial differential equation
classification of second order partial differential equationclassification of second order partial differential equation
classification of second order partial differential equation
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Runge Kutta Method
Runge Kutta Method Runge Kutta Method
Runge Kutta Method
 
Metric space
Metric spaceMetric space
Metric space
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Fourier series
Fourier series Fourier series
Fourier series
 
Introduction of Partial Differential Equations
Introduction of Partial Differential EquationsIntroduction of Partial Differential Equations
Introduction of Partial Differential Equations
 
Multivariate Calculus Abdul Aziz
Multivariate Calculus Abdul AzizMultivariate Calculus Abdul Aziz
Multivariate Calculus Abdul Aziz
 

Similar to Newton's Forward/Backward Difference Interpolation

Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationVARUN KUMAR
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline InterpolationVARUN KUMAR
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxRishabhGupta238479
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical IntegrationVARUN KUMAR
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdfTessydee
 
Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleVARUN KUMAR
 
Naville's Interpolation
Naville's InterpolationNaville's Interpolation
Naville's InterpolationVARUN KUMAR
 
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...BRNSS Publication Hub
 
1531 fourier series- integrals and trans
1531 fourier series- integrals and trans1531 fourier series- integrals and trans
1531 fourier series- integrals and transDr Fereidoun Dejahang
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integrationdicosmo178
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integrationdicosmo178
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integrationdicosmo178
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integrationTarun Gehlot
 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONshahzadebaujiti
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptxMrsSDivyaBME
 

Similar to Newton's Forward/Backward Difference Interpolation (20)

Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference Interpolation
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline Interpolation
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdf
 
Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal Rule
 
Naville's Interpolation
Naville's InterpolationNaville's Interpolation
Naville's Interpolation
 
Unit iv
Unit ivUnit iv
Unit iv
 
1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf
 
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
final15
final15final15
final15
 
Image transforms
Image transformsImage transforms
Image transforms
 
1531 fourier series- integrals and trans
1531 fourier series- integrals and trans1531 fourier series- integrals and trans
1531 fourier series- integrals and trans
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integration
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integration
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integration
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTION
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptx
 

More from VARUN KUMAR

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc ModelVARUN KUMAR
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire ModelVARUN KUMAR
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignVARUN KUMAR
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI DesignVARUN KUMAR
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO SystemVARUN KUMAR
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital DemocracyVARUN KUMAR
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic ComputingVARUN KUMAR
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionVARUN KUMAR
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of ActionVARUN KUMAR
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic AgeVARUN KUMAR
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a PropertyVARUN KUMAR
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal PolynomialVARUN KUMAR
 
Patent Protection
Patent ProtectionPatent Protection
Patent ProtectionVARUN KUMAR
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawVARUN KUMAR
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and SoftwareVARUN KUMAR
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data TrialsVARUN KUMAR
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and ControversyVARUN KUMAR
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's IntegrationVARUN KUMAR
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship VARUN KUMAR
 
Protect your online privacy-2
Protect your online privacy-2Protect your online privacy-2
Protect your online privacy-2VARUN KUMAR
 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 
Protect your online privacy-2
Protect your online privacy-2Protect your online privacy-2
Protect your online privacy-2
 

Recently uploaded

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 

Recently uploaded (20)

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 

Newton's Forward/Backward Difference Interpolation

  • 1. Equal Spacing: Newton’s Forward and Backward Difference Interpolation Dr. Varun Kumar Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 1 / 9
  • 2. Outlines 1 Equal Spacing: Newton’s Forward Difference Formulation Example 2 Equal Spacing: Newton’s Backward Difference Formulation Example Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 2 / 9
  • 3. Equal Spacing: Newton’s Forward Difference Formula Important points ⇒ As per the Newton’s divide difference interpolation formula f (x)= f0 + (x − x0)f [x0, x1] + (x − x0)(x − x1)f [x0, x1, x2] + ...+ (x − x0)(x − x1)....(x − xn−1)f [x0, ..., xn] (1) or f [x0, ...., xk] = f [x1, ....., xk] − f [x0, ...., xk−1] xk − x0 ⇒ Above expression is valid for arbitrarily spaced nodes. ⇒ In most of the practical experimentation, it can be adopted. ⇒ For some instances, the interval may be equi-spaced, i.e, x0, x1 = x0 + h, x2 = x0 + 2h, ....., xn = x0 + nh (2) Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 3 / 9
  • 4. Continued– ⇒ First forward difference of f at xj by 4fj = fj+1 − fj ⇒ Second forward difference of f at xj by 42 fj = 4fj+1 − 4fj ⇒ The kth forward difference of f at xj by 4k fj = 4k−1 fj+1 − 4k−1 fj ∀ k = 1, 2, ... ⇒ In case of regular spacing in input (x), then f [x0, x1, ....., xk] = 1 k!hk 4k f0 (3) Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 4 / 9
  • 5. Continued– ⇒ For k = 1, from (3) f [x0, x1] = f1 − f0 x1 − x0 = 1 h (f1 − f0) = 1 1!h 4f0 (4) ⇒ Let xk+1 = x0 + (k + 1)h f [x0, ......, xk+1] = f [x1, ..., xk+1] − f [x0, ..., xk] xk+1 − x0 = 1 (k + 1)h h 1 k!hk 4k f1 − 1 k!hk 4k f0 i = 1 (k + 1)!hk+1 4k+1 f0 (5) Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 5 / 9
  • 6. Continued– ⇒ Applying Newton’s forward difference interpolation formula f (x) ≈ pn(x) = f0 + r4f0 + r(r − 1) 2! 42 f0 + ...+ r(r − 1)...(r − n + 1) n! 4n f0 (6) where r = x−x0 h Q Compute cosh 0.56. Utilize the four values in the following table and estimate the error. Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 6 / 9
  • 7. Equal Spacing: Newton’s Backward Difference Formulation ⇒ First backward difference of f at xj by ∇fj = fj − fj−1 ⇒ Second backward difference of f at xj by ∇2 fj = ∇fj − ∇fj−1 ⇒ kth backward difference of f at xj by ∇k fj = ∇k−1 fj − ∇k−1 fj−1 (7) ⇒ As per Newton’s backward difference interpolation formula f (x) ≈ pn(x) = f0 + r∇f0 + r(r + 1) 2! ∇2 f0 + ... + r(r + 1)...(r + n − 1) n! ∇n f0 (8) where r = x−x0 h Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 7 / 9
  • 8. Example Q Compute a 7D value of the Bessel function J0(x) for x = 1.72 from the four values in the following table, using (a) Newton’s forward formula (b) Newton’s backward formula Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 8 / 9
  • 9. Exercise Problem 1 Calculate the Lagrange polynomial p2(x) for the values Γ(1.00) = 1.0000, Γ(1.02) = 0.9888, Γ(1.04) = 0.9784 of the gamma function and from it approximate Γ(1.01) and Γ(1.03). 2 Find e−0.25 and e−0.75 by linear interpolation of e−x with x0 = 0, x1 = 0.5, and x0 = 0.5, x1 = 0, respectively. Then find p2(x) by quadratic interpolation of e−x with x0 = 0, x1 = 0.5, and x2 = 1 and from it e−0.25 and e−0.75 compare the errors. 3 Solve the above problem using Newton’s divide and difference interpolation method. Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-3 9 / 9