(Texts in Applied Mathematics 12) J. Stoer, R. Bulirsch (Auth.) - Introduction To Numerical Analysis-Springer New York (1993) - 107-121
(Texts in Applied Mathematics 12) J. Stoer, R. Bulirsch (Auth.) - Introduction To Numerical Analysis-Springer New York (1993) - 107-121
(Texts in Applied Mathematics 12) J. Stoer, R. Bulirsch (Auth.) - Introduction To Numerical Analysis-Springer New York (1993) - 107-121
Example 2. Let g := P f be the periodic cubic spline function [see Section 2.4]
with g(xk ) = fk , k = 0, ±1, . . . . Again, P is linear and translation invari-
ant. Using the same technique as in the previous example, we find the following
attenuation factors:
4
sin z 3 πj
τj = , where z := .
z 1 + 2 cos2 z N
Kpm [a, b]
we denote the set of all functions in Km [a, b] with f (k) (a) = f (k) (b) for
k = 0, 1, . . . , m − 1. We call such functions periodic, because they arise as
restrictions to [a, b] of functions which are periodic with period b − a.
4
See footnote 2 in Section 2.3.4.
5
The set L2 [a, b] denotes the set of all real functions whose squares are integrable
3b
on the interval [a, b], i.e., a |f (t)|2 dt exists and is finite.
2.4 Interpolation by Spline Functions 99
Note that S∆ ∈ K3 [a, b], and that S∆ (Y ; .) ∈ Kp3 [a, b] if (2.4.1.2b) holds.
If f ∈ K2 [a, b], then we can define
# b
f :=
2
|f (x)|2 dx.
a
xi x−
= (f (x) − S∆
(x))S∆ (x)x i−1
− (f (x) − S∆ (x))S∆ (x)xi+
i−1
100 2 Interpolation
# xi
(4)
+ (f (x) − S∆ (x))S∆ (x) dx.
xi−1
Now S (4) (x) ≡ 0 on the subintervals (xi−1 , xi ), and f , S∆
, S∆ are
continuous on [a, b]. Adding these formulas for i = 1, 2, . . . , n yields the
propositon of the theorem, since
n
xi b
(f (x) − S∆
(x))S∆ (x)x = (f (x) − S∆
(x))S∆ (x)a .
i−1
i=1
With the help of this theorem we will prove the important minimum-
norm property of spline functions.
(2.4.1.5) Theorem. Given a partition ∆ := { a = x0 < x1 < · · · <
xn = b } of the interval [a, b], values Y := (y0 , · · · , yn ) and a function
f ∈ K2 (a, b) with f (xi ) = yi for i = 0, 1, . . . , n, then f ≥ S∆ (Y ; .),
and more precisely
f − S∆ (Y ; .)2 = f 2 − S∆ (Y ; .)2 ≥ 0
holds for every spline function S∆ (Y ; .), provided one of the conditions
[compare (2.4.1.2)]
(a) S∆ (Y ; a) = S∆ (Y ; b) = 0,
(b) f ∈ Kp2 [a, b], S∆ (Y ; .) periodic,
(c) S∆ (Y ; a) = f (a), S∆
(Y ; b) = f (b),
is met. In each of these cases, the spline function S∆ (Y ; .) is uniquely
determined.
The existence of such spline functions will be shown in Section 2.4.2.
Proof. In each of the above three cases (2.4.1.5a, b, c), the expression
n
b x−
(f (x) − S∆
(x))S∆ (x)a −
(f (x) − S∆ (x))S∆ (x)xi+ = 0,
i−1
i=1
Since S∆ (Y ; ·) and S̄∆ (Y ; ·) are both continuous,
S̄∆ (Y ; x) ≡ S∆ (Y ; x),
from which
S̄∆ (Y ; x) ≡ S∆ (Y ; x) + cx + d
follows by integration. But S̄∆ (Y ; x) = S∆ (Y ; x) holds for x = a, b, and
this implies c = d = 0.
The minimum-norm property of the spline function expressed in The-
orem (2.4.1.5) implies in case (2.4.1.2a) that, among all functions f in
K2 [a, b] with f (xi ) = yi , i = 0, 1, . . . , n, it is precisely the spline function
S∆ (Y ; ·) with S∆ (Y ; x) = 0 for x = a, b that minimizes the integral
# b
f =
2
|f (x)|2 dx.
a
xj+1 − x x − xj
S∆ (Y ; x) = Mj + Mj+1 for x ∈ [xj , xj+1 ].
hj+1 hj+1
By integration,
(2.4.2.2)
(xj+1 − x)2 (x − xj )2
S∆ (Y ; x) = −Mj + Mj+1 + Aj ,
2hj+1 2hj+1
(xj+1 − x)3 (x − xj )3
S∆ (Y ; x) = Mj + Mj+1 + Aj (x − xj ) + Bj ,
6hj+1 6hj+1
h2j+1
Mj +Bj = yj ,
6
h2j+1
Mj+1 + Aj hj+1 +Bj = yj+1 .
6
Consequently,
h2j+1
Bj = yj − Mj ,
6
(2.4.2.3)
yj+1 − yj hj+1
Aj = − (Mj+1 − Mj ).
hj+1 6
where
2.4 Interpolation by Spline Functions 103
Mj
αj :=yj , γj := ,
2
Mj hj+1
βj :=S∆ (Y ; xj ) = − + Aj
2
yj+1 − yj 2Mj + Mj+1
= − hj+1 ,
hj+1 6
S∆ (Y ; x+
j ) Mj+1 − Mj
δj := = .
6 6hj+1
Thus S∆ (Y ; ·) has been characterized by its moments Mj . The task of
calculating these moments will now be addressed.
The continuity of S∆ (Y ; ·) at the interior knots x = xj , j = 1, 2, . . . ,
n − 1 [namely, the relations S∆
(Y ; x−
j ) = S∆ (Y ; xj )] yields n − 1 equations
+
(xj+1 − x)2 (x − xj )2
S∆ (Y ; x) = − Mj + Mj+1
2hj+1 2hj+1
yj+1 − yj hj+1
+ − (Mj+1 − Mj ).
hj+1 6
For j = 1, 2, . . . , n − 1, we have therefore
yj − yj−1 hj hj
S∆ (Y ; x−
j )= + Mj + Mj−1 ,
hj 3 6
yj+1 − yj hj+1 hj+1
S∆ (Y ; x+
j )= − Mj − Mj+1 ,
hj+1 3 6
−
and since S∆ (Y ; x+
j ) = S∆ (Y ; xj ),
h1 h1 y1 − y0
Case (c) : S∆ (Y ; a) = y0 ⇒ M0 + M1 = − y0 ,
3 6 h1
hn hn yn − yn−1
S∆ (Y ; b) = yn ⇒ Mn−1 + Mn = yn − .
6 3 hn
The last two equations, as well as those in (2.4.2.5), can be written in
a common format:
hj+1 hj
λj := , µj := 1 − λj = ,
hj + hj+1 hj + hj+1
(2.4.2.6) 1
6 yj+1 − yj yj − yj−1
dj := − .
hj + hj+1 hj+1 hj
(2.4.2.7) λ0 := 0, d0 := 0, µn := 0, dn := 0,
This leads in cases (a) and (c) to a system of linear equations for the
moments Mi that reads in matrix notation:
2 λ0 0 M0 d0
µ1 2 λ1 M1 d 1
µ2 · · · ·
(2.4.2.9) = .
· · · · ·
· 2 λn−1 · ·
0 µn 2 Mn dn
h1 hn
λn := , µn := 1 − λn = ,
hn + h1 hn + h1
(2.4.2.10) 1
6 y1 − yn yn − yn−1
dn := − ,
hn + h1 h1 hn
which then lead to the following linear system of equations for the moments
M1 , M2 , . . . , Mn (= M0 ):
2 λ1 µ1 M1 d1
µ2 2 λ2 M2 d 2
µ3 · · · ·
(2.4.2.11) = .
· · · · ·
· 2 λn−1 · ·
λn µn 2 Mn dn
The coefficients λi , µi , di in (2.4.2.9) and (2.4.2.11) are well defined by
(2.4.2.6) and the additional definitions (2.4.2.7), (2.4.2.8), and (2.4.2.10),
respectively. Note in particular that in (2.4.2.9) and (2.4.2.11)
(2.4.2.12) λi ≥ 0, µi ≥ 0, λi + µi = 1,
for all coefficients λi , µi , and that these coefficients depend only on the
location of the knots xj ∈ ∆ and not on the prescribed values yi ∈ Y or on
y0 , yn in case (c). We will use this observation when proving the following:
(2.4.2.13) Theorem. The systems (2.4.2.9) and (2.4.2.11) of linear equa-
tions are nonsingular for any partition ∆ of a, b.
This means that the above systems of linear equations have unique solu-
tions for arbitrary right-hand sides, and that consequently the problem of
interpolation by cubic splines has a unique solution in each of the three
cases (a), (b), (c) of (2.4.1.2).
Proof. Consider the (n + 1) × (n + 1) matrix
2 λ0 0
µ1 2 λ1
µ2 · ·
A=
· · ·
· 2 λn−1
0 µn 2
of the linear system (2.4.2.9). This matrix has the following property:
Suppose the matrix A were singular. Then there would exist a solution
z = 0 of Az = 0, and (2.4.2.14) would lead to the contradiction
|r0 | ≤ 34 L∆2 .
rn = dn − f (xn−1 ) − 2f (xn )
that
|rn | ≤ 34 L∆2 .
For the remaining components of r = d − AF , we find similarly
1
|rj | ≤ 34 L [h3 + h3j ] ≤ 34 L∆2
hj + hj+1 j+1
for j = 1, 2, . . . , n − 1. In sum,
r ≤ 34 L∆2
M − F ≤ r ≤ 34 L∆2 .
(2.4.3.3) Theorem.6 Suppose f ∈ C 4 [a, b] and |f (4) (x)| ≤ L for x ∈ [a, b].
Let ∆ be a partition ∆ = { a = x0 < x1 < · · · < xn = b } of the interval
[a, b], and K a constant such that
∆
≤K for j = 0, 1, . . . , n − 1.
|xj+1 − xj |
Mj − Mj−1
S∆ (x) − f (x) = − f (x)
hj
Mj − f (xj ) Mj−1 − f (xj−1 )
= −
hj hj
f (xj ) − f (x) − [f (xj−1 ) − f (x)]
+ − f (x).
hj
∆2
|f (x) − S∆
(x)| ≤ 34 L∆2 + 12 hj · 2L
hj
≤ 74 L∆2 , x ∈ [a, b].
f (ξj ) = S∆
(ξj ), j = 0, 1, . . . , n + 1.
For any x ∈ [a, b] there exists a closest one of the above points ξj = ξj (x),
for which consequently
|ξj (x) − x| < ∆.
Thus # x
f (x) − S∆
(x) = (f (t) − S∆
(t)]dt,
ξj (x)
and
|f (x) − S∆
(x)| ≤ 74 L∆2 · ∆ = 74 L∆3 , x ∈ [a, b].
2.4.4 B-Splines