 Simpson's Rule - Maple Help

Home : Support : Online Help : Math Apps : Calculus : Integral : Simpson's Rule

Simpson's Rule

Main Concept Integral The integral of a function $f\left(x\right)$ between the points $a$ and $b$ is denoted by     and can be roughly described as the area below the graph of $y=f\left(x\right)$ and above the $x$-axis, minus any area above the graph and below the $x$-axis, and all taken between the points $a$ and $b$.  The integral is important because it is an antiderivative for the original function, that is, if then     $g'\left(x\right)=f\left(x\right)$. Riemann sum

A Riemann sum is an approximation to the integral, that is, an approximation using rectangles to the area mentioned above. The line segment from $x=a$ to $x=b$ is split into $n$ subsegments which form the bases of these rectangles, and the corresponding heights are determined by the value of $f\left({x}_{i}\right)$ at some point ${x}_{i}$ between the endpoints of the subsegment. The division of the segment $\left[a,b\right]$ into subsegments is called a partition. For the sake of convenience we will assume here that the subsegments are of equal width, although this is not strictly necessary.

The Riemann Sum is then given by the general formula:

There are five main types of Riemann Sums, depending on which point ${x}_{i}$ is chosen to determine the height:

 • Right Sum: the right endpoint of the subsegment
 • Left Sum: the left endpoint of the subsegment
 • Middle Sum: the point half way between the left and right endpoints
 • Lower Sum: any point ${x}_{i}$ such that $f\left({x}_{i}\right)$ is minimal
 • Upper Sum: any point ${x}_{i}$ such that $f\left({x}_{i}\right)$ is maximal Simpson's Rule

Instead of approximating the area under a curve using rectangles or trapezoids, parabolas can be used to approximate each part of a curve.

Let us compute the area under a parabola of the equation  passing through the three points :

 $=$ $=$ $=$ $\frac{h}{3}\left(2\cdot a\cdot {h}^{2}+6\cdot c\right)$

As the points are on the parabola, we have:

 $c$

Hence:

 $=$

Therefore, the area under a parabola can be written as:

 $\mathrm{A}=$ $=$

Hence by adding all the areas under each parabolic arc using three points we can derive:

The above equation can be simplified into Simpson's rule:

Adjust the size (n) of the partition used to approximate the area under the curve. Since two subsegments of the partition are used for each parabola, there will be $\frac{n}{\mathit{2}}$ parabolas used. domain = range =     n = Example = Example1Example2Example3Example4





 More MathApps