Let us first consider a Taylor expansion of an analytical function
.
(1.1)
Then for the first derivative one obtains:
(1.2)
If we break the right hand side of the last equation after the first term, for
the last equation becomes
(1.3)
where
is called a forward difference.
The backward expansion of the function
can be written as
the last equation reads
(1.4)
so for the first derivative one obtains
(1.5)
where
is called a backward difference.
if we substract Eq. (1.5) from Eq. (1.3) one obtains
(1.6)
what is equivalent to
(1.7)
The second derivative can be found in the same way using the linear combination of different Taylor expansions. For instance, consider
(1.8)
Substracting from the last equation Eq. (1.1), multiplied by two, one gets the following equation
(1.9)
So, one can approximate the second derivative as
(1.10)
Similarly one can obtain the expression for the second derivative in terms of backward expansion, i.e.,
(1.11)
Finally, if we add Eqn. (1.3) and 1.5 expression for the second derivative reads
(1.12)
In an analogous way one can obtain finite difference approximations to higher order derivatives and differential operators. The short overview of the forward, backward and central differences for first three derivatives can be found in Tables 1.1, 1.2, 1.3.