SlideShare a Scribd company logo
Chapter 5 Interpolation
Consider n pairs of data points: (x1,y1), (x2,y2),..., (xn,yn), interpolation is a
procedure in which a mathematical formula is used to represent a given set of
data points, such that the formula gives the exact value at all the data points.
This formula then can be used to approximate the value between the data
points.
Interpolation using one polynomial function
Consider the polynomial of degree n - 1
f(x)= a0 + a1x + a2x2
+ ...,+an-1xn-1
We can determine this polynomial by determining the n unknown
coefficients a0, a1 ...,an-1 by using n data points to form the following n
equations:
1
-
n
i
1
-
n
2
i
2
i
1
0
i x
...,+a
+
x
a
+
x
a
+
a
=
y
Example: Consider the following data.
Determine the polynomial that passes through all given data points and
approximate y at x = 1.3.
Ans: a = 1.0000, 0.5833, 0.4583, -0.0833, 0.0417
Lagrange Interpolating Polynomial
For n data points: (x1,y1), (x2,y2),..., (xn,yn), the Lagrange interpolating
polynomial of order n -1 is in the form



n
1
i
i
i(x)y
L
f(x)
Where 













n
1
j
1,
j j
i
j
i
x
x
x
x
(x)
L is the Lagrange function.
For n = 1 (use 2 data points)
x y
x1 y1
x2 y2
For n = 2 (use 3 data points)
x y
x1 y1
x2 y2
x3 y3
For n = 3 (use 4 data points)
x y
x1 y1
x2 y2
x3 y3
x4 y4
f(x) = L1(x)y1 + L2(x)y2
1
2
1
2
2
1
2
1
x
x
x
x
(x)
L
x
x
x
x
(x)
L






f(x) = L1(x)y1 + L2(x)y2 + L3(x)y3
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
2
3
1
3
2
1
3
3
2
1
2
3
1
2
3
1
2
1
3
2
1















