Simpson's Rule Calculator
Type a function, an interval and an even number of intervals to use Simpson's rule.
Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).
A number such as 0 or 1/2, pi, e, inf or -inf.
A number larger than the lower limit, pi, e, inf or -inf.
A whole number of equal intervals, 1 or more.
The 1/3 rule needs an even number of intervals; the 3/8 rule needs a multiple of 3.
Result
You entered
Error against the exact integral
Show the work
Simpson's 1/3 rule
Fit a parabola through each group of three points. The heights are weighted , which needs an even number of intervals.
Width of each interval
The x-values are equally spaced.
Heights
The 5 heights.
Exact for cubics
Simpson's rule is exact for every polynomial of degree 3 or less, and this function is one, so the estimate is the exact integral.
Result
The weighted sum times Δx/3.