Newton's Forward Difference Formula
Newton's Forward Difference Formula
f1 - f 0 f0x1 - f1x0
f(x) @ P1(x) = ax-1b = x+
x1 - x0 x1 - x0
1
= [(x - x)f0 + (x-x0)f1]
(x1 - x0) 1
x1 - x x - x0 x - x0
f0 + (f1- f0) + f0
x1 - x 0 x1 - x0 x1 - x0
x - x0
= f0 + (f1- f0)
x1 - x 0
since x1 - x0 is the step lenght h, r can be written as (x - x0)/h and will be between (0, 1).
By Taylor's theorem
Let us assume that the second derivative of the function is bounded such that | f ''(x) | < M2
and since r < 1 we have | e(x) | < 1/2 h2 ( M2+M2) = h2M2
The general formula is very convenient to find the function value at various points if
forward difference at various points are avilable. Similarly the polynomial approximations
of functions of higher degree also can be expressed in terms of r and forward differences
of higher order. Instead of using the method of solving the system as we did earlier it is
convenient to use binomial formulae involving the difference operators to generate the
higher order interpolation formuale.
Let the function f is known at n+1 equally spaced data points a = x0 < x1 < ... < = xn =
b in the interval [a,b] as f0, f1, . . . fn. Then the n the degree polynomial approximation of
f(x) can be given as
n
r
f(x) @ Pn(x) = S ( i ) Di f0
i=0
r(r - 1) . . . (r - i +
( 1,) =
r are the binomial coefficients defined r r for any integer i >
and ( )as ( )= 1)
0
i 0 i i!
Proof :
To prove that the given result is the n the degree polynomial approximation of f(x) it is
sufficeint to prove that at the node i i.e., at x = xi the polynomial approximation Pn(x) gives
fi for any tabulated value xi since the curve f(x) passes through the node points xi, i = 0, 1, .
. ., n
Take r = k
Þ x = x0 + r h = x0 + k h = xk
k
k
Þ fk = S ( i ) = f0 + k Df0 + . . . + ( kk ) Dk f0
i=0
(i )0,=
the terms after k need not be considered n for n <
since i
consider k = 0
0
Þ f0 Di = hence the result is true for k = 0 and assume that the result is also true upto k = 1, 2,
= S f0 f0 . . . p
i=0
p
fp = f0 + rDf0 + . . . + ( ) Dp f0
p
consider
fp+1 = fp + Dfp
p p p p p p
= ( 0 )Df0 +(
1 )Df0
+...+ ( p )Dpf0 + ( 0 )Df0 +...+ (p-1)Dpf0 + (p)Dp+1f0
k+1
k+1
S ( i )Di f0
i=0
p p p+1
since (
i ) ( i-1 )
=(
i )
+
i.e., the nth degree polynomial approximation for f(x) can be written as
So if we know the forward difference values of f at x0 until order n then the above formula
is very easy to use to find the function values of f at any non-tabulated value of x in the
internal [a,b].The higher order forward differences can be obtained by making use of
forward difference table.
Forward difference table : Consider the function value (xi, fi) i = 0,1,2,--5 then the
forward difference table is
x0 f0
Df0 = f1- f0
x1 f1 D2f0 = Df1- Df0
Df1 = f2 - f1 D3f0 = D2f1- D2f0
x2 f2 D2f1 = Df2 - Df1 D4f0 = D3f1- D3f0
Df2 = f3 - f2 D3f1 = D2f2 - D2f1 D5f0 = D4f1- D4f0
x3 f3 D2f2 = Df3 - Df2 D4f1 = D3f2 - D3f1
Df3 = f4 - f3 D3f2 = D2f3 - D2f2
x4 f4 D2f3 = Df4 - Df3
Df4 = f5 - f4
x5 f5
xi 0 1 2 3 4
fi 1 7 23 55 109
then find f(0.5) and f(1.5) using Newton's forward difference formula.
Solution :
0 1
6
1 7 10
16 6
2 23 16 0
32 6
3 55 22
54
4 109
(Note : The given data satifies f(x) = x3 + 2x2 + 3x +1, i.e the function is a third degree
polynomial and hence third forward differences are constant by the result).
r(r-1) 2 r(r-1)(r-2) 3
f(x) = f0 + rDf0 + D f0 + D f0
2! 3!
= 3.125
Exact value is
f(0.5) = (0.5)3 + 2(0.5)2 + 3(0.5) + 1
= 0.125 + 0.5 + 1.5 + 1
= 3.125
So for the Newton's method where the nodel points xi, i = 0, 1, . . . n are equally spaced,
the error is En(x) = (x - x0)(x - x0 - h) . . .(x - x0 - nh) f(n+1)(x) / (n+1)!
r
= ( n+1 ) h(n+1)f(n+1)(x)
Solution of Transcendental Equations | Solution of Linear System of Algebraic Equations | Interpolation & Curve Fitting