f(x) = L1(x)y1 + L2(x)y2 + L3(x)y3 + L4(x)y4
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
)
x
(x
(x)
L
3
4
2
4
1
4
3
2
1
4
4
3
2
3
1
3
4
2
1
3
4
2
3
2
1
2
4
3
1
2
4
1
3
1
2
1
4
3
2
1




























Example: Consider the following data points.
Construct the Lagrange polynomials of order 1 by using the two data points
and order two by using all three data points. Then approximate the value of y
for x = 2 by using the Lagrange polynomials of order 1 and 2.
Example: Construct the Lagrange polynomial for the function f(x)= sin(3x)
by using the following data in the table and use it to approximate f(1.5)
Newton’s Interpolating Polynomials
)
x
)...(x
x
)(x
x
(x
a
...
)
x
)(x
x
(x
a
)
x
(x
a
a
)
x
(x
a
f(x) 1
n
2
1
n
2
1
3
1
2
1
n
1
i
1
i
1
j
j
i 























  
Divided Difference
j
n
j
1
n
j
1
j
j
n
j
2
j
1
j
n
j
2
j
1
j
j
j
3
j
2
j
1
j
j
3
j
2
j
1
j
3
j
2
j
1
j
j
j
2
j
1
j
j
2
j
1
j
2
j
1
j
j
j
1
j
j
1
j
1
j
j
x
x
]
x
,...,
x
,
f[x
]
x
,...,
x
,
f[x
]
x
,...,
x
,
x
,
f[x
x
x
]
x
,
x
,
f[x
]
x
,
x
,
f[x
]
x
,
x
,
x
,
f[x
x
x
]
x
,
f[x
]
x
,
f[x
]
x
,
x
,
f[x
x
x
y
y
]
x
,
f[x








































]
x
,...,
x
,
x
,
f[x
a
]
x
,
x
,
f[x
a
]
x
,
f[x
a
y
a
n
3
2
1
n
3
2
1
3
2
1
2
1
1




Example:
(a) Construct Newton’s interpolation polynomial passing through the following data set.
(b) Let (x, y)=(3, 36) be a new additional data point. Construct Newton’s interpolation polynomial
passing through the following new data set by using (a).
Approximate the value of y when x = 2 by using this Newton’s polynomial.
x y f[xi,xi+1] f[xi,xi+1,xi+2] f[xi,xi+1,xi+2,xi+3] f[xi,xi+1,xi+2,xi+3,xi+4]
Example: Determine the Newton’s polynomial that passes through the data points:
and use it to approximate the value of y when x = 3.
x y f[xi,xi+1] f[xi,xi+1,xi+2] f[xi,xi+1,…,xi+3] f[xi,xi+1,…,xi+4] f[xi,xi+1,…,xi+5]

More Related Content

What's hot

Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
Riyandika Jastin
 
Numerical method (curve fitting)
Numerical method (curve fitting)Numerical method (curve fitting)
Numerical method (curve fitting)
Varendra University Rajshahi-bangladesh
 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrange
SamuelOseiAsare
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
MalathiNagarajan20
 
Interpolation
InterpolationInterpolation
Interpolation
Bhavik A Shah
 
Exponential functions (1)
Exponential functions (1)Exponential functions (1)
Exponential functions (1)
nellealexasioquim
 
Langrange Interpolation Polynomials
Langrange Interpolation PolynomialsLangrange Interpolation Polynomials
Langrange Interpolation Polynomials
Sohaib H. Khan
 
Applied numerical methods lec4
Applied numerical methods lec4Applied numerical methods lec4
Applied numerical methods lec4
Yasser Ahmed
 
2 1 polynomials
2 1 polynomials2 1 polynomials
2 1 polynomialshisema01
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
Dr. Nirav Vyas
 
Derivative power point
Derivative power pointDerivative power point
Derivative power point
btmathematics
 
numerical methods
numerical methodsnumerical methods
numerical methods
HaiderParekh1
 
2.2 Polynomial Function Notes
2.2 Polynomial Function Notes2.2 Polynomial Function Notes
2.2 Polynomial Function Noteslgemgnani
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Advanced matlab codigos matematicos
Advanced matlab codigos matematicosAdvanced matlab codigos matematicos
Advanced matlab codigos matematicos
Kmilo Bolaños
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
Tarun Gehlot
 
Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal Rule
VARUN KUMAR
 

What's hot (20)

Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Numerical method (curve fitting)
Numerical method (curve fitting)Numerical method (curve fitting)
Numerical method (curve fitting)
 
Es272 ch3a
Es272 ch3aEs272 ch3a
Es272 ch3a
 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrange
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 
Interpolation
InterpolationInterpolation
Interpolation
 
Exponential functions (1)
Exponential functions (1)Exponential functions (1)
Exponential functions (1)
 
Langrange Interpolation Polynomials
Langrange Interpolation PolynomialsLangrange Interpolation Polynomials
Langrange Interpolation Polynomials
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Applied numerical methods lec4
Applied numerical methods lec4Applied numerical methods lec4
Applied numerical methods lec4
 
Es272 ch5a
Es272 ch5aEs272 ch5a
Es272 ch5a
 
2 1 polynomials
2 1 polynomials2 1 polynomials
2 1 polynomials
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
Derivative power point
Derivative power pointDerivative power point
Derivative power point
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
2.2 Polynomial Function Notes
2.2 Polynomial Function Notes2.2 Polynomial Function Notes
2.2 Polynomial Function Notes
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Advanced matlab codigos matematicos
Advanced matlab codigos matematicosAdvanced matlab codigos matematicos
Advanced matlab codigos matematicos
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal Rule
 

Similar to Chapter 5 interpolation

Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementation
Quasar Chunawala
 
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
Christian Robert
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
Tarun Gehlot
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errorsmaheej
 
Maths 12
Maths 12Maths 12
Maths 12
Mehtab Rai
 
2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf
proacademyhub
 
2018-G12-Math-E.pdf
2018-G12-Math-E.pdf2018-G12-Math-E.pdf
2018-G12-Math-E.pdf
ZainMehmood21
 
Algebra 2 Section 4-5
Algebra 2 Section 4-5Algebra 2 Section 4-5
Algebra 2 Section 4-5
Jimbo Lamb
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt ms
Faeco Bot
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
Rohan Bhatkar
 
Numarical values
Numarical valuesNumarical values
Numarical values
AmanSaeed11
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlighted
AmanSaeed11
 
Daa chapter7
Daa chapter7Daa chapter7
Daa chapter7
B.Kirron Reddi
 
Seismic data processing lecture 3
Seismic data processing lecture 3Seismic data processing lecture 3
Seismic data processing lecture 3
Amin khalil
 
13 graphs of factorable polynomials x
13 graphs of factorable polynomials x13 graphs of factorable polynomials x
13 graphs of factorable polynomials x
math260
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
cairo university
 
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdfa) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
petercoiffeur18
 
Chs4
Chs4Chs4
Chs4
CAALAAA
 

Similar to Chapter 5 interpolation (20)

Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementation
 
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
Statistics (1): estimation Chapter 3: likelihood function and likelihood esti...
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errors
 
Maths 12
Maths 12Maths 12
Maths 12
 
2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf
 
2018-G12-Math-E.pdf
2018-G12-Math-E.pdf2018-G12-Math-E.pdf
2018-G12-Math-E.pdf
 
Algebra 2 Section 4-5
Algebra 2 Section 4-5Algebra 2 Section 4-5
Algebra 2 Section 4-5
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt ms
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 
Numarical values
Numarical valuesNumarical values
Numarical values
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlighted
 
Daa chapter7
Daa chapter7Daa chapter7
Daa chapter7
 
Seismic data processing lecture 3
Seismic data processing lecture 3Seismic data processing lecture 3
Seismic data processing lecture 3
 
13 graphs of factorable polynomials x
13 graphs of factorable polynomials x13 graphs of factorable polynomials x
13 graphs of factorable polynomials x
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
 
senior seminar
senior seminarsenior seminar
senior seminar
 
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdfa) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
 
