ArticleslgStudy

mathematics

Cubic Hermite spline

Cubic Hermite spline is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cubic Hermite spline rather than just read about it. In short: In numerical analysis, a cubic Hermite spline or cubic Hermite interpolator is a spline where each piece is a third-degree polynomial specified in Hermite form, that is, by its values and first derivatives at the end points of the corresponding domain interval. Cubic Hermite splines are typically used for interpolation of numeric data specified at given argument values x1,x2,…,xn, to obtain a continuous function.

Cubic Hermite spline — main illustration
Cubic Hermite spline — illustration

Key takeaways

  • Cubic Hermite spline belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cubic Hermite spline to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cubic Hermite spline from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, a cubic Hermite spline or cubic Hermite interpolator is a spline where each piece is a third-degree polynomial specified in Hermite form, that is, by its values and first derivatives at the end points of the corresponding domain interval. Cubic Hermite splines are typically used for interpolation of numeric data specified at given argument values x1,x2,…,xn, to obtain a continuous function. The data should consist of the desired function value and derivative at each xk. (If only the values are provided, the derivatives must be estimated from them.) The Hermite formula is applied to each interval (xk,xk+1) separately. The resulting spline will be continuous and will have continuous first derivative. Cubic polynomial splines can be specified in other ways, the Bezier cubic being the most common. However, these two methods provide the same set of splines, and data can be easily converted between the Bézier and Hermite forms; so the names are often used as if they were synonymous. Cubic polynomial splines are extensively used in computer graphics and geometric modeling to obtain curves or motion trajectories that pass through specified points of the plane or three-dimensional space. In these applications, each coordinate of the plane or space is separately interpolated by a cubic spline function of a separate parameter t. Cubic polynomial splines are also used extensively in structural analysis applications, such as Euler–Bernoulli beam theory. Cubic polynomial splines have also been applied to mortality analysis and mortality forecasting. Cubic splines can be extended to functions of two or more parameters, in several ways. Bicubic splines (Bicubic interpolation) are often used to interpolate data on a regular rectangular grid, such as pixel values in a digital image or altitude data on a terrain. Bicubic surface patches, defined by three bicubic splines, are an essential tool in computer graphics. Cubic splines are often called csplines, especially in computer graphics. Hermite splines are named after Charles Hermite.

Interpolation on a single interval

Unit interval [0, 1]

On the unit interval [0,1], given a starting point 𝒑0 at t=0 and an ending point 𝒑1 at t=1 with starting tangent 𝒎0 at t=0 and ending tangent 𝒎1 at t=1, the polynomial can be defined by 𝒑(t)=(2t3−3t2+1)𝒑0+(t3−2t2+t)𝒎0+(−2t3+3t2)𝒑1+(t3−t2)𝒎1, where t ∈ [0, 1].

Interpolation on an arbitrary interval Interpolating x in an arbitrary interval (xk,xk+1) is done by mapping the latter to [0,1] through an affine (degree-1) change of variable. The formula is 𝒑(x)=h00(t)𝒑k+h10(t)(xk+1−xk)𝒎k+h01(t)𝒑k+1+h11(t)(xk+1−xk)𝒎k+1, where t=(x−xk)/(xk+1−xk), and h refers to the basis functions, defined below. Note that the tangent values have been scaled by xk+1−xk compared to the equation on the unit interval.

Uniqueness The formula specified above provides the unique third-degree polynomial path between the two points with the given tangents. Proof. Let P,Q be two third-degree polynomials satisfying the given boundary conditions. Define R=Q−P, then:

R(0)=Q(0)−P(0)=0, R(1)=Q(1)−P(1)=0. Since both Q and P are third-degree polynomials, R is at most a third-degree polynomial. So R must be of the form R(x)=ax(x−1)(x−r). Calculating the derivative gives R′(x)=ax(x−1)+ax(x−r)+a(x−1)(x−r). We know furthermore that

R′(0)=Q′(0)−P′(0)=0,

R′(1)=Q′(1)−P′(1)=0,

Putting (1) and (2) together, we deduce that a=0, and therefore R=0, thus P=Q.

Representations We can write the interpolation polynomial on the unit interval (for an arbitrary interval see the rescaled version above) as 𝒑(t)=h00(t)𝒑0+h10(t)𝒎0+h01(t)𝒑1+h11(t)𝒎1 where h00, h10, h01, h11 are Hermite basis functions. These can be written in different ways, each way revealing different properties:

