166 INTERPOLATION THEORY
A second widely used piecewise polynomial interpolation function
is
based on
the cubic Hermite interpolation polynomial of
(3.6.12)-(3.6.15). On each subin-
terval
[x;_
1
,
X;),
let Qn(x) be the cubic Hermite polynomial interpolating
f(x)
at
X;_
1
and
X;.
The
function
Qn(x)
is
piecewise cubic on the grid (3.7.3), and
because of the interpolation conditions, both
Q"(x)
and
Q~(x)
are continuous
on
[a,
bJ.
Thus
Qn(x)
will
generally be smoother than
L.(x).
For
the error in Qn(x) on [x;_
1
,
X;),
use (3.6.15) to get
X;-1
.$;X.$;
X;
(3.7 .10)
with h;
=X;-
X;_
1
,
1
.s;
i
.s;
n. When this is compared to (3.7.8) for the error in
Ln(x),
it
might seem that piecewise cubic Hermite interpolation
is
superior. This
is· deceptive.
To
see this more clearly, let the grid (3.7.3) be evenly spaced, with
X;-
x;_
1
= h, all
i.
Let Ln(x) be based on (3.7.7), and let o =
h/3
in (3.7.8).
Note
that
Qn(x)
is
based on 2n + 2 pieces of data about
f(x),
namely
{f(x;),f'(x;)i
i = 0,1,
...
,n},
and
Ln(x)
is
based on
3n
+ 1 pieces of data
about
f(x).
Equalize this
by
comparing the error for
LnJx)
and Q"
2
(x)
with
n
2
= 1.5n
1
•
Then the resultant error bounds from (3.7.8) and (3.7.10) will be
exactly the same.
Since there is
no
difference in error, the form of piecewise polynomial function
used will depend on the application for which it
is
to
be used.
In
numerical
integration applications, the piecewise Lagrange function
is
most suitable; it
is
!J.lso
used in solving some singular integral equations, by means of the product
integration methods of Section
5.6
in Chapter
5.
The piecewise Hermite function
is useful for solving some differential equation problems. For example, it is a
popular function used with the finite element method for solving boundary value
problems for second-order differential equations; see Strang and Fix
(1973, chap.
1). Numerical examples comparing
Ln(x)
and
Qn(x)
are given in Tables
3.11
and
3.12, following the introduction of spline functions.
Spline functions
As
before, consider a grid
a =
Xo
< X
1
< · • · <
Xn
= b
We say
s(x)
is a spline function of order m
2!
1 if it satisfies the following two
properties:
(Pl)
s(x)
is a polynomial of
degree<
m on each subinterval [x;_
1
,
x;].
(P2)
s<'>(x)
is continuous on [a,
bJ,
for 0
.s;
r
.s;
m-
2.
The
derivative
of
a spline of order m
is
a spline of order m -
1,
and similarly for
antiderivatives.
If
the continuity in
Pl
is
extended to
s<m-
1
>(x),
then
it
can be
proved that
s(x)
is
a polynomial of degree
.s;
m - 1 on
[a,
bJ
(see Problem 33).
Cubic spline functions (order
m = 4) are the most popular. spline functions,
for a variety
of
reasons. They are smooth functions with which to
fit
data,
and
when used for interpolation, they do not have the oscillatory behavior that is
characteristic
of
high-degree polynomial interpolation. Some further motivation