490 likes | 503 Views
Interpolation is a method to estimate values at intermediate points by producing a function that matches the given data exactly. This can be used to approximate data values and create a smooth graph of a function. Learn how to use Lagrange's and Newton's interpolation methods with given data points.
E N D
INTERPOLATION Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate points.
Interpolation may also be used to produce a smooth graph of a function for which values are known only at discrete points, either from measurements or calculations.
Given data points • Obtain a function, P(x) • P(x) goes through the data points • Use P(x) • To estimate values at intermediate points
Given data points: At x0 = 2, y0 = 3 and at x1 = 5, y1 = 8 Find the following: At x = 4, y = ?
P(x) should satisfy the following conditions: P(x = 2) = 3 and P(x = 5) = 8 P(x) can satisfy the above conditions if at x = x0 = 2, L0(x) = 1 and L1(x) = 0 and at x = x1= 5, L0(x) = 0 and L1(x) = 1
At x = x0 = 2, L0(x) = 1 and L1(x) = 0 and at x = x1= 5, L0(x) = 0 and L1(x) = 1 The conditions can be satisfied if L0(x) and L1(x) are defined in the following way.
The Lagrange interpolating polynomial passing through three given points; (x0, y0), (x1, y1) and (x2, y2) is:
At x0, L0(x) becomes 1. At all other given data points L0(x) is 0.
At x1, L1(x) becomes 1. At all other given data points L1(x) is 0.
At x2, L2(x) becomes 1. At all other given data points L2(x) is 0.
Find the Lagrange Interpolating Polynomial using the three given points.
An approximation can be obtained from the Lagrange Interpolating Polynomial as:
It is suspected that the high amounts of tannin in mature oak leave inhibit the growth of the winter moth larvae that extensively damage these trees in certain years. The following table lists the average weight of two samples of larvae at times in the first 28 days after birth. The first sample was reared on young oak leaves, whereas the second sample was reared on mature leaves from the same tree. • Use Lagrange’s interpolation to approximate the average weight curve for each sample. • Find an approximate maximum average weight for each sample by determining the maximum of the interpolating polynomial.
and is Newton’s Interpolating Polynomials Newton’s equation of a function that passes through two points
Set Set
and is Newton’s equation of a function that passes through three points
To find , set
Newton’s equation of a function that passes through four points can be written by adding a fourth term .
The fourth term will vanish at all three previous points and, therefore, leaving all three previous coefficients intact.
The divided difference of a function, is denoted as with respect to It is called as zeroth divided difference and is simply the value of the function, at Divided differences and the coefficients
The divided difference of a function, and with respect to called as the first divided difference, is denoted
The divided difference of a function, , and with respect to called as the second divided difference, is denoted as
The coefficients of Newton’s interpolating polynomial are: and so on.
Example Find Newton’s interpolating polynomial to approximate a function whose 5 data points are given below.
The 5 coefficients of the Newton’s interpolating polynomial are:
P(x) can now be used to estimate the value of the function f(x) say at x = 2.8.
Complete the divided difference table for the following data and also construct the interpolating polynomial that uses all this data.