43.09.01 · numerical-analysis / 09-numerical-quadrature

Newton-Cotes rules and their error via the Peano kernel

shipped3 tiersLean: none

Anchor (Master): Davis-Rabinowitz 1984 *Methods of Numerical Integration* 2e (Academic Press) Ch. 2-4 (interpolatory and Newton-Cotes rules, the Peano kernel theory, the negative-weight instability of high-order rules); Brass-Petras 2011 *Quadrature Theory* (AMS) Ch. 1-2 (the error functional, Peano kernels, definiteness and best constants); Krylov 1962 *Approximate Calculation of Integrals* (Macmillan) Ch. 6-7 (Newton-Cotes coefficients and convergence)

Intuition Beginner

You often need the area under a curve between two points, but the function may be one you cannot integrate by hand, or you may only know its values at a few inputs. The oldest workaround is to replace the awkward curve by a simple one — a polynomial that agrees with it at a handful of sample points — and integrate the simple one instead. Because a polynomial's area is a quick sum, you get a fast estimate of the true area. This unit is about that idea, the standard recipes it produces, and how to say precisely how wrong each recipe is.

The recipes all share one shape. You pick a few sample inputs, read off the function's value at each, multiply each value by a fixed number called its weight, and add up the products. The weights depend only on where the sample points sit, not on the function, so you compute them once and reuse them forever. A rule with two endpoints gives the trapezium rule, which replaces the curve by a straight line and measures the area of the resulting trapezoid. A rule with two endpoints and the midpoint gives Simpson's rule, which fits a parabola instead.

A pleasant accident makes some of these recipes better than they look. A rule built to be exact for straight lines might, by a lucky symmetry, also be exact for cubics. Simpson's rule is the famous case: it is designed around a parabola yet integrates any cubic with no error at all. The largest degree of polynomial a rule integrates exactly is its badge of quality, and chasing a higher badge is what separates a crude rule from a sharp one.

The catch comes when you get greedy. Adding more evenly spaced sample points should buy more accuracy, and for a while it does. But past a certain point the weights start turning negative and swinging to large sizes, so small errors in the function values get amplified instead of averaged out. That is why the simple high-point recipes are abandoned in favour of either chopping the interval into many small pieces or placing the points more cleverly — the subjects of the next two units.

Visual Beginner

Picture the curve over an interval and the simple shape that stands in for it. For the trapezium rule the stand-in is the straight line joining the two endpoint values, and the estimate is the area of the trapezoid under that line. For Simpson's rule the stand-in is the parabola through the two endpoints and the midpoint, and the estimate is the area under that parabola. The table below lists the three basic rules, the simple shape each one integrates, and the badge — the highest polynomial degree the rule gets exactly right.

rule sample points stand-in shape highest degree exact
midpoint midpoint only flat bar
trapezium two endpoints straight line
Simpson two endpoints and midpoint parabola

Each row reads the same way: the stand-in shape is a low-degree polynomial, but the badge in the last column can be higher than the shape's own degree. The midpoint and Simpson rules each win a bonus degree from the left-right symmetry of their sample points, which is why Simpson, built on a parabola, is exact for every cubic.

Worked example Beginner

Let us estimate the area under from to with Simpson's rule, then compare with the exact answer.

Step 1. Find the exact area. The area under from to is the value of at the endpoints: . So the true area is .

Step 2. Set up Simpson's rule. It samples the two endpoints and and the midpoint . The rule is: take the width of the interval, divide by , and multiply by the combination "value at the left end, plus four times the value at the midpoint, plus value at the right end". The width is , so the prefactor is .

Step 3. Read off the three values. At , . At , . At , . The combination is .

Step 4. Assemble the estimate. Multiply the prefactor by the combination: . So Simpson's rule gives exactly .

Step 5. Compare. The estimate equals the true area — no error at all, even though is not a parabola.

What this tells us: Simpson's rule integrates the cube perfectly because its sample points are symmetric about the midpoint, and that symmetry makes the rule exact for every cubic. The bonus degree is not luck you hope for case by case; it is built into the rule.

Check your understanding Beginner

Formal definition Intermediate+

Throughout, , and are distinct nodes in ; is the space of real polynomials of degree at most , the Lagrange cardinal polynomials on the nodes from 43.08.01, and the node polynomial of 43.08.02. The notation means has continuous derivatives through order . For a real number , the truncated power is , and .

