Runge's phenomenon

From Wikipedia, the free encyclopedia

Phenomenon in a nutshellThe red curve is the Runge function. The blue curve is a 5th-order interpolating polynomial (using six equally-spaced interpolating points). The green curve is a 9th-order interpolating polynomial (using ten equally-spaced interpolating points).At the interpolating points, the error between the function and the interpolating polynomial is (by definition) zero. Between the interpolating points (especially in the region close to the endpoints 1 and −1), the error between the function and the interpolating polynomial gets worse for higher-order polynomials.
Phenomenon in a nutshell
The red curve is the Runge function.
The blue curve is a 5th-order interpolating polynomial (using six equally-spaced interpolating points).
The green curve is a 9th-order interpolating polynomial (using ten equally-spaced interpolating points).
At the interpolating points, the error between the function and the interpolating polynomial is (by definition) zero. Between the interpolating points (especially in the region close to the endpoints 1 and −1), the error between the function and the interpolating polynomial gets worse for higher-order polynomials.

In the mathematical field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree. It was discovered by Carl David Tolmé Runge when exploring the behavior of errors when using polynomial interpolation to approximate certain functions (Runge 1901).

Contents

[edit] Problem

Consider the function:

f(x) = \frac{1}{1+25x^2}.\,

Runge found that if this function is interpolated at equidistant points xi between −1 and 1 such that:

x_i = -1 + (i-1)\frac{2}{n},\quad i \in \left\{ 1, 2, \dots, n+1 \right\}

with a polynomial Pn(x) of degree ≤ n, the resulting interpolation oscillates toward the end of the interval, i.e. close to −1 and 1. It can even be proven that the interpolation error tends toward infinity when the degree of the polynomial increases:

\lim_{n \rightarrow \infty} \left( \max_{-1 \leq x \leq 1} | f(x) -P_n(x)| \right) = \infty.

However, the Weierstrass approximation theorem states that there is some sequence of approximating polynomials for which the error goes to zero. This shows that high-degree polynomial interpolation at equidistant points can be troublesome.

[edit] Reason

The error between the generating function and the interpolating polynomial of order N is bounded by the Nth derivative of the generating function.

For the case of the Runge function (also called Lorentzian function) shown above,

f(x) = \frac{1}{1+25x^2}

the first two derivatives are


 \begin{array}{lcl}
    \displaystyle f'(x) = -\frac{50x}{\left(1+25x^2\right)^2} &\rightarrow&
               \displaystyle\left|f'(1)\right|=\frac{50}{26^2} \approx 0.0740 \\[1.5em]
    \displaystyle f''(x) = \frac{5000(1+25x^2)-50(1+25x^2)^2}{\left(1+25x^2\right)^4} &\rightarrow
             &\displaystyle\left|f''(1)\right|=\frac{96200}{26^4} \approx 0.2105.
 \end{array}

The magnitude of higher order derivatives of the Runge function get even larger. Therefore, the bound for the error (between the interpolating points) when using higher order interpolating polynomials becomes larger.

[edit] Mitigations to the problem of Runge's phenomenon

The oscillation can be minimized by using Chebyshev nodes instead of equidistant nodes. Chebyshev nodes have the property that they become closer together near the boundaries of the region. In this case the maximum error is guaranteed to diminish with increasing polynomial order. The phenomenon demonstrates that high degree polynomials are generally unsuitable for interpolation with equidistant nodes. The problem can be avoided by using spline curves which are piecewise polynomials. When trying to decrease the interpolation error one can increase the number of polynomial pieces which are used to construct the spline instead of increasing the degree of the polynomials used.

[edit] See also

[edit] References

  • Runge, Carl (1901), “Über empirische Funktionen und die Interpolation zwischen äquidistanten Ordinaten”, Zeitschrift für Mathematik und Physik 46: 224–243 .