The Mid-Ordinate and Trapezium Rules, and Which Way They Err | OCR B (MEI) A Level Further Maths notes

Free preview: The Mid-Ordinate and Trapezium Rules, and Which Way They Err

Strips, Ordinates and the Trapezium Rule

Year 1 or Year 2: check your own specification for when your board teaches this. Numerical integration is in AQA's compulsory core (section J), Edexcel's Further Pure 1 option and OCR B (MEI)'s Numerical Methods option.

Let's start with why. Many integrals, like ∫01ex2dx, cannot be done with any method you know. But the area under the curve still exists, so we estimate it.

  • You met the trapezium rule in A Level Maths ("The Trapezium Rule: Estimates, Over or Under, and Bounds").
  • Split [a, b] into n strips of equal width h=b−an. The x-values x0=a,x1,…,xn=b have heights yr=f(xr), called ordinates.

Diagram: A made-up example: both pictures estimate _1^2 1x\,dx with 4 strips of width 0.25.

What the picture shows

  • A made-up example: both pictures estimate ∫121xdx with 4 strips of width 0.25.
  • Wrong: 4 ordinates at 1, 1.25, 1.5 and 1.75 only make 3 trapezia. The strip from 1.75 to 2 is missed.
  • Right: 4 strips need 5 ordinates, at 1, 1.25, 1.5, 1.75 and 2. Count the gaps, not the lines.
  • In general n strips need n + 1 ordinates for the trapezium rule.

Tn=h2[y0+2(y1+y2+⋯+yn−1)+yn]

  • Each strip becomes a trapezium h2(yr+yr+1). Inside ordinates belong to two trapezia, so they are counted twice.

The recipe

  1. Find h = (b โˆ’ a)/n. Why: n is the number of strips.
  2. List the n + 1 x-values and their ordinates in a table. Why: method marks depend on the table.
  3. Add: first + last + 2 ร— (all the middle ones).
  4. Multiply by h/2.

๐Ÿ‘€ Watch me do it: find T4 for ∫121xdx

What I writeWhy I do it
h=2−14=0.25Four strips.
x: 1, 1.25, 1.5, 1.75, 2. y: 1, 0.8, 0.666667, 0.571429, 0.5Five ordinates, to 6 d.p.
1+0.5+2(0.8+0.666667+0.571429)=5.576190Ends once, middles twice.
T4=0.125×5.576190=0.697024h/2 = 0.125. Exact ln2=0.693147: too big by 0.0039.

โœ๏ธ YOUR TURN 1

Try this first:

Use the trapezium rule with 4 strips to estimate ∫02x2dx, and find the error.

Answer:

  • h = 0.5. Ordinates at 0, 0.5, 1, 1.5, 2: 0, 0.25, 1, 2.25, 4.
  • T4=0.25[0+4+2(0.25+1+2.25)]=0.25×11=2.75.
  • Exact 83=2.6667. Error +0.0833: an overestimate.

โœ๏ธ YOUR TURN 2

Try this first:

Back to the integral we could not do: I=∫01ex2dx. Use the trapezium rule with 2 strips, working to 6 d.p. (A computer gives I=1.462652.)

Answer:

  • h = 0.5. Ordinates at 0, 0.5, 1: e0=1, e0.25=1.284025, e1=2.718282.
  • T2=0.25[1+2(1.284025)+2.718282]=0.25×6.286333=1.571583.
  • Too big by about 0.11. Two strips is very rough, but we will improve it on the next pages.

The Mid-Ordinate Rule

Here's a different idea. Instead of slanting tops, use flat rectangles, but choose their height cleverly: at the middle of each strip.

  • Instead of the ends of each strip, use the height at its middle, xr+12=xr+h2, and make a rectangle.

Mn=h[y12+y32+⋯+yn−12]

๐Ÿ’ก In plain words

  • Width times the sum of the middle heights. No ends, no doubling.
  • Some books call it the midpoint rule.

The curve y = 1/x from 1 to 2 with four rectangles of width 0.25, each as tall as the curve at the middle of its strip

Following the diagram

  • Here ∫121xdx with 4 strips, so h=0.25. The exact answer is ln2=0.693147.
  • The midpoints are 1.125, 1.375, 1.625, 1.875, with heights 0.888889, 0.727273, 0.615385, 0.533333 (pink dashed lines).
  • M4=0.25(2.764880)=0.691220.
  • Notice each rectangle sticks out above the curve on one side and dips below on the other: the errors partly cancel.

๐Ÿ‘€ Watch me do it: compare M4 and T4 for ∫121xdx

What I writeWhy I do it
M4=0.691220, T4=0.697024From the two calculations.
Errors: M4−ln2=−0.0019, T4−ln2=+0.0039Subtract the exact value.
M's error is about half T's, with the opposite sign.This pattern is typical, and it leads to Simpson's rule (next note).

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Numerical Integration

  1. The Mid-Ordinate and Trapezium Rules, and Which Way They Err
  2. Simpson's Rule: Fitting Parabolas to Estimate an Integral
  3. Accuracy of Integration Rules: Error Ratios and Extrapolation

What's inside for this topic

3 teacher notes, 80 practice questions, 48 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Next note: Simpson's Rule: Fitting Parabolas to Estimate an Integral

The Mid-Ordinate and Trapezium Rules, and Which Way They Err on other exam boards

All OCR B (MEI) A Level Further Maths topics ยท A Level Further Maths