36 Lagrangian Polynomials
In the real world, it is constantly observed that one event causes another or that one event is correlated with another in some way. Many times, experiments can be done to further explore these relationships, such as how temperature affects an element of the periodic table. But other times experiments are impossible, such as when human lives are on the line. For example, determining how different health conditions make a person more or less susceptible to a specific bacterium or virus should not be studied by purposefully infecting people.
Mathematical models can give us information in areas where experiments cannot. By modeling, analyzing, and interpreting data mathematically, we can come up with explanations and make predictions without having to use experimentation. Then, the model can be tested and revised for accuracy when more data is given [8].
One way data is modeled is by finding a high-order polynomial that passes through each data point. In this section, we will focus on the Lagrangian form of the polynomial. Consider the following theorem from Giordano et al. [8].
Theorem VII.1 (Lagrangian Form of the Polynomial)
This polynomial is given by
where
This theorem is pretty straightforward, but let’s do one example to see this theorem in action. This problem is one I completed for Mathematical Models/Applications 2 and comes from Giordano et al. [8].
Consider the following data set:
Fit the data into the Lagrange Interpolation Polynomial.
Solution
To find the polynomial all we have to do is plug the data points into the formula given in Theorem VII.1. Because we have six data points, the following polynomial has a degree of 5.
It is clear that this polynomial passes through each of the data points. For each , is equal to zero when is not equal to . What is left is
Because is equal to one, we are left with
The Lagrange Polynomial model is useful in that it allows us to predict the corresponding -value of a given -value. The drawback is that this must be between and . For example, in our problem above, we could predict the corresponding -value to equals 3 by finding , and our prediction would be quite accurate. However, using this polynomial to try and predict the corresponding -value for equals -1 or equals 7 will likely lead to predictions that are not accurate.
Another problem with using the Lagrangian Polynomial is that as the number of data points increases so does the order of the polynomial. There are a couple of disadvantages with using a high-order polynomial as we will see. One way to remedy this is to use linear and cubic splines.