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.
Dual basis Created 2026-09-24 Updated 2026-10-14
For a basis of a finite-dimensional vector space , its dual basis consists of linear functionals satisfying
The Kronecker delta means that each rule gives one on its own basis vector and zero on the others. These rules extract coordinates:
Applying to a linear combination removes every term except the th. Consequently the dual basis is a basis of the dual space, and every linear functional has expansion . [ref].
Coordinate extraction works for a nonorthogonal basis too. With and , the dual basis is
The checks , , , and fix the two rules. For they give coordinates , so . The usual dot products with instead give and do not extract these coordinates: simple projection formulas depend on an orthonormal basis.
Figure 1.
The dual basis extracts coefficients in a skew basis by two scalar-valued measurements
. Details.
The same idea explains polynomial interpolation. On polynomials of polynomial degree at most , evaluation at distinct interpolation nodes gives the dual basis to the Lagrange cardinal polynomials, because . Samples are coordinates in this basis, so the reconstruction is a dual-basis expansion. Differentiation weights from nodal evaluations and factorial monomial basis for polynomial differentiation apply the same principle to different measurements.
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.
Gaussian quadrature Created 2026-09-24 Updated 2026-10-14
Gaussian quadrature is a quadrature rule that chooses both sample locations and coefficients to achieve unusually high polynomial exactness. For a finite interval with , assume the integration weight is integrable and positive almost everywhere. Define
Let be the monic orthogonal polynomial of polynomial degree for the inner product : it satisfies for every polynomial of polynomial degree below . The polynomial roots of are distinct and inside ; take them as the nodes . Integrate the Lagrange cardinal polynomials to obtain . These coefficients are positive, and
The integration weight and the discrete coefficients play different roles: specifies the integral being approximated, while tell us how much each sample contributes.[ref]
A proof outline explains the gain over simply integrating an arbitrary polynomial interpolation. Use polynomial division to write , with and . Orthogonality makes , and sampling at the polynomial roots of makes . The Lagrange cardinal polynomials recover exactly, so both expressions agree. Also , since has polynomial degree . This is the mechanism behind positive weights of Gaussian quadrature.
For a concrete two-node example, set on . The Legendre polynomial has polynomial roots . Its monic polynomial version has zero integral against both and , as required. Symmetry and exactness for the constant polynomial give . Thus the Gauss–Legendre instance of Gaussian quadrature is
Direct evaluation on gives , exactly their integrals. For the polynomial , two samples therefore give exactly. But for the rule gives , whereas the integral is : the error is .
Figure 1.
Analytical illustration of two-node Gauss–Legendre sampling: exact monomial integrals through degree three and failure at degree four
. Details.
The ceiling is sharp for distinct real nodes under the positive-weight assumptions. Their squared nodal polynomial has polynomial degree , is zero at every sample, and has a strictly positive weighted integral. Thus no such quadrature rule integrates every polynomial of polynomial degree exactly. Nor does Gaussian quadrature integrate every nonpolynomial function exactly: the same two-node example gives , while .
Gaussian quadrature is useful when evaluations are costly and a modest polynomial captures the integrand well. More precisely, for a continuous function and any polynomial of polynomial degree at most , positivity and constant exactness give
The uniform norm on measures the approximation between samples. This bound connects quadrature rule accuracy to uniform approximation, rather than promising an error from sample count alone. Corners, sharp unresolved features and roundoff error require their own assessment; the absolute value function example already shows why polynomial exactness is a qualified guarantee.
Interpolation node Created 2026-09-29 Updated 2026-10-14
An interpolation node is an argument value at which an interpolation polynomial must take a prescribed value . The interpolation nodes specify where the constraints apply; the values specify how high the graph must pass there. In the three-point example, the interpolation nodes are , while the prescribed values are . Changing the interpolation nodes changes the Lagrange cardinal polynomials and the polynomial interpolation error, even if their number stays fixed.
Interpolatory quadrature 2026-10-31
An interpolatory quadrature approximates a definite integral by exactly integrating the interpolation polynomial through prescribed sampled values. For distinct quadrature nodes , its quadrature weights are , where are the Lagrange cardinal polynomials. It is exact for all polynomials of polynomial degree at most , because polynomial interpolation reproduces them. Newton-Cotes quadrature adds equal spacing of the quadrature nodes.
Lagrange cardinal polynomial Created 2026-10-05 Updated 2026-10-14
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.
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.
Lagrange polynomial 2026-10-14
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.
Define the Lagrange cardinal polynomials
Distinct nodes make every denominator nonzero. At these polynomials satisfy , so the Lagrange interpolation polynomial is
It has degree at most and takes the prescribed data values. If two such polynomials existed, their difference would have distinct roots but degree at most , forcing that difference to be zero. This also proves uniqueness.
The relevant uniqueness is uniqueness of the node set, with . Reordering the same nodes cannot change a constraint imposed at every node, so an unsorted “different sequence” obtained only by permutation would not give the claimed counterexample. Order the genuinely different nodes as and let be their Lagrange cardinal polynomials:
The denominator has sign . For , repeated differentiation of its numerator gives
All products are nonnegative. At most one factor is zero, and because , some product omits that factor. The derivative is consequently strictly positive, including when , for which the product is empty and equals one. This proves the endpoint derivative signs of Lagrange cardinal polynomials:
Choose a single Lagrange interpolation polynomial by prescribing :
It satisfies at every prescribed node. Its leading coefficient is , so it has degree exactly . The endpoint sign formula gives simultaneously for all .
Interpolate the Chebyshev polynomial on the same nodes. Since ,
The only points at which are its extrema. A different set of distinct nodes includes at least one nonextremal point; at that point the bracket is strictly positive, and so is its derivative weight for every . Moreover : differentiating its differential equation gives , beginning with and ending at . Thus
The same violates every sharp derivative bound, proving uniqueness of Chebyshev derivative-norming nodes for the given Markov-Duffin-Schaeffer theorem. The result concerns node sets or consistently ordered sequences; a mere permutation is the literal ordering exception noted above.
Order the interpolation nodes as , as required by their alternating nodal data. Write and for the Lagrange cardinal polynomials. Differentiating Lagrange interpolation gives
The upper bound is the triangle inequality; equality follows by choosing each independent nodal value to be the sign of its weight. Thus this is the nodal derivative norm from Lagrange cardinal polynomials.
To identify the maximizing signs, put , a monic polynomial of degree . Since ,
For , let be the ordered roots of , . The roots of decrease componentwise as increases: deleting a later node replaces one retained node by an earlier one. The monotonicity of polynomial critical points in their roots, iterated times, therefore gives . Moreover, and weakly interlace, so the Markov interlacing lemma gives . Together,
These root bands have disjoint interiors. At a fixed , all but at most one band lie wholly on one side of . In the possible remaining band, moves monotonically as increases. Since the leading coefficients of all are positive, the sequence has at most one sign change after zero entries are ignored. The same holds for . If , every , so the conclusion also holds.
The maximizing nodal signs can consequently be chosen as throughout, or as before one index and from that index onward. Zero weights can be assigned either sign to complete such a pattern. These are precisely the nodal values of or , proving
The argument works for all real , hence in particular for . For every derivative vanishes and the result is immediate.
Enumerate the finite set increasingly, , so alternating signs refer to spatial order. This is the enumeration needed for the interpolation construction below. The Lagrange cardinal polynomials satisfy and have degree .
If the printed indexing were interpreted as an arbitrary fixed permutation, the assertion in (a) would need this qualification. For example with , gives of degree two; for every works. Ordering the nodes resolves the issue and yields the requested minimizer for every set .
The Lagrange cardinal polynomials are
Thus the Lagrange interpolation polynomial is
It has degree at most and takes the required values. Uniqueness follows because the difference of two such polynomials has distinct roots and degree at most , so is zero. The source's phrase “degree ” must allow a smaller degree, for example when is constant.
Define the divided difference recursively by and
Induction on this recursion, or comparison of the leading coefficient in the Newton interpolation polynomial, gives
For completeness the induction works term by term: an interior term gets the coefficient , multiplying the product over the other interior nodes; the two endpoint terms give the same formula. This is also the leading coefficient of directly from the cardinal formula, so .
The function has distinct zeros. Repeated application of Rolle theorem gives with when . Hence
For , this is simply and we take .
The polynomial interpolates at the interpolation nodes when
For distinct interpolation nodes, define the Lagrange cardinal polynomials
The denominators are nonzero, each polynomial degree is at most , and , with the Kronecker delta. Therefore
is a Lagrange interpolation polynomial belonging to the vector space of univariate polynomials , and it has all the required sampled values.
If also works, has distinct roots of a polynomial while its polynomial degree is at most . The root bound for a polynomial forces it to be the zero polynomial, proving uniqueness. The phrase “degree ” denotes the allowed maximum; the actual polynomial degree may be smaller. No continuity assumption is needed merely to construct the interpolation polynomial from these finitely many values.
For each interpolation node define the Lagrange cardinal polynomial
All denominators are nonzero because the interpolation nodes are distinct. Each polynomial has polynomial degree at most , and , where is the Kronecker delta. Consequently the linear combination
belongs to the vector space of univariate polynomials and has the required values. This proves existence of the Lagrange interpolation polynomial.
For uniqueness, suppose and both work. Their difference is a polynomial of polynomial degree at most with distinct roots of a polynomial. The root bound for a polynomial forces to be the zero polynomial.
The seven supplied values follow . The quadratic polynomial belongs to and takes all seven values, so uniqueness gives
The subscript bounds the polynomial degree; it does not require polynomial degree exactly six.
A Newton-Cotes quadrature integrates a Lagrange interpolation polynomial at equally spaced quadrature nodes. For the Newton-Cotes closed quadrature, the endpoints are included: write , , and use
These quadrature weights depend on the quadrature nodes, not on the sampled function. Open Newton-Cotes quadrature uses equally spaced interior quadrature nodes instead.
For Simpson's rule, use and set , so . The Lagrange cardinal polynomials become
Integrating these quadratic polynomials gives , , , respectively. The change of variable contributes , so
Its degree of precision of a quadrature rule is three: it integrates every quadratic polynomial by construction, and also the cubic nodal polynomial , whose integral vanishes by odd symmetry about . Any cubic polynomial differs from its quadratic polynomial interpolant by a constant multiple of this nodal polynomial.
Let denote the conventional Legendre polynomial, normalized by . The quadrature nodes are its distinct polynomial roots in . For these nodes form the Lagrange cardinal polynomials
Choose the quadrature weights by integrating these polynomials:
An equivalent standard formula is
The reason for selecting these quadrature nodes is the resulting degree of precision of a quadrature rule. For any polynomial of polynomial degree at most , polynomial division gives
The orthogonality of the Legendre polynomial makes , while at each quadrature node. The definition of the quadrature weights integrates exactly, so
In particular, . Applying this exactness to also proves .
For the distinct interpolation nodes, define the Lagrange cardinal polynomials
Every denominator is nonzero, each has polynomial degree at most , and . Hence the Lagrange interpolation polynomial
belongs to and has . This proves existence.
If and both fit the data, their difference has polynomial degree at most but vanishes at the distinct interpolation nodes. Repeated application of the factor theorem implies that divides that difference. A nonzero polynomial of degree at most cannot have such a divisor of degree . Thus , proving uniqueness. When , the empty product defining is , so the argument includes the constant case.
Piecewise-linear hat function Created 2026-09-28 Updated 2026-10-14
A piecewise-linear hat function is a continuous piecewise linear function that selects one node of a finite element mesh: it is one there and zero at every other node. For an interior node , its exact formula on a possibly nonuniform mesh is
Its support of a function is . It rises on the left interval and falls on the right, producing its hat-shaped graph. The interior hat functions form a basis of the continuous conforming finite element space with homogeneous Dirichlet boundary conditions. Chen's author notes define this nodal basis and illustrate it in one and two dimensions.[ref] The nodal property makes the coefficients directly readable: if , then . Unlike the global Lagrange cardinal polynomials, each of these functions is confined to two neighboring elements.
For example, with , the middle hat function is on , on , and zero elsewhere. Hence , while and . The finite element solution of the one-dimensional Poisson equation therefore has .
Local assembly makes this locality computational. On an element of length , the two local basis functions are and . For the Poisson equation with unit forcing, their local stiffness matrix and load vector are
Add these four matrix entries and two loads to the rows and columns belonging to the element's endpoints, then impose the prescribed boundary values. An interior node receives contributions from its two neighboring elements. Writing and gives
with off-diagonal entries included only for interior neighbors. On a uniform mesh these reduce to , and . Nonadjacent hat functions have no derivative overlap of positive length, so all distant entries vanish. This produces a sparse matrix with only three diagonals: the global coupling is built entirely from local two-node interactions.
Figure 1.
Three interior hat functions on a four-interval mesh, with local stiffness and load contributions assembled into the three-unknown Poisson system
. Details.