Mid-ordinate and Simpson's rules
Studying this course? Keep your progress in one place.
Key facts
- Numerical integration splits into strips of width .
- Mid-ordinate rule: .
- Simpson's rule (even ): , with coefficients .
- Simpson's rule is exact for cubics.
- The mid-ordinate rule underestimates when and overestimates when .
Why numerical integration
Some integrands have no simple antiderivative, so split the interval into strips and add approximate areas.
Many integrands, such as , have no simple antiderivative, or only discrete data are known.
Numerical integration approximates by splitting into strips of equal width and adding approximate strip areas.
The ordinates are for .
- Strip width
- Ordinates for
You use strips on . What is , and how many ordinates are there?
The mid-ordinate rule
Replace each strip by a rectangle whose height is the function value at the midpoint of the strip.
The mid-ordinate rule replaces each strip by a rectangle whose height is the function value at the midpoint of the strip.
Here .
Worked example
Estimate using the mid-ordinate rule with .
- 1
, so the midpoints are .
- 2
The ordinates are .
- 3
The estimate is .
Using the mid-ordinate rule with on , where is the first ordinate taken?
Simpson's rule
Fit a parabola through each pair of strips, which needs an even number of strips.
Simpson's rule fits a parabola through each pair of strips (three ordinates). For an even number of strips:
The two end ordinates have coefficient 1, the odd-numbered ordinates 4, and the even-numbered interior ordinates 2.
| Coefficient | |||
|---|---|---|---|
| 0 | 1 | 1 | |
| 0.25 | 0.8 | 4 | |
| 0.5 | 0.6667 | 2 | |
| 0.75 | 0.5714 | 4 | |
| 1 | 0.5 | 1 |
- :
- 0
- :
- 0.25
- :
- 0.5
- :
- 0.75
- :
- 1
- :
- 1
- :
- 0.8
- :
- 0.6667
- :
- 0.5714
- :
- 0.5
Coefficient
- :
- 1
- :
- 4
- :
- 2
- :
- 4
- :
- 1
Worked example
Estimate using Simpson's rule with .
- 1
and the ordinates are in the table above.
- 2
The estimate is .
- 3
This equals .
Which set of coefficients is correct for Simpson's rule with ?
Working from data
Apply the rule directly to equally spaced values, using the data as the midpoints for the mid-ordinate rule.
If only data at equal spacing are given (a river's depth, a velocity at 1 s intervals), apply the rule to the values directly.
Simpson's rule uses the data at the strip boundaries. For the mid-ordinate rule, use wider strips so that the data points lie at the midpoints: values at give three strips of width 2.
Give a unit with the area, and keep full calculator values until the final rounding.
- Data at as midpointsthree strips of width 2, from to
Data are given at and you use the mid-ordinate rule with these as the midpoints. Over what interval are you integrating?
Accuracy and error
More strips give better accuracy; Simpson's rule is exact for cubics.
Accuracy improves as decreases (more strips).
Simpson's rule is exact for cubics (or any polynomial of degree up to 3).
The mid-ordinate rule underestimates when the function is convex () and overestimates when it is concave ().
Quote an error as a percentage: .
- Mid-ordinate
- Simpson
- Simpson's ruleexact for polynomials up to degree 3
- Mid-ordinate ruleunder if , over if
Worked example
Show that Simpson's rule with two strips is exact for .
- 1
and the ordinates are , , .
- 2
Simpson's rule gives .
- 3
The exact value is .
The mid-ordinate rule is used for . Is the estimate an over- or underestimate?
Try an exam question
Use Simpson's rule with 4 strips to estimate , giving your answer to 3 decimal places.
[4 marks]
- [1]States .
- [1]Finds the ordinates , , , , .
- [1]Uses .
- [1]Obtains .
That's the notes covered.
Carry on to the next subtopic.
Try a question
At which values of does the mid-ordinate rule with four strips evaluate the function?
1 mark, marked against the mark scheme
At which values of does the mid-ordinate rule with four strips evaluate the function?
1 mark, marked against the mark scheme