Error bound for composite Simpson's rule 2026-10-18
Suppose has a fourth derivative that is a continuous function on the interval , and there. With , the signed quadrature error here is . Then, for some point ,In particular, a strictly positive fourth derivative makes : composite Simpson's rule overestimates the integral.[ref]
The bound's scale follows by adding the panel errors. A panel of width has signed quadrature error and absolute error at most . There are panels, so the triangle inequality gives . The intermediate value theorem for the continuous fourth derivative replaces the average of the panel values by a single value , giving the signed formula.
The underlying single-panel calculation can be seen through the Peano kernel theorem. On the interval , define the raw Peano kernel , where is integral minus Simpson's rule and is the positive part. Then for and for . It is strictly negative inside the interval and has integral . ThusThe uniform norm bounds the fourth derivative. The polynomial attains equality. Scaling to endpoint spacing multiplies the coefficient by , giving the sharp single-panel bound . The normalized Peano kernel is , so the external factorial must be omitted when using that normalization.
For the exponential function on , , so and the bound is . Its leading actual absolute error is , smaller than the bound because a uniform upper bound on the fourth derivative does not use its variation across the interval. The theorem bounds truncation error with exact function evaluations; sample errors and roundoff error are additional contributions, as described by noise sensitivity of a quadrature rule.
Midpoint quadrature rule Created 2026-10-03 Updated 2026-10-14
The midpoint quadrature rule replaces the integrand on , , by its value halfway across the interval:Geometrically, is the signed area of a rectangle with width and height . Its single quadrature node is and its quadrature weight is . Sampling in the interior is useful when endpoint evaluation is inconvenient, although an endpoint singularity can invalidate the quadrature error estimates below.
The midpoint quadrature rule is exact for every affine function : the average height over an interval equals its midpoint height. For example, on , gives and . Positive and negative area discrepancies cancel for a sloping straight line. For the polynomial on , however, and , giving approximation error . Thus its degree of precision of a quadrature rule is exactly one.[ref]
5.8 Numerical Integration. §5.8, printed p. 223: midpoint rectangles, linear exactness and signed quadratic errors
For the polynomial on , four panels give composite midpoint quadrature rule value and composite trapezoidal rule value , bracketing the exact integral . Individual midpoint rectangles can cross the curve; it is their total signed area that underestimates the integral.
For , meaning that its first two derivatives exist and are continuous functions on the closed interval, the signed approximation error has the formHence a convex function with is underestimated, and a concave function with is overestimated. A short justification uses the Taylor formula with integral remainder: writing , it gives , where for and for . This nonnegative Peano kernel has integral , so the weighted mean value theorem for integrals gives the stated sign and coefficient.
For a real-valued linear error functional annihilating , the Peano kernel iswhere is the argument on which the functional acts. Under the standard boundedness and extension hypotheses, the Peano kernel theorem statesFor example, a bounded functional on continuous functions, represented by a finite signed measure and extended to the truncated powers, has this representation. Quadrature error functionals have precisely this structure.
The source's bare linearity assumption on is not by itself a complete theorem hypothesis. Truncated powers need not belong to that domain, and interchange of the functional with an integral needs justification. For instance annihilates but would require a Dirac point mass rather than an ordinary integrable kernel. The statement above supplies the usual functional class needed for the requested theorem and applies directly to part (c).
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 3 22A Solution Created 2026-09-24 Updated 2026-10-14
Let . Direct substitution shows , so the functional annihilates all quadratic polynomials. Taylor's integral-remainder formula isApplying and interchanging the finite evaluations and derivative with the continuous integral gives the Peano kernel representation , whereAll three expressions are nonnegative; the middle quadratic has positive leading coefficient and discriminant . Therefore the best possible norm bound has constant . Evaluate that integral particularly simply by using , for which :It follows thatThe same cubic attains equality, so the constant is sharp, not merely sufficient. This is the sharp Peano bound for an interior three-point first derivative.
Past exam of the mathematics course of the University of Cambridge 2007 ib Paper 4 8F Solution Created 2026-09-24 Updated 2026-10-14
Let . Direct evaluation on gives , so the Peano kernel theorem givesThis representation also follows by applying to the Taylor expansion of with integral remainder. The derivative at zero of the truncated quadratic is zero for , and its sampled values giveThe Peano kernel is nonnegative, andHence . For , the third derivative is , while and . Thus equality holds, proving the least constant is , attained by .
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 3 19D Solution Created 2026-09-24 Updated 2026-10-14
Start with Taylor's theorem with integral remainder, written on the whole interval using truncated powers:For the Peano kernel theorem, require that be a linear error functional, annihilate all polynomials of degree at most , and permit interchange with this integral. These conditions hold, in particular, for finite linear combinations of point evaluations of and its derivatives through order , with the truncated-power derivatives interpreted almost everywhere in ; dominated integration justifies the interchange. Another sufficient setting is a bounded functional on a differentiability space where the truncated-power integral is convergent in its norm. Polynomial exactness alone, without linearity and an integration-interchange justification, is not sufficient.
Applying annihilates the Taylor polynomial and givesThis is the unnormalized Peano kernel convention used by the question; including within the kernel instead removes the factor outside the integral.
For the stated derivative error, constants and linear and quadratic polynomials are annihilated, so . Acting on givesThus the sharp central-secant derivative error satisfiesHence works. It is the minimum: for , and , so no smaller constant can satisfy the inequality. ThereforeThe sign-definite kernel explains why a constant third derivative attains the bound exactly.
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 3 19C Solution Created 2026-09-24 Updated 2026-10-14
Assume is linear, annihilates all polynomials of degree at most , is defined on the truncated-power kernels and permits interchange with the remainder integral. For , a convenient sufficient condition is that be a bounded linear functional on ; more general approximation functionals need the corresponding continuity/interchange property on their domain. Taylor's integral remainder givesApplying , the polynomial terms vanish, and the Peano kernel theorem givesHere . This is the printed raw-kernel convention; the normalized Peano kernel includes inside its definition instead, and then has no factorial outside the integral. The interchange is justified by boundedness applied to the limit of Riemann sums of the continuous kernel-valued integrand. For a kernel with , its discontinuity requires a function space/interchange assumption accommodating the step functions as well.
For the specified Simpson's rule error, direct evaluation on gives zero, so . For ,Simplifying separately on the two halves givesBoth pieces are strictly negative in the open interval; they agree at the midpoint. Their integral is , as direct polynomial integration shows. ThusThis is optimal, not merely an upper bound. For , the fourth derivative is identically one and , so the minimum constant is .
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 2 19C Solution Created 2026-09-24 Updated 2026-10-14
For the Peano kernel theorem, the integral Taylor remainder isHere . The error functional must be linear, vanish on every polynomial of degree at most , and permit its action to be interchanged with this remainder integral. The last regularity condition holds for the finite combinations of point evaluations and derivative evaluations used below, by applying the corresponding differentiated remainder formula. Under these conditions the polynomial terms vanish, yielding
For the three-point asymmetric second-derivative formula, choose the error convention . Exactness on giveshenceApplying to , for almost every , gives the Peano kernelThe value at is immaterial to the integral. The sketch rises from zero through at one to the left limit at two, jumps down to the right limit , and then rises to zero at three.
The sharp error constants for a Peano kernel are the corresponding integral-operator norms. HereAs ,Indeed, and . They are best possible even for : for , choose continuous nonnegative third derivatives concentrated just left of two with unit integral; for , approximate the sign of by continuous functions of supremum norm one. Integrating any such third derivative three times supplies an admissible , and the resulting ratios approach the stated constants.
Peano kernel for the asymmetric three-point second derivative, showing its jump at two and the positive and negative regions controlling sharp error bounds
. Details. Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 3 19D c Solution Created 2026-09-24 Updated 2026-10-06
The Peano kernel theorem says that if a continuous linear error functional annihilates all polynomials of degree less than and permits the required interchange with integration, then for ,It follows by applying to the integral-remainder Taylor formula with integral remainder. Here choose andThis functional annihilates constants and linear functions (indeed quadratics too), and its Peano kernel isThus and . The integral representation givesFor the first inequality, continuous functions with can approximate away from its zeros, making arbitrarily close to . Such derivatives integrate twice to admissible functions, proving no smaller works. For the second, use continuous of norm one concentrated near or , where , with the sign of there. This makes approach , proving optimality of .
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 3 19C Solution Created 2026-09-24 Updated 2026-10-05
Let be the distinct interior roots of where its sign changes, and put . If , orthogonality gives . But has constant sign on , apart from its isolated zeros, because every sign change has been canceled. It is not identically zero, and the positive weight makes its integral nonzero, a contradiction. Thus . Degree forces exactly distinct simple roots, all inside .
For distinct nodes, let . Lagrange interpolation polynomial gives for every polynomial of degree at most . Integrating this identity proves exactness with .
For the Gaussian quadrature nodes, divide any as , with . The integral of vanishes by orthogonality, and its nodal values vanish because . The remaining polynomial is integrated exactly by the preceding interpolation result. HenceIts weights are positive: exactness applied to gives .
Define the error functional . It annihilates polynomials of degree at most . For , the Peano kernel theorem giveswhere a formal Peano kernel with the normalization made explicit isNo evaluation of is needed. The supplied inner product presupposes an integrable positive weight on the finite interval, so the integral and point-evaluation error functional is bounded on continuous functions.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 3 19D Solution Created 2026-09-24 Updated 2026-10-03
Repeated integration by parts inproduces the first terms of the Taylor polynomial and leaves , proving the integral remainder in Taylor theoremApply the linear functional to this identity. It annihilates the Taylor polynomial, and commuting it with integration gives the Peano kernel theorem
For the midpoint quadrature rule on , , so . Its Peano kernel isFor , the formula givesagreeing with .
Peano kernel of the third forward difference 2026-10-31
For , the third forward difference annihilates polynomials of degree at most two. Its Peano kernel is for , extended by zero outside that interval. It is times the quadratic cardinal B-spline evaluated at , is positive on , and has integral . The Peano kernel theorem therefore represents as a positive weighted average of the third derivative: for some interior when that derivative is continuous. The kernel is the smooth error weight hidden inside a discrete difference.
Sharp central-secant derivative error 2026-10-14
For , the Peano kernel for the error of the central secant slope has one sign. Integrating its absolute value gives the displayed constant , and a cubic polynomial attains it. At , , the unnormalized order-two kernel is on and on ; the integral representation includes the factor .
For on , quadratic polynomials are annihilated. Taylor's formula with integral remainder gives with . This Peano kernel is nonnegative throughout the interval and integrates to , giving the sharp bound; attains equality. The derivative is at an interior point, so this is distinct from an endpoint differentiation formula.
For on , the Peano kernel isThe Taylor expansion with integral remainder gives , because annihilates polynomials of degree at most two. Since and , the sharp bound is . Equality holds for .
Three-point asymmetric second-derivative formula Created 2026-10-06 Updated 2026-10-20
Matching the monomials gives . With error defined as the true derivative minus this approximation, its Peano kernel is on . The derivative evaluation causes a jump at two. Applying the Peano kernel theorem gives .
Trapezoidal rule Created 2026-09-24 Updated 2026-10-14
As a quadrature rule, the trapezoidal rule replaces an integrand by the linear interpolation joining its two endpoint values:For nonnegative endpoint values, this is the area of a trapezoid; in general it is a signed area. The quadrature nodes are , each with quadrature weight . Unlike the midpoint quadrature rule, it uses endpoint samples, which can be reused between adjacent panels.
Every affine function agrees with its linear interpolation, so the trapezoidal rule integrates it exactly. On , gives . On , the polynomial instead gives , exceeding by . Its degree of precision of a quadrature rule is exactly one.
If , its signed approximation error satisfiesA convex function lies below its endpoint chord, so the trapezoidal rule overestimates its integral; a concave function gives the reverse inequality. The error formula assumes that the second derivative exists and is a continuous function throughout the closed interval.[ref]
3.5 Quadrature, subsection (i) Trapezoidal Rules. §3.5(i), equation 3.5.1 and its C² hypothesis; the source writes integral minus rule
A short derivation is the identityobtained by two integrations by parts. The nonnegative Peano kernel has integral , and the weighted mean value theorem for integrals gives the formula.The trapezoidal rule for an ordinary differential equation averages vector fields at the old and new states and is A-stable.
This time-stepping use applies the same trapezoidal rule to the integral of the derivative in an ordinary differential equation. That connection explains its place under implicit Runge-Kutta methods; its quadrature behavior and the nonlinear issue in trapezoidal rule fails B-stability concern different uses of the same endpoint averaging.

