Lecture 19: Derivative Approximation
Having introduced approximations of elements of vector spaces, a natural
question is the approximation of transformations of such objects or
operator approximation. An operator is understood here as a mapping from
a domain vector space to a co-domain vector space , and the operator
is said to be linear if for any scalars
and vectors ,
i.e., the image of a linear combination is the linear combination of the
images. Linear algebra considers the case of finite dimensional vector
spaces, such as ,
,
in which case a linear operator is represented by a matrix ,
and satisfies
In contrast, the focus here is on infinite-dimensional function spaces
such as (cf. Tab.
1, L18), the space of functions with continuous derivatives up to order
. Common linear operator examples include:
-
Differentiation
-
,
.
-
Riemann integration
-
,
, where
is a set of measure zero.
-
Linear differential equation
-
, .
1.Numerical differentiation based upon
polynomial interpolation
A general approach to operator approximation is to simply introduce an
approximation of the function the operator acts upon, ,
Monomial basis.
As an example consider the polynomial interpolant of
based upon data ,
with coeffcients determined as the
solution of the interpolation conditions
with notations
Differentiation of ()
can be approximated as
It is often of interest to express the result of applying an operator
directly in terms of known information on .
Formally, in the case of differentiation,
allowing the identification of a differentiation approximation operator
This formulation explicitly includes the inversion of the sampled basis
matrix , and is hence not
computationally efficient. Alternative formulations can be constructed
that carry out some of the steps in computing
analytically.
Newton basis (finite difference calculus).
An especially useful formulation for numerical differentiation arises
from the Newton interpolant of data , ,
,
For equidistant sample points ,
the Newton interpolant can be expressed as an operator acting upon the
data. Introduce the translation operator
Repeated application of the translation operator leads to
and the identity operator is given by
Finite differences of the function values are expressed through the
forward, backward and central operators
leading to the formulas
Applying the above to the data set
leads to
The divided differences arising in the Newton can be expressed in terms
of finite difference operators,
or in general
Using the above and rescaling the variable
in the Newton basis
in units of the step size
leads to
|
(1) |
The generalized binomial series states
|
(2) |
with
the generalized binomial coefficient. The operator acting upon in (1) can
be interpreted as the truncation at order
of the operator defined through (2)
by the substitutions ,
. The
operator can
be interpreted as the interpolation operator with equidistant sampling
points, with its truncation to order .
Reversing the order of the sampling points leads to the Newton
interpolant
The divided differences can be expressed in terms of the backward
operator as
leading to an analogous expression of the interpolation operator in
terms backward finite differences
Differentiation of the interpolation expressed in terms of forward
finite differences gives
The particular interpolant is irrelevant, leading to the operator
identity
For ,
the power series expansions are
are uniformly convergent, leading to the expression
stating that the (continuum) differentiation operator can be
approximated by an infinite series of finite difference operations,
recovered exactly in the
limit. Denote by
the truncation at term of the above
operator series such that
Truncation at
leads to the expressions
The
limit of divided differences is given by
such that for small finite ,
The resulting derivative approximation error is of order ,
The analogous expression for backward differences is
and the first few truncations are
with errors
The above operator identities can be inverted to obtain
leading to
this time expressing the finite translation operator as an infinite
series of continuum differentiation operations. This allows expressing
the central difference operator as
and approximations of the derivative based on centered differencing are
obtained from
An advantage of the centered finite differences (surmised from the odd
power series) is a higher order of accuracy
Higher order derivative are obtained by repeated application of the
operator series, e.g.,
2.Taylor series methods
An alternative derivation of the above finite difference formulas is to
construct a linear combination of function values
and determine the coefficients
such that the
derivative is approximated to order
For example, for ,
,
carrying out Taylor series expansions gives
Eliminating by multiplying the first equation by
and the second by
recovers the forward finite difference formula
3.Numerical differentiation based upon
piecewise polynomial interpolation
-spline basis.
The above example used a truncation of the monomial basis . Analogous results are obtained when
using a different basis. Consider the equidistant sample points ,
data and the
first-degree -spline basis
in which case the linear piecewise interpolant is expressed as
and over interval reduces to
Differentiation recovers the familiar slope expression
At the nodes, a piecewise linear spline is discontinuous, hence the
derivative is not defined, though one could consider the one-sided
limits. Evaluation of derivatives at midpoints ,
,
leads to
with .