In
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of ...
, Hermite interpolation, named after
Charles Hermite
Charles Hermite () FRS FRSE MIAS (24 December 1822 – 14 January 1901) was a French mathematician who did research concerning number theory, quadratic forms, invariant theory, orthogonal polynomials, elliptic functions, and algebra.
Hermi ...
, is a method of
polynomial interpolation
In numerical analysis, polynomial interpolation is the interpolation of a given data set by the polynomial of lowest possible degree that passes through the points of the dataset.
Given a set of data points (x_0,y_0), \ldots, (x_n,y_n), with no ...
, which generalizes
Lagrange interpolation
In numerical analysis, the Lagrange interpolating polynomial is the unique polynomial of lowest degree that interpolates a given set of data.
Given a data set of coordinate pairs (x_j, y_j) with 0 \leq j \leq k, the x_j are called ''nodes'' an ...
. Lagrange interpolation allows computing a
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exa ...
of degree less than that takes the same value at given points as a given function. Instead, Hermite interpolation computes a polynomial of degree less than such that the polynomial and its first derivatives have the same values at given points as a given function and its first derivatives.
Hermite's method of interpolation is closely related to the
Newton's interpolation method, in that both are derived from the calculation of
divided differences
In mathematics, divided differences is an algorithm, historically used for computing tables of logarithms and trigonometric functions. Charles Babbage's difference engine, an early mechanical calculator, was designed to use this algorithm in its o ...
. However, there are other methods for computing a Hermite interpolating polynomial. One can use
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as:
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as:
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrices.
...
, by taking the coefficients of the interpolating polynomial as
unknowns, and writing as
linear equations the constraints that the interpolating polynomial must satisfy. For another method, see .
Statement of the problem
Hermite interpolation consists of computing a
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exa ...
of degree as low as possible that matches an unknown function both in observed value, and the observed value of its first derivatives. This means that values
:
must be known. The resulting polynomial has a degree less than . (In a more general case, there is no need for to be a fixed value; that is, some points may have more known derivatives than others. In this case the resulting polynomial has a degree less than the number of data points.)
Let us consider a polynomial of degree less than with
indeterminate coefficients; that is, the coefficients of are new variables. Then, by writing the constraints that the interpolating polynomial must satisfy, one gets a
system of linear equations in unknowns.
In general, such a system has exactly one solution.
Charles Hermite
Charles Hermite () FRS FRSE MIAS (24 December 1822 – 14 January 1901) was a French mathematician who did research concerning number theory, quadratic forms, invariant theory, orthogonal polynomials, elliptic functions, and algebra.
Hermi ...
proved that this is effectively the case here, as soon as the are pairwise different, and provided a method for computing it, which is described below.
Method
Simple case
When using divided differences to calculate the Hermite polynomial of a function ''f'', the first step is to copy each point ''m'' times. (Here we will consider the simplest case
for all points.) Therefore, given
data points
, and values
and
for a function
that we want to interpolate, we create a new dataset
:
such that
:
Now, we create a
divided differences table for the points
. However, for some divided differences,
:
which is undefined.
In this case, the divided difference is replaced by
. All others are calculated normally.
General case
In the general case, suppose a given point
has ''k'' derivatives. Then the dataset
contains ''k'' identical copies of
. When creating the table,
divided differences
In mathematics, divided differences is an algorithm, historically used for computing tables of logarithms and trigonometric functions. Charles Babbage's difference engine, an early mechanical calculator, was designed to use this algorithm in its o ...
of
identical values will be calculated as
:
For example,
:
:
etc.
Example
Consider the function
. Evaluating the function and its first two derivatives at
, we obtain the following data:
:
Since we have two derivatives to work with, we construct the set
. Our divided difference table is then:
:
and the generated polynomial is
:
by taking the coefficients from the diagonal of the divided difference table, and multiplying the ''k''th coefficient by
, as we would when generating a Newton polynomial.
Quintic Hermite interpolation
The quintic Hermite interpolation based on the function (
), its first (
) and second derivatives (
) at two different points (
and
) can be used for example to interpolate the position of an object based on its position, velocity and acceleration.
The general form is given by
Error
Call the calculated polynomial ''H'' and original function ''f''. Evaluating a point