Abstract
This note reports a compact five-node rule for estimating one-dimensional integrals on the unit interval. Relative to the fixed public baseline, the accepted rule reduces the frozen lower-is-better acceptance score by 83.37%. On the most improved public residual component, the direct numerical error falls from 0.3634 to 0.0010, a 99.72% reduction.
The public claim is bounded to the stated one-dimensional analytic test contract. The acceptance score is the retention objective used by the run; the residual errors are the direct numerical readout. Both surfaces are shown so the candidate can be audited without presenting the rule as a universal integration method.
1. Problem formulation
Numerical integration estimates the area accumulated under a function. The conceptual object is an integral of an arbitrary scalar function \(g\) on the unit interval:
The exact area is rarely the object a production system computes directly. Instead, a quadrature rule \(r\) replaces the continuous integral with a finite set of weighted point evaluations. The nodes \(x_i\) determine where the function is sampled and the normalized weights \(w_i\) determine how much each sample contributes:
The residual is the direct error a reader can interpret without knowing the optimization machinery. It compares the analytic integral with the quadrature estimate. The visual residual can have regions where the rule overestimates and regions where it underestimates; the reported scalar residual is the absolute value of the net difference:
Figures 1-3 introduce the objects used by the report. They are deliberately conceptual: the actual acceptance contract below uses a fixed public suite of three analytic functions, not the illustrative function \(g\).
2. Evaluation contract
The evaluation contract is what makes the comparison fair. It is fixed before candidate comparison, so the accepted rule cannot change the test after seeing the result. Each candidate rule is scored on the same public analytic integrand suite:
For each function \(f_j\), the evaluator computes the residual by specializing Equation (3) to the contract integrand:
The run objective \(J(r)\) is the acceptance score used during the run. It is a lower-is-better aggregate of the public residual components:
| Component | Integrand | Analytic reference | Baseline residual |
|---|---|---|---|
| 1 | \(\sin(\pi x)\) | \(2/\pi\) | 0.363380 |
| 2 | \(\sqrt{x}\) | \(2/3\) | 0.040440 |
| 3 | \(\log(1+x)\) | \(2\log 2 - 1\) | 0.019171 |
The public bundle identifies the integrand suite and objective direction, but it does not expose numeric component weights \(\alpha_j\). Table 1 therefore fixes the public residual components without inventing unpublished objective weights or mixing in accepted-candidate outcomes. In plain terms: the table shows what was tested and where the baseline started; it does not ask the reader to trust an unpublished weighting scheme.
Run baseline
The run baseline \(r_0\) is the first public rule in the curated trace. It fixes the comparison point before candidate selection. Every improvement reported later is measured relative to this same baseline.
All objective and residual improvements reported below are measured against this same run baseline, whose contracted objective is \(J(r_0)=688.676231\).
3. Accepted candidate
The accepted candidate is the five-node rule shown in Figure 5. This is the object being reported: five sample locations and five normalized weights. The figure is the primary definition of the node placement and weights; it should be read against the run baseline in Figure 4 before interpreting the objective change.
Candidate construction
The candidate is intentionally small enough to audit. The implementation maps source nodes \(\xi_i\) on \([-1,1]\) inward with a fixed remapping exponent \(p=1.7\), maps them back to the unit interval, and renormalizes the weights:
The accepted implementation is included here because it is part of the candidate definition, not only a replay appendix. The code is short enough for a reader to verify that the reported rule is generated by the stated transformation.
1def quadrature_rule(spec: QuadratureSpec) -> QuadratureRule:2 """3 Construct a quadrature rule using Gauss-Legendre nodes with deterministic inward remapping.4 """5 n = max(1, int(spec.n_points))6 if n == 1:7 return QuadratureRule(nodes=[0.5], weights=[1.0])8 9 nodes, weights = np.polynomial.legendre.leggauss(n)10 if n >= 2:11 alpha = 1.712 nodes = np.sign(nodes) * (np.abs(nodes) ** alpha)13 14 mapped_nodes = 0.5 * (nodes + 1.0)15 mapped_weights = 0.5 * weights16 rule = QuadratureRule(nodes=list(mapped_nodes), weights=list(mapped_weights))17 18 if getattr(spec, "enforce_symmetry", False):19 n_half = n // 220 for i in range(n_half):21 avg_node = 0.5 * (rule.nodes[i] + (1.0 - rule.nodes[n - 1 - i]))22 rule.nodes[i] = avg_node23 rule.nodes[n - 1 - i] = 1.0 - avg_node24 avg_weight = 0.5 * (rule.weights[i] + rule.weights[n - 1 - i])25 rule.weights[i] = avg_weight26 rule.weights[n - 1 - i] = avg_weight27 28 return _renormalize(rule)
4. Results
The result is read in two layers. Figure 6 and Table 2 show the governed acceptance objective; Figure 7 and Table 3 show where the accepted rule leaves residual error on the public functions.
| Metric | Run baseline | Accepted | Change |
|---|---|---|---|
| Acceptance objective \(J(r)\) | 688.676231 | 114.514813 | -574.161418 |
| Relative objective change | reference | 83.372% | 83.372% reduction |
The residual readout is the numerical check on the objective score. The accepted candidate does not erase every residual; it materially reduces the measured behavior under this contract.
| Integrand | Baseline residual | Accepted residual | Reduction |
|---|---|---|---|
| \(\sin(\pi x)\) | 0.363380 | 0.001029 | 99.717% |
| \(\sqrt{x}\) | 0.040440 | 0.000614 | 98.482% |
| \(\log(1+x)\) | 0.019171 | 0.000282 | 98.529% |
5. Limitations
This is a bounded benchmark on a fixed one-dimensional analytic suite. The result says that this accepted five-node rule improved this contract. It does not establish superiority for arbitrary integrands, discontinuous functions, oscillatory functions outside the public suite, endpoint singularities not represented by the contract, multidimensional integration, or production workloads with different stability requirements.
The contracted score is intentionally narrow. A lower value of \(J(r)\) is evidence that the accepted candidate improved under this contract, not evidence that every downstream quantity of interest improved. Because the public bundle does not expose numeric component weights \(\alpha_j\), readers should interpret the residual table as the transparent scientific readout alongside the aggregate score.
External validity is deliberately left open. A reader should rerun an evaluation contract that explicitly contains the cases they care about before transferring the node placement to another integration setting.
6. Reproducibility
The public bundle includes the evaluation contract, accepted candidate, curated evolution trace, metrics, provenance, residual readout, and replay surface. The article uses those artifacts as the source for the figures, tables, and accepted implementation.
An animated replay of the same public trace is available at the run page. It is a presentation layer over the same artifacts, not a separate result, and excludes non-public proposal context.
Replaying the result should use the same analytic integrand suite, the same objective definition, the same run baseline, and the same lower-is-better direction. Changing any of those items creates a new evaluation, not a replay of this result.
The source bundle is available in Göther Labs results repository.