



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Our goal is to create a convenient basis for the vector space of all cubic
polynomials satisfying specified initial conditions. We investigate the partic-
ular case in which conditions are specified at two nodes, x = a and x = b.
The following also demonstrates the general method of constructing Hermite
polynomials, which can be generalized beyond the case of 2 endpoints.
We have four initial conditions, f (a), f
′
(a), f (b), and f
′
(b). We would like
to construct a polynomial p(x) that satisfies
p(a) = f (a) p(b) = f (b)
p
′
(a) = f
′
(a) p
′
(b) = f
′
(b)
The polynomial can be written as a linear combination of four functions,
each one constructed to satisfy one of the four initial conditions,
p(x) = f (a)H(x) + f (b)
H(x) + f
′
(a)G(x) + f
′
(b)
G(x)
The functions H,
H, G, and
G form a basis for the space of cubic polynomials
on (a, b). To make the functions clearly linearly independent, we construct
them to satisfy
H(a) = 1 H
′
(a) = 0 H(b) = 0 H
′
(b) = 0
H(a) = 0
′
(a) = 0
H(b) = 1
′
(b) = 0
G(a) = 0 G
′
(a) = 1 G(b) = 0 G
′
(b) = 0
G(a) = 0
′
(a) = 0
G(b) = 0
′
(b) = 1
Note.
H is obtained from H by reflecting H across the line x =
b−a
2
, the
midpoint of (a, b). G and
G are likewise related by symmetry.
As a first guess as to the function H, we could take
H(x)
?
b − x
b − a
2
This choice ensures that H(b) = 0, and H(a) = 1, as desired. This form of
H is parabolic, with a minimum at b. Hence H
′ (b) = 0.
With this initial guess for H, we have satisfied 3 out of 4 of the desired
conditions on H. However, H
′ (a) 6 = 0, which can be seen by examining the
upward slope of the parabola at x = a.
To ensure that H
′ (a) = 0 as desired, introduce a constant c that will be
adjusted to achieve H
′
(a) = 0 while maintaining the other conditions already
satisfied by H,
H(x) = (1 + c(x − a))
b − x
b − a
2
With this form of H,
H(a) = (1 + 0)
b − a
b − a
2
as desired.
Taking the derivative using the chain rule,
′
(x) = c
b − x
b − a
2
1 + c(x − a)
b − x
(b − a)
2
b − x
(b − a)
2
c(b − x) − 2 c(x − a) − 2
b − x
(b − a)
2
c(b − 3 x + 2a) − 2
Substituting numerical values,
p(x) =
x
π
2
π
2
− x
π
2
π
− x
x
π
2
2
4 x
π
2 x
π
2
π
− x
π
x
2
1.3.3 Testing the approximation
At the midpoint of the interval, x =
π
4
p
π
π
Comparing with the actual value,
cos
π
Hence the approximation is very accurate.
The Hermite interpolation should also approximate the first derivative,
p
′
π
π
The actual value is,
cos
′
π
= − sin
π
The first derivative approximation is even more accurate.
1.3.4 Limitations of the approximation
The approximation to higher order derivatives is less good. f
(n) (x) is oscil-
lator between sin x and cos x, where as p
(n) (x) = 0 for n > 3. Even at the
third order, the approximation is not very accurate,
p
′′′
(0) = p
π
π
2
π
2
The actual value is − sin 0 = 0.
2 Splines
Consider an elastic rod pinned at the points { (xj , yj ) } where 0 ≤ j ≤ m.
y(x) interpolates (x j
, y j
), but the rod can pivot at these points, so y
′ (x) = x j
can adjust according to the potential energy. The energy of the rod between
x 0
and x n
is proportional to
xn
x 0
(y
′′
)
2
dx
Given the rod pinned as above, our goal is to find the configuration y = Y (x)
that minimizes the energy.
We consider an -family of configurations of the values of y and y
′ at each
point x i
. For each , y(x j
, ) = y j
independent of to ensure that y(x, )
is actually an interpolating polynomial. Since y(x, ) represents the physical
position of points on a continuous rod, yx(x, ) must be continuous at each
x j
We would like to define such that E is minimized when = 0.
y = y(x, ) ⇒ E = E()
That = 0 corresponds to a minimum establishes the necessary condition
that E
′
( = 0) = 0.
2.3.1 Differentiation
Note. We use the notational conventions,
∂x
y = y x
y = y
′
()
We must find Y (x) to satisfy this condition. Writing E() explicitly,
xn
x 0
y
2
xx
dx