SlideShare a Scribd company logo
1 of 9
Download to read offline
Interpolation
Dr. Varun Kumar
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 1 / 9
Outlines
1 Introduction to Interpolation
2 Lagrange Interpolation
Linear Interpolation
Quadratic Interpolation
Polynomial Interpolation
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 2 / 9
Introduction to Interpolation
⇒ Interpolation means to find values of a function f (x) for an x
between different x− values x0, x1, ....., xn at which the values of f (x)
are given. Mathematically
f0 = f (x0), f1 = f (x1), .... fn = f (xn)
⇒ x → Input and f (x) → Output
⇒ Let x0 < x1 < ... < xn and xp be the unknown input for which
f (xp) =??
⇒ When, x0 < xp < xn → Interpolation
⇒ When, xp > xn → Extrapolation
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 3 / 9
Lagrange Interpolation
⇒ Given (x0, f0), ...., (xn, fn) with arbitrary spaced xj
⇒ Linear interpolation is interpolation by the straight line through
(x0, f0) and (x1, f1).
⇒ Thus the linear Lagrange polynomial p1 is a sum p1 = L0f0 + L1f1.
L0(x) =
x − x1
x0 − x1
, L1(x) =
x − x0
x1 − x0
p1(x) = L0(x)f0 + L1(x)f1 =
x − x1
x0 − x1
f0 +
x − x0
x1 − x0
f1
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 4 / 9
Example
Q Compute ln 9.2, where ln 9.0 = 2.1972 and ln 9.5 = 2.2513 by linear
Lagrange interpolation and determine the error from ln 9.2 = 2.2192
Ans According to question
x0 = 9.0, x1 = 9.5, f0 = ln 9.0, f1 = ln 9.5
We will find the weight L0(x) and L1(x), where
L0(9.2) =
9.2 − 9.5
9.0 − 9.5
= 0.6, L1(9.2) =
9.2 − 9.0
9.5 − 9.0
= 0.4
or
ln 9.2 ≈ L0(9.2)f0 + L1(9.2)f1 = 0.6 × 2.1972 + 0.4 × 2.2513 = 2.2188
The error is  = a − ā = 2.2192 − 2.2188 = 0.0004
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 5 / 9
Lagrange Quadratic Lagrange Interpolation
⇒ Quadratic interpolation is interpolation of given (x0, f0), (x1, f1),
(x2, f2) by a second degree polynomial which by Lagranges idea is
p2(x) = L0(x)f0 + L1(x)f1 + L2(x)f2
with L0(x0) = 1, L1(x1) = 1, L2(x2) = 1, and L0(x1) = L0(x2) = 0
L0(x) =
l0(x)
l(x0)
=
(x − x1)(x − x2)
(x0 − x1)(x0 − x2)
L1(x) =
l1(x)
l(x1)
=
(x − x0)(x − x2)
(x1 − x0)(x1 − x2)
L2(x) =
l2(x)
l(x2)
=
(x − x0)(x − x1)
(x2 − x0)(x2 − x1)
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 6 / 9
Example
Q Compute ln 9.2, where ln 9.0 = 2.1972, ln 9.5 = 2.2513, and
ln 11 = 2.3979 by quadratic Lagrange interpolation and determine the
error from ln 9.2 = 2.2192
Ans According to question
x0 = 9.0, x1 = 9.5, x2 = 11, f0 = ln 9.0, f1 = ln 9.5, f2 = 2.3979
We will find the weight L0(x) and L1(x), and L2(x) where
L0(x) =
(x − 9.5)(x − 11)
(9 − 9.5)(9 − 11)
= x2
−20.5x +104.5 or L0(9.2) = 0.5400
L1(x) =
(x − 9)(x − 11)
(9.5 − 9)(9.5 − 11)
= −
1
0.75
(x2
−20x+99), L1(9.2) = 0.4800
L2(x) =
(x − 9)(x − 9.5)
(11 − 9)(11 − 9.5)
=
1
3
(x2
−18.5x+85.5), L2(9.2) = −0.0200
p2(x) = L0(x)f0 + L1(x)f1 + L2(x)f2
ln 9.2 ≈ 0.5400 × 2.1972 + 0.4800 × 2.2513 − 0.0200 × 2.3979 = 2.2192
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 7 / 9
Lagrange Polynomial Interpolation
For general n we obtain
f (x) ≈ pn(x) =
n
X
k=0
Lk(x)fk =
n
X
k=0
lk(x)
lk(xk)
fk
where,
l0(x) = (x − x1)(x − x2)....(x − xn)
lk(x) = (x − x0)(x − x1)....(x − xk−1)....(x − xn) ∀ 0  k  n
ln(x) = (x − x0)(x − x1)....(x − xn−1)
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 8 / 9
Conclusion
1 Computational complexity is very high in Lagrange interpolation
method.
2 If n + 1 input samples are available it makes the nth order polynomial
for minimizing the estimated error.
3 It can minimize the estimated error with greater extent, when number
of available input-output data samples are very high.
Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 9 / 9

