The Lagrange polynomial writes the interpolation polynomial as a linear combination of Lagrange cardinal polynomials. Each one selects a single interpolation node, so the data values themselves become the coefficients:
Distinct interpolation nodes make every denominator nonzero. At , all terms vanish except . This gives an explicit construction without solving for monomial coefficients. The elegance of the Lagrange polynomial is that it builds all constraints into the basis, leaving no equations to solve for the data values.
For and , substitution gives
At , the Lagrange cardinal polynomial values are , so . A negative Lagrange cardinal polynomial value is allowed: these weights sum to one but need not be probabilities.
The product form is especially useful for deriving differentiation weights from nodal evaluations and quadrature rules. For repeated numerical evaluation, the barycentric interpolation formula reorganizes the same Lagrange polynomial into precomputed weights and sums; it avoids evaluating every full product at every argument.
For distinct interpolation nodes and an integer ,
To prove this, the Lagrange interpolation polynomial for the data is exactly , by uniqueness of polynomial interpolation. The coefficient of in its th Lagrange cardinal polynomial is . Comparing the coefficients of gives the identity. At , values of the constant polynomial are intended even at a zero node. Negative exponents are outside the assertion.
At distinct nodes , the Lagrange interpolation polynomial has basis . Differentiating its exact expression for a polynomial of degree at most gives the displayed weights. Their uniqueness follows because the nodal evaluations form a basis of the dual space of that polynomial space.
For increasingly ordered nodes , let be their Lagrange cardinal polynomials, , and . The leading coefficient of has sign , so all summands in the leading coefficient of have the same nonzero sign. There is a unique canceling degree in . Its errors at the nodes are , and a better degree-at-most- approximation would have a difference polynomial with at least roots. Thus it minimizes the maximum node error. Increasing order matters: for the permutation the alternating interpolant is already the quadratic , so the leading-coefficient assertion for fails.
For distinct interpolation nodes , the Lagrange cardinal polynomial has value one at its own interpolation node and zero at every other interpolation node:
Here is the Kronecker delta. These Lagrange cardinal polynomials form a basis of the vector space of polynomials of polynomial degree at most : every such polynomial has the unique expansion . The nodal evaluation linear functionals form the dual basis, since .
For the interpolation nodes , the three Lagrange cardinal polynomials are
Their values on the interpolation nodes are the rows of the identity matrix. In the figure, each colored curve passes through its own unit-height marker and through zero at the other two interpolation nodes. Multiplying the curves by the data and adding gives the Lagrange polynomial .
Figure 1.
Lagrange cardinal polynomials at nodes 0, 1, 2 and their weighted sum interpolating values 1, 2, 5
. Details.
Since the constant polynomial one interpolates data values all equal to one, uniqueness gives . Nevertheless, , so Lagrange cardinal polynomials need not stay between zero and one. If a single data value changes by , the interpolation polynomial changes by exactly . Thus a Lagrange cardinal polynomial describes how one observation influences the entire graph, and controls the worst amplification of simultaneous data errors at ; its maximum is the Lebesgue constant of interpolation.
At decreasing distinct interpolation nodes , the Lagrange cardinal polynomial has denominator sign . For , its numerator's th derivative at one is times a sum of products of nonnegative factors . At most one factor vanishes, and at least one product avoids it, so that sum is strictly positive. The same alternating nodal signs therefore maximize every endpoint derivative simultaneously.
At distinct interpolation nodes, differentiating Lagrange interpolation gives . The triangle inequality gives the displayed upper bound, attained by prescribing each nodal value to be the sign of the corresponding derivative weight. For increasingly ordered real nodes, the Markov interlacing lemma and monotonicity of polynomial critical points in their roots imply that has at most one sign change, ignoring zero weights. Thus an extremizer has alternating nodal signs with at most one reversal of that alternating pattern. This reduces a choice among sign patterns to candidate polynomials.
The barycentric interpolation formula evaluates the same Lagrange polynomial using weights that depend only on the distinct interpolation nodes:
At , return directly, before dividing; the formula has removable singularities at the interpolation nodes. Multiplying every by the same nonzero constant leaves the answer unchanged. Driscoll and Braun derive this formula as a more efficient, numerically stable way to evaluate polynomial interpolation.[ref]
For the interpolation nodes , the weights are , or equivalently . With data , at the denominator using the latter weights is and the numerator is , giving again. For eleven interpolation nodes in the Runge phenomenon figure, the generator computes the weights by the direct products above and returns stored values exactly at every interpolation node.
The direct products require arithmetic operations once; each subsequent value uses arithmetic operations. Here denotes Big O notation. At large polynomial degree or on poorly scaled intervals, forming these products can exceed the range of floating-point arithmetic; normalization or specialized weight formulas may be needed. Stable evaluation also cannot cure sensitivity intrinsic to the chosen interpolation nodes, measured by the Lebesgue constant of interpolation, or the approximation failure in the Runge phenomenon.

Articles by others on the same topic (1)