In
numerical integration
In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral.
The term numerical quadrature (often abbreviated to quadrature) is more or less a synonym for "numerical integr ...
, Simpson's rules are several
approximation
An approximation is anything that is intentionally similar but not exactly equal to something else.
Etymology and usage
The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix ...
s for
definite integral
In mathematics, an integral is the continuous analog of a sum, which is used to calculate areas, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental operations of calculus,Int ...
s, named after
Thomas Simpson (1710–1761).
The most basic of these rules, called Simpson's 1/3 rule, or just Simpson's rule, reads
In German and some other languages, it is named after
Johannes Kepler
Johannes Kepler (27 December 1571 – 15 November 1630) was a German astronomer, mathematician, astrologer, Natural philosophy, natural philosopher and writer on music. He is a key figure in the 17th-century Scientific Revolution, best know ...
, who derived it in 1615 after seeing it used for wine barrels (barrel rule, ). The approximate equality in the rule becomes exact if is a polynomial up to and including 3rd degree.
If the 1/3 rule is applied to ''n'' equal subdivisions of the integration range
'a'', ''b'' one obtains the
composite Simpson's 1/3 rule. Points inside the integration range are given alternating weights 4/3 and 2/3.
Simpson's 3/8 rule, also called Simpson's second rule, requires one more function evaluation inside the integration range and gives lower error bounds, but does not improve the order of the error.
If the 3/8 rule is applied to ''n'' equal subdivisions of the integration range
'a'', ''b'' one obtains the
composite Simpson's 3/8 rule.
Simpson's 1/3 and 3/8 rules are two special cases of closed
Newton–Cotes formulas.
In naval architecture and ship stability estimation, there also exists ''Simpson's third rule'', which has no special importance in general
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of ...
, see
Simpson's rules (ship stability).
Simpson's 1/3 rule
Simpson's 1/3 rule, also simply called Simpson's rule, is a method for numerical integration proposed by Thomas Simpson. It is based upon a quadratic interpolation and is the
composite Simpson's 1/3 rule evaluated for
. Simpson's 1/3 rule is as follows:
where
is the step size for
.
The error in approximating an integral by Simpson's rule for
is
where
(the
Greek letter xi) is some number between
and
.
The error is asymptotically proportional to
. However, the above derivations suggest an error proportional to
. Simpson's rule gains an extra order because the points at which the integrand is evaluated are distributed symmetrically in the interval