Math 2.0

Numerical analysis Theorem

Euler–Maclaurin formula

Builds on Bernoulli numberBernoulli polynomialsRiemann integralSeries

Statement

Let m<nm < n be integers, let p≥1p \ge 1 be an integer, and let f ⁣:[m,n]→ℝf \colon [m, n] \to \R have a continuous pp-th derivative. Let BkB_k be the Bernoulli numbers with B2=16B_2 = \frac16, and let Pp(x)=Bp(x−⌊x⌋)P_p(x) = B_p(x - \floor{x}), where Bp(t)B_p(t) is the Bernoulli polynomial of degree pp. Then ∑i=mnf(i)=∫mnf(x) dx+f(m)+f(n)2+∑k=1⌊p/2⌋B2k(2k)!(f(2k−1)(n)−f(2k−1)(m))+Rp,\sum_{i=m}^{n} f(i) = \int_m^n f(x)\, dx + \frac{f(m) + f(n)}{2} + \sum_{k=1}^{\floor{p/2}} \frac{B_{2k}}{(2k)!} \bigl(f^{(2k-1)}(n) - f^{(2k-1)}(m)\bigr) + R_p, where Rp=(−1)p+1∫mnf(p)(x) Pp(x)p! dx.R_p = (-1)^{p+1} \int_m^n f^{(p)}(x) \, \frac{P_p(x)}{p!}\, dx.

Remarks

The proof is repeated integration by parts on each interval [i,i+1][i, i + 1], using Bk′(t)=kBk−1(t)B_k'(t) = k B_{k-1}(t) and the fact that Bk(0)=Bk(1)B_k(0) = B_k(1) for k≥2k \ge 2. For p=1p = 1 the formula reads ∑i=mnf(i)=∫mnf+f(m)+f(n)2+∫mnf′(x)(x−⌊x⌋−12) dx\sum_{i=m}^{n} f(i) = \int_m^n f + \frac{f(m) + f(n)}{2} + \int_m^n f'(x) \bigl(x - \floor{x} - \frac12\bigr)\, dx. Example: for f(x)=x2f(x) = x^2 on [0,n][0, n] with p=3p = 3, the remainder vanishes since f′′′=0f''' = 0, and the formula gives ∑i=0ni2=n33+n22+112⋅2n=n(n+1)(2n+1)6\sum_{i=0}^{n} i^2 = \frac{n^3}{3} + \frac{n^2}{2} + \frac{1}{12} \cdot 2n = \frac{n(n+1)(2n+1)}{6}. The infinite series obtained by letting p→∞p \to \infty usually diverges, so the formula is used with a fixed pp and an estimate of RpR_p.

Going deeper

For a student

In one direction it estimates sums by integrals: it gives Stirling's formula for ln⁡n!\ln n!, asymptotics of harmonic numbers, and the values of power sums ∑ik\sum i^k as polynomials in nn. In the other direction it estimates integrals by sums: it describes the error of the trapezoidal rule, and it explains why that rule is very accurate for smooth periodic functions. It is a quantitative link between series and the Riemann integral.

Reading path

To understand this page from the ground up, read these 11 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Bernoulli number definition
  2. Bernoulli polynomials object
  3. Partition of an interval definition
  4. Sequence definition
  5. Mesh of a partition definition
  6. Riemann sum definition
  7. Real sequence definition
  8. Riemann integrable function definition
  9. Series definition
  10. Riemann integral definition
  11. Euler–Maclaurin formula statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Euler%E2%80%93Maclaurin_formula
About this page
Tag9P839VB8S7
URIm2://9P839VB8S7
Kindstatement, theorem
WritingW0 stub
MSC65B15, 40A25, 26A42
StatusThis copy of the site has no build data. Run m2 status 9P839VB8S7.
AboutSeries, Riemann integral
UsesBernoulli number, Bernoulli polynomials, Riemann integral, Series
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.