Newton-Cotes Formulas (2024)

Newton-Cotes Formulas (1) TOPICS

Newton-Cotes Formulas (4)

Download WolframNotebook

The Newton-Cotes formulas are an extremely useful and straightforward family of numerical integration techniques.

To integrate a function Newton-Cotes Formulas (7) over some interval Newton-Cotes Formulas (8), divide it into Newton-Cotes Formulas (9) equal parts such that Newton-Cotes Formulas (10) and Newton-Cotes Formulas (11). Then find polynomials which approximate the tabulated function, and integrate them to approximate the area under the curve. To find the fitting polynomials, use Lagrange interpolating polynomials. The resulting formulas are called Newton-Cotes formulas, or quadrature formulas.

Newton-Cotes formulas may be "closed" if the interval Newton-Cotes Formulas (12) is included in the fit, "open" if the points Newton-Cotes Formulas (13) are used, or a variation of these two. If the formula uses Newton-Cotes Formulas (14) points (closed or open), the coefficients of terms sum to Newton-Cotes Formulas (15).

If the function Newton-Cotes Formulas (16) is given explicitly instead of simply being tabulated at the values Newton-Cotes Formulas (17), the best numerical method of integration is called Gaussian quadrature. By picking the intervals at which to sample the function, this procedure produces more accurate approximations (but is significantly more complicated to implement).

Newton-Cotes Formulas (18)

The 2-point closed Newton-Cotes formula is called the trapezoidal rule because it approximates the area under a curve by a trapezoid with horizontal base and sloped top (connecting the endpoints Newton-Cotes Formulas (19) and Newton-Cotes Formulas (20)). If the first point is Newton-Cotes Formulas (21), then the other endpoint will be located at

Newton-Cotes Formulas (22)Newton-Cotes Formulas (23)Newton-Cotes Formulas (24)

(1)

and the Lagrange interpolating polynomial through the points Newton-Cotes Formulas (25) and Newton-Cotes Formulas (26) is

Newton-Cotes Formulas (27)Newton-Cotes Formulas (28)Newton-Cotes Formulas (29)

(2)

Newton-Cotes Formulas (30)Newton-Cotes Formulas (31)Newton-Cotes Formulas (32)

(3)

Newton-Cotes Formulas (33)Newton-Cotes Formulas (34)Newton-Cotes Formulas (35)

(4)

Integrating over the interval (i.e., finding the area of the trapezoid) then gives

Newton-Cotes Formulas (36)Newton-Cotes Formulas (37)Newton-Cotes Formulas (38)

(5)

Newton-Cotes Formulas (39)Newton-Cotes Formulas (40)Newton-Cotes Formulas (41)

(6)

Newton-Cotes Formulas (42)Newton-Cotes Formulas (43)Newton-Cotes Formulas (44)

(7)

Newton-Cotes Formulas (45)Newton-Cotes Formulas (46)Newton-Cotes Formulas (47)

(8)

Newton-Cotes Formulas (48)Newton-Cotes Formulas (49)Newton-Cotes Formulas (50)

(9)

Newton-Cotes Formulas (51)Newton-Cotes Formulas (52)Newton-Cotes Formulas (53)

(10)

This is the trapezoidal rule (Ueberhuber 1997, p.100), with the final term giving the amount of error (which, since Newton-Cotes Formulas (54), is no worse than the maximum value of Newton-Cotes Formulas (55) in this range).

The 3-point rule is known as Simpson's rule. Theabscissas are

Newton-Cotes Formulas (56)Newton-Cotes Formulas (57)Newton-Cotes Formulas (58)

(11)

Newton-Cotes Formulas (59)Newton-Cotes Formulas (60)Newton-Cotes Formulas (61)

(12)

and the Lagrange interpolating polynomialis

Newton-Cotes Formulas (62)Newton-Cotes Formulas (63)Newton-Cotes Formulas (64)

(13)

Newton-Cotes Formulas (65)Newton-Cotes Formulas (66)Newton-Cotes Formulas (67)

(14)

Newton-Cotes Formulas (68)Newton-Cotes Formulas (69)Newton-Cotes Formulas (70)

(15)

Integrating and simplifying gives

Newton-Cotes Formulas (71)

(16)

(Ueberhuber 1997, p.100).

The 4-point closed rule is Simpson's 3/8 rule,

(Ueberhuber 1997, p.100). The 5-point closed rule is Boole'srule,

Newton-Cotes Formulas (73)

(18)

(Abramowitz and Stegun 1972, p.886). Higher order rules include the 6-point

Newton-Cotes Formulas (74)

(19)

7-point

Newton-Cotes Formulas (75)

(20)

8-point

Newton-Cotes Formulas (76)

(21)

9-point

Newton-Cotes Formulas (77)

(22)

(Ueberhuber 1997, p.100), 10-point

Newton-Cotes Formulas (78)

(23)

and 11-point

Newton-Cotes Formulas (79)

(24)

rules.

In general, the Newton-Cotes Formulas (80)-point rule is given by the analytic expression

Newton-Cotes Formulas (81)

(25)

where

Newton-Cotes Formulas (82)

(26)

(Whittaker and Robinson 1967, p.154). This gives the triangle of coefficients shown in the following table (OEIS A093735 and A093736).

