Math 2.0

Numerical analysis Definition

Newton–Cotes formulas

Builds on Quadrature ruleLagrange basis polynomialsDegree of exactness of a quadrature rule

Definition

Let a<ba < b and let n≥1n \ge 1 be an integer. The closed Newton–Cotes formula with n+1n + 1 nodes on [a,b][a, b] is the quadrature rule Qn(f)=∑i=0nwi f(xi),xi=a+ih,h=b−an,wi=∫abℓi(x) dx,Q_n(f) = \sum_{i=0}^{n} w_i\, f(x_i), \qquad x_i = a + i h, \quad h = \frac{b - a}{n}, \qquad w_i = \int_a^b \ell_i(x)\, dx, where ℓ0,…,ℓn\ell_0, \dots, \ell_n are the Lagrange basis polynomials for the nodes x0,…,xnx_0, \dots, x_n. For n≥0n \ge 0, the open Newton–Cotes formula with n+1n + 1 nodes uses instead the nodes xi=a+ihx_i = a + i h, i=1,…,n+1i = 1, \dots, n + 1, with h=(b−a)/(n+2)h = (b - a)/(n + 2), and the weights ∫abℓi(x) dx\int_a^b \ell_i(x)\, dx for these nodes.

Remarks

So Qn(f)Q_n(f) is the integral of the interpolating polynomial of ff at the nodes, and it is exact for polynomials of degree at most nn. The closed formula has degree of exactness nn for odd nn and n+1n + 1 for even nn, by symmetry of the nodes. Example: n=1n = 1 gives the trapezoidal rule h2(f(a)+f(b))\frac{h}{2}(f(a) + f(b)), n=2n = 2 gives Simpson's rule h3(f0+4f1+f2)\frac{h}{3}(f_0 + 4 f_1 + f_2), and n=3n = 3 gives Simpson's 3/83/8 rule 3h8(f0+3f1+3f2+f3)\frac{3h}{8}(f_0 + 3 f_1 + 3 f_2 + f_3); the open formula with n=0n = 0 is the midpoint rule. Non-example: the two-point Gauss–Legendre rule on [−1,1][-1, 1] has nodes ±1/3\pm 1/\sqrt{3} and weights 11. It is interpolatory but not a Newton–Cotes formula. Its nodes are neither the endpoints ±1\pm 1, as a closed formula needs, nor ±1/3\pm 1/3, as the open formula with two nodes needs. For closed formulas with n≥8n \ge 8 some weights are negative, and as n→∞n \to \infty the formulas need not converge even for analytic integrands, much as in Runge's phenomenon.

Reading path

To understand this page from the ground up, read these 4 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. Degree of exactness of a quadrature rule concept
  2. Lagrange basis polynomials concept
  3. Quadrature rule concept
  4. Newton–Cotes formulas definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Newton%E2%80%93Cotes_formulas
About this page
TagW9ARPZGPM6
URIm2://W9ARPZGPM6
Kinddefinition
WritingW0 stub
MSC65D32, 41A55
DefinesNewton–Cotes formulas
UsesQuadrature rule, Lagrange basis polynomials, Degree of exactness of a quadrature rule

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.