Papers
Topics
Authors
Recent
Search
2000 character limit reached

Revised Not-a-Knot Spline

Updated 6 July 2026
  • Revised not-a-knot spline is a cubic spline interpolant that replaces the zero third-derivative jump with calibrated nonzero jumps derived from local divided differences.
  • It leverages insights from Q-spline error analysis to adjust endpoint behavior while retaining the standard tridiagonal system and computational efficiency.
  • Numerical experiments indicate that the RNAK often reduces endpoint errors compared to the classical not-a-knot approach, especially for fine or irregular meshes.

The revised not-a-knot spline is a cubic spline interpolant that modifies the classical not-a-knot end conditions by allowing prescribed jumps in the third derivative at the first and last interior knots, with the jump sizes derived from local divided differences of the data. In "Cubic spline functions revisited" (Jarre, 7 Jul 2025), it is introduced as a boundary-condition variant of the classical not-a-knot spline that is informed by the construction and error analysis of the Q-spline. Its purpose is to improve endpoint behavior while preserving the standard cubic-spline interpolation framework, the same nodal interpolation property, and essentially the same computational cost as the classical not-a-knot construction.

1. Classical cubic spline setting and the not-a-knot condition

Let x0<x1<<xnx_0 < x_1 < \dots < x_n be given nodes and let fi=f(xi)f_i=f(x_i). A cubic spline interpolant ss is defined by the conditions sC2[x0,xn]s\in C^2[x_0,x_n], s[xi,xi+1]s|_{[x_i,x_{i+1}]} is a polynomial of degree 3\le 3, and s(xi)=fis(x_i)=f_i for all i=0,,ni=0,\dots,n (Jarre, 7 Jul 2025). A standard parametrization uses the moments

Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.

At the interior nodes, C2C^2-continuity yields the tridiagonal relations

fi=f(xi)f_i=f(x_i)0

with

fi=f(xi)f_i=f(x_i)1

These give fi=f(xi)f_i=f(x_i)2 equations for the fi=f(xi)f_i=f(x_i)3 unknowns fi=f(xi)f_i=f(x_i)4, so two end conditions are required.

The classical not-a-knot spline (NAK) avoids explicit derivative data by imposing that the spline be a single cubic across the first two intervals and across the last two intervals. Analytically, this is expressed as continuity of the third derivative at the first and last interior knots: fi=f(xi)f_i=f(x_i)5 Thus, in the classical formulation, there is no “knot” at fi=f(xi)f_i=f(x_i)6 or fi=f(xi)f_i=f(x_i)7 in the sense of the underlying cubic polynomial. The revised not-a-knot spline keeps the same cubic-spline interpolation problem but changes exactly these two conditions.

2. Q-spline motivation and the endpoint-information problem

The immediate context for the revised not-a-knot spline is the Q-spline introduced in the same paper (Jarre, 7 Jul 2025). The Q-spline is a cubic spline interpolant whose end conditions are chosen to approximate those of the clamped natural spline, using only function values near the endpoints, via a local quartic correction. The target is the clamped natural spline with

fi=f(xi)f_i=f(x_i)8

for which Hall–Meyer proved

fi=f(xi)f_i=f(x_i)9

and this constant is best possible.

The paper first considers an ss0-approximate clamped natural spline, defined by endpoint conditions

ss1

with

ss2

The resulting interpolant satisfies

ss3

The problem is therefore reduced to approximating the endpoint second derivatives to order ss4 using only function values.

The Q-spline constructs ss5 and ss6 from degree-ss7 interpolants at the first and last five nodes: ss8 Its error bound is

ss9

with

sC2[x0,xn]s\in C^2[x_0,x_n]0

If sC2[x0,xn]s\in C^2[x_0,x_n]1, then sC2[x0,xn]s\in C^2[x_0,x_n]2 as sC2[x0,xn]s\in C^2[x_0,x_n]3, so the constant tends to sC2[x0,xn]s\in C^2[x_0,x_n]4. In the language of the paper, the Q-spline is therefore asymptotically optimal: it uses only sC2[x0,xn]s\in C^2[x_0,x_n]5, but its worst-case error constant converges to the optimal constant obtainable when exact endpoint second derivatives are known.

This construction is central for the revised not-a-knot spline because it shows that local data near the endpoints contain usable information about sC2[x0,xn]s\in C^2[x_0,x_n]6 and endpoint behavior. A plausible implication is that end conditions based on divided differences can improve a purely function-value-based spline without changing the global spline machinery.

3. Definition of the revised not-a-knot spline

The revised not-a-knot spline (RNAK) starts from a reinterpretation of the classical NAK conditions. In the classical case, the third derivative is forced to be continuous at sC2[x0,xn]s\in C^2[x_0,x_n]7 and sC2[x0,xn]s\in C^2[x_0,x_n]8, so the jumps

sC2[x0,xn]s\in C^2[x_0,x_n]9

are both set to zero. The revised construction replaces these zero jumps by data-dependent nonzero values (Jarre, 7 Jul 2025).

At the left end, let

s[xi,xi+1]s|_{[x_i,x_{i+1}]}0

