The simpson’s rule formula
Sn=3Δx[f(x0)+4f(x1)+2f(x2)+4f(x3)+⋯+4f(xn−1)+f(xn)] Simpson’s rule replaces the curve over each pair of slices with the parabola through three points. Integrating that parabola exactly gives the weights 3Δx(1,4,1), and overlapping pairs produce the 1, 4, 2, 4, …, 4, 1 pattern.
n must be even. If you enter an odd n, the calculator rounds up to the next even number.
Error bound: if ∣f(4)(x)∣≤K on [a,b], then ∣ES∣≤180n4K(b−a)5. Doubling n cuts the error by about 16, and the rule is exact for every polynomial up to degree 3.
Simpson’s rule is a weighted average of the other two: S2n=32Mn+Tn.
Compare all five methods side by side on the Riemann sum calculator, or try another single rule: Trapezoidal rule, Midpoint rule, Left Riemann sum, Right Riemann sum.
Questions students ask
What is Simpson’s rule formula?
Sn=3Δx[f(x0)+4f(x1)+2f(x2)+⋯+4f(xn−1)+f(xn)] with Δx=nb−a and n even.
Why does Simpson’s rule need an even number of intervals?
Each parabola spans two subintervals (three points), so the subintervals must pair up exactly.
What is the error bound for Simpson’s rule?
∣ES∣≤180n4K(b−a)5 where K bounds ∣f(4)∣ on [a,b].
Why is Simpson’s rule exact for cubics?
The fourth derivative of a cubic is zero, so the error bound is zero. Try x3 in the calculator: the error column shows 0.
What is Simpson’s 3/8 rule?
A variant that fits cubics through four points, with weights 83Δx(1,3,3,1). It needs n to be a multiple of 3 and has a similar accuracy to the 1/3 rule.