PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Viewing Version 5 of 'Simpson's rule'
[ view 'Simpson's rule' | back to history ]

Title of object: Simpson's rule
Canonical Name: SimpsonsRule
Type: Theorem

Created on: 2003-06-08 22:04:06
Modified on: 2004-12-27 14:26:12

Creator: drini
Modifier: drini
Author: drini
Author: akrowne

Classification: msc:65D32, msc:41A55, msc:26A06, msc:28-00

Revision comment (for changes between this and next version):

Changes for correction #8080 ('Even number of intervals').

Preamble:

\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

%\usepackage{psfrag}
%\usepackage{graphicx}
%\usepackage{xypic}
Content:

\emph{Simpson's rule} is a method of (approximate) numerical definite integration (or quadrature). Simpson's rule is based on a parabolic model of the function to be integrated (in contrast to the trapezoidal model of the trapezoidal rule). Thus, a minimum of three points and three function values are required. Here we take three equidistant points: $x_0x_2$ the interval endpoints, $x_1=(x_0+x_2)/2$ the midpoint, and let $h=|b-a|/2$ the distance between each. The definite integral is then approximated by:
\[
\int_{x_0}^{x_2} f(x) dx \approx I = \frac{h}{3} (f(x_0) + 4f(x_1) + f(x_2))
\]

We can extend this to greater precision by breaking our target domain into $n$ equal-length fragments. The quadrature is then the weighted sum of the above formula for every pair of adjacent regions, which works out to
\[
I = \frac{h}{3} (f(x_0) + 4f(x_1) + 2f(x_2) + 4f(x_3) + \cdots + 4f(x_{n-3}) + 2f(x_{n-2}) + 4f(x_{n-1}) + f(x_n))
\]