Divided differences

From HandWiki - Reading time: 9 min


Short description: Algorithm for computing polynomial coefficients

In mathematics, divided differences is an algorithm, historically used for computing tables of logarithms and trigonometric functions.[citation needed] Charles Babbage's difference engine, an early mechanical calculator, was designed to use this algorithm in its operation.[1]

Divided differences is a recursive division process. Given a sequence of data points (x0,y0),,(xn,yn), the method calculates the coefficients of the interpolation polynomial of these points in the Newton form.

Definition

Given n + 1 data points (x0,y0),,(xn,yn) where the xk are assumed to be pairwise distinct, the forward divided differences are defined as: [yk]:=yk,k{0,,n}[yk,,yk+j]:=[yk+1,,yk+j][yk,,yk+j1]xk+jxk,k{0,,nj}, j{1,,n}.

To make the recursive process of computation clearer, the divided differences can be put in tabular form, where the columns correspond to the value of j above, and each entry in the table is computed from the difference of the entries to its immediate lower left and to its immediate upper left, divided by a difference of corresponding x-values: x0y0=[y0][y0,y1]x1y1=[y1][y0,y1,y2][y1,y2][y0,y1,y2,y3]x2y2=[y2][y1,y2,y3][y2,y3]x3y3=[y3]

Notation

Note that the divided difference [yk,,yk+j] depends on the values xk,,xk+j and yk,,yk+j, but the notation hides the dependency on the x-values. If the data points are given by a function f, (x0,y0),,(xk,yn)=(x0,f(x0)),,(xn,f(xn)) one sometimes writes the divided difference in the notation f[xk,,xk+j] =def [f(xk),,f(xk+j)]=[yk,,yk+j].Other notations for the divided difference of the function ƒ on the nodes x0, ..., xn are: f[xk,,xk+j]=[x0,,xn]f=[x0,,xn;f]=D[x0,,xn]f.

Example

Divided differences for k=0 and the first few values of j: [y0]=y0[y0,y1]=y1y0x1x0[y0,y1,y2]=[y1,y2][y0,y1]x2x0=y2y1x2x1y1y0x1x0x2x0=y2y1(x2x1)(x2x0)y1y0(x1x0)(x2x0)[y0,y1,y2,y3]=[y1,y2,y3][y0,y1,y2]x3x0

Thus, the table corresponding to these terms upto two columns has the following form: x0y0y1y0x1x0x1y1y2y1x2x1y1y0x1x0x2x0y2y1x2x1x2y2xnyn

Properties

  • Linearity (f+g)[x0,,xn]=f[x0,,xn]+g[x0,,xn](λf)[x0,,xn]=λf[x0,,xn]
  • Leibniz rule (fg)[x0,,xn]=f[x0]g[x0,,xn]+f[x0,x1]g[x1,,xn]++f[x0,,xn]g[xn]=r=0nf[x0,,xr]g[xr,,xn]
  • Divided differences are symmetric: If σ:{0,,n}{0,,n} is a permutation then f[x0,,xn]=f[xσ(0),,xσ(n)]
  • Polynomial interpolation in the Newton form: if P is a polynomial function of degree n, and p[x0,,xn] is the divided difference, then Pn1(x)=p[x0]+p[x0,x1](xx0)+p[x0,x1,x2](xx0)(xx1)++p[x0,,xn](xx0)(xx1)(xxn1)
  • If p is a polynomial function of degree <n, then p[x0,,xn]=0.
  • Mean value theorem for divided differences: if f is n times differentiable, then f[x0,,xn]=f(n)(ξ)n! for a number ξ in the open interval determined by the smallest and largest of the xk's.

Matrix form

The divided difference scheme can be put into an upper triangular matrix: Tf(x0,,xn)=(f[x0]f[x0,x1]f[x0,x1,x2]f[x0,,xn]0f[x1]f[x1,x2]f[x1,,xn]00f[x2]f[x2,,xn]000f[xn]).

