The Trapezoidal Rule

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 to , where is the function of the line:

The trapezoidal rule is (note this method is an approximation, not exact):

Where:

  • - is the length of the subinterval
    • so if you have 5 intervals on an integral from 0 to 10 than the would be 2
  • - is the last value of the interval
    • given the conditions in the above example the would be 10

When graphed an application of the trapezoidal rule with only 1 interval would look like the following:

trapezoidal rule illustration

Unequal Spacing

If your data set if not spaced equally you can use the following formula:

Where:

Citations:

  1. Most all info, and all images, found on Wikipedia