Euler-Maclaurin Summation Formula
Let and . Then the composite trapezoidal rule satisfies: where are the Bernoulli numbers (, , ) and the remainder satisfies .
Proof Outline
The proof uses the Bernoulli polynomials defined by .
Step 1. On a single interval , apply repeated integration by parts with : where .
Step 2. Sum over all subintervals for . Interior derivative terms telescope: at shared nodes cancel, leaving only the boundary contributions .
Step 3. The left side sums to and the trapezoidal contributions sum to , yielding the stated formula. The remainder bound follows from for .
Applications
The Euler-Maclaurin formula shows with explicit constants . This asymptotic expansion in even powers of is the theoretical foundation for Romberg integration: combining and eliminates the term, giving the Simpson-like formula . Each level of extrapolation removes two orders of error.
When is periodic with period , all boundary terms vanish. The Euler-Maclaurin formula then gives for any . If is -periodic (or analytic and periodic), the trapezoidal rule converges exponentially fast: for some . This remarkable phenomenon makes the trapezoidal rule the method of choice for periodic integrands.
The Euler-Maclaurin formula also converts sums to integrals. For : where is the Euler-Mascheroni constant. This asymptotic expansion allows high-precision computation of harmonic sums and the constant .