Divided differences
From Wikipedia, the free encyclopedia
In mathematics divided differences is a recursive division process.
The method can be used to calculate the coefficients in the interpolation polynomial in the Newton form.
Contents |
[edit] Definition
Given n data points
the divided differences are defined as
[edit] Notation
If the data points are given as a function f
we sometimes write
Several notations for the divided difference of the function f on the nodes are used:
- ,
- ,
- etc.
[edit] Example
For the first few [yν] this yields
To make the recursive process more clear the divided differences can be put in a tabular form
[edit] Properties
- From the mean value theorem for divided differences it follows that
[edit] Matrix form
The divided difference scheme can be put into an upper triangular matrix. Let .
Then it holds
- Tf + gx = Tfx + Tgx
-
- This follows from the Leibniz rule. It means that multiplication of such matrices is commutative. Summarised, the matrices of divided difference schemes with respect to the same set of nodes form a commutative ring.
- Since Tfx is a triangular matrix, its eigenvalues are obviously .
- Let δξ be a Kronecker delta-like function, that is . Obviously , thus δξ is an eigenfunction of the pointwise function multiplication. That is is somehow an "eigenmatrix" of Tfx: . However, all columns of are multiples of each other, the matrix rank of is 1. So you can compose the matrix of all eigenvectors from the i-th column of each . Denote the matrix of eigenvectors with Ux. Example
- The diagonalization of Tfx can be written as
- .
[edit] Alternative definitions
[edit] Expanded form
With help of a polynomial function q with this can be written as
- .
[edit] Partial fractions
You can represent partial fractions using the expanded form of divided differences. (This does not simplify computation, but is interesting in itself.) If p and q are polynomial functions, where and q is given in terms of linear factors by , then it follows from partial fraction decomposition that
If limits of the divided differences are accepted, then this connection does also hold, if some of the xj coincide.
If f is a polynomial function with arbitrary degree and it is decomposed by using polynomial division of f by q, then it holds
- .
[edit] Peano form
The divided differences can be expressed as
where Bn − 1 is a B-spline of degree n − 1 for the data points and f(n) is the n-th derivative of the function f.
This is called the Peano form of the divided differences and Bn − 1 is called the Peano kernel for the divided differences, both named after Giuseppe Peano.
[edit] Taylor form
[edit] First order
If nodes are cumulated, then the numerical computation of the divided differences is inaccurate, because you divide almost two zeros, each of which with a high relative error due to differences of similar values. However we know, that difference quotients approximate the derivative and vice versa:
- for
This approximation can be turned into an identity whenever Taylor's theorem applies.
You can eliminate the odd powers of y − x by expanding the Taylor series at the center between x and y:
- x = m − h,y = m + h, that is
[edit] Higher order
The Taylor series or any other representation with function series can in principle be used to approximate divided differences. Taylor series are infinite sums of power functions. The mapping from a function f to a divided difference is a linear functional. We can as well apply this functional to the function summands.
Express power notation with an ordinary function: pn(x) = xn
Regular Taylor series is a weighted sum of power functions:
Taylor series for divided differences:
We know that the first n terms vanish, because we have a higher difference order than polynomial order, and in the following term the divided difference is one:
It follows that the Taylor series for the divided difference essentially starts with which is also a simple approximation of the divided difference, according to the mean value theorem for divided differences.
If we would have to compute the divided differences for the power functions in the usual way, we would encounter the same numerical problems that we had when computing the divided difference of f. The nice thing is, that there is a simpler way. It holds
Consequently we can compute the divided differences of pn by a division of formal power series. See how this reduces to the successive computation of powers when we compute pn[h] for several n.
Cf. an implementation in Haskell.
If you need to compute a whole divided difference scheme with respect to a Taylor series, see the section about divided differences of power series.
[edit] Polynomials and power series
Divided differences of polynomials are particularly interesting, because they can benefit from the Leibniz rule. The matrix J with
contains the divided difference scheme for the identity function with respect to the nodes , thus Jn contains the divided differences for the power function with exponent n. Consequently you can obtain the divided differences for a polynomial function with respect to the polynomial p by applying p (more precisely: its corresponding matrix polynomial function ) to the matrix J.
Now consider increasing the degree of p to infinity, i.e. turn the Taylor polynomial to a Taylor series. Let f be a function which corresponds to a power series. You can compute a divided difference scheme by computing the according matrix series applied to J. If the nodes are all equal, then J is a Jordan block and computation boils down to generalizing a scalar function to a matrix function using Jordan decomposition.
[edit] Forward differences
-
For more details on this topic, see Finite difference.
When the data points are equidistantly distributed we get the special case called forward differences. They are easier to calculate than the more general divided differences.
[edit] Definition
Given n data points
with
the divided differences can be calculated via forward differences defined as