Euler–Maclaurin formula

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description Template:Use American English In mathematics, the Euler–Maclaurin formula is a formula for the difference between an integral and a closely related sum. It can be used to approximate integrals by finite sums, or conversely to evaluate finite sums and infinite series using integrals and the machinery of calculus. For example, many asymptotic expansions are derived from the formula, and Faulhaber's formula for the sum of powers is an immediate consequence.

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 Template:Mvar and Template:Mvar are natural numbers and f(x)Script error: No such module "Check for unknown parameters". is a real or complex valued continuous function for real numbers Template:Mvar in the interval [m,n]Script error: No such module "Check for unknown parameters"., then the integral I=mnf(x)dx can be approximated by the sum (or vice versa) S=f(m+1)++f(n1)+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 fTemplate:Isup(x)Script error: No such module "Check for unknown parameters". evaluated at the endpoints of the interval, that is to say x = mScript error: No such module "Check for unknown parameters". and x = nScript error: No such module "Check for unknown parameters"..

Explicitly, for Template:Mvar a positive integer and a function f(x)Script error: No such module "Check for unknown parameters". that is Template:Mvar times continuously differentiable on the interval [m,n]Script error: No such module "Check for unknown parameters"., we have SI=k=1pBkk!(f(k1)(n)f(k1)(m))+Rp, where Template:Mvar is the Template:Mvarth Bernoulli number (with B1 = Template:SfracScript error: No such module "Check for unknown parameters".) and Template:Mvar is an error term which depends on Template:Mvar, Template:Mvar, Template:Mvar, and Template:Mvar and is usually small for suitable values of Template:Mvar.

The formula is often written with the subscript taking only even values, since the odd Bernoulli numbers are zero except for B1Script error: No such module "Check for unknown parameters".. In this case we have[1][2] i=mnf(i)=mnf(x)dx+f(n)+f(m)2+k=1p2B2k(2k)!(f(2k1)(n)f(2k1)(m))+Rp, or alternatively i=m+1nf(i)=mnf(x)dx+f(n)f(m)2+k=1p2B2k(2k)!(f(2k1)(n)f(2k1)(m))+Rp.

The remainder term

Script error: No such module "Labelled list hatnote".

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]Script error: No such module "Check for unknown parameters". for r = m, m + 1, …, n − 1Script error: No such module "Check for unknown parameters".. 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)Script error: No such module "Check for unknown parameters".. The Bernoulli polynomials may be defined recursively by B0(x) = 1Script error: No such module "Check for unknown parameters". and, for k ≥ 1Script error: No such module "Check for unknown parameters"., Bk(x)=kBk1(x),01Bk(x)dx=0. The periodized Bernoulli functions are defined as Pk(x)=Bk(xx), where xScript error: No such module "Check for unknown parameters". denotes the largest integer less than or equal to Template:Mvar, so that x − ⌊xScript error: No such module "Check for unknown parameters". always lies in the interval [0,1)Script error: No such module "Check for unknown parameters"..

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

When k > 0Script error: No such module "Check for unknown parameters"., it can be shown that for 0 ≤ x ≤ 1Script error: No such module "Check for unknown parameters"., |Bk(x)|2k!(2π)kζ(k), where Template:Mvar denotes the Riemann zeta function; one approach to prove this inequality is to obtain the Fourier series for the polynomials Bk(x)Script error: No such module "Check for unknown parameters".. The bound is achieved for even Template:Mvar when Template:Mvar is zero. The term ζ(k)Script error: No such module "Check for unknown parameters". may be omitted for odd Template:Mvar but the proof in this case is more complex (see Lehmer).[3] Using this inequality, the size of the remainder term can be estimated as |Rp|2ζ(p)(2π)pmn|f(p)(x)|dx.

Low-order cases

The Bernoulli numbers from B1Script error: No such module "Check for unknown parameters". to B7Script error: No such module "Check for unknown parameters". are Template:Sfrac, Template:Sfrac, 0, −Template:Sfrac, 0, Template:Sfrac, 0Script error: No such module "Check for unknown parameters".. 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.

Applications

The Basel problem

The Basel problem is to determine the sum 1+14+19+116+125+=n=11n2.

Euler computed this sum to 20 decimal places with only a few terms of the Euler–Maclaurin formula in 1735. This probably convinced him that the sum equals Template:SfracScript error: No such module "Check for unknown parameters"., which he proved in the same year.[4]

