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.
The periodic Bernoulli function is the periodic extension of the Bernoulli polynomial, where is the fractional part. It has period one. For example, .
For , its Fourier expansion is
The series is absolutely convergent. For the same formula holds away from the integers and describes a sawtooth. At an integer the symmetric Fourier value is zero, whereas the literal fractional-part convention gives ; endpoint conventions must therefore be distinguished.[ref]
Periodic Bernoulli functions occur in the remainder of the Euler-Maclaurin formula, connecting errors in discrete summation with periodic oscillation between successive integers.