STEP 20

FINITE DIFFERENCES 3

Polynomials

Since polynomial approximations are used in many areas of Numerical Analysis, it is important to investigate the phenomena of differencing polynomials.

1. Finite differences of a polynomial

Consider the finite differences of an n-th degree polynomial

,

tabulated for equidistant points at the tabular interval h.

Theorem: The n-th difference of a polynomial of degree n is a constant proportional to n
and higher order differences are zero.

Proof: For any positive integer k, the binomial expansion

,

yields

.

Omitting the subscript of x, we find

.

In passing, the student may recall that in the Differential Calculus the increment is related to the derivative of f (x) at the point x.

2. Example

Construct for f (x) = x3 with x = 5.0(0.1)5.5 the difference table:

Since in this case n = 3, an =1, h = 0.1, we find

Note that round-off error noise may occur; for example, consider the tabulation of f(x) = x3 for 5.0(0.1)5.5, rounded to two decimal places:

3. Approximation of a function by a polynomial

Whenever the higher differences of a table become small (allowing for round-off noise), the function represented may be approximated well by a polynomial. For example, reconsider the difference table of 6D for f (x ) = ex with x = 0.1(0.05)0.5:

Since the estimate for round-off error at (cf. the table in STEP 12), we say that third differences are constant within round-off error, and deduce that a cubic approximation is appropriate for ex over the range 0.1 < x < 0.5. An example in which polynomial approximation is inappropriate occurs when f(x) = 10x for x = 0(1)4, as is shown by the next table:

Although the function f(x) = 10x is `smooth', the large tabular interval (h = 1) produces large higher order finite differences. It should also be understood that there exist functions that cannot usefully be tabulated at all, at least in certain neighbourhoods; for example, f(x) = sin(1/x) near the origin x = 0. Nevertheless, these are fairly exceptional cases.

Finally, we remark that the approximation of a function by a polynomial is fundamental to the widespread use of finite difference methods.

Checkpoint

  1. What may be said about the higher order (exact) differences of a polynomial?
  2. What is the effect of round-off error on the higher order differences of a polynomial?
  3. When may a function be approximated by a polynomial?

EXERCISES

  1. Construct a difference table for the polynomial f(x) = x4 for x = 0(0.1)1 when
    1. the values of f are exact;
    2. the values of f have been rounded to 3D.
    3. Compare the fourth difference round-off errors with the estimate +/-6.
    4.  
  2. Find the degree of the polynomial which fits the data in the table:

Answers

last next