Chs4
Chs4Chs4
Chs4
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 

Recently uploaded

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 

Recently uploaded (20)

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 

Chapter 5 interpolation

  • 1. Chapter 5 Interpolation Consider n pairs of data points: (x1,y1), (x2,y2),..., (xn,yn), interpolation is a procedure in which a mathematical formula is used to represent a given set of data points, such that the formula gives the exact value at all the data points. This formula then can be used to approximate the value between the data points. Interpolation using one polynomial function Consider the polynomial of degree n - 1 f(x)= a0 + a1x + a2x2 + ...,+an-1xn-1 We can determine this polynomial by determining the n unknown coefficients a0, a1 ...,an-1 by using n data points to form the following n equations: 1 - n i 1 - n 2 i 2 i 1 0 i x ...,+a + x a + x a + a = y Example: Consider the following data. Determine the polynomial that passes through all given data points and approximate y at x = 1.3. Ans: a = 1.0000, 0.5833, 0.4583, -0.0833, 0.0417
  • 2. Lagrange Interpolating Polynomial For n data points: (x1,y1), (x2,y2),..., (xn,yn), the Lagrange interpolating polynomial of order n -1 is in the form    n 1 i i i(x)y L f(x) Where               n 1 j 1, j j i j i x x x x (x) L is the Lagrange function. For n = 1 (use 2 data points) x y x1 y1 x2 y2 For n = 2 (use 3 data points) x y x1 y1 x2 y2 x3 y3 For n = 3 (use 4 data points) x y x1 y1 x2 y2 x3 y3 x4 y4 f(x) = L1(x)y1 + L2(x)y2 1 2 1 2 2 1 2 1 x x x x (x) L x x x x (x) L       f(x) = L1(x)y1 + L2(x)y2 + L3(x)y3 ) x (x ) x (x ) x (x ) x (x (x) L ) x (x ) x (x ) x (x ) x (x (x) L ) x (x ) x (x ) x (x ) x (x (x) L 2 3 1 3 2 1 3 3 2 1 2 3 1 2 3 1 2 1 3 2 1                f(x) = L1(x)y1 + L2(x)y2 + L3(x)y3 + L4(x)y4 ) x (x ) x (x ) x (x ) x (x ) x (x ) x (x (x) L ) x (x ) x (x ) x (x ) x (x ) x (x ) x (x (x) L ) x (x ) x (x ) x (x ) x (x ) x (x ) x (x (x) L ) x (x ) x (x ) x (x ) x (x ) x (x ) x (x (x) L 3 4 2 4 1 4 3 2 1 4 4 3 2 3 1 3 4 2 1 3 4 2 3 2 1 2 4 3 1 2 4 1 3 1 2 1 4 3 2 1                            
  • 3. Example: Consider the following data points. Construct the Lagrange polynomials of order 1 by using the two data points and order two by using all three data points. Then approximate the value of y for x = 2 by using the Lagrange polynomials of order 1 and 2.
  • 4. Example: Construct the Lagrange polynomial for the function f(x)= sin(3x) by using the following data in the table and use it to approximate f(1.5)
  • 5. Newton’s Interpolating Polynomials ) x )...(x x )(x x (x a ... ) x )(x x (x a ) x (x a a ) x (x a f(x) 1 n 2 1 n 2 1 3 1 2 1 n 1 i 1 i 1 j j i                            Divided Difference j n j 1 n j 1 j j n j 2 j 1 j n j 2 j 1 j j j 3 j 2 j 1 j j 3 j 2 j 1 j 3 j 2 j 1 j j j 2 j 1 j j 2 j 1 j 2 j 1 j j j 1 j j 1 j 1 j j x x ] x ,..., x , f[x ] x ,..., x , f[x ] x ,..., x , x , f[x x x ] x , x , f[x ] x , x , f[x ] x , x , x , f[x x x ] x , f[x ] x , f[x ] x , x , f[x x x y y ] x , f[x                                         ] x ,..., x , x , f[x a ] x , x , f[x a ] x , f[x a y a n 3 2 1 n 3 2 1 3 2 1 2 1 1    
  • 6. Example: (a) Construct Newton’s interpolation polynomial passing through the following data set. (b) Let (x, y)=(3, 36) be a new additional data point. Construct Newton’s interpolation polynomial passing through the following new data set by using (a). Approximate the value of y when x = 2 by using this Newton’s polynomial. x y f[xi,xi+1] f[xi,xi+1,xi+2] f[xi,xi+1,xi+2,xi+3] f[xi,xi+1,xi+2,xi+3,xi+4]
  • 7. Example: Determine the Newton’s polynomial that passes through the data points: and use it to approximate the value of y when x = 3. x y f[xi,xi+1] f[xi,xi+1,xi+2] f[xi,xi+1,…,xi+3] f[xi,xi+1,…,xi+4] f[xi,xi+1,…,xi+5]