English

A Simple Derivation of Newton-Cotes Formulas with Realistic Errors

Numerical Analysis 2012-02-02 v1

Abstract

In order to approximate the integral I(f)=abf(x)dxI(f)=\int_a^b f(x) dx, where ff is a sufficiently smooth function, models for quadrature rules are developed using a given {\it panel} of n(n2)n (n\geq 2) equally spaced points. These models arise from the undetermined coefficients method, using a Newton's basis for polynomials. Although part of the final product is algebraically equivalent to the well known closed Newton-Cotes rules, the algorithms obtained are not the classical ones. In the basic model the most simple quadrature rule QnQ_n is adopted (the so-called left rectangle rule) and a correction E~n\tilde E_n is constructed, so that the final rule Sn=Qn+E~nS_n=Q_n+\tilde E_n is interpolatory. The correction E~n\tilde E_n, depending on the divided differences of the data, might be considered a {\em realistic correction} for QnQ_n, in the sense that E~n\tilde E_n should be close to the magnitude of the true error of QnQ_n, having also the correct sign. The analysis of the theoretical error of the rule SnS_n as well as some classical properties for divided differences suggest the inclusion of one or two new points in the given panel. When nn is even it is included one point and two points otherwise. In both cases this approach enables the computation of a {\em realistic error} EˉSn\bar E_{S_n} for the {\it extended or corrected} rule SnS_n. The respective output (Qn,E~n,Sn,EˉSn)(Q_n,\tilde E_n, S_n, \bar E_{S_n}) contains reliable information on the quality of the approximations QnQ_n and SnS_n, provided certain conditions involving ratios for the derivatives of the function ff are fulfilled. These simple rules are easily converted into {\it composite} ones. Numerical examples are presented showing that these quadrature rules are useful as a computational alternative to the classical Newton-Cotes formulas.

Keywords

Cite

@article{arxiv.1202.0237,
  title  = {A Simple Derivation of Newton-Cotes Formulas with Realistic Errors},
  author = {Mário M. Graça},
  journal= {arXiv preprint arXiv:1202.0237},
  year   = {2012}
}
R2 v1 2026-06-21T20:13:22.180Z