The proposed jump at s[xi,xi+1]s|_{[x_i,x_{i+1}]}1 is

s[xi,xi+1]s|_{[x_i,x_{i+1}]}2

The same construction is applied at the right end with

s[xi,xi+1]s|_{[x_i,x_{i+1}]}3

yielding an analogous jump s[xi,xi+1]s|_{[x_i,x_{i+1}]}4 at s[xi,xi+1]s|_{[x_i,x_{i+1}]}5. The RNAK-spline is then the cubic spline interpolant satisfying

s[xi,xi+1]s|_{[x_i,x_{i+1}]}6

and

s[xi,xi+1]s|_{[x_i,x_{i+1}]}7

s[xi,xi+1]s|_{[x_i,x_{i+1}]}8

The rationale is tied to the local behavior of s[xi,xi+1]s|_{[x_i,x_{i+1}]}9. If 3\le 30 were constant, then 3\le 31 would be linear, and the paper argues that a best piecewise constant approximation to a linear function over 3\le 32 would not enforce continuity at 3\le 33, but rather a jump of size approximately

3\le 34

Replacing 3\le 35 by 3\le 36 yields the stated formula.

The paper also introduces a safeguard for coarse or irregular meshes, or when 3\le 37 varies appreciably over 3\le 38. Writing

3\le 39

it uses the heuristic indicator

s(xi)=fis(x_i)=f_i0

If s(xi)=fis(x_i)=f_i1, the paper replaces

s(xi)=fis(x_i)=f_i2

and if this would change the sign of s(xi)=fis(x_i)=f_i3, it sets s(xi)=fis(x_i)=f_i4 instead. It then further damps the jump by

s(xi)=fis(x_i)=f_i5

The resulting s(xi)=fis(x_i)=f_i6 is used in

s(xi)=fis(x_i)=f_i7

with the same procedure at the right end.

In this form, RNAK interpolates between the classical NAK and a Q-spline-like “optimal jump” regime. When the divided-difference estimate is unreliable, the damping pushes the method back toward the classical NAK condition; when the estimate is reliable, the method permits a nonzero third-derivative jump calibrated by local fourth-order information.

4. Conditioning, endpoint sensitivity, and the consistent spline property

A major motivation for revising the not-a-knot condition is the conditioning analysis in Section 2 of (Jarre, 7 Jul 2025). On a mesh with s(xi)=fis(x_i)=f_i8 equidistant nodes of spacing s(xi)=fis(x_i)=f_i9, the paper considers two cubic splines i=0,,ni=0,\dots,n0 satisfying

i=0,,ni=0,\dots,n1

with

i=0,,ni=0,\dots,n2

These splines serve as fundamental modes for the response to end-derivative data.

For i=0,,ni=0,\dots,n3, the pair i=0,,ni=0,\dots,n4 is multiplied at each step by i=0,,ni=0,\dots,n5, so i=0,,ni=0,\dots,n6 grows exponentially as one moves away from the left endpoint. For i=0,,ni=0,\dots,n7, the corresponding multiplier is i=0,,ni=0,\dots,n8, so i=0,,ni=0,\dots,n9 decays exponentially. The coefficient recurrence can be written as the linear dynamical system

Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.0

whose eigenvalues are precisely Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.1 and Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.2. The numerical experiments show that small rounding errors produce exponential growth because of the dominant eigenvalue.

From this analysis the paper draws three observations. First, without any end conditions at all, there is no finite Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.3 with Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.4 for all interpolating splines Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.5, because arbitrary multiples of these fundamental solutions can be added while preserving interpolation. Second, “finding a spline function Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.6 where the values of Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.7 and Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.8 are given, either both at Mi:=s(xi),i=0,,n.M_i:=s''(x_i),\qquad i=0,\dots,n.9 or both at C2C^20, is an extremely ill-conditioned problem.” Third, if two interpolating splines have moderate overall errors, then they are extremely close away from the endpoints; differences are concentrated near the ends. The paper calls this the consistent spline property.

This consistent spline property provides the immediate heuristic basis for RNAK. If most reasonable spline constructions agree closely in the interior, then modifying the end conditions should primarily affect the endpoint layers. The revised not-a-knot spline is designed precisely in that regime: it changes only the first and last boundary equations, leaving the interior tridiagonal structure unchanged, and attempts to improve the shape near the endpoints without materially altering the interior approximation.

5. Numerical behavior and comparative performance

The numerical experiments in (Jarre, 7 Jul 2025) compare four spline types using the maximum error

C2C^21

the natural spline (NAT), the classical not-a-knot spline (NAK), the Q-spline (Q), and the revised not-a-knot spline (RNAK).

For C2C^22 on C2C^23 with a uniform mesh, NAT has the smallest error because C2C^24, and its error decays approximately like C2C^25. NAK, Q, and RNAK are slightly worse, but all are fourth-order; as C2C^26, they become indistinguishable. For C2C^27 knots, all four splines coincide essentially to machine precision in the interior, with NAT slightly better near endpoints, followed by RNAK, Q, and NAK.