The "expanded" column shows the representation used in the definition above. The "factorized" column shows immediately that h10 and h11 are zero at the boundaries. You can further conclude that h01 and h11 have a zero of multiplicity 2 at 0, and h00 and h10 have such a zero at 1, thus they have slope 0 at those boundaries. The "Bernstein" column shows the decomposition of the Hermite basis functions into Bernstein polynomials of order 3: Bk(t)=(3k)⋅tk⋅(1−t)3−k. Using this connection you can express cubic Hermite interpolation in terms of cubic Bézier curves with respect to the four values 𝒑0,𝒑0+13𝒎0,𝒑1−13𝒎1,𝒑1 and do Hermite interpolation using the de Casteljau algorithm. It shows that in a cubic Bézier patch the two control points in the middle determine the tangents of the interpolation curve at the respective outer points. We can also write the polynomial in standard form as 𝒑(t)=(2𝒑0+𝒎0−2𝒑1+𝒎1)t3+(−3𝒑0−2𝒎0+3𝒑1−𝒎1)t2+𝒎0t+𝒑0 where the control points and tangents are coefficients. This permits efficient evaluation of the polynomial at various values of t since the constant coefficients can be computed once and reused.

Interpolating a data set A data set, (xk,𝒑k) for k=1,…,n, can be interpolated by applying the above procedure on each interval, where the tangents are chosen in a sensible manner, meaning that the tangents for intervals sharing endpoints are equal. The interpolated curve then consists of piecewise cubic Hermite splines and is globally continuously differentiable in (x1,xn). The choice of tangents is not unique, and there are several options available.

Finite difference

The simplest choice is the three-point difference, not requiring constant interval lengths:

𝒎k=12(𝒑k+1−𝒑kxk+1−xk+𝒑k−𝒑k−1xk−xk−1) for internal points k=2,…,n−1, and one-sided difference at the endpoints of the data set.

Cardinal spline

A cardinal spline, sometimes called a canonical spline, is obtained if

𝒎k=(1−c)𝒑k+1−𝒑k−1xk+1−xk−1 is used to calculate the tangents. The parameter c is a tension parameter that must be in the interval [0, 1]. In some sense, this can be interpreted as the "length" of the tangent. Choosing c = 1 yields all zero tangents, and choosing c = 0 yields a Catmull–Rom spline in the uniform parameterization case.

Catmull–Rom spline

For tangents chosen to be

… excerpt ends here. Continue reading the full article.

Illustrations

Cubic Hermite spline: Example with finite-difference tangents
Example with finite-difference tangents
Cubic Hermite spline: Cardinal spline example in 2D. The line represents the curve, and the squares represent the control points 𝒑k. Notice that the curve does not reach the first and last points; these points do, however, affect the shape of the curve. The tension parameter used is 0.1.
Cardinal spline example in 2D. The line represents the curve, and the squares represent the control points 𝒑k. Notice that the curve does not reach the first and last points; these points do, however, affect the shape of the curve. The tension parameter used is 0.1.
Cubic Hermite spline: Geometric interpretation of Catmull–Rom cubic interpolation of the black point with uniformly spaced abscissae.[6]
Geometric interpretation of Catmull–Rom cubic interpolation of the black point with uniformly spaced abscissae.[6]

Worked examples

Example 1 — a first encounter with Cubic Hermite spline

Start with the simplest possible case. Write down what Cubic Hermite spline claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cubic Hermite spline before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cubic Hermite spline ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cubic Hermite spline

In research
Cubic Hermite spline appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cubic Hermite spline in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cubic Hermite spline is common in secondary-school and first-year university syllabi. It links to neighbouring topics Interpolation, Splines (mathematics), so understanding it makes those chapters shorter.
In everyday life
Look for Cubic Hermite spline outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cubic Hermite spline” →

How to study Cubic Hermite spline in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cubic Hermite spline means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cubic Hermite spline out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cubic Hermite spline in simple terms?

In numerical analysis, a cubic Hermite spline or cubic Hermite interpolator is a spline where each piece is a third-degree polynomial specified in Hermite form, that is, by its values and first derivatives at the end points of the corresponding domain interval. Cubic Hermite splines are typically u…

Why does Cubic Hermite spline matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cubic Hermite spline?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cubic Hermite spline.

Tags

  • Interpolation
  • Splines (mathematics)

Keep exploring