Why is simpsons rule exact for 3rd degree polynomials?

  • Context: Undergrad 
  • Thread starter Thread starter okkvlt
  • Start date Start date
  • Tags Tags
    Degree Polynomials
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 19K views
okkvlt
Messages
53
Reaction score
0
this is really perplexing. how can it be exact? simpsons rule uses quadratics to approximate the curve. how can it be exact if I am approximating a cubic with a quadratic?
 
Physics news on Phys.org
This is a general property of Newton-Cotes quadrature formulas: trapezoid is exact for degree 1 polynomials, Simpsons' for 3rd degree, the 5-point rule (sometimes called Bode or Boolean quadrature) is exact for 4th degree, etc.

One way to see this is the following: notice that, for simpsons' rule, you may assume that the points are symmetric relative to the origin (and as you have three, an odd number, one of them is in the origin); now let [tex]p_{3}(x)[/tex] be a 3rd degree polynomial and consider the integral:

[tex]\int^{1}_{-1}p_{3}(x)dx = \int^{1}_{-1}(a_{3}x^{3} + p_{2}(x))dx <br /> <br /> = \int^{1}_{-1}a_{3}x^{3}dx + \int^{1}_{-1}p_{2}(x)dx = \int^{1}_{-1}p_{2}(x)dx[/tex]

And notice that you are left with the integral of a 2nd order polynomial. But remember that Simpsons' rule is based on the integration of an interpolating 2nd order polynomial, and these are unique; therefore, you are integrating the 2nd order interpolating polynomial of a 2nd order polynomial, and these must be equal.
 
Last edited:
The truncation error for the Simpson method is proportional to the f(iv)(x). If the integrand is cubic, then the fourth order derivative is zero. So the quadrature will be exact for this case.