CalcWorldHub
Free online calculator · no signup

Endpoint value and slope Hermite interpolation calculator

Interpolate between two points while prescribing the derivative at each endpoint.

4,000 tools
Endpoint value and slope Hermite interpolation calculator — First x coordinate, Second x coordinate, Value at first endpoint and calculation method
Endpoint value and slope Hermite interpolation calculator: inputs and calculation method.

How to use this calculator

Interpolate between two points while prescribing the derivative at each endpoint.

  1. Enter First x coordinate, Second x coordinate, Value at first endpoint, Value at second endpoint, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Endpoint value and slope Hermite interpolation explained

Cubic Hermite interpolation uses both endpoint values and endpoint slopes to produce one cubic across the interval. Slopes are measured in the original y-per-x units, and the query must lie between the ordered endpoints.

Hermite interpolated value2y units
Hermite interpolated value: 2 y units in the worked scenario.

Inputs, symbols, and units

a — First x coordinate
First x coordinate.
b — Second x coordinate
Second x coordinate.
y0 — Value at first endpoint
Value at first endpoint.
y1 — Value at second endpoint
Value at second endpoint.
s0 — Slope at first endpoint
Slope at first endpoint.
s1 — Slope at second endpoint
Slope at second endpoint.
x — Query x
Query x.

Formula and method

Let t=(x−a)/(b−a). H=h00y0+h10(b−a)s0+h01y1+h11(b−a)s1, where h00=2t³−3t²+1, h10=t³−2t²+t, h01=−2t³+3t², and h11=t³−t².

Normalize the interval by t=(x−a)/(b−a). The four cubic basis functions multiply the two endpoint values and the two endpoint slopes; slope terms also multiply the original interval length. This preserves derivatives in the original x units.

A worked scenario

First x coordinate = 0; Second x coordinate = 2; Value at first endpoint = 1; Value at second endpoint = 5; Slope at first endpoint = 0; Slope at second endpoint = 4; Query x = 1.

  • Hermite interpolated value: 2 y units

At x=1 halfway between endpoints 0 and 2, the selected endpoint values and slopes give H(1)=2 y units. The curve also matches both endpoint slopes.

Assumptions and edge cases

Query must lie between ordered endpoints. Large or incompatible slopes can create overshoot; no shape-preserving adjustment is applied.

Frequently asked questions

Do slopes use normalized coordinates?

No, they are dy/dx in the original units.

Will it pass through both endpoints?

Yes, while matching both entered slopes.

Does it avoid overshoot?

Not automatically.

How do I use the Endpoint value and slope Hermite interpolation calculator?

Enter First x coordinate, Second x coordinate, Value at first endpoint, Value at second endpoint, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Endpoint value and slope Hermite interpolation?

First x coordinate = 0; Second x coordinate = 2; Value at first endpoint = 1; Value at second endpoint = 5; Slope at first endpoint = 0; Slope at second endpoint = 4; Query x = 1. Hermite interpolated value: 2 y units At x=1 halfway between endpoints 0 and 2, the selected endpoint values and slopes give H(1)=2 y units. The curve also matches both endpoint slopes.