Quadrature as functional approximation
Approximate an integral as a bounded linear functional, derive exactness-based error bounds, and connect Gaussian rules to orthogonal polynomials.
On this page
The question for today
What you’ll understand
- Bound quadrature error using exactness and best uniform approximation.
- Explain how signed weights amplify data errors.
- Derive Gaussian polynomial exactness through orthogonality and check a concrete nonexact case.
Quadrature does not need to recover a function everywhere; it needs only one number, its integral. This makes it an approximation problem for a linear functional. Polynomial exactness lets us subtract any convenient polynomial before measuring the remaining error, connecting integration accuracy to approximation theory. Node and weight choices then determine both the approximation guarantee and the sensitivity to uncertain function values.
Subtract what the rule gets exactly right
Let I integrate a real continuous function over , and let Q be a weighted sum of values at distinct nodes inside that interval. Suppose Q agrees with I for every polynomial of degree at most d. Subtract such a polynomial p from the target: the quadrature error on p vanishes, leaving only the error functional applied to f−p. Bound the integral by interval length times the uniform norm and the weighted samples by the sum of absolute weights times that norm.
Taking the infimum over p gives the displayed best-approximation bound. This argument needs no derivative of f and makes the role of the rule's exactness explicit. Its strength depends on both the approximation space and the weight norm. A derivative-based remainder, when its hypotheses hold, can be sharper for a particular function. The functional argument is valuable because it separates a general approximation property of the target from the stability properties of the integration rule.
Positive weights help control uncertainty
If the rule is exact on constants, its weights sum to the interval length. When every weight is nonnegative, their absolute sum equals that same length, simplifying the error factor to twice the length. Nodal value errors bounded by delta then perturb the quadrature by at most delta times the length. Signed weights may have a much larger absolute sum, allowing small measurement or evaluation errors to cancel badly and be amplified in the final number.
Higher polynomial exactness therefore should not be assessed without weight behavior and available data accuracy. A formula can integrate many monomials exactly in symbolic arithmetic and still be a poor way to process noisy values. Conversely, a stable positive-weight rule may be effective even when a crude worst-case bound is conservative. These statements concern absolute error. Relative accuracy becomes delicate when the true integral is near zero because positive and negative parts of the integrand nearly cancel.
Orthogonality buys Gaussian exactness
For ordinary integration on a finite interval, the m-point Gaussian rule uses the m distinct interior zeros of its degree-m Legendre polynomial. Choose weights by integrating the associated degree-(m−1) Lagrange basis. To see exactness through degree 2m−1, divide a polynomial h of that degree by the orthogonal polynomial: h equals its product with a polynomial of degree at most m−1 plus a remainder of degree at most m−1. Orthogonality makes the product's integral zero, and the product vanishes at every quadrature node.
Both I and Q therefore reduce to the same remainder, which is integrated exactly by construction. The weights are positive: apply the established exactness to the square of each Lagrange basis polynomial, whose degree is at most 2m−2; its integral is positive and its quadrature sum equals that basis weight. This proves a structural advantage, not exactness for every analytic function. A rule's polynomial degree of exactness supplies a benchmark class, while a general target still needs an error analysis.
Work it through
Two Gaussian nodes, one nonexact polynomial
On , use nodes and weights one. Check exactness through cubics, then integrate approximately and compare with its exact integral.
The weights sum to two, so constants integrate correctly. Odd powers cancel by symmetry. The quadratic sum is 1/3+1/3=2/3, matching its integral. Together these checks establish exactness for every polynomial through degree three.
For x⁴, the quadrature gives 1/9+1/9=2/9. The exact integral is 2/5, so I−Q=2/5−2/9=8/45, approximately 0.17778.
As an independent error bound, choose . Since , its uniform error is at most 1/8. The positive weights give functional bound , safely above the actual error. Polynomial exactness does not make x⁴ exact.
The two-node rule is exact through degree three but underestimates the x⁴ integral by eight forty-fifths.
The living notebook
Explore the model
Interactive lab · function
Compare exact area with simple rules
Pause and Reset, then set a = 1 and x = 1. Predict the displayed integral from zero to one is 1/3. On paper, endpoint trapezoidal quadrature gives 1/2, midpoint gives 1/4, and Simpson gives 1/3; compare their errors with the exact readout. Reset and set both a = 0.5 and x = 1 to predict all these values halve. The instrument supplies an analytic quadratic integral, not an adaptive or Gaussian quadrature implementation.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA known function model lets us check quadrature error directly; the rule's exactness and the target's shape jointly determine the result.
Pause & reason
Check your understanding
Your turn
Try it yourself
Simpson's rule on uses nodes and weights . Apply it to , compute I−Q, and use the same degree-three comparison polynomial to bound the error.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Only the endpoint values contribute for x⁴. The weights are positive and sum to two, so the functional error factor is four.
Compare with the solution
The quadrature is , while , giving . Simpson is exact through degree three, and the comparison polynomial has uniform residual . The functional bound is therefore , larger than the actual absolute error . Both Simpson and the two-node Gaussian rule are exact through cubics, yet their x⁴ errors have different signs and magnitudes; equal exactness degree does not determine every target's error.
Keep the idea
Take it with you
- Polynomial exactness lets the quadrature error act only on an approximation residual.
- The sum of absolute weights controls absolute data-error amplification.
- Gaussian exactness follows from orthogonality; general functions still require an error bound.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.