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.
The product rule applied at the interpolation node gives
Thus Lagrange interpolation gives, away from the interpolation nodes,
Apply the same Lagrange interpolation formula to the constant polynomial one. Since its interpolant is itself,
Dividing the preceding two identities proves the barycentric interpolation formula
The denominator is exactly , so is nonzero away from the interpolation nodes. At , multiply numerator and denominator by and take the limit: their values tend to and , respectively. The removable singularity therefore has value ; in numerical evaluation return the stored value directly at an interpolation node.
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.
Read the differential order literally: take quadrature nodes in and in . Applying Simpson's rule first in and then in multiplies the one-dimensional quadrature weights. With , this tensor-product quadrature is
Equivalently, the nine sampled function values have the quadrature weight array
with rows indexed by the quadrature nodes and columns by the quadrature nodes. The quadrature weights sum to the rectangle's area. If the intended coordinate assignment is instead , , exchange and in the formula. Both conventions give the same calculation on the unit square used below.
For the separable integrand, tensor-product quadrature factors into two one-dimensional applications of Simpson's rule:
so
The exact double integral, evaluated by Fubini's theorem and the power rule for integration, is
The factor is always integrated exactly. All quadrature error therefore comes from applying Simpson's rule to the factor.
At , the preceding tensor-product quadrature gives
Both factors of the separable integrand are quadratic polynomials, so exactness follows directly from the construction of Simpson's rule.
At ,
The factor is now a cubic polynomial. Simpson's rule still integrates it exactly because its degree of precision of a quadrature rule is three. Exactness of tensor-product quadrature depends on the polynomial degree in each variable, rather than their sum.
At ,
This is an overestimate, with signed quadrature error
The relative error is , approximately . The quartic polynomial lies beyond the degree of precision of a quadrature rule of Simpson's rule, so the exactness of the previous cases no longer applies.

Articles by others on the same topic (0)

There are currently no matching articles.