Module for Simpson's Rule for Numerical Integration
Check out the new Numerical Analysis Projects page.
The numerical integration technique known as "Simpson's Rule" is credited to the mathematician Thomas Simpson (1710-1761) of Leicestershire, England. His also worked in the areas of numerical interpolation and probability theory.
Theorem (Simpson's
Rule) Consider
over
,
where
,
and
. Simpson's
rule is
![]()
.
This is an numerical approximation to the integral of
over
and we write
.
Composite Simpson Rule
Our next
method of finding the area under a curve
is by approximating that curve with a
series of parabolic segments that lie above the
intervals
. When
several parabolas are used, we call it the composite
Simpson rule.
Theorem
(Composite
Simpson's Rule) Consider
over
. Suppose
that the interval
is subdivided into
subintervals
of
equal width
by
using the equally spaced sample points
for
. The
composite
Simpson's rule for
subintervals is
![]()
![]()
.
This is an numerical approximation to the integral of
over
and we write
.
Animations (Simpson
Rule Simpson
Rule). Internet
hyperlinks to animations.
Algorithm Composite Simpson
Rule. To approximate the
integral
![]()
![]()
,
by sampling
at
the
equally
spaced sample
points
for
, where
. Notice
that
and
.
Mathematica Subroutine (Simpson Rule). Traditional programming.
![[Graphics:Images/SimpsonRuleMod_gr_132.gif]](Images/SimpsonRuleMod_gr_132.gif)
Mathematica Subroutine (Simpson Rule). Object oriented programming.
![[Graphics:Images/SimpsonRuleMod_gr_133.gif]](Images/SimpsonRuleMod_gr_133.gif)
Example
1. Numerically approximate the integral
by using Simpson's rule with m = 1, 2, 4, 8, and 16.
Example
2. Numerically approximate the integral
by using Simpson's rule with m = 20, 40,
80, and 160.
Example 3. Find the
analytic value of the integral
(i.e.
find the "true value").
Example 4. Use the "true value" in example 3 and find the error for the Simpson rule approximations in example 2.
Remainder
term for the Composite Simpson Rule
Corollary (Simpson's
Rule: Remainder term) Suppose
that
is subdivided into
subintervals
of
width
. The
composite
Simpson's rule
![]()
![]()
.
is an numerical approximation to the integral, and
.
Furthermore, if
, then
there exists a value
with
so
that the remainder term
has
the form
.
This is expressed using the "big
"
notation
.
Old Lab Project (Simpson's
Rule Simpson's
Rule). Internet
hyperlinks to an old lab project.
Research Experience for Undergraduates
Simpson's Rule for Numerical Integration Simpson's Rule for Numerical Integration Internet hyperlinks to web sites and a bibliography of articles.
Downloads (Simpson's Rule Simpson's Rule). Download this Mathematica notebook.
(c) John H. Mathews 2003