Sums involving a polynomial

Script error: No such module "Labelled list hatnote". If Template:Mvar is a polynomial and Template:Mvar is big enough, then the remainder term vanishes. For instance, if f(x) = x3Script error: No such module "Check for unknown parameters"., we can choose p = 2Script error: No such module "Check for unknown parameters". to obtain, after simplification, i=0ni3=(n(n+1)2)2.

Approximation of integrals

The formula provides a means of approximating a finite integral. Let a < bScript error: No such module "Check for unknown parameters". be the endpoints of the interval of integration. Fix Template:Mvar, the number of points to use in the approximation, and denote the corresponding step size by h = Template:SfracScript error: No such module "Check for unknown parameters".. Set xi = a + (i − 1)hScript error: No such module "Check for unknown parameters"., so that x1 = aScript error: No such module "Check for unknown parameters". and xN = bScript error: No such module "Check for unknown parameters".. Then:[5] I=abf(x)dxh(f(x1)2+f(x2)++f(xN1)+f(xN)2)+h212[f(x1)f(xN)]h4720[f(x1)f(xN)]+

This may be viewed as an extension of the trapezoid rule by the inclusion of correction terms. Note that this asymptotic expansion is usually not convergent; there is some Template:Mvar, depending upon Template:Mvar and Template:Mvar, such that the terms past order Template:Mvar increase rapidly. Thus, the remainder term generally demands close attention.[5]

The Euler–Maclaurin formula is also used for detailed error analysis in numerical quadrature. It explains the superior performance of the trapezoidal rule on smooth periodic functions and is used in certain extrapolation methods. Clenshaw–Curtis quadrature is essentially a change of variables to cast an arbitrary integral in terms of integrals of periodic functions where the Euler–Maclaurin approach is very accurate (in that particular case the Euler–Maclaurin formula takes the form of a discrete cosine transform). This technique is known as a periodizing transformation.

Asymptotic expansion of sums

In the context of computing asymptotic expansions of sums and series, usually the most useful form of the Euler–Maclaurin formula is n=abf(n)abf(x)dx+f(b)+f(a)2+k=1B2k(2k)!(f(2k1)(b)f(2k1)(a)),

where Template:Mvar and Template:Mvar are integers.[6] Often the expansion remains valid even after taking the limits a → −∞Script error: No such module "Check for unknown parameters". or b → +∞Script error: No such module "Check for unknown parameters". or both. In many cases the integral on the right-hand side can be evaluated in closed form in terms of elementary functions even though the sum on the left-hand side cannot. Then all the terms in the asymptotic series can be expressed in terms of elementary functions. For example, k=01(z+k)201(z+k)2dk=1z+12z2+t=1B2tz2t+1.

Here the left-hand side is equal to ψ(1)(z)Script error: No such module "Check for unknown parameters"., namely the first-order polygamma function defined by

ψ(1)(z)=d2dz2lnΓ(z);

the gamma function Γ(z)Script error: No such module "Check for unknown parameters". is equal to (z − 1)!Script error: No such module "Check for unknown parameters". when Template:Mvar is a positive integer. This results in an asymptotic expansion for ψ(1)(z)Script error: No such module "Check for unknown parameters".. That expansion, in turn, serves as the starting point for one of the derivations of precise error estimates for Stirling's approximation of the factorial function.

Examples

If Template:Mvar is an integer greater than 1 then we have the following asymptotic expansions as n, using the Riemann zeta function ζ(s):

k=1n1ks=k=11ksk=n+11ks=ζ(s)k=n+11ksζ(s)n1ks+12nsi=1B2i(2i)!(s+2i2)!(s1)!ns+2i1ζ(s)1(s1)ns1+12nsi=1B2i(2i)!(s+2i2)!(s1)!ns+2i1.

For Template:Mvar equal to 2 this simplifies to k=1n1k2ζ(2)1n+12n2i=1B2in2i+1, or k=1n1k2π261n+12n216n3+130n5142n7+.

This is related to the trigamma function:

k=1n1k2=π26ψ(1)(n+1)

When s = 1Script error: No such module "Check for unknown parameters"., the sum and the integral go to infinity but the difference between them goes to a limit, the Euler–Mascheroni constant ,γ ≈ 0.5772...Script error: No such module "Check for unknown parameters". This gives:

