To create a function that interpolates through prescribed points
Suppose and are distinct real numbers.
We use the notation for the polynomial of least degree interpolating the points:
Setting
Lagrange Polynomial is the interpolating polynomial of least degree passing though points (since we index at 0).
Error
Setting and we have the following result. If has derivatives on and are all continuous on , then there is a value such that:
To find max error over the entire interval we usually look at a graph of:
To get
And then we look at
and take
Uniqueness
The polynomial of least degree interpolating the data for exists and is unique. Moreover, the interpolating polynomial of degree at most is equal to .
Proof idea
We know exists since interpolates the data and has degree at most .
Suppose that and are both polynomials of degree at most n, such that they each pass through all of the points for .
Then the function is a polynomial of degree at most , such that it passes through the points for . That is, it has zeros! Thus must be the zero polynomial, and so .