Simpson's rule

from Wikipedia, the free encyclopedia

The Simpson rule or Simpson's formula (after Thomas Simpson ), sometimes also Kepler's barrel rule (after Johannes Kepler ) is a method of numerical integration in which an approximation to the integral of a function in the interval is calculated by replacing the difficult-to-integrate function with an exact integrable parabola approximates.

Simpson's formula

The parabola is placed as an interpolation polynomial by function values ​​at the points , and . The integral is then approximated by the integral of the parabola. The Simpson rule is thus a so-called closed Newton-Cotes formula . The approximation of then results in:

history

The formula was first used by Evangelista Torricelli , born in 1608, but is named after the English mathematician Thomas Simpson, born in 1710. It corresponds to Kepler's barrel rule, which Johannes Kepler established in 1615.

Kepler reports on the genesis in the dedication of the later publication. After Kepler's first wife died in Prague in 1611, he remarried in 1613 - now working in Linz. He bought some barrels of wine for the wedding. When the wine was in the cellar, the seller came with a measuring rod and determined the contents of all the barrels using the same method without consideration or calculation. The metal tip of the measuring rod was inserted through the bunghole across to the edges of the two floors and the mark on the bunghole gave the volume. Kepler was surprised that a diagonal through the barrel half should provide a measure of the volume, and doubted the correctness of this method, since a very low barrel with slightly wider bottoms and therefore much smaller volume could have the same sight length.

Kepler then wrote the font Nova Stereometria doliorum vinariorum 1615 (New calculation of the content of wine barrels), in which he looked for verifiable methods for calculating the content of wine barrels. One of these methods consisted in approximating the curvature of the barrel by means of a parabola, since content calculations with the help of parabolas could be carried out exactly since Archimedes .

Among other things, he described a formula for calculating the capacity (more precisely the volume ) of wine barrels with irregular shapes. This formula provides exact values ​​for the circular cylinder , truncated cone (including cone ), sphere , ellipsoid of revolution , elliptical paraboloid, and single-shell hyperboloid .

example

With the help of the Simpson rule explained below, this specific integral is to be calculated approximately.

Error estimation

The remainder term (alternatively the quadrature error ) describes the difference between the actual integral and the approximation using Simpson's rule:

If four times continuously differentiable in , then the estimate applies to the remainder of the term

If it is also real-valued, then with a suitable intermediate point from applies for the remainder

This representation of the remaining limbs was found by Giuseppe Peano in 1887 . In particular, it says that the Simpson rule integrates polynomials of degree three exactly, i.e. one degree higher than one would expect from construction. All (closed and open) Newton-Cotes formulas of even degree have this property.

Illustration through rectangular areas

Simpson's formula illustration

The integral of the approximate parabola is equal to the hatched area of ​​six rectangles, each of which is 1/6 of the interval . One rectangle has the height , one rectangle the height and four rectangles the height .

Here you can also see the connection with the tendon trapezoidal formula and the tangent trapezoidal formula

While the two outer rectangles correspond to the approximation by the (1/3 scaled) chord trapezoidal formula, the remaining rectangles correspond to the tangent trapezoidal formula (scaled 2/3):

Summed Simpson's formula

In order to be able to approximate the integral even better, the interval is divided into adjacent, equally large sub-intervals. In each sub-interval, the Simpson formula is used for the individual sub-areas and then the resulting approximations are added. This gives the summed or compound Simpson rule. There are different notations for the subdivision into sub-intervals, which lead to different formulations of the summed Simpson's formula.

version 1

Summed up Simpson's formula for N = 2

Here the interval is divided into adjacent, equally large sub-intervals of length . The Simpson formula is used in each sub-interval and the resulting approximations are then added. With and you get:

or.

example

Applied to the example above:

Be and thus the step size . Then

Be and thus the step size . Then

Here is the value of the tendon trapezoidal rule and the value of the tangent trapezoidal rule .

Error estimation

The error estimate for the remainder is:

or for real-valued functions with a suitable intermediate point from the interval

The factor in the above formula means that if the step size is halved (doubling the intervals), as is the case with the Romberg method with the Romberg sequence, the error is approximately 16 times smaller, as the following example shows :

example

Applied to the example above:

With follows

and thus the error estimate

,

which is expected to result in a larger value than the exact value

The error estimate is obtained analogously

,

which is expected to result in a larger value than the exact value

.

It applies

.

Error estimation

If you calculate the Simpson rule twice with 2 different numbers of intervals , you get the following error estimate:

Especially when doubling the intervals (halving the step size) one obtains the error estimate:

Applied to the above example one obtains

Variant 2

Summed up Simpson's formula for N = 4

Here one divided interval in juxtaposed, equally large partial intervals with the center and length with . Since it is now twice as large as compared to variant 1, it is only half as large as compared to variant 1. This means that in all formulas of variant 1 this must be replaced by.

For every straight line one applies the Simpson's formula to the interval

and then adds the resulting approximations.

For straight now applies , and and we have:

or.

example

Applied to the example above:

Be , and the stride . Then

.

This is the same result as in variant 1.

Error estimation

The error estimate for the remainder is now

or for real-valued functions with a suitable intermediate point from the interval

Relation to other formulas

If one adds the error estimate for to the approximate value , one obtains the i. A. better formula:


This is the formula for the 3rd column of the calculation scheme of the Romberg integration when using the Romberg sequence and at the same time the result of the Milne rule (completed Newton-Cotes formula with degree of accuracy 5) when applied to sub-intervals of

Applied to the above example one gets with

a better approximation for the exact integral

than with or

with the same number of function values ​​to be evaluated as with , namely 13 pieces.

Volume calculation

The name barrel rule can be justified by the following application: To calculate the volume of a wine barrel, let the cross-sectional area transverse to the longitudinal axis at the distance from the bottom of the barrel; it can be easily calculated by determining the scope. If the height of the barrel, the volume is the same

The Kepler barrel rule now applies

as an approximation for the volume of a body whose cross-section is known in three places. If the body is a body of revolution, the following applies when the function is rotated around the x axis:

This formula gives the exact volume for certain solids of revolution such as a cone and truncated cone , cylinder , ellipsoid of revolution and paraboloid of revolution.

If the circumference of the base and lid and the circumference is in the middle of the barrel, this gives the approximate value

If the barrel has a parabolic curvature, the barrel is obtained by rotating the function around the x-axis. If you place the axis cross in the middle of the barrel for the sake of simplicity, the following applies

.

The exact value is obtained

As an error you get

This example shows the validity of the formula given above

verify well. Here is and

a polynomial of degree 4 with constant 4th derivative:

.

For the error you get

,

thus the same value as above.

The error is less than / equal to 0, so the approximation is greater than / equal to the exact volume . The error is greater, the more they differ and the more arched the barrel is. The error is 0 if and only if , i.e. if the barrel is a cylinder, in agreement with the above statement that the formula for cylinder is exact.

Use as a Runge-Kutta method

The Simpson rule can also be represented as the Runge-Kutta method , using the Butcher scheme

literature

  • Hans R. Schwarz, Norbert Köckler: Numerical Mathematics. 6th edition, Teubner, Stuttgart 2006, ISBN 3-519-42960-8 , pp. 311-316.
  • Johannes Kepler: New stereometry of the barrels . Translated from Latin and edited by R. Klug. W. Engelmann. Leipzig, 1908.

Web links

Commons : Simpson's rule  - collection of pictures, videos and audio files