Example 2. Find the
cubic Hermite polynomial or "clamped cubic" that
satisfies
Solution 2.
Enter the formula for a general cubic equation.
Use symbolic differentiation to find
.
Set up four equations using the prescribed endpoint conditions.
Then find the solution set to this linear system and store it in the variable solset.
![[Graphics:../Images/BezierCurveMod_gr_46.gif]](../Images/BezierCurveMod_gr_46.gif)
|
|
|
|
|
|
|
|
Use the solution given above for the coefficients and form the
cubic function.
Remember that we must dig out one set of braces using
before
we can use the ReplaceAll command.
Now form the cubic polynomial function
and plot a graph.
![[Graphics:../Images/BezierCurveMod_gr_58.gif]](../Images/BezierCurveMod_gr_58.gif)
Remark. The graphs in examples 1 and 2 are the same, the method of construction is different.
![[Graphics:../Images/BezierCurveMod_gr_62.gif]](../Images/BezierCurveMod_gr_62.gif)
![[Graphics:../Images/BezierCurveMod_gr_63.gif]](../Images/BezierCurveMod_gr_63.gif)
![[Graphics:../Images/BezierCurveMod_gr_64.gif]](../Images/BezierCurveMod_gr_64.gif)
![[Graphics:../Images/BezierCurveMod_gr_65.gif]](../Images/BezierCurveMod_gr_65.gif)
![[Graphics:../Images/BezierCurveMod_gr_66.gif]](../Images/BezierCurveMod_gr_66.gif)
![[Graphics:../Images/BezierCurveMod_gr_67.gif]](../Images/BezierCurveMod_gr_67.gif)
(c) John H. Mathews 2004
3