More Related Content

What's hot

Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methodsDivya Bhatia
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equationsmath266
 
APPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONAPPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONDhrupal Patel
 
27 power series x
27 power series x27 power series x
27 power series xmath266
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) MethodIsaac Yowetu
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Matthew Leingang
 
3.1 higher derivatives
3.1 higher derivatives3.1 higher derivatives
3.1 higher derivativesmath265
 
12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions xmath266
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Lineseltzermath
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadraturesTarun Gehlot
 
1.2 review on algebra 2-sign charts and inequalities
1.2 review on algebra 2-sign charts and inequalities1.2 review on algebra 2-sign charts and inequalities
1.2 review on algebra 2-sign charts and inequalitiesmath265
 
Lesson 8 the definite integrals
Lesson 8 the definite integralsLesson 8 the definite integrals
Lesson 8 the definite integralsLawrence De Vera
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-pointsmath267
 
The Definite Integral
The Definite IntegralThe Definite Integral
The Definite IntegralSilvius
 
3.6 applications in optimization
3.6 applications in optimization3.6 applications in optimization
3.6 applications in optimizationmath265
 
2 integration and the substitution methods x
2 integration and the substitution methods x2 integration and the substitution methods x
2 integration and the substitution methods xmath266
 
Tangent and normal
Tangent and normalTangent and normal
Tangent and normalsumanmathews
 

What's hot (20)

Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equations
 
APPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONAPPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATION
 
27 power series x
27 power series x27 power series x
27 power series x
 
Power series
Power seriesPower series
Power series
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) Method
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
3.1 higher derivatives
3.1 higher derivatives3.1 higher derivatives
3.1 higher derivatives
 
12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x
 
Real analysis
Real analysis Real analysis
Real analysis
 
Lesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent LineLesson3.1 The Derivative And The Tangent Line
Lesson3.1 The Derivative And The Tangent Line
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
1.2 review on algebra 2-sign charts and inequalities
1.2 review on algebra 2-sign charts and inequalities1.2 review on algebra 2-sign charts and inequalities
1.2 review on algebra 2-sign charts and inequalities
 
Lesson 8 the definite integrals
Lesson 8 the definite integralsLesson 8 the definite integrals
Lesson 8 the definite integrals
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-points
 
The Definite Integral
The Definite IntegralThe Definite Integral
The Definite Integral
 
3.6 applications in optimization
3.6 applications in optimization3.6 applications in optimization
3.6 applications in optimization
 
2 integration and the substitution methods x
2 integration and the substitution methods x2 integration and the substitution methods x
2 integration and the substitution methods x
 
Tangent and normal
Tangent and normalTangent and normal
Tangent and normal
 

Similar to Interpolation

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
 
Numerical_Methods_Simpson_Rule
Numerical_Methods_Simpson_RuleNumerical_Methods_Simpson_Rule
Numerical_Methods_Simpson_RuleAlex_5991
 
Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationVARUN KUMAR
 
Difrentiation
DifrentiationDifrentiation
Difrentiationlecturer
 
