Simpson's Rule - Examples, Method, & Formula - Video & Lesson TR
Simpson's Rule - Examples, Method, & Formula - Video & Lesson TR
Table of Contents
Simpson's Rule
Simpson Method
Simpson's 1/3 rule is an approximation for definite integrals. It states that for an integral from
a to b of f(x) dx, it is approximately Delta x/ 3 f(x_0) + 4f(x_1) + 2f(x_2) + 4f(x_3) + 2f(x_4) + ... +
4f(x_{n-1}) + f(x_n). Here, n must be even and Delta x = (b-a)/n. This formula is exact for
polynomials, f(x), up to degree two.
Create an account
Simpson's Rule
A rule for approximate integration using parabolas instead of straight line segments is Simpson's
Rule. Here is its statement:
Simpson's Rule:
b Δx
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + 2f (x 2 ) + 4f (x 3 ) + ⋯ + 2f (x n−2 ) + 4f (x n−1 ) + f (x n )]
a 3
To unlock this lesson you must be a Study.com Member.
Create your account
Simpson Method
History of Simpson's Method
Simpson's rule for approximating definite integrals was first published by Thomas Simpson in 1743.
Although named after him, Thomas Simpson was not actually the one who first discovered it.
Bonaventura Cavalieri discovered an early version of this rule in 1639 and James Gregory published
this variation in 1668 along with some other numerical methods for approximating definite
integrals.
The Method
Simpson's method is based on the principle that, given any three points, a quadratic equation can
be found that goes through those three points. This first inspired Thomas Simpson to approximate
integrals using parabolas. Therefore, rather than trying to integrate a complicated polynomial that
may not be integrable, parabolas are used to approximate the value of the integral.
The graph of f is shown in Figure 1. The three points, f(a), f(b), and f(m) are on the graph of f. The
parabola through these three points is used to approximate the area under the curve of the f curve
in Simpson's rule rather than integrating f. This is because integrating, or finding the area under the
curve, of a parabola is much easier than integrating other types of functions. Here is another image
in Figure 2 showing how parabolas are used to approximate curves and approximate the area
under the curve of said curves.
Fig. 2: Parabola Approximation Simpson
Three points are chosen on the curve f and a parabola is created. This parabola closely models the
shape of the graph and, therefore, will closely approximate the area under the curve for the
modeled area. Multiple parabolas can approximate an integral, as shown in Figure 2.
Integrating over these parabolas will yield an approximation of the area under the original curve.
However, Simpson's rule will easily give the area under these parabolas and the approximate area
under the curve:
b Δx
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + 2f (x 2 ) + 4f (x 3 ) + ⋯ + 2f (x n−2 ) + 4f (x n−1 ) + f (x n )]
a 3
When there are only two regions in the integration area, n = 2 Simpson's rule formula will apply.
Here is Simpson's rule calculus for the case of two divisions of the integration area:
b Δx
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + f (x 2 )]
a 3
b b−a
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + f (x 2 )]
a 6
Finally, notice that the order of the coefficients is 1, 4, 1 since there are only three values
considered in this particular case of Simpson's rule.
To unlock this lesson you must be a Study.com Member.
Create your account
Another rule developed by Thomas Simpson is Simpson's 3/8 rule. Here is Simpson's 3/8 rule
definition for the approximation of a definite integral:
b 3
∫ f (x)dx ≈ Δx [f (x 0 ) + 3f (x 1 ) + 3f (x 2 ) + 2f (x 3 ) + 3f (x 4 ) + 3f (x 5 ) + 2f (x 6 ) + ⋯ + 3f (x n−
a 8
What does this formula look like for different values of n? Here are the first couple formulas
defined from the different n values:
To unlock this lesson you must be a Study.com Member.
Create your account
Here is a Simpson's 1/3 rule example of how to approximate the definite integral of a quadratic
function with four divisions of the integration region:
Example:
Solution:
Since there are four divisions of the integration region, Simpson's formula takes the form of
b
.
Δx
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + 2f (x 2 ) + 4f (x 3 ) + f (x 4 )]
a 3
To unlock this lesson you must be a Study.com Member.
Create your account
Here is a Simpson's 3/8 rule example using three divisions of the integration region and a cubic
polynomial.
Example:
7
Approximate the value of ∫ 1 (1 + 2x 3 )dx using Simpson's 3/8 rule.
7
Solution:
Since there are three divisions of the integration region, n = 3 and the formula takes the form of:
b
.
3
∫ f (x)dx ≈ Δx [f (x 0 ) + 3f (x 1 ) + 3f (x 2 ) + f (x 3 )]
a 8
Since n ,
= 3 Δx =
7−1
3
=
6
3
= 2 and the formula becomes:
.
7 3
3
∫ (1 + 2x )dx ≈ [f (x 0 ) + 3f (x 1 ) + 3f (x 2 ) + f (x 3 )]
1 4
To unlock this lesson you must be a Study.com Member.
Create your account
Lesson Summary
Simpson's rule, or Simpson's 1/3 rule, gives an approximation for a definite integral using
parabolas to approximate the curve. The formula for Simpson's rule is:
b Δx
∫ f (x)dx ≈ [f (x 0 ) + 4f (x 1 ) + 2f (x 2 ) + 4f (x 3 ) + ⋯ + 2f (x n−2 ) + 4f (x n−1 ) + f (x n )]
a 3
To unlock this lesson you must be a Study.com Member.
Create your account
Video Transcript
Simpson's Rule
Integration, or anti-differentiation, is a fascinating math idea. We have methods and rules for
integrating that work for most f(x) functions we encounter. There are some functions, however, that
are difficult if not impossible to integrate using the usual techniques. One application in the real
world is calculating the moment of inertia of a Gaussian shaped part. There is no closed-form
solution for the integral of a Gaussian curve between two values (other than -∞ to +∞). So what do
we do? We use numerical methods like Simpson's Rule, named after the English mathematician,
Thomas Simpson.
Parabolas & Area
The big picture idea behind Simpson's Rule is finding the area under a parabola between two
points. A parabola is a curve resembling the letter U or an upside-down U.
We start by fitting a parabola to the curve between x = 1 and x = 3
For the area between x = 3 and x = 5, we again fit a parabola to the curve:
The integral f(x), from xo to x2 equals h over 3 times yo plus 4 times y1 plus y2. But what are all
these variables?
We'll use the previous result for x2 - xo and substitute xo + 2h for x2:
f(x), is a parabola:
Integrating we get:
The parentheses hold the algebra we just worked out. Substituting and simplifying, we get this:
For the right-hand side (or RHS) of the equation, we have this:
Using the expression for the parabola and substituting xo for x gives us yo. We'll use the same
process to get y1 and y2:
Factoring α, β and γ:
Which is the same as the LHS! We've just shown that the integral of a parabola can be expressed in
terms of y values and the separation, h, between the x values.
We write ≈ because the parabola does not fit the curve exactly.
This last line with the alternating 4s and 2s is Simpson's Rule. In general, we write
To unlock this lesson you must be a Study.com Member.
Create your account
Related Topics
Create an account