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.

Articles by others on the same topic (1)

The Euler–Maclaurin formula is a powerful mathematical tool that provides a connection between discrete sums and continuous integrals. It is useful in various areas of numerical analysis, calculus, and asymptotic analysis. The formula allows us to approximate sums by integrals, compensating for the differences with correction terms.