Subtract the two finite sums. In the shifted sum replace the summation index by . For every interior index the new coefficient is
by Pascal's identity; the two endpoint coefficients agree as well. Therefore
For a degree- polynomial with leading coefficient , the backward difference has leading term
Since , this coefficient is nonzero for . Starting with , iteration gives degree and leading coefficient for . The next difference of the resulting constant is zero:
A natural cubic spline with the given knots is a function that is polynomial of degree at most three on each interval between consecutive knots and has . With the usual whole-line convention, it extends affinely outside the extreme knots. The word natural refers to these endpoint second-derivative conditions; the interpolation values must be specified separately.
For , direct differentiation on either side of the knot gives
Both one-sided limits of the function and its first two derivatives at are zero, so these formulas are continuous there and
Its third derivative jumps from zero to six, which is permitted for a cubic spline.
The finite sum of truncated cubes is by part (b) and is cubic on each knot interval. For , every term vanishes. For , every truncated power equals its ordinary polynomial, so part (a) applied to gives
It is therefore zero on both exterior intervals. Its regularity makes the endpoint second derivatives zero too, proving naturality.
Evaluation at the five knots gives
For example the three interior values in units of are , , and . At the cancellation is .
For an explicit graph description is
It is symmetric about , increases from zero to its maximum four at the centre, and decreases symmetrically back to zero. It joins the zero tails with zero first and second derivatives.
Figure 1.
A compactly supported natural cubic spline with knot values zero, one, four, one, zero
. The original plot uses the truncated-power formula for h equal to one. The maximum is four at x equal to two; both tails and the first two endpoint derivatives are zero. Details.

Articles by others on the same topic (0)

There are currently no matching articles.