3.7 KB · commit a9602da
Consider the expansion of 1/(ex−1) in ascending powers of x, obtained by writing the Maclaurin expansion of ex and simplifying ex−11=x1−21+B1x+B3x3+B5x5+⋯,(6.57) where B2r=0,B1=121,B3=−7201,B5=30,2401,etc. In Eq. (6.57), if we set x=hD and use the relation E≡ehD (see Section 3.3.4), we obtain the identity E−11≡hD1−21+B1hD+B3h3D3+B5h5D5+⋯ or equivalently E−1En−1=hD1(En−1)−21(En−1)+B1hD(En−1)+B3h3D3(En−1)+⋯(6.58) Operating this identity on y0, we obtain E−1En−1y0=hD1(En−1)y0−21(En−1)y0+B1hD(En−1)y0+⋯ =hD1(yn−y0)−21(yn−y0)+B1h(yn′−y0′)+B3h3(yn′′′−y0′′′)+B5h5(ynv−y0v)+⋯(6.59) It can be easily shown that the left-hand side denotes the sum y0+y1+y2+⋯+yn−1, whereas the term hD1(yn−y0) on the right side can be written as h1∫x0xnydx since 1/D can be interpreted as an integration operator.
Hence, Eq. (6.59) becomes ∫x0xnydx=2h(y0+2y1+2y2+⋯+2yn−1+yn)−12h2(yn′−y0′)+720h4(yn′′′−y0′′′)−30,240h6(ynv−y0v)+⋯(6.60) which is called the Euler–Maclaurin's formula for integration. The first expression on the right-hand side of Eq. (6.60) denotes the approximate value of the integral obtained by using trapezoidal rule and the other expressions represent the successive corrections to this value. It should be noted that this formula may also be used to find the sum of a series of the form y0+y1+y2+⋯+yn. The use of this formula is illustrated by the following examples.