学习目标Learning Objectives - Note
第4周:从 Hermite 到三次样条连续性Week 4 - Hermite to Cubic Spline Continuity
在含导数条目的情况下使用牛顿差商表。Bilingual notes on endpoint-derivative interpolation and C2 spline junctions.
Week 4 connects single-interval Hermite interpolation to multi-interval cubic spline constraints.
第4周将单区间 Hermite 插值与多区间三次样条约束连接起来。
学习目标
Learning Objectives
-
Solve quadratic and cubic Hermite interpolation problems with endpoint derivatives.
-
求解带端点导数条件的二次与三次 Hermite 插值问题。
-
在含导数条目的情况下使用牛顿差商(Divided Difference)表。
-
Use Newton divided-difference tables with derivative entries.
-
Derive endpoint second-derivative formulas from cubic Hermite data.
-
由三次 Hermite 数据推导端点二阶导公式。
-
在样条构造中应用 与 拼接条件。
-
Apply and junction conditions for spline construction.
关键概念
Key Concepts
-
函数空间记号:、、。
-
Function class notation: , , .
-
Hermite data on : values and derivatives .
-
区间 的 Hermite 数据:函数值 与导数 。
-
三次样条是分段三次函数,并在拼接点满足光滑性条件。
-
Cubic spline is piecewise cubic with required smoothness at junctions.
-
拼接处通常要求 、、 连续。
-
Junction smoothness typically enforces continuity of , , and .
定义与公式
Definitions and Formulas
Let and .
记 ,步长 。
Cubic Hermite form used in lecture:
课堂使用的三次 Hermite 形式:
.
系数公式:
Coefficients:
.
端点曲率关系:
Endpoint curvature relation:
.
推导
Derivations
Quadratic Hermite from One Value Derivative Pair
从一个“值+导数”对构造二次 Hermite
Given , , , write
给定 、、,设
.
求导后代入 解出 。
Differentiate and set to solve for .
Cubic Hermite with Both Endpoint Slopes
同时给定两端斜率的三次 Hermite
加入余项 ,使 处函数值与斜率约束保持不变。
Add gap term so that value and slope constraints at stay satisfied.
对表达式求导并代入 ,可解出 。
Differentiate and evaluate at to solve for .
样条拼接方程
Spline Junction Equation
对节点 ,未知中间斜率 由下式确定:
For nodes , unknown middle slope is found from
.
利用两侧端点斜率数据可得到关于 的一元线性方程。
This yields one linear equation in using endpoint slope data.
例题精讲
Worked Examples
Example Block 1: Quadratic Hermite 例题模块1:二次 Hermite
For , , , we have .
对 、、,有 。
Then .
于是 。
例题模块2:乘积导数快捷法
Example Block 2: Product Derivative Shortcut
Let .
设 。
在单根 处,。
At a simple root , .
例题模块3:样条中间斜率方程建立
Example Block 3: Spline Middle Slope Setup
Given , , , , .
给定 、、、、。
Use left and right cubic Hermite pieces and enforce to solve .
分别构造左右三次 Hermite 段,并令 解得 。
误差(Error)分析
Error Analysis
-
Hermite interpolation reduces local mismatch by using derivative data.
-
Hermite 插值通过加入导数信息降低局部失配。
-
但导数数据噪声会传播到曲率项,可能导致样条形状不稳定。
-
However, derivative noise can propagate into curvature terms and destabilize spline shape.
-
三次样条的光滑约束可提升跨区间的视觉与数值稳定性。
-
Cubic spline smoothness constraints improve visual and numerical stability across intervals.
常见错误
Common Mistakes
警示模块
Warning Block
-
混用 与 且未跟踪符号。
-
Mixing and without sign tracking.
-
Forgetting that repeated-node Hermite conditions imply squared factors.
-
忽略重节点 Hermite 条件对应平方因子。
-
只施加 连续而遗漏必需的 条件。
-
Applying only continuity and forgetting the required condition.
总结
Summary
总结模块
Summary Block
-
Week 4 translated Hermite formulas into spline-ready endpoint and junction constraints.
-
第4周将 Hermite 公式转化为样条可用的端点与拼接约束。
-
核心转变是从单区间拟合走向整体分段光滑建模。
-
The key transition is from one-interval fitting to global piecewise smooth modeling.
练习题
Practice Questions
-
Given , , , , construct the cubic Hermite polynomial explicitly.
-
给定 、、、,显式构造三次 Hermite 多项式。
-
对节点 ,推导用端点斜率表示的 公式。
-
For nodes , derive a formula for in terms of endpoint slopes.
-
求解本周样条例题中 与 的未知斜率 。
-
Solve the week example for unknown in the spline problem on and .