\int_a^b f(x)dx\approx\frac{h}{3}\left[f(x_0)+4\sum_{i\ odd}f(x_i)+2\sum_{i\ even}f(x_i)+f(x_n)\right]Variables
- h=(b−a)/n: step width
- n: even number of subintervals
- x_i: grid points
How to use this formula
Approximates a definite integral with piecewise quadratic interpolation.
Important notes
- The composite rule requires even n.
- It is exact for polynomials up to degree three.
Quick example
For n=2, use weights 1,4,1 across the three sampled points.
Applicability, worked calculation, and verification
Assumptions and domain checks
- The composite rule requires even n.
- For the Simpson’s Rule, every denominator must be nonzero, and the numerator and denominator must remain correctly grouped.
- For the Simpson’s Rule, the index variable, lower bound, upper bound, and any empty-sum or empty-product convention must be clear.
- Integration limits, the differential, and any constant of integration must be included where required.
Worked example
For n=2, use weights 1,4,1 across the three sampled points.
Common mistakes
- When copying Simpson’s Rule, keep the complete numerator and denominator grouped; a missing brace or parenthesis changes the result.
- Do not report a numerical approximation without a tolerance, convergence check, and an estimate of rounding or truncation error.
Continue the workflow
Use Simpson’s Rule in your own work
- Check the domainMatch the variables and assumptions to the problem before substituting values.
- Copy the exact notationPreserve grouping, signs, and exponents in
\int_a^b f(x)dx\approx\frac{h}{3}\left[f(x_0)+4\sum_{i\ odd}f(x_i)+2\sum_{i\ even}f(x_i)+f(x_n)\right]. - Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.
Review and verification
Last reviewed: 2026-07-23
Automated quality check: Kept noindex until the missing evidence is supplied.
Formula references
- Digital Library of Mathematical FunctionsNational Institute of Standards and Technology — Definitions, notation, identities, and reference material for mathematical functions.
Frequently asked questions
What is the Simpson’s Rule used for?
Approximates a definite integral with piecewise quadratic interpolation.
Can I copy this formula as LaTeX?
Yes. Copy \int_a^b f(x)dx\approx\frac{h}{3}\left[f(x_0)+4\sum_{i\ odd}f(x_i)+2\sum_{i\ even}f(x_i)+f(x_n)\right] or open it in the LaTeX editor.
What should I check before using it?
Confirm that each variable, unit, domain restriction, and assumption matches the problem.