Quadrature rules and their errors
Derive the two-node Gauss–Legendre rule by matching moments, transfer it to a physical interval and test where polynomial exactness ends.
Two-Point Gaussian Quadrature and Polynomial Exactness
A quadrature rule approximates an integral using a finite set of function evaluations. Gaussian quadrature gains accuracy by choosing where to sample as well as how to weight the samples. Two carefully placed evaluations can integrate every cubic polynomial exactly, although they cannot integrate every smooth function exactly.
Determine nodes and weights from moments
On , seek a symmetric rule
For , exactness requires , so . For , it requires , so . Odd powers and integrate to zero and their sampled contributions cancel by symmetry.
Thus
is exact on the basis , and therefore on every linear combination of them. This is the two-point Gauss–Legendre rule. The broader polynomial-exactness property of Gaussian rules is given in NIST DLMF, section 3.5(v).
The nodes are not endpoints. A function value at the midpoint is also not used. Those choices distinguish the rule from trapezoidal, midpoint and Simpson formulas.
Transfer the rule to an engineering interval
For , set
The physical quadrature is
The Jacobian factor carries the interval length. Forgetting it can preserve a plausible-looking weighted sum while giving the wrong dimensions and scale.
For an assigned distributed load on m, use N/m. The nodes are approximately 0.422650 m and 1.577350 m, each with weight 1 m. The rule gives a total load of 14 N, matching the antiderivative. It is exact because the load is cubic in the physical coordinate under an affine mapping.
Challenge exactness with a fourth-degree term
On , the exact integral of is . The two-point rule gives , leaving error . Exactness through degree three does not mean small error for an arbitrarily scaled quartic component.
For a function with a continuous fourth derivative, the error on can be written
The formula needs the stated smoothness. A discontinuity or unresolved narrow peak can evade the two evaluations, so a high formal order alone is not an acceptance test.
Refine and compare with an independent integral
For on , the exact integral is . One two-point panel gives about 1.71789638, with error 0.00038545. Splitting into two equal panels gives about 1.71825717, reducing the error to about 0.00002466.
For smooth functions, composite two-point Gauss integration has fourth-order global convergence: halving panel length asymptotically reduces error by a factor of 16. That statement describes a refinement regime; it does not certify that any two computed values have entered it.
Applications and checks
Quadrature appears in distributed loads, work, energy, finite-element matrices and transport balances. Count the degree of the complete transformed integrand, including material variation, shape functions and the Jacobian. Exactness for a polynomial in the reference coordinate does not automatically transfer through a curved or nonlinear coordinate mapping.
Independent checks match polynomial moments with exact rational arithmetic, integrate the cubic load analytically and compare composite results with the exponential antiderivative and error bound. The node derivation and counterexample are fully inspectable on paper, so no interactive laboratory or animation is necessary.
Use refinement, alternate integration rules and known conservation or benchmark results to assess the quantity of interest. In finite elements, too little integration can create spurious zero-energy behavior; increasing quadrature cannot repair an incorrect constitutive law or discretization. Treat polynomial exactness as one computational property, not as validation of the engineering model being integrated.
A Peano-Kernel Guide: Curvature Determines the Sign and Size of Quadrature Error
A quadrature rule can be exact for straight lines and still err on a curved function. A Peano kernel shows exactly how the unresolved curvature contributes to the error. It supplies more information than an unexplained constant in a truncation-error formula.
Fix the Error Sign First
On [0,1], define : exact integral minus quadrature. For the trapezoidal rule and midpoint rule , E vanishes for every linear polynomial.
Taylor’s formula with integral remainder can be written
where . Applying E annihilates the first two terms, leaving
The University of Minnesota numerical-analysis notes develop this representation. Assume sufficient smoothness, here continuous second derivative, so the interchange and bound are justified.
Calculate the Two Kernels
For the trapezoidal rule, applying E to the ramp gives
For the midpoint rule,
Thus a convex function, with , has and . The trapezoid overestimates its integral; the midpoint underestimates it. Reversing the definition of E reverses both signs, so a memorized sign without a convention is unreliable.
Work Two Examples
For , the integral is 1/3. The trapezoid gives 1/2 and midpoint gives 1/4, hence errors −1/6 and +1/12. Because the second derivative is constant at two, these equal two times the respective kernel integrals.
For , the integral is 1/5, trapezoid is 1/2 and midpoint is 1/16. Errors are −0.3 and +0.1375. Curvature now varies as ; integrating it against the kernels recovers those values. Substituting a derivative sampled at an arbitrary convenient point would not be the same calculation.
Turn a Derivative Bound into an Error Bound
The absolute kernel integrals are 1/12 and 1/24. If throughout an interval of width h, rescaling the coordinate gives single-panel bounds and .
For a uniform composite rule over length L, summing L/h panels gives and . The single-panel cubic power and composite quadratic power describe different objects. For unequal panels, sum their individual bounds with the appropriate constant.
Applications and checks
The kernel connects error to where the curvature occurs and whether its contributions reinforce or cancel. It explains why polynomial exactness does not mean exactness for arbitrary measured signals. Independent numerical kernel integrals are checked against exact polynomial antiderivatives for four test functions.
The bound is only as credible as M and the smoothness assumption. A few sampled second derivatives may miss a sharp feature, while agreement between two quadrature resolutions is an estimate rather than this proof. Noise, discontinuities and unresolved peaks require another error analysis. The explicit kernels and worked values already show the mechanism; an animation would not establish a missing derivative bound.
Back to contents