Trapezium and Simpson's rules: numerical areas
What this lesson covers
- When a function cannot be integrated, or only data is given, the area is estimated from ordinates.
- The strip width h is the interval width divided by the number of strips, not the number of ordinates.
When you cannot integrate
- No antiderivative, or only data.
- Estimate from the heights: ordinates.
- Equally spaced values of x.
Both rules are in the booklet
- Trapezium rule and Simpson's rule.
- Know what goes into them.
- H = (b − a) ÷ number of strips.
y = 1/x, from 1 to 3, four strips
- Each strip is a trapezium.
- H = (3 − 1)/4 = 0.5.
- The tops sit just above the curve.

Try it: add more strips
- More strips fit the curve better. Compare both rules with the true value.
Four strips, five ordinates
- One ordinate at each strip edge.
- Ends count once.
- Middle ordinates count twice.
| x | y = 1/x | Weight |
|---|---|---|
| 1 | 1 | 1 |
| 1.5 | 2/3 | 2 |
| 2 | 1/2 | 2 |
| 2.5 | 2/5 | 2 |
| 3 | 1/3 | 1 |
The trapezium rule
- Ends once, middle twice.
- Exact fractions, then 4 d.p.
- A ≈ (h/2)[ends + 2 × middle]
- h/2 = 0.5/2 = 1/4
- ends: 1 + 1/3 = 4/3
- middle: 2/3 + 1/2 + 2/5
- = 20/30 + 15/30 + 12/30 = 47/30
- 2 × 47/30 = 47/15
- bracket = 20/15 + 47/15 = 67/15
- A ≈ (1/4)(67/15) = 67/60
- ≈ 1.1167
The wrong h: a 2025 error
- Strips, not ordinates.
- Strips = ordinates − 1.
- bracket = 67/15
- h = (3 − 1)/5 = 0.45 ordinates
- 0.2 × 67/15 = 67/75 ≈ 0.8933
- h = (3 − 1)/4 = 0.54 strips
- 0.25 × 67/15 = 67/60 ≈ 1.1167
Simpson's rule
- An even number of strips.
- Weights 1, 4, 2, 4, …, 4, 1.
- Multiply by h/3, not h/2.
Simpson's rule on y = 1/x
- Weights: odd 4, even 2.
- Then multiply by h/3.
- A ≈ (h/3)[ends + 4 odd + 2 even]
- h/3 = 0.5/3 = 1/6
- ends: 1 + 1/3 = 4/3
- 4(2/3 + 2/5) = 4(16/15) = 64/15
- 2(1/2) = 1the even ordinate
- bracket = 4/3 + 64/15 + 1
- = 20/15 + 64/15 + 15/15 = 99/15
- A ≈ (1/6)(99/15) = 99/90
- = 11/10 = 1.1
How close are they?
- Exact: ln 3 ≈ 1.0986.
- Trapezium is over: the curve bends up.
- Simpson's is much closer.
| Value | |
|---|---|
| exact | ln 3 ≈ 1.0986 |
| trapezium | ≈ 1.1167, over |
| Simpson's | 1.1000 |
Try it: the exact area to compare
From a table: a car speeding up
- Distance = area under the speed graph.
- 7 readings, so 6 strips.
- 6 is even, so both rules work.
| t (s) | v (m/s) | Simpson |
|---|---|---|
| 0 | 0 | 1 |
| 2 | 5 | 4 |
| 4 | 9 | 2 |
| 6 | 12 | 4 |
| 8 | 14 | 2 |
| 10 | 15 | 4 |
| 12 | 15 | 1 |
Distance: the trapezium rule
- H = 2, so h/2 = 1.
- Ends once, middle twice.
- h = (12 − 0)/6 = 2, h/2 = 1
- ends: 0 + 15 = 15
- middle: 5 + 9 + 12 + 14 + 15 = 55
- d ≈ 1 × [15 + 2(55)]trapezium rule
- = 15 + 110 = 125 m
Distance: Simpson's rule
- Simpson's: h/3 = 2/3.
- Units, and what it means.
- h/3 = 2/3
- ends: 0 + 15 = 15
- 4(5 + 12 + 15) = 4(32) = 128t = 2, 6, 10
- 2(9 + 14) = 2(23) = 46t = 4, 8
- bracket = 15 + 128 + 46 = 189
- d ≈ (2/3)(189) = 126 m
- about 126 m in the first 12 s
Show every ordinate
- Write the rule with each ordinate.
- Full accuracy, then 3 s.f.
- Odd strips: no Simpson's.
Where the marks are
- Achieved: the trapezium rule, right h.
- Merit, Excellence: part of a bigger problem.
- Compare with exact, or use in context.
What to take away
- H is the interval width over the number of strips.
| h | (b − a) ÷ strips |
| Ordinates | strips + 1 |
| Trapezium | ends + 2 × middle |
| Simpson's | ends + 4 odd + 2 even |
| Simpson's n | must be even |
| Show it | every ordinate |
Common mistakes
- 5 ordinates from 1 to 3, so h = (3 − 1)/5 = 0.4.h uses strips, not ordinates: 5 ordinates make 4 strips, so h = (3 − 1)/4 = 0.5.
- A ≈ (1/4)[1 + 2/3 + 1/2 + 2/5 + 1/3]The middle ordinates count twice: (h/2)[ends + 2 × middle] = (1/4)(4/3 + 47/15) ≈ 1.1167.
- Simpson's rule: multiply the bracket by h/2.Simpson's uses h/3 with weights 1, 4, 2, 4, ..., 4, 1, and it needs an even number of strips.
- Rounding each ordinate to 2 d.p. before adding them up.Keep exact values or full accuracy inside the bracket, and round only the final answer, e.g. to 3 s.f.
Your turn: four questions
- Question 3 uses the integral in 2.
- Write out h and every ordinate.
| Given | Find | |
|---|---|---|
| 1 | x = 1 to 5, 8 strips | h, and ordinates |
| 2 | ∫₀⁴ √x dx, 4 strips | trapezium rule |
| 3 | the same integral | Simpson's rule |
| 4 | y: 3, 5, 6, 4, 2 | Simpson's, x = 0 to 4 |
Show answer
1. h = (5 − 1)/8 = 0.5, with 9 ordinates. 2. h = 1, ordinates 0, 1, √2, √3, 2: 0.5[0 + 2 + 2(1 + √2 + √3)] ≈ 5.15. 3. (1/3)[0 + 2 + 4(1 + √3) + 2√2] ≈ 5.25, closer to the exact 16/3 ≈ 5.33. 4. (1/3)[3 + 2 + 4(5 + 4) + 2(6)] = 53/3 ≈ 17.7.
The answers: questions 1 and 2
- 1. h = (5 − 1)/8 = 0.5
- 8 strips, so 9 ordinates
- 2. h = (4 − 0)/4 = 1
- ordinates: 0, 1, √2, √3, 2
- (1/2)[0 + 2 + 2(1 + √2 + √3)]trapezium rule
- = (1/2)(4 + 2√2 + 2√3)
- = (1/2)(10.2925) = 5.14634 d.p.
- ≈ 5.15
The answers: questions 3 and 4
- 3. (1/3)[0 + 2 + 4(1 + √3) + 2√2]
- = (1/3)(6 + 4√3 + 2√2)
- = (1/3)(15.7566) = 5.25224 d.p.
- ≈ 5.25
- exact: (2/3)(8) = 16/3 ≈ 5.3333Simpson is closer
- 4. (1/3)[3 + 2 + 4(5 + 4) + 2(6)]
- = (1/3)(5 + 36 + 12) = 53/3
- ≈ 17.7
Sample question: Achieved
Use the trapezium rule with 4 strips to estimate ∫₁⁵ √x dx. Give your answer to 4 decimal places.
Hint
h = (5 − 1) ÷ 4 = 1. Find the 5 ordinates, then use (h2)[ends + 2 × middle].
Answer
≈ 6.7643
Step by step
- First find the strip width: h = (b − a) ÷ number of strips = (5 − 1) ÷ 4 = 1.
- 4 strips need 5 ordinates, one at each strip edge: x = 1, 2, 3, 4 and 5.
- Classic mistake: dividing by the number of ordinates, 5, instead of the number of strips, 4.
- The ordinates are √1 = 1, √2, √3, √4 = 2 and √5.
- The trapezium rule is (h2)[first + last + 2 × (the middle ones)].
- Ends: 1 + √5 ≈ 3.2361. Middle: √2 + √3 + 2 ≈ 5.1463, doubled is 10.2925.
- Estimate: (12)(3.2361 + 10.2925) = (12)(13.5286) ≈ 6.7643.
- Check: the exact value is (23)(5^(32) − 1) ≈ 6.7869. The estimate is slightly under, because √x bends downwards, so each straight top sits below the curve.
Full working
- h = (5 − 1) ÷ 4 = 1interval ÷ strips
- ordinates: 1, √2, √3, 2, √5x = 1 to 5
- ends = 1 + √5 ≈ 3.2361; 2 × middle ≈ 10.2925
- (12)(3.2361 + 10.2925)(h2)[ends + 2 × middle]
- ≈ 6.7643
Sample questions: Merit
The function e^(−x²) cannot be integrated with the rules you know. Use Simpson's rule with 4 strips to estimate ∫₀¹ e^(−x²) dx, to 4 decimal places.
Hint
h = 0.25. Weight the ordinates 1, 4, 2, 4, 1 and multiply the total by h3.
Answer
≈ 0.7469
Step by step
- No antiderivative means we estimate from heights. Simpson's rule needs an even number of strips, and 4 is even.
- h = (1 − 0) ÷ 4 = 0.25, so the x values are 0, 0.25, 0.5, 0.75 and 1.
- Ordinates, to 4 decimal places: e⁰ = 1, e^(−0.0625) ≈ 0.9394, e^(−0.25) ≈ 0.7788, e^(−0.5625) ≈ 0.5698, e^(−1) ≈ 0.3679.
- Classic mistake: working out e^(−x)² instead of e^(−x²). Square x first, then make it negative.
- Simpson's weights are 1, 4, 2, 4, 1: ends once, odd ordinates times 4, even middle ordinates times 2.
- Ends: 1 + 0.3679 = 1.3679. Odd ones: 4 × (0.9394 + 0.5698) = 6.0368. Even middle: 2 × 0.7788 = 1.5576.
- Bracket total: 1.3679 + 6.0368 + 1.5576 = 8.9623.
- Multiply by h3 = 0.25 ÷ 3: 8.9623 × 0.25 ÷ 3 ≈ 0.7469.
- Check: the calculator's numerical value is 0.7468, so Simpson's rule is very close.
Full working
- h = (1 − 0) ÷ 4 = 0.254 strips, 5 ordinates
- y: 1, 0.9394, 0.7788, 0.5698, 0.3679y = e^(−x²)
- 1.3679 + 4(0.9394 + 0.5698) + 2(0.7788) = 8.9623weights 1, 4, 2, 4, 1
- (0.25 ÷ 3) × 8.9623× h3
- ≈ 0.7469
A stream is 12 m wide. Its depth, measured every 2 m across from one bank, is 0, 1.2, 2.1, 2.6, 2.4, 1.5 and 0 metres. Use Simpson's rule to estimate the area of the cross-section. The water flows at an average of 0.5 m per second. Estimate the volume of water passing each second.
Hint
7 depths means 6 strips with h = 2. The volume per second is the cross-section area times the speed.
Answer
Area ≈ 20.1 m²; about 10.1 m³ of water passes each second
Step by step
- The cross-section is the area under the depth graph, from one bank to the other.
- 7 readings means 6 strips. 6 is even, so Simpson's rule can be used. h = 12 ÷ 6 = 2 m.
- Simpson's rule: (h3)[ends + 4 × odd + 2 × even middle].
- Ends: 0 + 0 = 0. Odd ones, the 2nd, 4th and 6th readings: 1.2 + 2.6 + 1.5 = 5.3, and 4 × 5.3 = 21.2.
- Even middle ones, the 3rd and 5th readings: 2.1 + 2.4 = 4.5, and 2 × 4.5 = 9.
- Bracket: 0 + 21.2 + 9 = 30.2. Times h3 = 23: 30.2 × 23 ≈ 20.13 m².
- Classic mistake: using h2 from the trapezium rule with Simpson's weights. Simpson's always uses h3.
- Flow: each second, a slice of water 0.5 m long passes. Its volume is area × length = 20.13 × 0.5 ≈ 10.07 m³.
- Check: the trapezium rule gives 2 ÷ 2 × (0 + 2 × 9.8) = 19.6 m², close to 20.1, so the answer is sensible.
Full working
- h = 12 ÷ 6 = 27 readings, 6 strips
- ends 0 + 0 = 0first and last
- 4(1.2 + 2.6 + 1.5) = 21.2odd ordinates
- 2(2.1 + 2.4) = 9even middle ordinates
- A ≈ (23)(30.2) ≈ 20.13 m²× h3
- volume per second ≈ 20.13 × 0.5area × speed
- Area ≈ 20.1 m², flow ≈ 10.1 m³ each second
Sample questions: Excellence
Use the trapezium rule with 4 strips to estimate ∫₀^π sin x dx, giving an exact expression. Compare it with the exact value and explain why the trapezium rule gives an underestimate here. Then use Simpson's rule with the same 4 strips and comment on its accuracy.
Hint
h = π4, and the ordinates are 0, √22, 1, √22, 0. Think about whether the curve bends up or down between ordinates.
Answer
Trapezium (π4)(1 + √2) ≈ 1.896, under the exact value 2 by about 5.2%, because sin x bends downwards on 0 to π. Simpson's (π6)(2√2 + 1) ≈ 2.005, within about 0.23%.
Step by step
- Exact value first: ∫₀^π sin x dx = [−cos x]₀^π = −cos π + cos 0 = 1 + 1 = 2.
- Strip width: h = (π − 0) ÷ 4 = π4. The x values are 0, π4, π2, 3π4 and π.
- Ordinates: sin 0 = 0, sin(π4) = √22, sin(π2) = 1, sin(3π4) = √22, sin π = 0.
- Trapezium rule: (h2)[ends + 2 × middle] = (π8)[0 + 2(√22 + 1 + √22)] = (π8)(2√2 + 2) = (π4)(1 + √2).
- That is about 1.896, which is less than 2 by about 0.104, or 5.2%.
- Why it is under: on 0 to π, sin x is concave down, like a hill. Each strip's straight top joins two points on the curve, and the curve bulges above that line.
- So every trapezium misses a thin sliver of area above it, and the estimate is too small.
- Classic mistake: saying the trapezium rule always overestimates. It depends on the curve: over when it bends up, under when it bends down.
- Simpson's rule: (h3)[ends + 4 × odd + 2 × even] = (π12)[0 + 4(√22 + √22) + 2(1)] = (π12)(4√2 + 2) = (π6)(2√2 + 1).
- That is about 2.005, only about 0.23% above 2.
- Simpson's fits curves through the points instead of straight lines, so it follows the hill much more closely with the same ordinates.
Full working
- exact = [−cos x]₀^π = 2
- h = π4; ordinates 0, √22, 1, √22, 0
- T = (π8)(2√2 + 2) = (π4)(1 + √2) ≈ 1.896under by about 5.2%
- sin x is concave down, so the chords lie below the curvewhy it is under
- S = (π12)(4√2 + 2) = (π6)(2√2 + 1) ≈ 2.005within 0.23%
- Trapezium ≈ 1.896 (under); Simpson's ≈ 2.005, much closer to 2
a is a positive constant. Show that Simpson's rule with 2 strips gives the exact value of ∫₀^(2a) x³ dx for every value of a, but the trapezium rule with 2 strips does not. By what percentage is the trapezium rule wrong?
Hint
With 2 strips, h = a and the ordinates are at x = 0, a and 2a. Work out each rule in terms of a and compare with the exact integral.
Answer
Exact 4a⁴; Simpson's gives 4a⁴ (exact for every a); trapezium gives 5a⁴, which is 25% too big
Step by step
- This is a general result, so keep a as a letter the whole way.
- Exact value: ∫₀^(2a) x³ dx = [(14)x⁴]₀^(2a) = (2a)⁴4 = 16a⁴4 = 4a⁴.
- Classic mistake: (2a)⁴ = 2a⁴. The 2 is inside the bracket, so it is raised to the power too: 2⁴ = 16.
- Two strips over 0 to 2a means h = a. The ordinates are at x = 0, a and 2a: 0, a³ and 8a³.
- Simpson's rule: (h3)[ends + 4 × middle] = (a3)[0 + 8a³ + 4a³] = (a3)(12a³) = 4a⁴.
- That equals the exact value, and a was never given a number, so it holds for every a > 0.
- Trapezium rule: (h2)[ends + 2 × middle] = (a2)[0 + 8a³ + 2a³] = (a2)(10a³) = 5a⁴.
- 5a⁴ is not 4a⁴, so the trapezium rule is not exact. It is over by a⁴.
- Percentage error: a⁴ ÷ 4a⁴ = 14 = 25% too big, whatever a is.
- It is too big because x³ bends upwards on 0 to 2a, so the straight tops sit above the curve.
- Check with a = 3: exact 4 × 81 = 324, Simpson's (33)(0 + 216 + 4 × 27) = 324. It matches.
Full working
- ∫₀^(2a) x³ dx = (2a)⁴4 = 4a⁴exact
- h = a; ordinates 0, a³, 8a³
- S = (a3)(0 + 8a³ + 4a³) = 4a⁴equals the exact value
- T = (a2)(0 + 8a³ + 2a³) = 5a⁴over by a⁴
- a⁴ ÷ 4a⁴ = 25%same for every a
- Simpson's is exact (4a⁴); the trapezium rule gives 5a⁴, 25% too big
Practise this
Report a mistake
More in AS 91579
The integration toolkit: surds, e, trig and the chain rule10 min
Integrating fractions: when it is ln, and when it is not9 min
The constant of integration: find c, never assume it9 min
Definite integrals and area, including between two curves11 min
Trapezium and Simpson's rules: numerical areas10 min
Differential equations: growth, decay and Newton's cooling11 min
Integration toolkit: 7 exam questions solved step by step10 min
Integrating fractions: 7 exam questions solved step by step10 min
Constant of integration: 7 exam questions solved step by step11 min
Definite integrals: 7 exam questions solved step by step11 min
Numerical integration: 6 exam questions solved step by step11 min
Differential equations: 6 exam questions solved step by step11 minIs your child on track?
Take the free placement test