Area 7 of the course is Computational Methods or Mechanics: each school teaches one. This unit and Unit 20 are Computational Methods; Units 22–23 are Mechanics.
How much water does a river carry past you each second? Hydrologists answer it by going across the river, measuring the depth every few meters, and the water’s speed. The depths give the area of the river’s cross-section, the slice you would see if the river were cut across, and area times speed is the flow. But the riverbed has no equation: there is nothing to integrate, only a list of depths. This unit turns such a list into an area, and the river’s answer comes at the end of 21.2. (The river’s depths below are made up; the way the flow is measured is the US Geological Survey’s.)
21.1 Trapezoidal rule
Unit 19 found the area under a curve as the limit of sums of thin rectangles, and then, far more easily, as F(b) − F(a). But the second way needs an anti-derivative, and often there is none to use:
- the curve is only measured, at a few points: a river’s depths, a field’s width, a car’s speed read every second;
- or its anti-derivative is not one of the functions we know. , the area under the bell curve of statistics, is the famous case: no combination of powers, roots, exponentials, logarithms and trigonometric functions has as its derivative.
So we go back to strips, and make each strip fit the curve better than a rectangle does. That is numerical integration.
Cut [a, b] into n strips of equal width . The heights of the curve at the cuts, y₀ = f(a), y₁ = f(a + h), …, , are the ordinates: n strips have n + 1 of them.
The rule. Join the tops of neighboring ordinates by straight lines (chords): each strip becomes a trapezium.
- A trapezium’s area is half the sum of its parallel sides times the distance between them. The first strip’s parallel sides are y₀ and y₁, h apart, so its area is .
- In the same way the strips have areas , , …, .
- Add them. y₀ and are each the side of one strip only; every ordinate in between is shared by two strips, so it is counted twice:
In words: half the width times (the first and last, plus twice all the rest). It is the average of Unit 19’s left-height and right-height rectangle sums.
The trapezoidal rule with only one strip, n = 1, gives :
Pick an answer to see why.
21.2 Simpson’s rule
A chord is a straight line, and a curve isn’t. Through any three points (not in a line) passes exactly one parabola with a vertical axis, and a parabola can bend as the curve bends. So take the strips in pairs, and over each pair put the parabola through its three ordinates.
The area under one parabola. Move the Y-axis to the middle ordinate, so the three points are (−h, y₀), (0, y₁), (h, y₂). Moving the axis doesn’t change the area.
- The parabola passes through them: , y₁ = C, .
- Its area over [ −h, h] is (the Bx part cancels: it is odd).
- From step 1, , so .
- So the area under the parabola is : the middle ordinate counts four times.
The rule. With n strips, n even, the pairs give . Each odd ordinate is the middle of a pair (×4); each even one inside is the end of two pairs (×2):
The weights run 1, 4, 2, 4, 2, …, 4, 1. It is often called Simpson’s one-third rule, for the . Since it takes strips in pairs, n must be even, an odd number of ordinates (5, 7, 9…); with 6 ordinates, use the trapezoidal rule, or Simpson’s on four strips and a trapezium for the fifth.
How good is each rule?
exactly. Here are the two rules, and their errors, as the strips double:
| Strips n | 2 | 4 | 8 | 16 |
|---|---|---|---|---|
| Trapezoidal | 1.570796 | 1.896119 | 1.974232 | 1.993570 |
| its error | 0.429204 | 0.103881 | 0.025768 | 0.006430 |
| Simpson’s | 2.094395 | 2.004560 | 2.000269 | 2.000017 |
| its error | −0.094395 | −0.004560 | −0.000269 | −0.000017 |
Halving h divides the trapezoidal error by about 4 (it goes as ), and Simpson’s by about 16 (as ). That is why Simpson’s rule is the one to choose when n is even. Simpson’s rule is even exact for every cubic: the exercise asks why.
In Simpson’s rule with n = 4 on [0, 2], the ordinate at x = 1 is multiplied by:
Pick an answer to see why.
Back to the river
Exercise
Choose the correct option
The trapezoidal rule with n strips of width h is :
Pick an answer to see why.
On each strip, the trapezoidal rule replaces the curve by:
Pick an answer to see why.
by the trapezoidal rule with h = 0.5 uses how many ordinates?
Pick an answer to see why.
The trapezoidal rule is used on . Its answer is:
Pick an answer to see why.
Simpson’s rule, as it stands, can’t be used with:
Pick an answer to see why.
The trapezoidal rule gives 0.7828 for . Its relative error is about:
Pick an answer to see why.
A trapezoidal answer has an error of 0.04. With the strips halved in width, the error will be about:
Pick an answer to see why.
The trapezoidal rule with n = 2 gives :
Pick an answer to see why.
Simpson’s rule with n = 2 gives :
Pick an answer to see why.
Simpson’s rule with n = 2 gives the exact value of which integral?
Pick an answer to see why.
T₂ and T₄ are trapezoidal answers for the same integral with 2 and 4 strips. Then is:
Pick an answer to see why.
Short questions
Evaluate with n = 4 by a. the trapezoidal rule [2], b. Simpson’s rule [2], and c. compare each with the exact value [1]. Give answers to four decimal places.
Hint
Answer
The sunlight on a flat roof in Bhaktapur on an average April day, averaged by PVGIS at the middle of each hour from 6:15 am to 6:15 pm Grade 11: Unit 19, is 66, 254, 465, 654, 788, 856, 837, 758, 637, 489, 325, 156 and 16 W/m². Find by Simpson’s rule the energy that falls on each square meter between those times, in kWh. (5 marks)
Hint
Answer
A plot of land lies between a straight boundary 60 m long and a stream. The distances (offsets) from the boundary to the stream, every 10 m along it, are 12, 15, 18, 17, 20, 16 and 14 m. Find the plot’s area by Simpson’s rule, in square meters and in ropani (1 ropani = 5476 square feet = 508.74 m² = 16 aana). (5 marks)
Hint
Answer
Project work
Printable PDFs
- Study notes 2 pages
- Worksheet 4 pages Answer key
- Harder practice questions 2 pages Answer key
Practice every question in the book, and keep track of the ones you miss →
Where these facts come from
- How river flow is measured: “discharge = area × velocity”; the cross-section divided into vertical subsections, the width and depth of each measured, the speed by current meter, at 25 to 30 regularly spaced places, the subsections’ flows summed (the opening, Example 3): USGS Water Science School, “How Streamflow is Measured”, read November 2026.
- Kepler’s second marriage while working in Linz (1613), the merchant’s rod pushed through the bung hole to the edges of the ends, Nova stereometria doliorum vinariorum (1615) and the barrel rule : Wikipedia (German), “Keplersche Fassregel”; Simpson’s dates and the rule named after him: Wikipedia, “Simpson’s rule”; that he learned the method from Newton, as he acknowledged: MacTutor, “Thomas Simpson”, all read November 2026 (21.2).
- That has no elementary anti-derivative (Liouville’s theorem): Wikipedia, “Nonelementary integral”, read November 2026 (21.1).
- 1 ropani = 5476 square feet (74 feet square, so 508.74 m²) = 16 aana: Wikipedia, “Nepalese units of measurement”, read November 2026 (Question 3). The plot’s offsets are made up.
- Bhaktapur’s sunlight (Question 2): PVGIS, as in Unit 19’s sources.
- The unit’s items and project work: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, 7.2 and sample project 17; the marks and the model question: CDC, Specification Grid 2078, Mathematics, Grade 11, and its model paper, question 19.
Found a mistake? Please tell us.
