In numerical analysis, the trapezoidal rule (also known as the trapezoid rule or trapezium rule) is a technique for approximating the definite integral ∫_a^b(x) dx
. The trapezoidal rule works by approximating the region under the graph of the function f(x) as a trapezoid and calculating its area. It follows that ∫_a^b(x) dx ~ (b - a) [f(a) - f(b)] / 2
.
References: