Mid-ordinate Rule Explained with Worked Examples

The mid-ordinate rule approximates by , where and the heights are measured at the midpoints of the strips.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Mid-ordinate rule means

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.

What is it used for?

The mid-ordinate rule measures each strip at its middle, which usually gives a better estimate than the ends.

How to use mid-ordinate rule

  1. Choose and compute .
  2. Find the midpoints of the strips.
  3. Evaluate at each midpoint and add.
  4. Multiply by .

Graph

sin x on [0, π] with the four mid-ordinates used by the rule0.3830.9240.9240.38300.511.522.5300.20.40.60.81sin x on [0, π] with the four mid-ordinates used by the rulexyy = sin xGraph with x from 0 to 3.1416 and y from 0 to 1.1. Shows the curve y = sin x; point 0.383 at (0.3927, 0.3827); point 0.924 at (1.1781, 0.9239); point 0.924 at (1.9635, 0.9239); point 0.383 at (2.7489, 0.3827).

The heights add to 2.613; times π/4 gives 2.052.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: ∫ sin x on [0, π]

Estimate the integral with 4 strips.

Worked example
Answer
2.05232.0523
  1. Sum of heights
  2. Times h

Example 2: ∫ dx/x on [1, 3]

Estimate the integral with 2 strips.

Worked example
Answer
1.06671.0667
  1. Heights

Example 3: ∫ x³ on [0, 2]

Estimate the integral with 2 strips.

Worked example
Answer
3.53.5
  1. Heights

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

∫₀¹ x², n = 4

M = 0.328125

Midpoints 0.125, 0.375, 0.625, 0.875.

Exact

1/3 ≈ 0.333333

M is slightly low.

Error

M − exact = −0.005208

≈ −h²f″(b − a)/24.

Compare

trapezium error +0.010417 is twice as big, opposite sign

T error = −2 × M error.

Word problems

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.

Apply the rule

Estimate ∫₀¹ x² dx with n = 4 mid-ordinates.

  1. Midpoints0.125, 0.375, 0.625, 0.875
  2. f values0.015625, 0.140625, 0.390625, 0.765625
  3. × 0.250.328125
  4. Check: ✓0.328125.

Actual error

Find M − exact.

  1. 0.328125 − 0.333333
  2. Check: −0.005208 ✓−0.005208.

Predicted error Higher

Use (b − a)h²f″/24.

  1. 1 × 0.0625 × 2 ÷ 24
  2. Check: 0.005208 ✓0.005208.

n = 2 Higher

Estimate with n = 2.

  1. Midpoints 0.25, 0.75
  2. 0.5 × (0.0625 + 0.5625)
  3. Check: 0.3125 ✓0.3125.

Common mistakes

Using endpoints

f(0.25), f(0.5), … ✗

midpoints of strips ✓

That is a Riemann sum.

Forgetting h

adding f values only ✗

multiply by h ✓

Width of each strip.

Wrong midpoints

0.25, 0.5, 0.75, 1 ✗

0.125, 0.375, 0.625, 0.875 ✓

Halfway through each strip.

Sign of the error

overestimates convex f ✗

underestimates convex f ✓

Opposite to the trapezium rule.

Exam tips

  1. Midpoints of strips.
  2. M = h Σ f(mid).
  3. Error ≈ h²f″(b − a)/24.
  4. Half the trapezium error.
  5. Opposite sign.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Midpoint of [0, 0.5] Foundation

0.25

2. M for ∫₀¹ x dx, n = 2 Foundation

0.5

3. M for ∫₀² x² dx, n = 2 (midpoints 0.5, 1.5) Foundation

2.5

4. Error predicted for ∫₀¹ x², n = 2 Higher

0.0208

5. M for ∫₀¹ x² with n = 2 to 4 d.p. Higher

0.3125

6. h for n = 8 on [0, 2] Higher

0.25

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Mid-ordinate rule
Rectangles at midpoint heights.
Midpoint
Centre of a strip.
Strip width (h)
(b − a)/n.
Truncation error
Error from approximating.
Convex function
f″ > 0.
Composite rule
Many strips.

Frequently asked questions

What is the mid-ordinate rule?

Approximating the integral using function values at strip midpoints.

How accurate is it?

Error about (b − a)h²f″/24.

How does it compare with the trapezium rule?

About twice as accurate with opposite sign.

Does it over- or underestimate a convex function?

It underestimates.

Which page covers the trapezium rule?

trapezium rule error.

Which page covers Simpson’s rule?

Simpson’s rule error.

More in Numerical methods and optimisation and the formula sheets.