Longitude of the periapsis

From formulasearchengine
Jump to navigation Jump to search

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.

Definition

Given k+1 data points

(x0,y0),,(xk,yk)

The forward divided differences are defined as:

[yν]:=yν,ν{0,,k}
[yν,,yν+j]:=[yν+1,,yν+j][yν,,yν+j1]xν+jxν,ν{0,,kj},j{1,,k}.

The backward divided differences are defined as:

[yν]:=yν,ν{0,,k}
[yν,,yνj]:=[yν,,yνj+1][yν1,,yνj]xνxνj,ν{j,,k},j{1,,k}.

Notation

If the data points are given as a function ƒ,

(x0,f(x0)),,(xk,f(xk))

one sometimes writes

f[xν]:=f(xν),ν{0,,k}
f[xν,,xν+j]:=f[xν+1,,xν+j]f[xν,,xν+j1]xν+jxν,ν{0,,kj},j{1,,k}.

Several notations for the divided difference of the function ƒ on the nodes x0, ..., xn are used:

[x0,,xn]f,
[x0,,xn;f],
D[x0,,xn]f

etc.

Example

For the first few values of ν, this yields

[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

To make the recursive process more clear the divided differences can be put in a tabular form

x0y0=[y0][y0,y1]x1y1=[y1][y0,y1,y2][y1,y2][y0,y1,y2,y3]x2y2=[y2][y1,y2,y3][y2,y3]x3y3=[y3]

Properties

(f+g)[x0,,xn]=f[x0,,xn]+g[x0,,xn]
(λf)[x0,,xn]=λf[x0,,xn]
(fg)[x0,,xn]=f[x0]g[x0,,xn]+f[x0,x1]g[x1,,xn]++f[x0,,xn]g[xn]
lim(x0,,xn)(ξ,,ξ)f[x0,,xn]=f(n)(ξ)n!

Matrix form

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

Then it holds

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.
δξ(t)={1:t=ξ,0:else.
Obviously fδξ=f(ξ)δξ, thus δξ is an eigenfunction of the pointwise function multiplication. That is Tδxix is somehow an "eigenmatrix" of Tfx: TfxTδxix=f(xi)Tδxix. However, all columns of Tδxix are multiples of each other, the matrix rank of Tδxix is 1. So you can compose the matrix of all eigenvectors from the i-th column of each Tδxix. Denote the matrix of eigenvectors with Ux. 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 Tfx can be written as
Uxdiag(f(x0),,f(xn))=TfxUx.

Alternative definitions

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 help of a polynomial function q with q(ξ)=(ξx0)(ξxn) this can be written as

f[x0,,xn]=j=0nf(xj)q(xj).

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 degp<degq and q is given in terms of linear factors by q(ξ)=(ξx1)(ξxn), then it follows from partial fraction decomposition that

p(ξ)q(ξ)=(tp(t)ξt)[x1,,xn].

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 f(x)=p(x)+q(x)d(x) using polynomial division of f by q, then

p(ξ)q(ξ)=(tf(t)ξt)[x1,,xn].

Peano form

The divided differences can be expressed as

f[x0,,xn]=1n!x0xnf(n)(t)Bn1(t)dt

where Bn1 is a B-spline of degree n1 for the data points x0,,xn and f(n) is the n-th derivative of the function f.

This is called the Peano form of the divided differences and Bn1 is called the Peano kernel for the divided differences, both named after Giuseppe Peano.

Taylor form

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:

f(y)f(x)yxf(x) for xy

This approximation can be turned into an identity whenever Taylor's theorem applies.

f(y)=f(x)+f(x)(yx)+f(x)(yx)22!+f(x)(yx)33!+
f(y)f(x)yx=f(x)+f(x)yx2!+f(x)(yx)23!+

You can eliminate the odd powers of yx by expanding the Taylor series at the center between x and y:

x=mh,y=m+h, that is m=x+y2,h=yx2
f(m+h)=f(m)+f(m)h+f(m)h22!+f(m)h33!+
f(mh)=f(m)f(m)h+f(m)h22!f(m)h33!+
f(y)f(x)yx=f(m+h)f(mh)2h=f(m)+f(m)h23!+

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 f[x0,,xn] 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: f=f(0)p0+f(0)p1+f(0)2!p2+f(0)3!p3+

Taylor series for divided differences: f[x0,,xn]=f(0)p0[x0,,xn]+f(0)p1[x0,,xn]+f(0)2!p2[x0,,xn]+f(0)3!p3[x0,,xn]+

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:

j<npj[x0,,xn]=0pn[x0,,xn]=1pn+1[x0,,xn]=x0++xnpn+m[x0,,xn]=a{0,,n}m with a1a2amjaxj.

It follows that the Taylor series for the divided difference essentially starts with f(n)(0)n! 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

tn=(1x0t)(1xnt)(p0[x0,,xn]+p1[x0,,xn]t+p2[x0,,xn]t2+).

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.

Polynomials and power series

Divided differences of polynomials are particularly interesting, because they can benefit from the Leibniz rule. The matrix J with

J=(x010000x110000x2100000xn)

contains the divided difference scheme for the identity function with respect to the nodes x0,,xn, thus Jn contains the divided differences for the power function with exponent n. Consequently you can obtain the divided differences for a polynomial function φ(p) with respect to the polynomial p by applying p (more precisely: its corresponding matrix polynomial function φM(p)) to the matrix J.

φ(p)(ξ)=a0+a1ξ++anξn
φM(p)(J)=a0+a1J++anJn
=(φ(p)[x0]φ(p)[x0,x1]φ(p)[x0,x1,x2]φ(p)[x0,,xn]0φ(p)[x1]φ(p)[x1,x2]φ(p)[x1,,xn]000φ(p)[xn])

This is known as Opitz' formula. [1] [2]

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 x0,,xn 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.

Forward differences

34 year old Paediatrician Ronald from La Malbaie, has lots of hobbies that include vehicle, best property developers in singapore developers in singapore and base jumping. Will soon embark on a contiki trip that will cover going to the Pearling.

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.

Definition

Given n data points

(x0,y0),,(xn1,yn1)

with

xν=x0+νh , h>0 , ν=0,,n1

the divided differences can be calculated via forward differences defined as

(0)yi:=yi
(k)yi:=(k1)yi+1(k1)yi , k1.

Example

y0y0y12y0y13y0y22y1y2y3

Computer Program

Notes

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

See also

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

  1. de Boor, Carl, Divided Differences, Surv. Approx. Theory 1 (2005), 46--69
  2. Opitz, G. Steigungsmatrizen, Z. Angew. Math. Mech. (1964), 44, T52-T54