Newton-Cotes Formulas (83)012345
1Newton-Cotes Formulas (84)Newton-Cotes Formulas (85)
2Newton-Cotes Formulas (86)Newton-Cotes Formulas (87)Newton-Cotes Formulas (88)
3Newton-Cotes Formulas (89)Newton-Cotes Formulas (90)Newton-Cotes Formulas (91)Newton-Cotes Formulas (92)
4Newton-Cotes Formulas (93)Newton-Cotes Formulas (94)Newton-Cotes Formulas (95)Newton-Cotes Formulas (96)Newton-Cotes Formulas (97)
5Newton-Cotes Formulas (98)Newton-Cotes Formulas (99)Newton-Cotes Formulas (100)Newton-Cotes Formulas (101)Newton-Cotes Formulas (102)Newton-Cotes Formulas (103)

Note that

Newton-Cotes Formulas (104)

(27)

Closed "extended" rules use multiple copies of lower order closed rules to build up higher order rules. By appropriately tailoring this process, rules with particularly nice properties can be constructed. For Newton-Cotes Formulas (105) tabulated points, using the trapezoidal rule Newton-Cotes Formulas (106) times and adding the results gives

Newton-Cotes Formulas (107)

(28)

(Ueberhuber 1997, p.107). Using a series of refinements on the extended trapezoidal rule gives the method known as Romberg integration. A 3-point extended rule for odd Newton-Cotes Formulas (108) is

Newton-Cotes Formulas (109)

(29)

Applying Simpson's 3/8 rule, then Simpson'srule (3-point) twice, and adding gives

Newton-Cotes Formulas (110)

(30)

Taking the next Simpson's 3/8 step then gives

Newton-Cotes Formulas (111)

(31)

Combining with the previous result gives

Newton-Cotes Formulas (112)

(32)

where terms up to Newton-Cotes Formulas (113) have now been completely determined. Continuing gives

Newton-Cotes Formulas (114)

(33)

Now average with the 3-point result

Newton-Cotes Formulas (115)

(34)

to obtain

Newton-Cotes Formulas (116)

(35)

Note that all the middle terms now have unity coefficients.Similarly, combining a 3-point with the (2+3)-point rule gives

Newton-Cotes Formulas (117)

(36)

Other Newton-Cotes rules occasionally encountered include Durand'srule

Newton-Cotes Formulas (118)

(37)

(Beyer 1987), Hardy's rule

Newton-Cotes Formulas (119)

(38)

and Weddle's rule

Newton-Cotes Formulas (120)

(39)

(Beyer 1987).

The open Newton-Cotes rules use points outside the integration interval, yielding the 1-point

Newton-Cotes Formulas (121)

(40)

2-point

Newton-Cotes Formulas (122)Newton-Cotes Formulas (123)Newton-Cotes Formulas (124)

(41)

Newton-Cotes Formulas (125)Newton-Cotes Formulas (126)Newton-Cotes Formulas (127)

(42)

Newton-Cotes Formulas (128)Newton-Cotes Formulas (129)Newton-Cotes Formulas (130)

(43)

3-point

Newton-Cotes Formulas (131)

(44)

4-point

Newton-Cotes Formulas (132)

(45)

5-point

Newton-Cotes Formulas (133)

(46)

6-point

Newton-Cotes Formulas (134)

(47)

and 7-point

Newton-Cotes Formulas (135)

(48)

rules.

A 2-point open extended formula is

Newton-Cotes Formulas (136)

(49)

Single interval extrapolative rules estimate the integral in an interval based on the points around it. An example of such a rule is

Newton-Cotes Formulas (137)

(50)

Newton-Cotes Formulas (138)

(51)

Newton-Cotes Formulas (139)

(52)

Newton-Cotes Formulas (140)

(53)

See also

Boole's Rule, Difference Equation, Durand's Rule, Finite Difference, Gaussian Quadrature, Hardy's Rule, Lagrange Interpolating Polynomial, Numerical Integration, Shovelton's Rule, Simpson's Rule, Simpson's 3/8 Rule, Trapezoidal Rule, Weddle's Rule, Woolhouse's Formulas

Explore with Wolfram|Alpha

References

Abramowitz, M. and Stegun, I.A. (Eds.). "Integration." §25.4 in Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, pp.885-887, 1972.Beyer, W.H. (Ed.). CRC Standard Mathematical Tables, 28th ed. Boca Raton, FL: CRC Press, p.127, 1987.Corbit, D. "Numerical Integration: From Trapezoids to RMS: Object-Oriented Numerical Integration." Dr. Dobb's J., No.252, 117-120, Oct. 1996.Daniell, P.J. "Remainders in Interpolation and Quadrature Formulae." Math. Gaz. 24, 238, 1940.Fornberg, B. "Calculation of Weights in Finite Difference Formulas." SIAM Rev. 40, 685-691, 1998.Hildebrand, F.B. Introduction to Numerical Analysis. New York: McGraw-Hill, pp.160-161, 1956.Press, W.H.; Flannery, B.P.; Teukolsky, S.A.; and Vetterling, W.T. "Classical Formulas for Equally Spaced Abscissas." §4.1 in Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, pp.124-130, 1992.Sloane, N.J.A. Sequences A093735 and A093736 in "The On-Line Encyclopedia of Integer Sequences."Ueberhuber, C.W. Numerical Computation 2: Methods, Software, and Analysis. Berlin: Springer-Verlag, 1997.Whittaker, E.T. and Robinson, G. "The Newton-Cotes Formulae of Integration." §76 in The Calculus of Observations: A Treatise on Numerical Mathematics, 4th ed. New York: Dover, pp.152-156, 1967.

Referenced on Wolfram|Alpha

Newton-Cotes Formulas

Cite this as:

Weisstein, Eric W. "Newton-Cotes Formulas."From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/Newton-CotesFormulas.html

Subject classifications

Newton-Cotes Formulas (2024)
Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 6253

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.