Euler-Maclaurin formula Created 2026-10-20 Updated 2026-11-05
The Euler-Maclaurin formula relates a finite sum to an integral and endpoint derivatives. If are integers, and has continuous derivatives through order on , then
Here are Bernoulli numbers. With the periodic Bernoulli function, the exact remainder is
This form rearranges the last endpoint correction in the NIST statement.[ref]
For on and , the remainder vanishes because the second Bernoulli polynomial has integral zero over each unit interval. The result is , the square pyramidal number formula. For other functions, retaining or bounding makes the finite truncation a controlled approximation.
Official text: dlmf.nist.gov/2.10
Section 2.10(i), equation 2.10.1 gives the Euler-Maclaurin formula with an exact periodic Bernoulli function remainder. Moving the constant Bernoulli-number term out of the final integral yields the endpoint-correction convention used here.