Python 3 PDF
Python 3 PDF
Python 3 PDF
FINITE DIFFERENCES:
Forward Differences
, ,
We can think the symbol as a forward difference operator and , .etc. are called the
first forward differences.
The differences between the first forward differences are called second forward differences
and so on.
The second, third and successive higher order differences can be calculated easily.
( ) ( ) ( ) ,
Similarly,
( ) ( ) ( )
( ) ( )
Similarly, other differences of any order can be calculated in a straight forward way.
Note:
We can think of a shift operator defined by the following way:
for any .
So,
2
( ) , and so on.
In general, .
( )
Now with this, we can easily calculate the higher order differences.
For example,
( ) ( )
The following table demonstrates how different forward differences are computed:
Interpolation:
As the explicit nature of the function ( ) is not known, the relation is approximated by a
simple function ( ) so that the original ( ) [not known] and the approximated function
( ) agree at the set of given points ( ). This is called interpolation. If the interpolating
function is a polynomial of some degree then it is called polynomial interpolation. There are
3
other kinds of interpolations like trigonometric interpolation etc., depending on what kind of
function is used for interpolation.
We can calculate the errors in polynomial and other kinds of interpolations. We will discuss this
later.
Consider, , .
The polynomial function of n-th degree, which passes through the given data points, can be
written as
( ) ( ) ( )( ) ( )( )( ) (1)
Since the above function will pass through the data points, by putting them we can determine
the coefficients.
So we obtain
( )
( )( )
Similarly,
In general, .
To obtain the expression of the polynomial function for any arbitrary value , we set
so that .
( )
( ) ( )( ) ( )( ) ( )
(2)