Hermite Interpolation Calculator
Enter points and slopes.

Cubic Hermite Basics

A cubic Hermite polynomial interpolates both function values and derivatives at two points. Suppose we know fx0=y0, f'x0=m0, fx1=y1, and f'x1=m1. Then the unique cubic passing through these constraints can be written using Hermite basis functions:

Ht= y0h00t +y1h10t +m0h01t +m1h11t

Here t parameterizes the interval from x0 to x1 via t=x-x0x1-x0. The four basis polynomials are

h00t=2t3-3t2+1, h10t=-2t3+3t2, h01t=t3-t2, h11t=t3-t2. Substituting t corresponding to the desired x-value yields the interpolated point.

Hermite interpolation is widely used in computer graphics and numerical integration because controlling derivatives guarantees smooth transitions between segments. Cubic Hermite splines, for example, join multiple Hermite pieces with continuous first derivatives to create pleasant curves. In physics simulations, specifying derivatives lets you match both position and velocity data, producing more realistic motion.

This calculator focuses on the simplest case with two points. Enter the x and y values at each endpoint along with the slopes. Then choose an x within the interval to evaluate the interpolant. The script computes the normalized parameter t, evaluates the basis functions, and returns the interpolated y. You can experiment with different slopes to see how they influence the shape of the curve while still matching the prescribed end values.

Related Calculators

Legendre Polynomial Calculator - Evaluate Orthogonal Polynomials

Compute Legendre polynomials of arbitrary degree and evaluate them at a point.

legendre polynomial calculator orthogonal polynomials numerical analysis

Gaussian Elimination Solver - Solve Linear Systems

Apply the Gaussian elimination method to solve 2x2 or 3x3 linear systems.

gaussian elimination calculator linear system solver

Superellipse Area Calculator - Generalized Ellipse

Find the area of a superellipse described by |x/a|^n + |y/b|^n = 1.

superellipse area LamΓ© curve special functions