Derivation

Consider the result of Theorem 10 with [Maple Math] the linear polynomial fit to two data points:

[Maple Math]

We can take the derivative of both sides of this expression. First, we get

> P1:=x->((x-x[1])/(x[0]-x[1]))*f(x[0])+((x-x[0])/(x[1]-x[0]))*f(x[1]);

[Maple Math]

> x[1]:=x[0]+h:x[0]:=x0:dp1:=diff(P1(x),x);

[Maple Math]

where we have used the notation [Maple Math] . The error term becomes:

> err:=(D@@2)(f)(xi(x))*(x-x[0])*(x-x[1])/2;

[Maple Math]

> diff(err,x);

[Maple Math]

This is not a very useful expression. Manipulating this error term is made difficult by the unknown quantity [Maple Math] and the way it depends on [Maple Math] . However, this part of the error term vanishes if we evaluate it at either [Maple Math] or [Maple Math] . The two formula obtained respectively are

[Maple Math] ,

[Maple Math] .

The former formula is known as the forward-difference formula, the latter as the backward-difference formula. Both can be written in the first form if we allow [Maple Math] .

If the second derivative of [Maple Math] is bounded over the interval [Maple Math] , i.e. [Maple Math] , then the maximum error is given by [Maple Math] .

>

>

>