∫₀¹ x², n = 4
M = 0.328125
Midpoints 0.125, 0.375, 0.625, 0.875.
The mid-ordinate rule approximates by , where and the heights are measured at the midpoints of the strips.
This page is easier if you are comfortable with:
For with 4 strips (): the midpoints are with sines , sum , so the estimate is . For with 2 strips (): , compared with . For with : against the exact 4.
The rule is usually about twice as accurate as the trapezium rule and has error of opposite sign: the error is about , half of the trapezium rule's (trapezium rule error). A convex function is underestimated by the mid-ordinate rule and overestimated by the trapezium rule, so a weighted combination (two parts mid-ordinate, one part trapezium) gives Simpson's rule (Simpson's rule error).
It is a Riemann sum with midpoint sample points (Riemann sums, upper and lower rectangle sums). The exact integrals compare with sine integrals, the logarithm integral and the power rule.
The mid-ordinate rule measures each strip at its middle, which usually gives a better estimate than the ends.
The heights add to 2.613; times π/4 gives 2.052.
These examples are worked by hand, step by step, so you can compare your own working.
Estimate the integral with 4 strips.
Estimate the integral with 2 strips.
Estimate the integral with 2 strips.
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
M = 0.328125
Midpoints 0.125, 0.375, 0.625, 0.875.
1/3 ≈ 0.333333
M is slightly low.
M − exact = −0.005208
≈ −h²f″(b − a)/24.
trapezium error +0.010417 is twice as big, opposite sign
T error = −2 × M error.
The mid-ordinate rule approximates ∫ₐᵇ f by h × Σ f(midpoint) over n strips. Its error is about (b − a)h²f″/24, half the size of the trapezium rule’s and opposite in sign.
Estimate ∫₀¹ x² dx with n = 4 mid-ordinates.
Find M − exact.
Use (b − a)h²f″/24.
Estimate with n = 2.
f(0.25), f(0.5), … ✗
midpoints of strips ✓
That is a Riemann sum.
adding f values only ✗
multiply by h ✓
Width of each strip.
0.25, 0.5, 0.75, 1 ✗
0.125, 0.375, 0.625, 0.875 ✓
Halfway through each strip.
overestimates convex f ✗
underestimates convex f ✓
Opposite to the trapezium rule.
Try each one on paper, then open the answer. Use the solver above to see the full working.
0.25
0.5
2.5
0.0208
0.3125
0.25
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
Approximating the integral using function values at strip midpoints.
Error about (b − a)h²f″/24.
About twice as accurate with opposite sign.
It underestimates.
trapezium rule error.
Simpson’s rule error.
More in Numerical methods and optimisation and the formula sheets.