Then it holds

  • Tf+g(x)=Tf(x)+Tg(x)
  • Tλf(x)=λTf(x) if λ is a scalar
  • Tfg(x)=Tf(x)Tg(x)
    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 x form a commutative ring.
  • Since Tf(x) is a triangular matrix, its eigenvalues are obviously f(x0),,f(xn).
  • Let δξ be a Kronecker delta-like function, that is δξ(t)={1:t=ξ,0:else. Obviously fδξ=f(ξ)δξ, thus δξ is an eigenfunction of the pointwise function multiplication. That is Tδxi(x) is somehow an "eigenmatrix" of Tf(x): Tf(x)Tδxi(x)=f(xi)Tδxi(x). However, all columns of Tδxi(x) are multiples of each other, the matrix rank of Tδxi(x) is 1. So you can compose the matrix of all eigenvectors of Tf(x) from the i-th column of each Tδxi(x). Denote the matrix of eigenvectors with U(x). Example U(x0,x1,x2,x3)=(11(x1x0)1(x2x0)(x2x1)1(x3x0)(x3x1)(x3x2)011(x2x1)1(x3x1)(x3x2)0011(x3x2)0001) The diagonalization of Tf(x) can be written as U(x)diag(f(x0),,f(xn))=Tf(x)U(x).

Polynomials and power series

The matrix J=(x010000x110000x210000010000xn) contains the divided difference scheme for the identity function with respect to the nodes x0,,xn, thus Jm contains the divided differences for the power function with exponent m. Consequently, you can obtain the divided differences for a polynomial function p by applying p to the matrix J: If p(ξ)=a0+a1ξ++amξm and p(J)=a0+a1J++amJm then Tp(x)=p(J). This is known as Opitz' formula.[2][3]

Now consider increasing the degree of p to infinity, i.e. turn the Taylor polynomial into a Taylor series. Let f be a function which corresponds to a power series. You can compute the divided difference scheme for f by applying the corresponding matrix series to J: If f(ξ)=k=0akξk and f(J)=k=0akJk then Tf(x)=f(J).

Alternative characterizations

Expanded form

f[x0]=f(x0)f[x0,x1]=f(x0)(x0x1)+f(x1)(x1x0)f[x0,x1,x2]=f(x0)(x0x1)(x0x2)+f(x1)(x1x0)(x1x2)+f(x2)(x2x0)(x2x1)f[x0,x1,x2,x3]=f(x0)(x0x1)(x0x2)(x0x3)+f(x1)(x1x0)(x1x2)(x1x3)+f(x2)(x2x0)(x2x1)(x2x3)+f(x3)(x3x0)(x3x1)(x3x2)f[x0,,xn]=j=0nf(xj)k{0,,n}{j}(xjxk)

With the help of the polynomial function ω(ξ)=(ξx0)(ξxn) this can be written as f[x0,,xn]=j=0nf(xj)ω(xj).

Peano form

If x0<x1<<xn and n1, the divided differences can be expressed as[4] f[x0,,xn]=1(n1)!x0xnf(n)(t)Bn1(t)dt where f(n) is the n-th derivative of the function f and Bn1 is a certain B-spline of degree n1 for the data points x0,,xn, given by the formula Bn1(t)=k=0n(max(0,xkt))n1ω(xk)

This is a consequence of the Peano kernel theorem; it is called the Peano form of the divided differences and Bn1 is the Peano kernel for the divided differences, all named after Giuseppe Peano.

Forward and backward differences

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.

Given n+1 data points (x0,y0),,(xn,yn) with xk=x0+kh,  for  k=0,,n and fixed h>0 the forward differences are defined as Δ(0)yk:=yk,k=0,,nΔ(j)yk:=Δ(j1)yk+1Δ(j1)yk,k=0,,nj, j=1,,n.whereas the backward differences are defined as: (0)yk:=yk,k=0,,n(j)yk:=(j1)yk(j1)yk1,k=0,,nj, j=1,,n. Thus the forward difference table is written as:y0Δy0y1Δ2y0Δy1Δ3y0y2Δ2y1Δy2y3whereas the backwards difference table is written as:y0y1y12y2y23y3y22y3y3y3

The relationship between divided differences and forward differences is[5] [yj,yj+1,,yj+k]=1k!hkΔ(k)yj,whereas for backward differences:[citation needed][yj,yj1,,yjk]=1k!hk(k)yj.

See also

References

  1. Isaacson, Walter (2014). The Innovators. Simon & Schuster. p. 20. ISBN 978-1-4767-0869-0. 
  2. de Boor, Carl, Divided Differences, Surv. Approx. Theory 1 (2005), 46–69, [1]
  3. Opitz, G. Steigungsmatrizen, Z. Angew. Math. Mech. (1964), 44, T52–T54
  4. Skof, Fulvia (2011-04-30) (in en). Giuseppe Peano between Mathematics and Logic: Proceeding of the International Conference in honour of Giuseppe Peano on the 150th anniversary of his birth and the centennial of the Formulario Mathematico Torino (Italy) October 2-3, 2008. Springer Science & Business Media. pp. 40. ISBN 978-88-470-1836-5. https://books.google.com/books?id=ulUM2GagwacC&dq=This+is+called+the+Peano+form+of+the+divided+differences&pg=PA41. 
  5. Burden, Richard L.; Faires, J. Douglas (2011). Numerical Analysis (9th ed.). Cengage Learning. p. 129. ISBN 9780538733519. https://archive.org/details/numericalanalysi00rlbu. 
  • Louis Melville Milne-Thomson (2000). The Calculus of Finite Differences. American Mathematical Soc.. Chapter 1: Divided Differences. ISBN 978-0-8218-2107-7. 
  • Myron B. Allen; Eli L. Isaacson (1998). Numerical Analysis for Applied Science. John Wiley & Sons. Appendix A. ISBN 978-1-118-03027-1. 
  • Ron Goldman (2002). Pyramid Algorithms: A Dynamic Programming Approach to Curves and Surfaces for Geometric Modeling. Morgan Kaufmann. Chapter 4:Newton Interpolation and Difference Triangles. ISBN 978-0-08-051547-2. 

External links

de:Polynominterpolation#Bestimmung der Koeffizienten: Schema der dividierten Differenzen




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Divided_differences
18 views | Status: cached on September 01 2024 11:47:36
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF