Trapezoidal rule

The function f(x) (in blue) is approximated by a linear function (in red).

In calculus, the trapezoidal rule (also known as the trapezoid rule or trapezium rule)[a] is a technique for numerical integration, i.e., approximating the definite integral:

The trapezoidal rule works by approximating the region under the graph of the function as a trapezoid and calculating its area. It follows that

An animation that shows what the trapezoidal rule is and how the error in approximation decreases as the step size decreases

The trapezoidal rule may be viewed as the result obtained by averaging the left and right Riemann sums, and is sometimes defined this way. The integral can be even better approximated by partitioning the integration interval, applying the trapezoidal rule to each subinterval, and summing the results. In practice, this "chained" (or "composite") trapezoidal rule is usually what is meant by "integrating with the trapezoidal rule". Let be a partition of such that and be the length of the -th subinterval (that is, ), then When the partition has a regular spacing, as is often the case, that is, when all the have the same value the formula can be simplified for calculation efficiency by factoring out:.

The approximation becomes more accurate as the resolution of the partition increases (that is, for larger , all decrease).

As discussed below, it is also possible to place error bounds on the accuracy of the value of a definite integral estimated using a trapezoidal rule.

Illustration of "chained trapezoidal rule" used on an irregularly-spaced partition of .


Cite error: There are <ref group=lower-alpha> tags or {{efn}} templates on this page, but the references will not show without a {{reflist|group=lower-alpha}} template or {{notelist}} template (see the help page).


© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search