Lesson 6 of 8 · 18 min
Simpson's rule
Approximate an area or a definite integral by fitting parabolas through pairs of strips, from a formula or a table of measurements, and judge how accurate the estimate is.
What you will be able to do
- Explain why Simpson's rule fits parabolas and why it needs an even number of strips.
- Apply Simpson's rule to a function or a table of values, with and without technology.
- Compare Simpson's rule with the trapezoidal rule and with an exact value.
Some integrals cannot be done exactly. has no antiderivative made of the functions you know. And sometimes there is no formula at all, only measurements: the depth of a river every 2 metres, or the width of a block of land every 10 metres.
In Methods the trapezoidal rule joined the points with straight lines. Simpson's rule joins them, three at a time, with parabolas. Curves follow curves far better than lines do.
Simpson's rule with on . One parabola passes through the points at and another through . They hug the curve.
Key idea
Simpson's rule
Divide into an even number of strips of width , with ordinates . Then
The ends get weight , odd-numbered ordinates get , and even-numbered interior ordinates get . This is in the formula book.
Where the 1, 4, 1 comes from
Put the middle of a pair of strips at , so the ordinates are at , and with heights . The parabola through them has
and . So the area under each parabola is exactly . Adding the pairs, each shared ordinate is counted twice, which is where the s come from.
A bonus: Simpson's rule is exact for every cubic, not just quadratics, because the term integrates to zero over a symmetric pair of strips.
Setting out Simpson's rule
Find and check that is even
. There are ordinates, to .
Make a table
List , and the multiplier .
Add the weighted values
Multiply each by its multiplier and add.
Multiply by
Round only at the end, as the question asks.
Worked example
Simpson's rule for
Use Simpson's rule with to estimate . Compare your estimate with the exact value, .
Step 1: Find the strip width
, so the ordinates are .
Step 2: Tabulate the values and multipliers
multiplier A table keeps the odd and even ordinates apart, which is where most errors happen.
Step 3: Add the weighted values
Step 4: Multiply by w/3
Step 5: Compare with the exact value
The error is , about . The trapezoidal rule with the same five ordinates gives , an error more than ten times larger.
Try it yourself first, then check the working one step at a time.
Answer
Simpson's rule gives , within about of .
Method
with even.
Tabulate , and the multipliers .
Multiply the weighted sum by .
Watch out for
Using from the trapezoidal rule.
Putting the 4s on instead of and .
A function takes the values below. Use Simpson's rule with to estimate , correct to two decimal places.
With the trapezoidal rule gives , an error of about . Simpson's rule with the same five ordinates gives , an error of about . How large must be before the trapezoids do as well?
Use Simpson's rule with to estimate . Compare your answer with the exact value.
Worked example
A river's flow from depth soundings
A hydrologist measures the depth of a creek every 2 metres across its 12-metre width.
| Distance from bank (m) | |||||||
|---|---|---|---|---|---|---|---|
| Depth (m) |
a) Use Simpson's rule to estimate the area of the cross-section.
b) The water flows through the cross-section at an average speed of . Estimate the flow rate in cubic metres per second.
c) Comment on the reasonableness of your estimate.
Step 1: Check the conditions
The readings are equally spaced, , and there are seven ordinates, so , which is even.
Step 2: Apply Simpson's rule
Step 3: Find the flow rate
Each second, a slab of water m long passes through the cross-section: .
Volume per second = area of cross-section × distance the water moves per second.
Step 4: Evaluate reasonableness
The average depth is m, between the edge and the deepest reading: sensible. The trapezoidal rule gives , close to Simpson's value. The real bed between readings is unknown, so quote the answer to about 2 or 3 significant figures, and note that the speed is an average: water near the bed moves more slowly.
Try it yourself first, then check the working one step at a time.
Answer
a) About . b) About . c) Reasonable to 2–3 significant figures; the estimate depends on the bed being smooth between readings.
Method
Check that readings are equally spaced and is even.
Apply Simpson's rule to the table.
Use the estimate in the context, with units.
Compare with another method or a simple shape.
Watch out for
Counting seven readings as : there are ordinates.
Forgetting the zero depths at the banks: they are and .
Common mistake
Odd n, wrong weights, w over 2
Three slips cost most marks here. must be even, so five ordinates means , not . The 4s go on the odd subscripts , which sit next to the ends. And the factor in front is ; belongs to the trapezoidal rule.
Without technology
The values are given in a table, or the function is easy to evaluate at the ordinates. Set out the table and keep fractions or exact values until the last line.
With technology
Store the function and evaluate it at each ordinate, or enter the ordinates and multipliers as lists and multiply. Use the numerical integration tool to check the estimate and to find its error.
Exam tip
Judging accuracy
If you are asked to evaluate an estimate, compare it with the exact value or a technology value, and give the error or percentage error. Simpson's rule is usually far more accurate than the trapezoidal rule with the same ordinates, and doubling cuts its error by a factor of about .
Summary
Simpson's rule fits a parabola through each pair of strips, so must be even.
Weights , then multiply by with .
It works on a formula or on a table of equally spaced measurements.
It is exact for polynomials up to degree three.
Set out a table, round only at the end, and compare with an exact or technology value when asked.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.