The trapezoidal rule is a method to approximate the area under a line and in doing so approximate the integral of the function represented by that line. The trapezoidal rule is given by the following:
Given an integral, of interval
The trapezoidal rule is (note this method is an approximation, not exact):
Where:
When graphed an application of the trapezoidal rule with only 1 interval would look like the following:
If your data set if not spaced equally you can use the following formula:
Where: