Lagrange interpolation forms a continuous function by fitting the lowest order polynomial to a set of points
How do we do this in practice?
Say we’re given points for
We have a system of linear equations
We should be able to use our previous methods as long as none of the points are equal
However, this method is actually problematic because it turns out the matrix is ill defined as grows and behaves badly with our more sophisticated methods
Gaussian elimination is slow and behaves poorly here due to rounding errors
An alternative solution method constructs the polynomial directly
Define
This means,
So our required polynomial is
The general problem stated clearly in our notation is given points with distinct , determine a polynomial satisfying and
Is there always a unique solution? It turns out yes
Lemma: There exists for such that if and if for all , where the are assumed to be distinct. Furthermore, satisfies for .
Trivially, this satisfies our conditions
Furthermore, this polynomial is unique
Suppose also satisfies
Therefore, and
This is a polynomial of degree with distinct roots, which implies it must be the zero function, i.e.
Definition: We call constructed above the Lagrange interpolation polynomial of degree n
Now what if we want to approximate a function with this scheme by fitting to sampled points?
Theorem: Suppose and that . Let be the Lagrange interpolation polynomial of degree with interpolation points for . Then for , we can write for some where .
As a corollary, where
When we place the points regularly, we run into pathological cases where both the derivatives grow with and grows with at the edges of our domain
However we can place points more cleverly using Chebyshev nodes