Using the model
Symbols, assumptions and limitations
The integrand is a real polynomial of degree one through three. Bounds must differ, and Simpson’s rule requires an even number of subintervals. The exact polynomial integral is shown only as an educational error check.
Worked examples
See the method in practice
Integral of x²
On [0,1], Simpson’s rule reproduces the exact value 1/3 for x² because it is exact for polynomials through degree three.
Trapezoidal refinement
Increasing the subinterval count reduces the straight-line approximation error for a smooth curved integrand.
Questions
Frequently asked
Why must Simpson’s n be even?
Composite Simpson’s rule fits a quadratic across pairs of adjacent subintervals.
Why show an exact value?
For supported polynomials an antiderivative is available, allowing the numerical method and its error to be checked.
Does this integrate arbitrary expressions?
No. The first reviewed version uses polynomial coefficients and avoids an unrestricted expression parser.
Sources & review
Equations and examples are checked against the references below. Results are educational and should be independently verified for safety-critical work.
OpenStax Calculus Volume 2 — Numerical IntegrationWritten by the STEM Hub editorial team · Reviewed August 11, 2026 · Review methodology