A quadrature rule replaces an integral with a weighted sum of finitely many function values. Newton–Cotes rules choose equally spaced nodes, interpolate, and integrate the polynomial. The nodes determine the weights; smoothness determines whether the error theorem applies.
Lecture note Sections 5.1–5.5 and 5.7 are the primary source. Write the exact integral as , the approximation as , and the signed error as exact minus approximate:
The interpolant uses the lecture note’s lowercase . For general open rules we add the explicit indexing convention , followed by equally spaced interior nodes. The workbook supplements the open two-point and Milne error derivations; their signs and constants are proved independently below [1][1] S. Rojas, “Lecture Notes on Computational Mathematics,” 2025. Course lecture note distributed with MTH2051; local source course-lecture-notes.pdf., [2][2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026., [3][3] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011..
Interpolatory quadrature and degree of precision
For distinct nodes , form the Lagrange interpolant and define
A rule has degree of precision if it is exact for every polynomial of degree at most and fails for at least one polynomial of degree .
The rule above is exact for every polynomial of degree at most .
Such a polynomial is its own unique interpolant. Equivalently, exactness through degree is the moment condition
Necessity follows by taking monomials; sufficiency follows by linearity for their linear combinations.
A closed rule includes endpoints: , with and . An open rule excludes them: , with and . In both constructions, is the interpolation degree and there are nodes. The open spacing must not be confused with the closed spacing.
Deriving the common rules
Let and . Integrating the basis polynomials gives trapezoidal and midpoint rules:
The three-point closed rule is Simpson’s rule:
The open two-point rule uses the interior trisection points:
Milne’s rule uses three interior quarter points:
Use coordinates centred at . The two linear basis integrals in the trapezoidal and open two-point rules are equal and sum to , so each weight is . The midpoint rule integrates a constant basis, with weight .
For Simpson’s nodes , the endpoint quadratic basis integrals are and the middle integral is . For Milne’s nodes , an outer basis is , integrating to . The middle basis integrates to .
These quadratic interpolatory rules already integrate quadratics exactly. Symmetric nodes and weights also integrate every centred odd function to zero, including a centred cubic. Consequently Simpson and Milne integrate every cubic exactly.
Proving errors with an integrable remainder
A pointwise interpolation remainder involves . The unknown location changes with and need not vary continuously, so it cannot simply be taken outside the integral. An integral Taylor remainder avoids that difficulty.
Let and suppose the linear error functional annihilates polynomials of degree below . Then
Repeated integration of the fundamental theorem of calculus gives
Apply . Its polynomial part vanishes. Interchange the integrals over the compact triangle and move the finite weighted sum inside the integral. The resulting factor is precisely .
If has a fixed sign and a nonzero integral, there is such that
Bound the continuous derivative between its minimum and maximum, multiply by , and integrate. Division by the positive integral of puts the weighted average between those extrema. The intermediate value theorem supplies . Restore the sign if the kernel is negative. No continuity of an unknown remainder location is assumed.
For checking constants, scale each rule to the following reference interval. For symmetric rules and even remainder order, reflection about the midpoint makes the kernel symmetric, so a left-half expression suffices.
| Rule and interval | Kernel on the left half | Integral over the whole interval |
|---|---|---|
| Trapezoidal, , | on the whole interval | |
| Midpoint, , | for | |
| Open two-point, , | ; subtract on | |
| Simpson, , | on | |
| Milne, , | ; subtract on |
Substitution into the kernel theorem gives these expressions; replacing by verifies reflection symmetry. Trapezoidal and Simpson kernels are nonpositive, and the midpoint kernel is nonnegative. The open two-point kernel on is . For Milne, decreases on to , proving positivity there. Integrating the piecewise polynomials proves the constants rather than inferring them from examples.
Let . Require for the first three rules and for the last two. Each row has its own remainder location .
| Rule | Degree of precision | |
|---|---|---|
| Trapezoidal | 1 | |
| Midpoint | 1 | |
| Open two-point | 1 | |
| Simpson | 3 | |
| Milne | 3 |
Use the kernel representation and the fixed-sign lemma. Affine scaling multiplies a second-order kernel integral by the cube of the scale and a fourth-order kernel integral by its fifth power. This gives all listed constants. A centred quadratic or quartic has a nonzero constant derivative and therefore a nonzero error. Combined with the established exactness, the degrees are exactly one or three.
On , the open two-point error on is , and Milne’s error on is . These verify both signs and constants. Different rules generally have different values: a factor of two between constants does not imply that every pair of actual errors has that ratio.
The closed hierarchy: three-eighths and Boole
Week 7 also lists two higher-degree closed rules. Here remains the interpolation degree, , and :
Integrating the corresponding Lagrange bases gives these weights. Substitution into the moment equations verifies exactness through degree three and five respectively. A symmetric closed rule with even interpolation degree gains at least one extra degree: interpolation covers through , and the next centred monomial is odd, hence integrates and sums to zero. Odd has no such automatic extra guarantee.
Require for three-eighths and for Boole. There are respective remainder locations with
Their degrees of precision are exactly three and five.
Use the proved Peano representation. On the reference interval , the three-eighths fourth-order kernel on the left half is
Both terms are nonpositive; reflection covers the full interval. Piecewise integration gives .
For Boole on , the sixth-order kernel on the left half is
It is nonpositive for . On the remaining range use , whose derivative is
Thus , proving the kernel is still nonpositive. Reflect and integrate to get . The fixed-sign lemma and scaling give the error formulas. Nonzero errors on quartic and sextic monomials, together with moment exactness, establish the exact degrees of precision.
Both rules are also available in the experiment. Higher-degree rules require higher regularity; extra nodes alone do not certify greater accuracy.
Experiment: what curve is integrated?
This interactive figure needs JavaScript.
Switch rules to compare their nodes, weights, and green interpolants. Milne’s negative weight is intentional. The square-root example can be evaluated by midpoint and open rules, but its endpoint derivatives do not satisfy the standard error hypotheses.
If each sampled value has perturbation at most in magnitude, the quadrature perturbation is at most . This worst-case bound is attainable.
Apply the triangle inequality to the weighted perturbations. Choosing perturbation at node makes all contributions have the same sign and reaches the bound.
Positive weights give , whereas Milne gives . Increasing the degree of equally spaced interpolation is not automatically more reliable. A common alternative is to retain a low-degree rule and use composite quadrature on smaller panels.
References
- [1] S. Rojas, “Lecture Notes on Computational Mathematics,” 2025. Course lecture note distributed with MTH2051; local source course-lecture-notes.pdf. ↩
- [2] M. U. School of Mathematics, “MTH2051: Introduction to Computational Mathematics: Course Lecture Notes and Study Workbooks,” 2026. Monash University course materials and study workbooks, Semester 2, 2026. ↩
- [3] R. L. Burden and J. D. Faires, Numerical Analysis, 9th ed. Brooks/Cole, Cengage Learning, 2011. ↩
Comments