Midpoint rule
The center point rule (also: rectangle rule or tangent trapezoid rule ) is a numerical method for the approximate calculation of integrals ( numerical quadrature ). It is based on the continuous summation of closely spaced mean values of the function to be integrated.
description
Boxing rule
With the left-hand (left box rule) or right-hand box rule (right box rule) , the interval length is multiplied by the function value of the function to be integrated at the left or right edge point:
- .
The box rule plays an important role in the derivation of the Riemann integral . The left-hand boxing rule corresponds to the lower sums and the right-hand box rule corresponds to the upper sums. It is also comparable to the one-sided difference quotient .
The box rule is exactly for polynomial functions of degree at most 0 (i.e. for constant functions) and thus of order 1.
Midpoint rule
Take the midpoint of the interval and multiply the width of the interval by the function value of the integrand at this point in order to obtain an approximate value of the integral:
- .
If you turn the horizontal straight line at the point counterclockwise in the above picture of the center point rule, you get the tangent for the point . The picture below of the tangent trapezoidal rule results. Since the trapezoid thus obtained has the same area as the rectangle, the center point rule and the tangent trapezoid rule are only different geometric interpretations of the same quadrature formula.
The midpoint rule is exact for polynomial functions of degree at most 1 (i.e. for affine-linear functions) and therefore of order 2.
With the composite center point rule or the composite tangent trapezoidal formula , the interval is now divided into equidistant sub-intervals of the width . Then the center rule is carried out for each of the sub-intervals and the areas are summed up. This leads to the equation:
- .
example
Let a function (the natural logarithm) be integrated in the interval . This would require the calculation of the integral . The general solution is:
- .
So is
Using the compound center rule with four sub-intervals results in the following:
- Breakdown of the interval into four sub-intervals: and with the interval centers 2.5, 3.5, 4.5 and 5.5.
- Calculation of:
- So it applies .
Web links
- Numerical integration ( Java applet for displaying various integration methods)
Individual evidence
- ^ Hans Petter Langtangen: A Primer on Scientific Programming with Python . 3. Edition. Springer, Berlin / Heidelberg 2012, ISBN 978-3-642-30293-0 .