For C2C^28 on C2C^29 with a uniform mesh, the endpoint second derivatives do not vanish. In that case NAT exhibits its known weakness: the error decays, but only second-order near the endpoints, so the overall error is much larger. NAK is much better and roughly fi=f(xi)f_i=f(x_i)00; Q is smaller than NAK at intermediate mesh sizes; RNAK is comparable to Q and often slightly better than NAK, especially for small fi=f(xi)f_i=f(x_i)01. For fi=f(xi)f_i=f(x_i)02 knots, Q and RNAK outperform NAK, and NAT is clearly the worst.

On an irregular mesh for the same trigonometric example, NAT again has larger errors than the other three methods. NAK, Q, and RNAK are essentially indistinguishable to the reported digits at smaller fi=f(xi)f_i=f(x_i)03. The paper notes that the maximum error tends to occur in an interior subinterval with relatively large fi=f(xi)f_i=f(x_i)04, where the three splines almost coincide; this is presented as an illustration of the consistent spline property.

Two additional examples complicate any claim of uniform dominance. For the Runge function fi=f(xi)f_i=f(x_i)05 on fi=f(xi)f_i=f(x_i)06 with an irregular mesh, NAT is often worse than the other splines, but not always dramatically so. For fi=f(xi)f_i=f(x_i)07, the NAK spline happens to be best among NAK, Q, and RNAK. For the logistic function fi=f(xi)f_i=f(x_i)08 on fi=f(xi)f_i=f(x_i)09 with a uniform mesh, NAT again has larger errors and second-order endpoint behavior, but for fi=f(xi)f_i=f(x_i)10 knots the plain NAK is best. On finer meshes, Q and RNAK are similar to or slightly better than NAK. For fi=f(xi)f_i=f(x_i)11 knots, RNAK is the best among the three, with error fi=f(xi)f_i=f(x_i)12 versus fi=f(xi)f_i=f(x_i)13 for NAK and fi=f(xi)f_i=f(x_i)14 for Q.

These results support a restrained conclusion. RNAK is not presented as a uniformly superior replacement for NAK. The paper explicitly states that one cannot uniformly “beat” NAK in all circumstances, because fi=f(xi)f_i=f(x_i)15 may be close to some specific NAK spline. Its empirical role is narrower and more precise: for sufficiently fine meshes, it tends to reduce endpoint error relative to NAK and to behave very similarly to the Q-spline.

6. Linear systems, conceptual interpretation, and limitations

From an implementation standpoint, RNAK is a minimal modification of the standard cubic-spline system (Jarre, 7 Jul 2025). The interior equations remain the usual tridiagonal system for fi=f(xi)f_i=f(x_i)16, based on the strictly diagonally dominant matrix

fi=f(xi)f_i=f(x_i)17

For NAT one sets fi=f(xi)f_i=f(x_i)18 and fi=f(xi)f_i=f(x_i)19. For the Q-spline one fixes fi=f(xi)f_i=f(x_i)20 and fi=f(xi)f_i=f(x_i)21. For NAK one replaces endpoint conditions by two equations coupling fi=f(xi)f_i=f(x_i)22 and fi=f(xi)f_i=f(x_i)23. RNAK has the same structure as NAK, except that the boundary equations are modified to encode the desired jumps fi=f(xi)f_i=f(x_i)24. Only the first and last equation blocks change. The resulting system remains banded and is efficiently solvable by the Thomas algorithm or a similar method, with essentially the same computational cost as NAK.

A useful conceptual perspective is provided by the knot-removal theory of "Error analysis for local coarsening in univariate spline spaces" (Figueroa et al., 2023). That paper is not about RNAK specifically, but it proves that the error caused by removing a knot is exactly proportional to a derivative jump: fi=f(xi)f_i=f(x_i)25 For cubic splines with a simple interior knot, the critical derivative order is fi=f(xi)f_i=f(x_i)26. This suggests a direct interpretation of classical NAK as enforcing zero third-derivative jump at the first and last interior knots, and of RNAK as replacing the zero-jump requirement by a calibrated nonzero jump. In that sense, RNAK can be viewed as a revised boundary-adjacent continuity prescription within the same cubic spline space.

The present analytical status of RNAK is also explicit. Unlike the Q-spline, it does not come with a sharp rigorous error bound analogous to Theorem 2 of (Jarre, 7 Jul 2025). Its justification is heuristic, based on local modeling of fi=f(xi)f_i=f(x_i)27, the conditioning analysis, the consistent spline property, and numerical evidence. The paper also notes that designing a robust and principled safety criterion that always detects when NAK is preferable to RNAK, or vice versa, remains open; the current damping based on fourth and fifth divided differences is described as reasonable but heuristic. Extensions to other norms, derivative approximations, or multidimensional generalizations are not treated.

In this form, the revised not-a-knot spline occupies a specific position in cubic interpolation theory. It is not a new spline space and not a departure from standard cubic-spline interpolation. Rather, it is a revised endpoint mechanism: a modification of the classical not-a-knot boundary equations, informed by local fourth- and fifth-order divided-difference data, intended to reproduce more nearly the endpoint behavior of an asymptotically optimal function-value-only interpolant.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Revised Not-a-Knot Spline.