The Trapezoidal Rule Calculator estimates a definite integral by replacing parts of a curve with trapezoids. It is especially useful when an exact antiderivative is difficult to obtain or when values are available only at sample points.
Trapezoidal Rule formula
With equally spaced points and step size h, the composite rule is T = h/2 [f(xβ) + 2f(xβ) + ... + 2f(xβββ) + f(xβ)].
Worked example
Estimate β«βΒ² xΒ² dx using two subintervals. Here h = 1 and the function values are f(0)=0, f(1)=1, and f(2)=4. The estimate is 1/2[0 + 2(1) + 4] = 3. The exact integral is 8/3, so the trapezoidal estimate is close but not exact.
Improving the estimate
Using more, smaller subintervals generally improves the approximation for a smooth curve. The calculator can make this repeated calculation much faster.