Famous problem IMO 1988 Q6.pdf
Famous problem IMO 1988 Q6.pdfFamous problem IMO 1988 Q6.pdf
Famous problem IMO 1988 Q6.pdfAbdulHannif2
 
Fourier 3
Fourier 3Fourier 3
Fourier 3nugon
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Asad Ali
 
On Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationOn Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationGautier Marti
 
Difrentiation 140930015134-phpapp01
Difrentiation 140930015134-phpapp01Difrentiation 140930015134-phpapp01
Difrentiation 140930015134-phpapp01rakambantah
 
limits and continuity
limits and continuitylimits and continuity
limits and continuityElias Dinsa
 
Convexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfConvexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfPeterEsnayderBarranz
 
STAT 253 Probability and Statistics UNIT II.pdf
STAT 253 Probability and Statistics UNIT II.pdfSTAT 253 Probability and Statistics UNIT II.pdf
STAT 253 Probability and Statistics UNIT II.pdfsomenewguyontheweb
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference InterpolationVARUN KUMAR
 
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...RyotaroTsukada
 

Similar to Interpolation (20)

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...
 
1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf
 
Lecture notes
Lecture notes Lecture notes
Lecture notes
 
Numerical_Methods_Simpson_Rule
Numerical_Methods_Simpson_RuleNumerical_Methods_Simpson_Rule
Numerical_Methods_Simpson_Rule
 
Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference Interpolation
 
Difrentiation
DifrentiationDifrentiation
Difrentiation
 
Famous problem IMO 1988 Q6.pdf
Famous problem IMO 1988 Q6.pdfFamous problem IMO 1988 Q6.pdf
Famous problem IMO 1988 Q6.pdf
 
Interpolation.pptx
Interpolation.pptxInterpolation.pptx
Interpolation.pptx
 
Fourier 3
Fourier 3Fourier 3
Fourier 3
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Senior Research
Senior ResearchSenior Research
Senior Research
 
On Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationOn Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond Correlation
 
Difrentiation 140930015134-phpapp01
Difrentiation 140930015134-phpapp01Difrentiation 140930015134-phpapp01
Difrentiation 140930015134-phpapp01
 
limits and continuity
limits and continuitylimits and continuity
limits and continuity
 
Evaluating definite integrals
Evaluating definite integralsEvaluating definite integrals
Evaluating definite integrals
 
Convexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfConvexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdf
 
Derivatives
DerivativesDerivatives
Derivatives
 
STAT 253 Probability and Statistics UNIT II.pdf
STAT 253 Probability and Statistics UNIT II.pdfSTAT 253 Probability and Statistics UNIT II.pdf
STAT 253 Probability and Statistics UNIT II.pdf
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...
5.4 Saddle-point interpretation, 5.5 Optimality conditions, 5.6 Perturbation ...
 

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
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical IntegrationVARUN 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
 

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
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
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
 

Recently uploaded

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
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
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
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
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
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
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
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
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
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
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 

Recently uploaded (20)

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
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...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
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
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
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
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
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
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
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
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 

