Higher Order Interpolation is a Bad Idea
2003 Nathan Collier, Autar Kaw, Jai Paul , University of South Florida , kaw@eng.usf.edu , http://numericalmethods.eng.usf.edu/mws .
NOTE: This worksheet demonstrates the use of Maple to show how higher interpolation can be a bad idea. It illustrates how choosing more data points can result in highly oscillatory polynomial functions.
Introduction
The following example illustrates why higher order polynomial interpolation, that is, interpolating using high number of data points, is a bad idea. In 1901, Carl Runge published his work on dangers of higher order polynomial interpolation. He took a simple looking function on the interval of [-1,1]. He took data points equidistantly spaced in [-1,1], and then interpolated the data points with polynomials. He found that as he took more points, the polynomials and the original curve differed considerably in their value from each other.
Section I : Data.
Runge's function is given by:
Plotting Runge's Function:
Section II: Polynomial interpolation for 5 data points.
Let us first interpolate approximate Runge's function using polynomial interpolation. For interpolation 5 equidistant data points, [-1, -0.5, 0, 0.5, 1] are chosen in [-1,1] . This will give us a 4th order polynomial.
let us now plot it against the actual Runge's function.
Section III: Polynomial interpolation for 9 data points.
Runge' function is now approximated by choosing 9 equidistant data points, [-1, -0.75, -0.5, -0.25, 0, 0.25, 0.5, 0.75, 1] in [-1,1]. Interpolating with these values would give us an 8th order polynomial.
Plotting the 8th order polynomial against Runge's function,
Section IV: Polynomial interpolation for 21 data points.
We will now interpolate Runge's function in [-1,1], by choosing 21 equidistant points, [-1,-0.9,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1]. This will give us a 20th order polynomial.
Plotting this polynomial against Runge's function,
Section V: Comparison.
Below is a plot to compare the interpolated polynomials obtained using 5, 9 and 21 data points, respectively, with the actual Runge's function :
Section VI: Conclusion.
Maple helped us to apply our knowledge of numerical methods of interpolation to see that higher order interpolation is a bad idea. As the interpolant order becomes higher, the difference between the values of the original function and the interpolated function are very different, especially close to the end points of -1 and +1.
Choose even order of polynomials of your own choice, and see the effect of the higher order interpolation at x=0.8 and x=0.
References:
[1] Autar Kaw, Holistic Numerical Methods Institute , See
http://numericalmethods.eng.usf.edu/mws/ind/05inp/mws_ind_inp_spe_higherorder.pdf
Disclaimer: While every effort has been made to validate the solutions in this worksheet, University of South Florida and the contributors are not responsible for any errors contained and are not liable for any damages resulting from the use of this material.