1n(1x1x)dx=1(1x1x)dxn(1x1x)dx=γn(1x1x)dxγ12nk=1B2k2kn2k

from which we have the asymptotic expansion:

k=1n1klnn+γ+12nk=1B2k2kn2k,

These harmonic numbers are related to the digamma function:

k=1n1k=γ+ψ(n+1)

More generally, k=1n1ks=1ns1+s1nxxxs+1dxwith s>1

Proofs

Derivation by mathematical induction

We outline the argument given in Apostol.[1]

The Bernoulli polynomials Bn(x)Script error: No such module "Check for unknown parameters". and the periodic Bernoulli functions Pn(x)Script error: No such module "Check for unknown parameters". for n = 0, 1, 2, ...Script error: No such module "Check for unknown parameters". were introduced above.

The first several Bernoulli polynomials are B0(x)=1,B1(x)=x12,B2(x)=x2x+16,B3(x)=x332x2+12x,B4(x)=x42x3+x2130,

The values Bn(1)Script error: No such module "Check for unknown parameters". are the Bernoulli numbers BnScript error: No such module "Check for unknown parameters".. Notice that for n ≠ 1Script error: No such module "Check for unknown parameters". we have Bn=Bn(1)=Bn(0), and for n = 1Script error: No such module "Check for unknown parameters"., B1=B1(1)=B1(0).

The functions PnScript error: No such module "Check for unknown parameters". agree with the Bernoulli polynomials on the interval [0, 1]Script error: No such module "Check for unknown parameters". and are periodic with period 1. Furthermore, except when n = 1Script error: No such module "Check for unknown parameters"., they are also continuous. Thus, Pn(0)=Pn(1)=Bnfor n1.

Let kScript error: No such module "Check for unknown parameters". be an integer, and consider the integral kk+1f(x)dx=kk+1udv, where u=f(x),du=f(x)dx,dv=P0(x)dxsince P0(x)=1,v=P1(x).

Integrating by parts, we get kk+1f(x)dx=[uv]kk+1kk+1vdu=[f(x)P1(x)]kk+1kk+1f(x)P1(x)dx=B1(1)f(k+1)B1(0)f(k)kk+1f(x)P1(x)dx.

Using B1(0) = −Template:SfracScript error: No such module "Check for unknown parameters"., B1(1) = Template:SfracScript error: No such module "Check for unknown parameters"., and summing the above from k = 0Script error: No such module "Check for unknown parameters". to k = n − 1Script error: No such module "Check for unknown parameters"., we get 0nf(x)dx=01f(x)dx++n1nf(x)dx=f(0)2+f(1)++f(n1)+f(n)20nf(x)P1(x)dx.

Adding Template:SfracScript error: No such module "Check for unknown parameters". to both sides and rearranging, we have k=1nf(k)=0nf(x)dx+f(n)f(0)2+0nf(x)P1(x)dx.

This is the p = 1Script error: No such module "Check for unknown parameters". case of the summation formula. To continue the induction, we apply integration by parts to the error term: kk+1f(x)P1(x)dx=kk+1udv, where u=f(x),du=f(x)dx,dv=P1(x)dx,v=12P2(x).

The result of integrating by parts is [uv]kk+1kk+1vdu=[f(x)P2(x)2]kk+112kk+1f(x)P2(x)dx=B22(f(k+1)f(k))12kk+1f(x)P2(x)dx.

Summing from k = 0Script error: No such module "Check for unknown parameters". to k = n − 1Script error: No such module "Check for unknown parameters". and substituting this for the lower order error term results in the p = 2Script error: No such module "Check for unknown parameters". case of the formula, k=1nf(k)=0nf(x)dx+f(n)f(0)2+B22(f(n)f(0))120nf(x)P2(x)dx.

This process can be iterated. In this way we get a proof of the Euler–Maclaurin summation formula which can be formalized by mathematical induction, in which the induction step relies on integration by parts and on identities for periodic Bernoulli functions.

See also

References

<templatestyles src="Reflist/styles.css" />

  1. a b Script error: No such module "Citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "Citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. a b Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".

Further reading

<templatestyles src="Refbegin/styles.css" />

  • Script error: No such module "Citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "Citation/CS1".
  • Script error: No such module "citation/CS1".

External links

  • Script error: No such module "Template wrapper".

Template:Leonhard Euler

Template:Calculus topics