# Simpson's Rule

1. Aug 13, 2007

Does the Simpson's rule of numerical integration ($$\frac{1}{3}h\left( {f_0 + 4f_1 + f_2 } \right)$$) give exact values for all polynomials to a third degree i.e., linear functions, quadratic functions, and cubic functions?

Is there a better method for numerical integration approximation? One which a better, more accurate result?

Many thanks

2. Aug 13, 2007

### HallsofIvy

Staff Emeritus
Simpson's method approximates the function by a "piecewise" quadratic. If a function is already quadratic,then that is exact. So it will give exact results for second degree, but not third degree polynomials.

You certainly could develop a method that approximated the function by a "piecewise fourth degree polynomial but the extra work necessary would be more than just decreasing the step size in Simpson's rule. Simpson's rule is the most accurate of the regularly used methods.