Interpolation

  • 1. Interpolation Dr. Varun Kumar Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 1 / 9
  • 2. Outlines 1 Introduction to Interpolation 2 Lagrange Interpolation Linear Interpolation Quadratic Interpolation Polynomial Interpolation Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 2 / 9
  • 3. Introduction to Interpolation ⇒ Interpolation means to find values of a function f (x) for an x between different x− values x0, x1, ....., xn at which the values of f (x) are given. Mathematically f0 = f (x0), f1 = f (x1), .... fn = f (xn) ⇒ x → Input and f (x) → Output ⇒ Let x0 < x1 < ... < xn and xp be the unknown input for which f (xp) =?? ⇒ When, x0 < xp < xn → Interpolation ⇒ When, xp > xn → Extrapolation Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 3 / 9
  • 4. Lagrange Interpolation ⇒ Given (x0, f0), ...., (xn, fn) with arbitrary spaced xj ⇒ Linear interpolation is interpolation by the straight line through (x0, f0) and (x1, f1). ⇒ Thus the linear Lagrange polynomial p1 is a sum p1 = L0f0 + L1f1. L0(x) = x − x1 x0 − x1 , L1(x) = x − x0 x1 − x0 p1(x) = L0(x)f0 + L1(x)f1 = x − x1 x0 − x1 f0 + x − x0 x1 − x0 f1 Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 4 / 9
  • 5. Example Q Compute ln 9.2, where ln 9.0 = 2.1972 and ln 9.5 = 2.2513 by linear Lagrange interpolation and determine the error from ln 9.2 = 2.2192 Ans According to question x0 = 9.0, x1 = 9.5, f0 = ln 9.0, f1 = ln 9.5 We will find the weight L0(x) and L1(x), where L0(9.2) = 9.2 − 9.5 9.0 − 9.5 = 0.6, L1(9.2) = 9.2 − 9.0 9.5 − 9.0 = 0.4 or ln 9.2 ≈ L0(9.2)f0 + L1(9.2)f1 = 0.6 × 2.1972 + 0.4 × 2.2513 = 2.2188 The error is = a − ā = 2.2192 − 2.2188 = 0.0004 Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 5 / 9
  • 6. Lagrange Quadratic Lagrange Interpolation ⇒ Quadratic interpolation is interpolation of given (x0, f0), (x1, f1), (x2, f2) by a second degree polynomial which by Lagranges idea is p2(x) = L0(x)f0 + L1(x)f1 + L2(x)f2 with L0(x0) = 1, L1(x1) = 1, L2(x2) = 1, and L0(x1) = L0(x2) = 0 L0(x) = l0(x) l(x0) = (x − x1)(x − x2) (x0 − x1)(x0 − x2) L1(x) = l1(x) l(x1) = (x − x0)(x − x2) (x1 − x0)(x1 − x2) L2(x) = l2(x) l(x2) = (x − x0)(x − x1) (x2 − x0)(x2 − x1) Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 6 / 9
  • 7. Example Q Compute ln 9.2, where ln 9.0 = 2.1972, ln 9.5 = 2.2513, and ln 11 = 2.3979 by quadratic Lagrange interpolation and determine the error from ln 9.2 = 2.2192 Ans According to question x0 = 9.0, x1 = 9.5, x2 = 11, f0 = ln 9.0, f1 = ln 9.5, f2 = 2.3979 We will find the weight L0(x) and L1(x), and L2(x) where L0(x) = (x − 9.5)(x − 11) (9 − 9.5)(9 − 11) = x2 −20.5x +104.5 or L0(9.2) = 0.5400 L1(x) = (x − 9)(x − 11) (9.5 − 9)(9.5 − 11) = − 1 0.75 (x2 −20x+99), L1(9.2) = 0.4800 L2(x) = (x − 9)(x − 9.5) (11 − 9)(11 − 9.5) = 1 3 (x2 −18.5x+85.5), L2(9.2) = −0.0200 p2(x) = L0(x)f0 + L1(x)f1 + L2(x)f2 ln 9.2 ≈ 0.5400 × 2.1972 + 0.4800 × 2.2513 − 0.0200 × 2.3979 = 2.2192 Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 7 / 9
  • 8. Lagrange Polynomial Interpolation For general n we obtain f (x) ≈ pn(x) = n X k=0 Lk(x)fk = n X k=0 lk(x) lk(xk) fk where, l0(x) = (x − x1)(x − x2)....(x − xn) lk(x) = (x − x0)(x − x1)....(x − xk−1)....(x − xn) ∀ 0 k n ln(x) = (x − x0)(x − x1)....(x − xn−1) Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 8 / 9
  • 9. Conclusion 1 Computational complexity is very high in Lagrange interpolation method. 2 If n + 1 input samples are available it makes the nth order polynomial for minimizing the estimated error. 3 It can minimize the estimated error with greater extent, when number of available input-output data samples are very high. Dr. Varun Kumar (IIIT Surat) Unit 2 / Lecture-1 9 / 9