How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Composite quadrature rules
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Filters and Ultrafilters
- Foundations of the Real Numbers for Analysis
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
Objective
This page supplies exact uniform-panel midpoint and composite Simpson procedures, their derivative-norm error bounds, and Simpson exactness through cubic degree. The composite trapezoid definition and its matching error theorem already have canonical published homes: Composite trapezoidal rule and Second-derivative error bound for the composite trapezoidal rule. They are used here without duplicating their carriers. All bounds concern exact-real quadrature; floating point evaluation and summation error are separate. The midpoint proof uses an explicit nonnegative panel kernel. The Simpson proof supplies its own signed Peano kernel and then sums over the even number of panels.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Composite midpoint rule on a uniform grid
Definition
Input real endpoints , an integer , and a function . If or , return invalid-grid without evaluating . For the remaining inputs, require a real-valued function evaluable at every point of . Put and for . The composite midpoint rule returns
The sum is the finite sum of Finite sums and finite products, by recursion. The admissibility conditions and ensure and all . The rule is an exact-real formula; floating-point evaluation and summation error are separate from its quadrature error.
Composite Simpson rule on an even uniform grid
Definition
Input real endpoints , an integer , and an evaluation function . If or , return invalid-grid without evaluating . For the remaining inputs require to be evaluable at every point of . If is odd, the procedure returns invalid-Simpson-panel-count. If is even, put and for ; return
The sum is a finite sum of Finite sums and finite products, by recursion. Each two-panel block uses its endpoints and midpoint. Expanding the block sum gives weights . The even condition makes the number of blocks a positive integer. The formula is an exact-real procedure; floating point evaluation and summation error are separate from its quadrature error.
Midpoint panel error kernel and second-derivative bound
Statement
Let , , and in the sense of Higher derivatives and the classes and . Define
Then is nonnegative and continuous,
and, with ,
In particular, if on , the panel midpoint value does not exceed the integral.
Facts & Assumptions
Given: Reals and .
Higher derivatives and the classes and : means that , , and are continuous on the closed interval, with endpoint derivatives interpreted from within the interval.
If are differentiable on with integrable, then : for differentiable with integrable derivatives, on a closed interval.
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : an integrable function's integral over two adjacent intervals is the sum of the two integrals.
Every continuous function on a closed nondegenerate rectangle in is Riemann integrable: every continuous real function on a closed nondegenerate rectangle in , , is Riemann integrable; here and the rectangle is .
Heine-Borel by bisection: every closed bounded interval is compact: the closed interval is compact.
Extreme value theorem: a continuous real function on a nonempty compact subset of attains a greatest and a least value: a continuous real function on a nonempty compact subset of attains its maximum and minimum.
If on and both are integrable then ; and : pointwise order between integrable functions on an increasing interval gives the same order between their integrals.
Integrable functions on form a set closed under sums and scalar multiples, and : the integral of a scalar multiple of an integrable function is the same scalar multiple of its integral.
The second fundamental theorem: if is differentiable on with and is integrable, then : if is differentiable on , , and is integrable, then .
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: constants and the identity are continuous; sums, scalar multiples and products preserve continuity, so every polynomial function and its product with are continuous on each interval where the polynomial formula for applies.
The chain rule, in one line from Carathéodory: if is differentiable at and is differentiable at , then is differentiable at with : the derivative of a differentiable composition is the outer derivative at the image multiplied by the inner derivative.
Sums, scalar multiples, products and quotients: , , , and when : derivatives of sums and scalar multiples are the corresponding sums and scalar multiples of the derivatives.
Proof
By [F1], is continuous and is compact by [F5], so [F6] gives the finite maximum . Each formula for is polynomial and hence continuous by [F10]; the two formulas agree at , so is continuous on and nonnegative on both halves. Thus is continuous by [F10], and , , , and their restrictions are integrable by [F4].
On , , , , and inside; applying [F2] first to and then to gives , with all hypotheses valid because is polynomial on this half and .
On , , , , and inside; the same two applications of [F2] give .
Adding steps 2.1 and 2.2 cancels the terms, sums the terms to , and by additivity [F3] yields .
The chain rule [F11], power rule [F12], and scalar rule [F13] show that is an antiderivative of the left formula for , and is an antiderivative of the right formula. The FTC [F9] therefore gives and ; additivity [F3] gives . Since and , one has ; monotonicity [F7] and linearity [F8] give , and if they also give . Step 3.1 transfers the bound and sign to the midpoint error.
Composite midpoint error bound for a twice continuously differentiable function
Statement
Let , let be an integer, and put . If , define . The composite midpoint value of Composite midpoint rule on a uniform grid satisfies
The integral is the Riemann integral. This is an exact-arithmetic quadrature bound; evaluation and summation roundoff are not included.
Facts & Assumptions
Given: Reals , an integer , , and .
Composite midpoint rule on a uniform grid: is the sum of the values at the panel midpoints, each multiplied by .
Midpoint panel error kernel and second-derivative bound: on a panel of length , the difference between its integral and its midpoint value times has absolute value at most .
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : the integral over a finite partition is the sum of the integrals over its adjacent panels.
Triangle inequality for finite sums: the absolute value of a finite sum is at most the sum of the absolute values.
Proof
Put and for . Each panel has length and inherits the restriction of ; . By [F2], its midpoint error obeys .
Repeated application of [F3] gives . By [F1], , so subtraction gives .
The finite-sum triangle inequality [F4] and step 1.1 yield . Since , this is the claimed bound.
Peano kernel identity for one Simpson panel
Statement
Let , put and , and let . Define the one-block Simpson value and its kernel by
Then
and with . The value is the one-block specialization of Composite Simpson rule on an even uniform grid.
Facts & Assumptions
Given: Reals , , , and .
Composite Simpson rule on an even uniform grid: on two subintervals of equal width , the Simpson output is .
Higher derivatives and the classes and : means all derivatives through order four exist and are continuous, with endpoint derivatives taken from within the interval.
If are differentiable on with integrable, then : for differentiable with integrable derivatives, on a closed interval.
Every continuous function on a closed nondegenerate rectangle in is Riemann integrable: every continuous function on a closed nondegenerate interval is Riemann integrable.
The second fundamental theorem: if is differentiable on with and is integrable, then : an integrable derivative has integral equal to the endpoint increment of its antiderivative.
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: constants and the identity are continuous; sums, scalar multiples and products preserve continuity, so the polynomial pieces of and their products with are continuous on each half-panel.
Sums, scalar multiples, products and quotients: , , , and when : derivatives of sums and scalar multiples are the corresponding sums and scalar multiples of their derivatives.
The chain rule, in one line from Carathéodory: if is differentiable at and is differentiable at , then is differentiable at with : the derivative of a differentiable composition is the outer derivative at the image multiplied by the inner derivative.
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : the integral over two adjacent closed subintervals is the sum of their integrals.
Proof
On the left half, with ; hence , , and at its value and first two derivatives are , , and , while . The right-half formula gives , , and . Thus match at . Each polynomial formula for and its product with the continuous is continuous on its closed half by [F2] and [F6]. Both formulas agree at , so and are continuous on ; also is continuous by [F2]. These functions and their restrictions are integrable by [F4].
On each closed half, every derivative for is polynomial and continuous by [F6], and every for is continuous by [F2]. They are all integrable by [F4], so the four applications of integration by parts [F3] satisfy their derivative-integrability hypotheses. They give , where and the bracket is the endpoint difference for that half. Summing the brackets, the terms at involving cancel, while the jump in contributes ; the outer endpoints contribute . Additivity [F10] combines both half-integrals of and of ; the remaining integral is because . By [F1], this is precisely , proving the identity.
Since on the left half, , so there; the right formula gives the same sign. Define on . The power rule [F7], chain rule [F9], and sum/scalar rules [F8] give . By the FTC [F5], additivity [F10], and symmetry of the two kernel pieces, and , .
Composite Simpson rule is exact through cubic degree
Statement
Let , let be an even integer, and let with real coefficients. Then
where is the composite Simpson value of Composite Simpson rule on an even uniform grid.
Facts & Assumptions
Given: Reals , an even integer , and .
Composite Simpson rule on an even uniform grid: the composite value is .
Peano kernel identity for one Simpson panel: on a panel, the error equals the integral of its Peano kernel times the fourth derivative.
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : the integral over the partition is the sum of the integrals over its adjacent blocks.
For a natural the function is differentiable everywhere with derivative ; for it is the constant , with derivative ; for a natural the function is differentiable at every with derivative ; consequently every polynomial function is differentiable at every real, with the derivative computed term by term: for , , and has derivative zero.
Sums, scalar multiples, products and quotients: , , , and when : sums and scalar multiples of differentiable functions have the corresponding derivatives.
Higher derivatives and the classes and : requires that and its derivatives through order four exist and are continuous on .
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: every polynomial function is continuous on its domain.
Proof
Repeated use of [F4] and the sum/scalar rules in [F5] gives, for every real , These formulas establish existence of all derivatives through order four, including their restrictions to the endpoints with the one-sided convention. Each of and is a polynomial function, hence continuous by [F7]. Thus by [F6], and .
For every block , the restriction of is and has fourth derivative zero. The Peano-kernel identity [F2] makes that block's Simpson error .
By [F3], summing the exact block integrals gives . Summing the block Simpson values from [F1], each endpoint appears once, each odd interior node appears with coefficient , and each even interior node appears with coefficient . This is exactly the composite formula [F1], so the global rule is exact.
Composite Simpson error bound for a four-times continuously differentiable function
Statement
Let , let be an even integer, and put . If , set . Then the value of Composite Simpson rule on an even uniform grid satisfies
The integral is the Riemann integral. This is an exact-arithmetic quadrature bound; evaluation and summation roundoff are not included.
Facts & Assumptions
Given: Reals , an even integer , , and .
Higher derivatives and the classes and : makes continuous on the closed interval.
Heine-Borel by bisection: every closed bounded interval is compact: every closed bounded interval is compact.
Extreme value theorem: a continuous real function on a nonempty compact subset of attains a greatest and a least value: a continuous real function on a nonempty compact subset of attains its maximum.
Composite Simpson rule on an even uniform grid: the composite value is the sum, over , of .
Peano kernel identity for one Simpson panel: on a panel of length , the Simpson error is , where and .
For : is integrable on if and only if it is integrable on and on , and then ; with the oriented form for arbitrary : the integral over a finite partition is the sum of its integrals over the adjacent panels.
Triangle inequality for finite sums: the absolute value of a finite sum is at most the sum of the absolute values.
If on and both are integrable then ; and : pointwise order between integrable functions on an increasing interval gives the same order between their integrals.
Integrable functions on form a set closed under sums and scalar multiples, and : scalar multiples of integrable functions are integrable and their integrals scale by that scalar.
Proof
By [F1], is continuous. The interval is compact by [F2], so [F3] gives . For each , put and . The local rule from [F4] is ; by [F5], its error is and . Since , its absolute value equals its negative, hence is integrable by [F5] and [F9]. The integrable functions satisfy . Monotonicity [F8] and scalar linearity [F9] therefore give .
Additivity [F6] gives as the sum of the local panel integrals. Summing the local Simpson expressions in [F4], each interior even-indexed value appears in two adjacent blocks and each odd-indexed value appears once; hence their sum is exactly . Therefore the global error is .
The finite-sum triangle inequality [F7] yields . Using gives the stated bound.
5 · Examples, counterexamples and false statements
None yet.