Rectangle method
From Wikipedia, the free encyclopedia
In integral calculus, the rectangle method uses an approximation to a definite integral, made by finding the area of a series of rectangles. In numerical computation, this has generally been superseded by more sophisticated methods of numerical integration.
Either the left or right corners, or top middle of the boxes lie on the graph of a function, with the bases run along the x-axis. The approximation is taken by adding up the areas (base multiplied by height, a function value) of the n rectangles that fill the space between two desired x-values.
The necessity of a + i'Δx arises when a is not zero, and as such the position of the first rectangle is not at f(i'Δx) but rather at f(a + i'Δx). As n gets larger, the approximation gets more accurate. In fact, the limit of the approximation as n approaches infinity is exactly equal to the definite integral.
This is true regardless of which i' is used. Although the midpoint approximation tends to be more accurate for finite n, the limit of all three approximations as n approaches infinity is the same, thus any of them can be used to calculate a definite integral.