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
and
, and you have a number
. Create a new function,
, by setting
for
and
for
.
If
, then most folks say that the new function
is a spline of
and
knotted at
.
Here's a spline of
and ![]()
knotted at
, plotted on an interval including
.
![[Graphics:Images/index_gr_18.gif]](Images/index_gr_18.gif)
![[Graphics:Images/index_gr_19.gif]](Images/index_gr_19.gif)
Discuss reasons for the smoothness of the spline curve as it passes through the knot at
.
Answer:
To see why
is so smooth at the knot at
, look at:
![[Graphics:Images/index_gr_23.gif]](Images/index_gr_23.gif)
![[Graphics:Images/index_gr_25.gif]](Images/index_gr_25.gif)
![[Graphics:Images/index_gr_27.gif]](Images/index_gr_27.gif)
![[Graphics:Images/index_gr_29.gif]](Images/index_gr_29.gif)
The smoothness of the spline at the knot at
comes from the fact that
and
have order of contact
at the knot at
. Just to confirm, look at a plot of
and
together.
![[Graphics:Images/index_gr_38.gif]](Images/index_gr_38.gif)
![[Graphics:Images/index_gr_39.gif]](Images/index_gr_39.gif)
Yep.
The fact that
and
have order of contact
makes for a smooth transition from
to
at
. This smooth transition is what's responsible for the smoothness in the spline at
.
Now look at a plot of
,
, and the spline
:
![[Graphics:Images/index_gr_50.gif]](Images/index_gr_50.gif)
![[Graphics:Images/index_gr_51.gif]](Images/index_gr_51.gif)
To get the full effect, grab the last two plots and animate.
Nice transition.
Here's a spline of
and ![]()
knotted at
, plotted on an interval including
.
![[Graphics:Images/index_gr_56.gif]](Images/index_gr_56.gif)
![[Graphics:Images/index_gr_57.gif]](Images/index_gr_57.gif)
Discuss reasons for the smoothness of the spline curve as it passes through the knot at
.
Answer:
Look at:
![[Graphics:Images/index_gr_59.gif]](Images/index_gr_59.gif)
![[Graphics:Images/index_gr_61.gif]](Images/index_gr_61.gif)
![[Graphics:Images/index_gr_63.gif]](Images/index_gr_63.gif)
![[Graphics:Images/index_gr_65.gif]](Images/index_gr_65.gif)
![[Graphics:Images/index_gr_67.gif]](Images/index_gr_67.gif)
![[Graphics:Images/index_gr_69.gif]](Images/index_gr_69.gif)
The smoothness of the spline at the knot at
comes from the fact that
and
have order of contact
at
. Just to confirm, here's a plot of
and
:
![[Graphics:Images/index_gr_78.gif]](Images/index_gr_78.gif)
![[Graphics:Images/index_gr_79.gif]](Images/index_gr_79.gif)
Yep. A beautiful transition at
.
Now see a plot of
,
, and the the spline
:
![[Graphics:Images/index_gr_84.gif]](Images/index_gr_84.gif)
![[Graphics:Images/index_gr_85.gif]](Images/index_gr_85.gif)
To get the full effect, grab both plots and animate.
Smooth transition.
Here's a spline of
and ![]()
knotted at
, plotted on an interval including
.
![[Graphics:Images/index_gr_90.gif]](Images/index_gr_90.gif)
![[Graphics:Images/index_gr_91.gif]](Images/index_gr_91.gif)
Discuss reasons for the lack of smoothness of the spline curve as it passes through the knot at
.
Answer:
Look at:
![[Graphics:Images/index_gr_93.gif]](Images/index_gr_93.gif)
![[Graphics:Images/index_gr_95.gif]](Images/index_gr_95.gif)
The order of contact at
is
. This explains the lack of smoothness of the spline at the knot at
. Just to confirm, look at a plot of
and
.
![[Graphics:Images/index_gr_102.gif]](Images/index_gr_102.gif)
![[Graphics:Images/index_gr_103.gif]](Images/index_gr_103.gif)
Terrible transition at
.
Now see a plot of
,
, and
:
![[Graphics:Images/index_gr_108.gif]](Images/index_gr_108.gif)
![[Graphics:Images/index_gr_109.gif]](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.
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
is considered unsafe, and this may be pushing it.