[Math] Quadrature Rule “is exact for polynomials of degree n”

analysisintegrationnumerical methods

Could someone kindly explain what "a quadrature rule is exact for polynomials of degree n" means?

Here is what I understand about numerical (Newton-Cotes) quadrature rules:
Suppose we want to integrate f(x) on the interval [a,b] but it is hard. Hence, one way to do it numerically is to approximate f(x) with a polynomial of degree n and then integrate the polynomial. For Newton-Cotes formulas, we already know (n+1) nodes, so we can interpolate those nodes using Lagrange basis and get the polynomial interpolant of f(x).

Then, the book (Numerical Analysis by Suli and Mayers) says on page 205 that "the Newton-Cotes formula is exact for all polynomials of degree n" if n is odd. <– What does this statement really mean?

Best Answer

It means that in the case where $f$ is such a polynomial, the formula gives the exact value of the integral of $f$ (and not just an approximation).