Lably
Skip to content

Euler–Maclaurin formula

Summation formula

  • 6 min read
  • 3 chapters

Related on Lably

Through Mathematics, Integral and Summation

The formula was discovered independently by Leonhard Euler and Colin Maclaurin around 1735. Euler needed it to compute slowly converging infinite series while Maclaurin used it to calculate integrals. It was later generalized to Darboux's formula.

The formula

If m and n are natural numbers and f(x) is a real or complex valued continuous function for real numbers x in the interval [m,n], then the integral I=∫mnf(x)dx can be approximated by the sum (or vice versa) S=f(m+1)+⋯+f(n−1)+f(n) (see rectangle method). The Euler–Maclaurin formula provides expressions for the difference between the sum and the integral in terms of the higher derivatives f(k)(x) evaluated at the endpoints of the interval, that is to say x = m and x = n.

Explicitly, for p a positive integer and a function f(x) that is p times continuously differentiable on the interval [m,n], we have S−I=∑k=1pBkk!(f(k−1)(n)−f(k−1)(m))+Rp, where Bk is the kth Bernoulli number (with B1 = ⁠1/2⁠) and Rp is an error term which depends on n, m, p, and f and is usually small for suitable values of p.

The formula is often written with the subscript taking only even values, since the odd Bernoulli numbers are zero except for B1. In this case we have ∑i=mnf(i)=∫mnf(x)dx+f(n)+f(m)2+∑k=1⌊p2⌋B2k(2k)!(f(2k−1)(n)−f(2k−1)(m))+Rp, or alternatively ∑i=m+1nf(i)=∫mnf(x)dx+f(n)−f(m)2+∑k=1⌊p2⌋B2k(2k)!(f(2k−1)(n)−f(2k−1)(m))+Rp.

The remainder term

The remainder term arises because the integral is usually not exactly equal to the sum. The formula may be derived by applying repeated integration by parts to successive intervals [r, r + 1] for r = m, m + 1, …, n − 1. The boundary terms in these integrations lead to the main terms of the formula, and the leftover integrals form the remainder term.

The remainder term has an exact expression in terms of the periodized Bernoulli functions Pk(x). The Bernoulli polynomials may be defined recursively by B0(x) = 1 and, for k ≥ 1, Bk′(x)=kBk−1(x),∫01Bk(x)dx=0. The periodized Bernoulli functions are defined as Pk(x)=Bk(x−⌊x⌋), where ⌊x⌋ denotes the largest integer less than or equal to x, so that x − ⌊x⌋ always lies in the interval [0,1).

With this notation, the remainder term Rp equals Rp=(−1)p+1∫mnf(p)(x)Pp(x)p!dx.

When k > 0, it can be shown that for 0 ≤ x ≤ 1, |Bk(x)|≤2⋅k!(2π)kζ(k), where ζ denotes the Riemann zeta function; one approach to prove this inequality is to obtain the Fourier series for the polynomials Bk(x). The bound is achieved for even k when x is zero. The term ζ(k) may be omitted for odd k but the proof in this case is more complex (see Lehmer). Using this inequality, the size of the remainder term can be estimated as |Rp|≤2ζ(p)(2π)p∫mn|f(p)(x)|dx.

Low-order cases

The Bernoulli numbers from B1 to B7 are ⁠1/2⁠, ⁠1/6⁠, 0, −⁠1/30⁠, 0, ⁠1/42⁠, 0. Therefore, the low-order cases of the Euler–Maclaurin formula are: ∑i=mnf(i)−∫mnf(x)dx=f(m)+f(n)2+∫mnf′(x)P1(x)dx=f(m)+f(n)2+16f′(n)−f′(m)2!−∫mnf″(x)P2(x)2!dx=f(m)+f(n)2+16f′(n)−f′(m)2!+∫mnf‴(x)P3(x)3!dx=f(m)+f(n)2+16f′(n)−f′(m)2!−130f‴(n)−f‴(m)4!−∫mnf(4)(x)P4(x)4!dx=f(m)+f(n)2+16f′(n)−f′(m)2!−130f‴(n)−f‴(m)4!+∫mnf(5)(x)P5(x)5!dx=f(m)+f(n)2+16f′(n)−f′(m)2!−130f‴(n)−f‴(m)4!+142f(5)(n)−f(5)(m)6!−∫mnf(6)(x)P6(x)6!dx=f(m)+f(n)2+16f′(n)−f′(m)2!−130f‴(n)−f‴(m)4!+142f(5)(n)−f(5)(m)6!+∫mnf(7)(x)P7(x)7!dx.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics