On a partition of an interval , apply the trapezoidal rule separately to each panel and add:
For uniform spacing , this composite trapezoidal rule becomes
Each interior sample occurs in two panels; their half-quadrature weights combine to . The endpoint quadrature weights are .
Use the nonpolynomial function on . Its exact integral is
because the sine is an odd function.
For every uniform partition of an interval with panels, the quadrature nodes satisfy . Their composite trapezoidal rule quadrature weights agree, so the two sampled sine values cancel. If there is a node at zero its sine value is already zero. The constant term is integrated exactly, giving
This is symmetric trapezoidal exactness for odd functions, applied after adding a constant function so that the resulting definite integral is nonzero. It is exactness for this particular integrand, rather than a claim that every nonpolynomial function is integrated exactly.

Articles by others on the same topic (0)

There are currently no matching articles.