Definition (interpolatory quadrature rule). A quadrature rule on the nodes is a functional approximating . The rule is interpolatory if its weights are the integrals of the cardinal polynomials, $$ w_i = \int_a^b L_i(x),dx, \qquad i = 0, \dots, n, $$ equivalently if where is the interpolant of at the nodes. The error functional is , a linear functional in .

Definition (degree of exactness). The degree of exactness (or degree of precision) of a rule is the largest integer such that for every , while for some . An interpolatory rule on nodes has , since it integrates the interpolant exactly and the interpolant of any is itself.

Definition (closed Newton-Cotes rules). The closed Newton-Cotes rule of order uses the equispaced nodes , , including both endpoints. The first three are $$ \text{(trapezium, } n=1\text{)}\quad Q(f) = \tfrac{h}{2}\big(f_0 + f_1\big), \qquad \text{(Simpson, } n=2\text{)}\quad Q(f) = \tfrac{h}{3}\big(f_0 + 4f_1 + f_2\big), $$ $$ \text{(Simpson's } 3/8, \ n=3\text{)}\quad Q(f) = \tfrac{3h}{8}\big(f_0 + 3f_1 + 3f_2 + f_3\big), $$ with . The open midpoint rule ( interior node) is . Their degrees of exactness are , , , and respectively: the trapezium and Simpson's achieve , while the midpoint and Simpson rules gain one extra degree from the symmetry of their nodes about the interval midpoint.

Definition (Peano kernel). Let be a linear functional that annihilates , i.e. for all , and that is continuous on . Its Peano kernel of order is $$ K_r(t) = \frac{1}{(r-1)!},E_x\big[(x - t)+^{,r-1}\big], $$ the functional applied to the truncated power $x \mapsto (x-t)+^{r-1}t\int\prod\sum\partialu_+^k\pi_{n+1}$ are recorded in _meta/NOTATION.md.

Counterexamples to common slips Intermediate+

  • "The degree of exactness of a rule on nodes is exactly ." It is at least , and is strictly larger when the nodes are symmetric and is even: Simpson's rule on nodes has degree , not . The error functional kills the next monomial by an odd-symmetry argument, not by the interpolation count alone.

  • "A nonnegative integrand forces a nonnegative quadrature estimate." Only when all weights are nonnegative. High-order Newton-Cotes rules have negative weights, so can be negative for a strictly positive , and the rule amplifies data error rather than averaging it.

  • "The Peano kernel needs to be a polynomial." The kernel representation holds for every ; the polynomial-annihilation hypothesis is on the functional , supplying the exactness that makes the kernel well-defined, not on the integrand.

  • "A one-signed Peano kernel is automatic once annihilates ." Definiteness is an extra fact to be checked rule by rule. The trapezium and Simpson kernels happen to be one-signed, which is why their errors take the clean mean-value form; a general rule's kernel can change sign, and then only the integral bound survives.

Key theorem with proof Intermediate+

The signature result is the Peano kernel theorem: a linear functional that integrates polynomials up to degree exactly has its error written as a single integral of the -th derivative of against a fixed kernel determined by the functional alone. This separates the error into a function-dependent part — the derivative — and a rule-dependent part — the kernel — exactly as the interpolation error of 43.08.02 split into a derivative and the node polynomial. When the kernel keeps one sign, the mean value theorem collapses the integral to a single derivative evaluation, recovering the textbook error terms. This follows Süli-Mayers [Süli-Mayers §7.4].

Theorem (Peano kernel representation). Let be a linear functional on , continuous in the sense that it commutes with the integral remainder below, and suppose for all . Then for every , $$ E(f) = \int_a^b K_r(t), f^{(r)}(t),dt, \qquad K_r(t) = \frac{1}{(r-1)!},E_x\big[(x-t)_+^{,r-1}\big]. $$ If moreover does not change sign on , there exists with $$ E(f) = f^{(r)}(\eta)\int_a^b K_r(t),dt = \frac{E(x^r)}{r!},f^{(r)}(\eta). $$

Proof. Fix . Taylor's theorem with the integral form of the remainder 02.05.02, expanded about , gives $$ f(x) = \underbrace{\sum_{j=0}^{r-1} \frac{f^{(j)}(a)}{j!}(x-a)^j}{=:,p(x),\in,\Pi{r-1}} ;+; \frac{1}{(r-1)!}\int_a^x (x-t)^{r-1} f^{(r)}(t),dt . $$ Extend the inner integral to the full interval using the truncated power: since for and the truncated power vanishes for , the remainder equals . Apply to both sides. By hypothesis because , so annihilates the polynomial part and acts only on the remainder: $$ E(f) = E_x!\left[\frac{1}{(r-1)!}\int_a^b (x-t)+^{r-1} f^{(r)}(t),dt\right]. $$ Exchanging the order of and the integration over — legitimate because the remainder is jointly continuous and is built from integration and finite point-evaluations, both of which commute with the -integral by Fubini — moves inside: $$ E(f) = \int_a^b \frac{1}{(r-1)!},E_x\big[(x-t)+^{r-1}\big], f^{(r)}(t),dt = \int_a^b K_r(t),f^{(r)}(t),dt . $$ This is the representation. For the mean-value form, suppose throughout (the case is identical with signs reversed). Then is a nonnegative weight against which is integrated, and since is continuous, the weighted mean value theorem for integrals supplies with . Finally, applying the representation to the monomial , whose -th derivative is the constant , gives , so , and the mean-value form follows.

Corollary (trapezium and Simpson error terms). On a single interval with , the trapezium rule has degree of exactness , Peano kernel of order , and error $$ E(f) = -\frac{(b-a)^3}{12},f''(\eta), \qquad \eta \in (a,b). $$ Simpson's rule has degree of exactness , a one-signed Peano kernel of order , and error . The negative sign and the explicit constant both come straight from : the kernel's fixed sign is what licenses the single-point derivative evaluation.

Bridge. The Peano kernel theorem is the foundational reason quadrature error has the same architecture as interpolation error: both factor into a high derivative of , which the analyst cannot touch, and a fixed object determined by the rule — the node polynomial there, the kernel here. This is exactly the integrated form of the interpolation remainder, since integrating over produces an error functional annihilating , whose Peano kernel repackages into a one-signed weight. The result builds toward the composite and Gauss rules: it appears again in 43.09.02, where summing single-interval kernels across a partition gives the global and errors, and in 43.09.03, where maximising the degree of exactness past is the design principle of Gauss quadrature. The central insight is that exactness on is equivalent to the error depending only on , which generalises the single mean value theorem of 02.05.02 from one secant to an -th-order weighted average and is dual to the divided-difference reading of the interpolation remainder. Putting these together, the sign of the kernel is the whole question of whether a rule has a clean mean-value error or only an integral bound.

Exercises Intermediate+

Advanced results Master

The single-interval rules fix the local picture; the master layer turns the Peano representation into a precise theory of when a rule's error is sign-definite, how the negative-weight instability of high-order Newton-Cotes follows from the kernel sign structure, and why the entire equispaced family must be abandoned past moderate order.

Theorem 1 (Peano kernel, general order and best constant). Let be a continuous linear functional on annihilating . Then with , and the best possible bound is , with equality approached by functions whose -th derivative matches . When is one-signed the bound sharpens to the mean-value identity , and the error constant is [Brass-Petras Ch. 2]. The order at which one applies the theorem is the degree of exactness plus one; raising trades a higher derivative of for a smaller kernel, the quantitative form of the exactness-versus-smoothness exchange.

Theorem 2 (definiteness of the classical rules). The trapezium rule is negative definite of order : its kernel , error . The midpoint rule is positive definite of order , error — half the magnitude and opposite sign, so the two bracket the true integral for convex and their weighted average rescaled gives Simpson. Simpson's rule is negative definite of order , error [Davis-Rabinowitz Ch. 2]. Definiteness fails for high-order Newton-Cotes: the kernel of the closed rule changes sign, so no single-derivative mean-value form exists and only the integral bound remains, with .

Theorem 3 (negative weights and divergence of high-order Newton-Cotes). For the closed Newton-Cotes rule on equispaced nodes, the weights are rational and, beginning at , some are negative; the sum of absolute weights satisfies as , growing like [Davis-Rabinowitz Ch. 2]. By the Pólya-Steklov theorem a sequence of quadrature rules converges for every if and only if it is exact on a dense polynomial set and is finite; the unbounded absolute-weight sum makes high-order Newton-Cotes fail the second condition, so there exist continuous for which diverges. The mechanism mirrors the Runge phenomenon of 43.08.02 exactly: the same equispaced node polynomial whose sup norm swells near the endpoints produces the oscillating cardinal-polynomial integrals that are the negative weights.

Theorem 4 (the two repairs). Two structurally different repairs restore convergence. The composite strategy fixes the order at or and subdivides: applying the trapezium or Simpson rule on each of subintervals of width and summing gives error or with all weights positive and uniformly bounded, the subject of 43.09.02; the Euler-Maclaurin expansion there is the full asymptotic series whose leading term is the single-interval Peano constant. The Gauss strategy keeps a single interval but abandons equispacing, placing nodes at the roots of the degree- orthogonal polynomial to raise the degree of exactness from to while keeping all weights positive, the subject of 43.09.03. Both repairs are dictated by the Peano picture: composite rules shrink the kernel by shrinking the interval; Gauss rules shrink the error by raising the order past what any interpolatory equispaced rule can reach.

Synthesis. The Peano kernel theorem is the foundational reason quadrature error is one theorem seen at different orders: the error of any rule exact on is a single integral of against a fixed kernel, so analysing a rule reduces to analysing the one function . The central insight is that the sign of the kernel decides everything — a one-signed kernel gives the mean-value error and positive weights, while a sign-changing kernel gives only an integral bound and the negative weights that destroy convergence; this is exactly the line between the usable low-order rules and the discarded high-order Newton-Cotes family. Putting these together, the negative-weight instability is dual to the Runge phenomenon of 43.08.02: both are the endpoint swelling of the equispaced node polynomial, read once as interpolation divergence and once as quadrature divergence, with the same cure of clustering nodes or chopping the interval. The bridge is that raising exactness past the interpolation count demands either many small intervals (composite, 43.09.02) or non-equispaced nodes (Gauss, 43.09.03), and the Peano constant is the quantity each repair drives to zero. This generalises the single mean value theorem of 02.05.02 into an -th-order weighted-mean statement, and is the integrated shadow of the interpolation remainder of 43.08.02, one node polynomial governing both how well approximates and how well approximates .

Full proof set Master

Proposition 1 (interpolatory rules have degree of exactness ). An interpolatory quadrature rule on distinct nodes integrates every exactly.

Proof. Let . Its interpolant at the nodes is itself, by the uniqueness half of the unisolvence theorem of 43.08.01, since agrees with itself at the nodes and is the unique such polynomial of degree . The interpolatory rule is defined by , so . Hence the degree of exactness is at least .

Proposition 2 (one extra degree for symmetric rules with even ). If the nodes are symmetric about the interval midpoint and is even, the interpolatory rule has degree of exactness .

Proof. Translate so , i.e. with nodes symmetric: . Symmetric nodes give symmetric cardinal polynomials , hence symmetric weights . The error functional then annihilates every odd function: for odd , and , forcing . The monomial is odd when is even, so ; combined with exactness on (Proposition 1), the degree of exactness is . For Simpson () this gives degree .

Proposition 3 (Peano kernel representation). For continuous on annihilating and , with .

Proof. Taylor's theorem with integral remainder about writes with and . Replacing by extends the upper limit to without changing the value, since the integrand vanishes for . Apply : linearity and give . The functional is a finite combination of an integral over and point evaluations in ; each commutes with the -integral by the Fubini-Tonelli theorem applied to the jointly continuous integrand on the compact square. Interchanging yields .

Proposition 4 (sign-definite kernel gives the mean-value error and the error constant). If from Proposition 3 does not change sign, there is with , and .

Proof. Assume (otherwise apply the argument to ). Since attains its min and max , and , . If then for all and any works; otherwise dividing by places the quotient in , and the intermediate value theorem applied to the continuous supplies with , i.e. . For the constant, apply Proposition 3 to : then , so , whence .

Proposition 5 (operator norm and the convergence criterion). The quantity is the operator norm of the rule on , and a family exact on a dense polynomial set converges for all iff .

Proof. For , , so ; choosing continuous with and gives , so . For convergence, the functionals are bounded on with norms controlled by ; if they are uniformly bounded, and since they vanish on the dense polynomial subspace, the Banach-Steinhaus theorem gives for every . Conversely, if , the uniform boundedness principle produces an with , so convergence fails. This is the Pólya-Steklov theorem; the divergence of high-order Newton-Cotes follows from .

Connections Master

  • The quadrature weights are integrals of the Lagrange cardinal polynomials of 43.08.01, and the rule is exact on because it integrates the interpolant; the Newton-form and barycentric machinery of that unit supplies the cardinal polynomials whose integrals are tabulated as the Newton-Cotes coefficients, and the same node polynomial that controls interpolation error reappears as the kernel-generating object here.

  • The Peano kernel representation is the integrated form of the interpolation error theorem of 43.08.02: integrating over yields an error functional annihilating , and the negative-weight divergence of high-order equispaced Newton-Cotes is the quadrature face of the Runge phenomenon, driven by the identical endpoint swelling of the equispaced node polynomial that drives interpolation divergence.

  • The composite trapezium and Simpson rules of 43.09.02 sum the single-interval Peano errors across a partition to obtain the global and convergence, and the Euler-Maclaurin formula developed there is the full asymptotic expansion whose leading coefficient is the single-interval error constant computed in this unit; Romberg integration extrapolates that expansion.

  • Gauss quadrature in 43.09.03 is the response to the degree-of-exactness ceiling found here: by placing nodes at the roots of the degree- orthogonal polynomial of 43.08.05 rather than at equispaced points, it raises the exactness from to and keeps all weights positive, escaping the negative-weight instability that the Peano kernel sign analysis of this unit exposes.

  • The mean-value collapse of the sign-definite kernel rests on the same weighted mean value theorem for integrals that underlies the Lagrange remainder of 02.05.02; the Peano representation generalises the single mean value theorem to an -th-order statement, recovering the Taylor remainder as the special case where the functional is point evaluation minus its Taylor polynomial.

Historical & philosophical context Master

Interpolatory integration by equispaced ordinates was systematised by Isaac Newton in the Methodus differentialis (circulated 1676, published 1711) and tabulated for low orders by Roger Cotes, whose posthumous Harmonia mensurarum (1722) gave the coefficients for the rules through eleven points; the family has carried both names since. Thomas Simpson published the three-point parabolic rule in his Mathematical Dissertations (1743), though the rule was known to Cavalieri and Gregory earlier, another of the subject's standard misattributions [Newton 1711].

The systematic error theory is twentieth-century. Giuseppe Peano gave the kernel representation of the remainder of a quadrature formula in a 1913 note in the Rendiconti of the Accademia dei Lincei, expressing the error of any linear functional vanishing on polynomials up to a fixed degree as a definite integral of a derivative of the integrand against a fixed kernel obtained by applying the functional to the truncated power [Peano 1913]. The divergence of high-order Newton-Cotes was established through the Pólya-Steklov convergence criterion: George Pólya in 1933 and Vladimir Steklov independently characterised convergence of quadrature sequences by uniform boundedness of the absolute-weight sums, explaining why the negative weights that first appear at the eight-point closed rule are fatal. The definiteness theory and best-constant analysis were developed by the mid-century quadrature school surveyed by Philip Davis and Philip Rabinowitz and given its modern functional-analytic form by Helmut Brass and Knut Petras.

Bibliography Master

@book{sulimayers2003,
  author    = {S\"{u}li, Endre and Mayers, David F.},
  title     = {An Introduction to Numerical Analysis},
  publisher = {Cambridge University Press},
  year      = {2003}
}

@book{davisrabinowitz1984,
  author    = {Davis, Philip J. and Rabinowitz, Philip},
  title     = {Methods of Numerical Integration},
  edition   = {2},
  publisher = {Academic Press},
  year      = {1984}
}

@book{brasspetras2011,
  author    = {Brass, Helmut and Petras, Knut},
  title     = {Quadrature Theory: The Theory of Numerical Integration on a Compact Interval},
  series    = {Mathematical Surveys and Monographs},
  volume    = {178},
  publisher = {American Mathematical Society},
  year      = {2011}
}

@article{peano1913,
  author  = {Peano, Giuseppe},
  title   = {Resto nelle formule di quadratura espresso con un integrale definito},
  journal = {Atti della Reale Accademia dei Lincei, Rendiconti},
  volume  = {22},
  year    = {1913},
  pages   = {562--569}
}

@book{krylov1962,
  author    = {Krylov, Vladimir I.},
  title     = {Approximate Calculation of Integrals},
  publisher = {Macmillan},
  year      = {1962}
}

@article{polya1933,
  author  = {P\'{o}lya, George},
  title   = {\"{U}ber die Konvergenz von Quadraturverfahren},
  journal = {Mathematische Zeitschrift},
  volume  = {37},
  year    = {1933},
  pages   = {264--286}
}