Docsity

Hermite Polynomial Basis for Cubic Polynomials, Study notes of Calculus

Toggle sidebar
bg1
Cubic Polynomial Basis
Adrian Down
February 23, 2006
1 Basis cubics
1.1 Motivation and setup
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=aand 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), f0(a), f (b), and f0(b). We would like
to construct a polynomial p(x) that satisfies
p(a) = f(a)p(b) = f(b)
p0(a) = f0(a)p0(b) = f0(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) + f0(a)G(x) + f0(b)ˆ
G(x)
The functions H, ˆ
H, G, and ˆ
Gform 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 H0(a) = 0 H(b) = 0 H0(b) = 0
ˆ
H(a) = 0 ˆ
H0(a) = 0 ˆ
H(b) = 1 ˆ
H0(b) = 0
G(a) = 0 G0(a) = 1 G(b) = 0 G0(b) = 0
ˆ
G(a) = 0 ˆ
G0(a) = 0 ˆ
G(b) = 0 ˆ
G0(b) = 1
1
pf3
pf4
pf5

Partial preview of the text

Download Hermite Polynomial Basis for Cubic Polynomials and more Study notes Calculus in PDF only on Docsity!

Cubic Polynomial Basis

Adrian Down

February 23, 2006

1 Basis cubics

1.1 Motivation and setup

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

H

′

(a) = 0

H(b) = 1

H

′

(b) = 0

G(a) = 0 G

′

(a) = 1 G(b) = 0 G

′

(b) = 0

G(a) = 0

G

′

(a) = 0

G(b) = 0

G

′

(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.

1.2 Finding the basis polynomials with Hermite inter-

polation

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,

H

′

(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

2.1 Motivation: physical example

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

E =

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.

2.2 Variational analysis

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 Calculation

2.3.1 Differentiation

Note. We use the notational conventions,

∂x

y = y x

y = y 

∂E

= E

′

()

We must find Y (x) to satisfy this condition. Writing E() explicitly,

E() =

xn

x 0

y

2

xx

dx