SlideShare a Scribd company logo
1 of 7
Download to read offline
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 etcRiyandika Jastin
 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrangeSamuelOseiAsare
 
Langrange Interpolation Polynomials
Langrange Interpolation PolynomialsLangrange Interpolation Polynomials
Langrange Interpolation PolynomialsSohaib H. Khan
 
Applied numerical methods lec4
Applied numerical methods lec4Applied numerical methods lec4
Applied numerical methods lec4Yasser 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 intervalDr. Nirav Vyas
 
Derivative power point
Derivative power pointDerivative power point
Derivative power pointbtmathematics
 
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 matematicosKmilo Bolaños
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integrationTarun Gehlot
 
Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleVARUN 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 implementationQuasar 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 functionsTarun Gehlot
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errorsmaheej
 
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.pdfproacademyhub
 
Algebra 2 Section 4-5
Algebra 2 Section 4-5Algebra 2 Section 4-5
Algebra 2 Section 4-5Jimbo Lamb
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt msFaeco Bot
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variablesRohan Bhatkar
 
Numarical values
Numarical valuesNumarical values
Numarical valuesAmanSaeed11
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlightedAmanSaeed11
 
Seismic data processing lecture 3
Seismic data processing lecture 3Seismic data processing lecture 3
Seismic data processing lecture 3Amin khalil
 
13 graphs of factorable polynomials x
13 graphs of factorable polynomials x13 graphs of factorable polynomials x
13 graphs of factorable polynomials xmath260
 
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.pdfpetercoiffeur18
 

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

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
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
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

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]