Lagrange Interpolation
The Lagrange interpolation formula is a way to find a polynomial which takes on certain values at arbitrary points. Specifically, it gives a constructive proof of the theorem below.
Suppose we have one point (1,3). How can we find a polynomial that could represent it?
Suppose we have sequence of points: (1,3), (2,4). How can we find a polynomial that could represent it?
Suppose we have sequence of points: (1,3), (2,4), (7,11). How can we find a polynomial that could represent it? In a general form it looks like this:
Contents
Theorem
Given distinct real values and real values (not necessarily distinct), there is a unique polynomial with real coefficients satisfying for , such that
This theorem can be viewed as a generalization of the well-known fact that two points uniquely determine a straight line, three points uniquely determine the graph of a quadratic polynomial, four points uniquely determine the graph of a cubic polynomial, and so on. (Two caveats: (1) the points are required to have different -coordinates, and (2) the "quadratic polynomial" might actually be a linear or constant polynomial, the "cubic polynomial" might actually be a quadratic, linear, or constant polynomial, and so on.)
Proof
First, a proof that the polynomial is unique: Suppose and are polynomials with the above properties. Then vanishes on but its degree is less than A nonzero polynomial of degree cannot have roots, so must be the zero polynomial, i.e.
Now, to show that exists, let Then and
Similarly construct polynomials such that and for all . (One way to write is where
Then, is a polynomial with real coefficients satisfying for all . It is a sum of polynomials of degree so its degree is
Also note that the theorem still holds, with the same proof as above, if any field is substituted for the real numbers (e.g. the rational numbers, the complex numbers, the integers mod etc.).
Sample Problems
If is a cubic polynomial with
find
Using Lagrange interpolation to find a polynomial of degree satisfying
what are the polynomials ?
Let . Then
Let . Then
Let . Then
Let . Then
Hence,
Simplifying gives
Let be a quintic polynomial such that
Determine .
Note: Many people are answering this incorrectly because they think it is the Fibonacci sequence, but this problem is asking about a quintic polynomial that passes through those points. That does not necessarily mean the next term behaves as the Fibonacci sequence would.
Lagrange interpolation is related to the method of differences, which can also be used to solve some of the above problems.