- Trapezium rule
In
mathematics , the trapezium rule (the British term) or trapezoidal rule (the American term) is a way to approximately calculate the definite integral: The trapezium rule works by approximating the region under the graph of the function by a trapezium and calculating its area. It follows that
:
To calculate this integral more accurately, one first splits the interval of integration into "n" smaller subintervals, and then applies the trapezium rule on each of them. One obtains the "composite trapezium rule":
:
This can alternatively be written as:
:
where
: for (one can also use a non-uniform grid).
The trapezium rule is one of a family of formulas for
numerical integration calledNewton–Cotes formulas .Simpson's rule is another, often more accurate, member of the same family. Simpson's rule and other like methods can be expected to improve on the trapezium rule for functions which are twice continuously differentiable; however for rougher functions the trapezium rule is likely to prove preferable. Moreover, the trapezium rule tends to become extremely accurate whenperiodic function s are integrated over their periods, a fact best understood in connection with theEuler–Maclaurin summation formula . For non-periodic functions, however, methods with unequally spaced points such asGaussian quadrature andClenshaw–Curtis quadrature are generally far more accurate.An advantage of the trapezium rule is that the sign of the error of the approximation is easily known. An integral approximated with this rule on a
concave-up function will be anoverestimate because the trapezoids include all of the area under the curve and extend over it. Using this method on aconcave-down function yields anunderestimate because area is unaccounted for under the curve, but none is counted above. If the interval of the integral being approximated includes an inflection point, then the error is harder to identify.ee also
*
Simpson's rule
*Romberg integration
*Newton–Cotes formulas References
*
* [http://numericalmethods.eng.usf.edu/topics/trapezoidal_rule.html Trapezoidal Rule of Integration - Notes, PPT, Mathcad, Maple, Mathematica, Matlab] at "Holistic Numerical Methods Institute"External links
* [http://math.fullerton.edu/mathews/n2003/TrapezoidalRuleMod.html Trapezoidal Rule for Numerical Integration]
Wikimedia Foundation. 2010.