B.2)  Smooth splines

A spline is a long flexible strip of plastic or the like that is used in drawing smooth curves.  Derivatives can be used for the same purpose.
Suppose you have two functions [Graphics:Images/index_gr_1.gif] and [Graphics:Images/index_gr_2.gif], and you have a number [Graphics:Images/index_gr_3.gif].  Create a new function, [Graphics:Images/index_gr_4.gif], by setting
     [Graphics:Images/index_gr_5.gif] for [Graphics:Images/index_gr_6.gif]
and
     [Graphics:Images/index_gr_7.gif] for [Graphics:Images/index_gr_8.gif].
If [Graphics:Images/index_gr_9.gif], then most folks say that the new function [Graphics:Images/index_gr_10.gif] is a spline of [Graphics:Images/index_gr_11.gif] and [Graphics:Images/index_gr_12.gif] knotted at
       [Graphics:Images/index_gr_13.gif].

B.2.a)

Here's a spline of
     [Graphics:Images/index_gr_14.gif] and [Graphics:Images/index_gr_15.gif]
knotted at [Graphics:Images/index_gr_16.gif], plotted on an interval including [Graphics:Images/index_gr_17.gif].

[Graphics:Images/index_gr_18.gif]

[Graphics:Images/index_gr_19.gif]

Discuss reasons for the smoothness of the spline curve as it passes through the knot at [Graphics:Images/index_gr_20.gif].

Answer:

To see why [Graphics:Images/index_gr_21.gif] is so smooth at the knot at [Graphics:Images/index_gr_22.gif], look at:

[Graphics:Images/index_gr_23.gif]
[Graphics:Images/index_gr_24.gif]
[Graphics:Images/index_gr_25.gif]
[Graphics:Images/index_gr_26.gif]
[Graphics:Images/index_gr_27.gif]
[Graphics:Images/index_gr_28.gif]
[Graphics:Images/index_gr_29.gif]
[Graphics:Images/index_gr_30.gif]

The smoothness of the spline at the knot at [Graphics:Images/index_gr_31.gif] comes from the fact that [Graphics:Images/index_gr_32.gif] and [Graphics:Images/index_gr_33.gif] have order of contact [Graphics:Images/index_gr_34.gif] at the knot at [Graphics:Images/index_gr_35.gif]. Just to confirm, look at a plot of [Graphics:Images/index_gr_36.gif] and [Graphics:Images/index_gr_37.gif] together.

[Graphics:Images/index_gr_38.gif]

[Graphics:Images/index_gr_39.gif]

Yep.
The fact that [Graphics:Images/index_gr_40.gif] and [Graphics:Images/index_gr_41.gif] have order of contact [Graphics:Images/index_gr_42.gif] makes for a smooth transition from [Graphics:Images/index_gr_43.gif] to [Graphics:Images/index_gr_44.gif] at [Graphics:Images/index_gr_45.gif].  This smooth transition is what's responsible for the smoothness in the spline at [Graphics:Images/index_gr_46.gif].  
Now look at a plot of [Graphics:Images/index_gr_47.gif], [Graphics:Images/index_gr_48.gif], and the spline [Graphics:Images/index_gr_49.gif]:

[Graphics:Images/index_gr_50.gif]

[Graphics:Images/index_gr_51.gif]

To get the full effect, grab the last two plots and animate.

Nice transition.

B.2.b)

Here's a spline of
     [Graphics:Images/index_gr_52.gif] and  [Graphics:Images/index_gr_53.gif]
knotted at [Graphics:Images/index_gr_54.gif], plotted on an interval including [Graphics:Images/index_gr_55.gif].

[Graphics:Images/index_gr_56.gif]

[Graphics:Images/index_gr_57.gif]

Discuss reasons for the smoothness of the spline curve as it passes through the knot at [Graphics:Images/index_gr_58.gif].

Answer:

Look at:

[Graphics:Images/index_gr_59.gif]
[Graphics:Images/index_gr_60.gif]
[Graphics:Images/index_gr_61.gif]
[Graphics:Images/index_gr_62.gif]
[Graphics:Images/index_gr_63.gif]
[Graphics:Images/index_gr_64.gif]
[Graphics:Images/index_gr_65.gif]
[Graphics:Images/index_gr_66.gif]
[Graphics:Images/index_gr_67.gif]
[Graphics:Images/index_gr_68.gif]
[Graphics:Images/index_gr_69.gif]
[Graphics:Images/index_gr_70.gif]

The smoothness of the spline at the knot at [Graphics:Images/index_gr_71.gif] comes from the fact that [Graphics:Images/index_gr_72.gif] and [Graphics:Images/index_gr_73.gif] have order of contact [Graphics:Images/index_gr_74.gif] at [Graphics:Images/index_gr_75.gif]. Just to confirm, here's a plot of [Graphics:Images/index_gr_76.gif] and [Graphics:Images/index_gr_77.gif]:

[Graphics:Images/index_gr_78.gif]

[Graphics:Images/index_gr_79.gif]

Yep.  A beautiful transition at [Graphics:Images/index_gr_80.gif].
Now see a plot of [Graphics:Images/index_gr_81.gif], [Graphics:Images/index_gr_82.gif], and the the spline [Graphics:Images/index_gr_83.gif]:

[Graphics:Images/index_gr_84.gif]

[Graphics:Images/index_gr_85.gif]

To get the full effect, grab both plots and animate.

Smooth transition.

B.2.c)

Here's a spline of
     [Graphics:Images/index_gr_86.gif] and [Graphics:Images/index_gr_87.gif]
knotted at [Graphics:Images/index_gr_88.gif], plotted on an interval including [Graphics:Images/index_gr_89.gif].

[Graphics:Images/index_gr_90.gif]

[Graphics:Images/index_gr_91.gif]

Discuss reasons for the lack of smoothness of the spline curve as it passes through the knot at [Graphics:Images/index_gr_92.gif].

Answer:

Look at:

[Graphics:Images/index_gr_93.gif]
[Graphics:Images/index_gr_94.gif]
[Graphics:Images/index_gr_95.gif]
[Graphics:Images/index_gr_96.gif]

The order of contact at [Graphics:Images/index_gr_97.gif] is [Graphics:Images/index_gr_98.gif].  This explains the lack of smoothness of the spline at the knot at [Graphics:Images/index_gr_99.gif].  Just to confirm, look at a plot of [Graphics:Images/index_gr_100.gif] and [Graphics:Images/index_gr_101.gif].

[Graphics:Images/index_gr_102.gif]

[Graphics:Images/index_gr_103.gif]

Terrible transition at [Graphics:Images/index_gr_104.gif].
Now see a plot of [Graphics:Images/index_gr_105.gif], [Graphics:Images/index_gr_106.gif], and [Graphics:Images/index_gr_107.gif]:

[Graphics:Images/index_gr_108.gif]

[Graphics:Images/index_gr_109.gif]

To get the full effect, grab both plots and animate.

This type of transition would make a very dangerous interstate highway connection.

B.2.d)

What practical good are smooth splines?

Answer:

Good question.
First of all, the idea of a spline smooth at its knots makes for interesting plots and nice art.  But there's a serious aspect as well:  
Laying out the curves on expressways and railroads amounts to joining curved plots to relatively straight plots at knots of a spline.  It is unacceptable to have a hitch (corner) in the middle of the roadway.
The higher the order of contact at the knots, the safer the highway or roadbed.
Any order of contact less than [Graphics:Images/index_gr_110.gif] is considered unsafe, and this may be pushing it.


Converted by Mathematica      November 16, 1999