Interpolating both values and derivatives: double-root uniqueness, decoupling via squared Lagrange basis, error osculation, and confluent divided differences.
MathematicsComputational MathematicsAlgorithms
On this page
In Polynomial Interpolation, our interpolating polynomials were constrained solely by point values: Pn(xi)=yi.
Yet in physical modelling, navigation, robotics, and fluid dynamics, sensors frequently measure velocities, momenta, or tangent directions alongside positional coordinates:
f(xi)=yiandf′(xi)=yi′.
If we apply standard point-value interpolation, the resulting curve passes through the points but may point in the wrong direction, introducing artificial undulations between the nodes.
Hermite interpolation incorporates derivative constraints directly into the polynomial space [1][1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011., [2][2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026.:
The Hermite Interpolation Problem: Formulating 2(n+1) simultaneous value and slope constraints in P2n+1;
Existence and Uniqueness: Proving uniqueness via double roots and establishing bijectivity via rank-nullity;
The Decoupling Principle: Why squaring the Lagrange basis (ℓi(x)2) eliminates value and slope cross-talk across nodes;
Error Remainder and Osculation: Proving the squared nodal error formula ∏(x−xi)2 and observing its quadratic contact geometry;
Newton Form with Confluent Nodes: Extending divided differences to repeated nodes and avoiding floating-point classification traps;
Incomplete Hermite and Osculating Interpolation: Transitioning from confluent limits toward Taylor expansions.
The Hermite interpolation problem
DefinitionHermite interpolating polynomial
Let a<b, f∈C1([a,b]), and let x0,x1,…,xn be n+1 pairwise distinct nodes in [a,b]. The Hermite interpolating polynomial is the polynomial H2n+1∈P2n+1 satisfying
H2n+1(xi)=f(xi)andH2n+1′(xi)=f′(xi)for each i=0,1,…,n.
Here Pm denotes the vector space of real polynomials of degree at most m, with dimension dim(Pm)=m+1.
Counting conditions clarifies the required polynomial space:
There are n+1 nodes;
Each node supplies 2 conditions (one function value, one first derivative);
The total number of prescribed data values is N=2(n+1)=2n+2;
To guarantee that a generic linear system has a unique solution, the polynomial space must have dimension 2n+2, which corresponds to degree at most d=N−1=2n+1.
Existence and uniqueness
A condition count does not by itself prove that the resulting equations are linearly independent. The following double-root argument provides the proof.
TheoremExistence and uniqueness of the Hermite interpolant
Under the hypotheses of Definition 1, there exists exactly one polynomial H2n+1∈P2n+1 satisfying all 2n+2 value and derivative conditions.
Proof
Uniqueness via root multiplicities. Suppose there exist two polynomials H1,H2∈P2n+1 satisfying the Hermite conditions:
In algebra, if a differentiable polynomial satisfies both Q(xi)=0 and Q′(xi)=0, then xi is a root of multiplicity at least 2 (a double root). By the factor theorem, (x−xi)2 divides Q(x).
Because the n+1 nodes x0,x1,…,xn are pairwise distinct, the quadratic factors (x−x0)2,…,(x−xn)2 are pairwise coprime. Therefore, their entire product divides Q(x):
i=0∏n(x−xi)2Q(x)⟹Q(x)=g(x)i=0∏n(x−xi)2
for some polynomial g(x).
Now examine the degree:
The product factor has degree ∑i=0n2=2(n+1)=2n+2;
If Q(x)≡0, then degQ=degg+(2n+2)≥2n+2;
However, Q∈P2n+1 requires degQ≤2n+1.
Since 2n+2>2n+1, this is a direct contradiction. Hence Q(x)≡0 for all x∈R, proving H1=H2.
Existence via linear algebra. Define the linear evaluation mapping
The uniqueness proof establishes that if H(p)=0, then p≡0. Thus the kernel is trivial: ker(H)={0}, so H is injective.
Because dim(P2n+1)=2n+2=dim(R2n+2), the Rank-Nullity Theorem guarantees that H is also surjective. Therefore H is bijective: every Hermite data vector has one and only one preimage in P2n+1, proving existence.
The decoupling principle and the Hermite basis
To construct H2n+1(x) constructively, we decompose the solution into a basis expansion:
H2n+1(x)=i=0∑n(f(xi)hi(x)+f′(xi)h^i(x)).
This requires two basis polynomials per node:
hi(x): the value selector, matching function value 1 at xi, with slope 0 at xi, and vanishing (value and slope) at all foreign nodes;
h^i(x): the slope selector, matching slope 1 at xi, with value 0 at xi, and vanishing (value and slope) at all foreign nodes.
Why linear Lagrange basis fails
Recall the standard Lagrange basis polynomial ℓi(x)=∏j=ixi−xjx−xj∈Pn. While ℓi(xj)=0 for j=i, its derivative ℓi′(xj) is generally non-zero. Using ℓi(x) directly would create massive cross-talk between the derivative conditions across different nodes.
The squaring breakthrough
Consider the squared polynomial ℓi(x)2∈P2n. By the chain rule:
(ℓi2)′(x)=2ℓi(x)ℓi′(x).
Evaluating at any foreign node xj (j=i):
Value: ℓi(xj)2=02=0;
Slope: (ℓi2)′(xj)=2⋅0⋅ℓi′(xj)=0.
Squaring the Lagrange basis places an automatic double root at every foreign node xj (j=i), silencing both value and slope cross-talk simultaneously.
Deriving the basis polynomials
Since ℓi(x)2∈P2n, multiplying it by a linear polynomial (A(x−xi)+B) yields an element of P2n+1, providing two tunable parameters to calibrate the behavior at the home node xi.
DefinitionHermite basis functions
For each node xi (i=0,…,n), the Hermite basis polynomials are:
Notice that the cubic terms cancel out: the unique Hermite interpolant H3∈P3 has actual degree 2.
Contrast this with the Lagrange linear interpolant P1(x): because f(0)=f(1)=0, P1(x)≡0, which completely misses the upward bulge of the sine wave. In contrast, Hermite interpolation matches the upward slope π at 0 and downward slope −π at 1, capturing the crest accurately.
This interactive figure needs JavaScript.
Hermite error remainder formula
TheoremHermite error remainder formula
Let a<b and f∈C2n+2([a,b]). Let H2n+1∈P2n+1 interpolate f and f′ at the distinct nodes x0,…,xn∈[a,b]. For each fixed x∈[a,b], there exists some intermediate point ξx∈(a,b) such that
At the evaluation point t=x: g(x)=0 by definition of K;
At each node xi: g(xi)=0 and g′(xi)=0 because both f−H2n+1 and ω have double roots at xi.
Thus g(t) has a double zero at each of the n+1 nodes and an additional simple zero at x. Counting with multiplicity, g(t) has at least 2(n+1)+1=2n+3 zeros.
By repeated application of Rolle's theorem:
Differentiating g(t) once leaves n+1 simple zeros at the nodes xi and produces n+1 additional zeros between adjacent distinct zeros, yielding at least 2n+2 zeros for g′(t);
Repeating this process 2n+2 times proves that g(2n+2) has at least one interior zero ξx∈(a,b).
Now differentiate g(t) exactly 2n+2 times:
H2n+1(2n+2)(t)≡0 because degH2n+1≤2n+1;
The polynomial ω(t)=t2n+2+O(t2n+1) is monic of degree 2n+2, so ω(2n+2)(t)=(2n+2)!.
Substituting K back into f(x)−H2n+1(x)=Kω(x) yields the formula.
Contact geometry: why squaring matters
Comparing the Lagrange and Hermite error formulas highlights a fundamental qualitative difference:
Lagrange Error: (n+1)!f(n+1)(ξ)∏(x−xi) has simple zeros at the nodes. The error curve cuts straight through the horizontal axis at non-zero angle.
Hermite Error: (2n+2)!f(2n+2)(ξ)∏(x−xi)2 has double zeros at the nodes. The error curve is tangent to the horizontal axis, touching it smoothly with quadratic flattening.
ExampleError estimation for the sine interpolant at x = 1/4
For f(x)=cos(πx)+x on [0,1] with x0=0,x1=1, we have f(4)(x)=π4cos(πx), so M4=max∣f(4)∣=π4.
Evaluating the true values: f(1/4)=cos(π/4)+1/4=22+0.25≈0.9571, while the assembled polynomial gives H3(1/4)=0.9375.
The true error is Etrue=∣0.9571−0.9375∣≈0.0196. The theoretical bound is a guaranteed upper bound, holding within a factor of roughly 7.3.
Newton form with confluent divided differences
Just as with Lagrange interpolation, assembling Hermite polynomials using basis functions requires O(n2) effort when a new node is added. Can we construct Hermite polynomials using divided differences?
The limiting motivation
Recall the definition of the derivative:
ε→0limεf(xi+ε)−f(xi)=f′(xi).
If two distinct nodes coalesce to the same point, the ordinary divided difference converges to the derivative:
xi+1→xilimf[xi,xi+1]=f′(xi).
This suggests repeating each node twice in the Newton table:
z2i=z2i+1=xi,i=0,1,…,n.
DefinitionConfluent divided differences
For the repeated node sequence z0,z1,…,z2n+1, the first-order divided difference is defined by
In computational software, developers sometimes test whether two nodes are repeated using floating-point proximity: np.isclose(z[i], z[i+1]).
This is a dangerous numerical trap: two genuine distinct sample points separated by 10−8 will be falsely flagged as identical, replacing their legitimate divided difference with an unsupplied derivative.
In robust code, repeated nodes should be tracked using structural index parity (the pair index):
# Evaluate first-order differences by structural index parity
What if the data does not specify first derivatives at every node?
For example, suppose we are given:
Value and slope at x1: H(x1)=f(x1), H′(x1)=f′(x1);
Only value at x0: H(x0)=f(x0).
This supplies N=3 conditions, which corresponds to the quadratic polynomial space P2.
Expanding H∈P2 around x1:
H(x)=f(x1)+f′(x1)(x−x1)+a2(x−x1)2.
Evaluating at x0 yields the unique coefficient:
a2=(x0−x1)2f(x0)−f(x1)−f′(x1)(x0−x1).
Uniqueness follows from the fact that any difference polynomial R(x) has root (x−x0) and double root (x−x1)2. The divisor has degree 3, which contradicts degR≤2 unless R≡0.
Transition to Taylor expansions
When all nodes coalesce to a single point x0, Hermite interpolation of orders 0,1,…,m collapses into the classical Taylor polynomial:
Tm(x)=k=0∑mk!f(k)(x0)(x−x0)k.
Thus, Taylor polynomials are the single-point limit of osculating interpolation, while Lagrange polynomials are the simple-node limit. Hermite interpolation sits in the middle, blending spatial distribution with differential momentum.
From global Hermite to piecewise splines
While Hermite interpolation fixes tangent directions at each node, it remains a global polynomial method. As the number of nodes n grows large, high-degree Hermite polynomials can still oscillate unacceptably away from the nodes.
In practical engineering, rather than raising the polynomial degree, we fix the degree to cubic and partition the domain into subintervals, matching values and derivatives locally.
In the next note, Spline Interpolation, we explore piecewise polynomials and derive C2 natural cubic splines.
References
[1] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011. ↩
[2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026. ↩
Comments