The Trapezium Rule
Approximating definite integrals using trapeziums when analytical integration is not possible
SPEC 9.4 • NUMERICAL METHODS
Why Numerical Integration?
Some integrals cannot be found analytically. There is no antiderivative we can write down using standard functions.
Examples of Non-Integrable Functions
For these functions, we need numerical methods to approximate the definite integral (the area under the curve).
Key Idea
The trapezium rule approximates the area under a curve by dividing it into trapeziums. The sum of these trapezium areas gives us an estimate of the integral.
The Geometric Basis
To approximate , we divide the interval [a, b] into n equal strips and form trapeziums:
Key Insight
The tops of the trapeziums connect points on the curve. Each strip width is . The straight lines approximate the curve between ordinates.
The Trapezium Rule Formula
The Formula
SymbolMeaning
Strip width:
Number of strips
The y-values (ordinates) at equally spaced x-values
Critical
n strips require (n + 1) y-values! The first and last ordinates ( and ) appear once. All middle ordinates are doubled.
Calculating Strip Width
Strip Width Formula
Once you have h, you can find all the x-values:
The x-values
Example
For with 4 strips:
x-values: 1, 1.5, 2, 2.5, 3 (that's 5 values for 4 strips)
01Worked Example
Use the trapezium rule with 4 strips to estimate , given the following table of values:
x00.511.52
y00.2512.254
1
Identify the values: a = 0, b = 2, n = 4 strips
2
Calculate strip width:
3
Identify ordinates:
4
Apply the formula:
Answer
Worked Example02
Use the trapezium rule with 3 strips to estimate . Give your answer to 3 decimal places.
1
Calculate strip width:
2
Find x-values:
3
Calculate y-values using :
4
Apply the formula:
Answer1.458 (3 d.p.)
Over or Underestimate?
Whether the trapezium rule gives an overestimate or underestimate depends on the concavity of the curve:
Convex (f''(x) > 0)
Chord lies above curve
Trapeziums include extra area
→ OVERESTIMATE
Concave (f''(x) < 0)
Chord lies below curve
Trapeziums miss area
→ UNDERESTIMATE
Worked Example03
Explain whether the trapezium rule gives an overestimate or underestimate for .
1
Let
2
Find the first derivative:
3
Find the second derivative:
4
For all x in [1, 3], we have , so
5
Since , the curve y = ln x is concave on this interval.
AnswerThe trapezium rule gives an underestimate because the curve is concave (the chord lies below the curve, so we miss some area).
Worked Example04
Use the trapezium rule with 4 strips to estimate . Compare your answer to the exact value and calculate the percentage error.
1
From Example 01, the trapezium estimate is 2.75
2
Find the exact value by integration:
3
Calculate the error:
Error = Estimate − Exact = 2.75 − 2.6̄ = 0.083̄
4
Calculate the percentage error:
5
This is an overestimate because (curve is convex).
AnswerEstimate = 2.75, Exact = 8/3 ≈ 2.667. Percentage error = 3.125% (overestimate).
Improving Accuracy
Key Principle
More strips = Better approximation
Why It Works
With more strips, each chord segment is shorter and follows the curve more closely. The error gaps become much smaller. Doubling the number of strips roughly halves the error.
Practice
Question 1: Use the trapezium rule with 4 strips to estimate .
Step 1: h = (4 − 0)/4 = 1
Step 2: x-values: 0, 1, 2, 3, 4
Step 3: y-values: y = x² + 1
y₀ = 1, y₁ = 2, y₂ = 5, y₃ = 10, y₄ = 17
Step 4: Apply formula:
(1/2)[(1 + 17) + 2(2 + 5 + 10)]
= 0.5[18 + 2(17)]
= 0.5[18 + 34] = 0.5 × 52 = 26
Practice
Question 2:
x00.30.60.91.2
y22.83.43.73.9
Step 1: h = 0.3 (from the table)
Step 2: Apply formula:
(0.3/2)[(2 + 3.9) + 2(2.8 + 3.4 + 3.7)]
= 0.15[5.9 + 2(9.9)]
= 0.15[5.9 + 19.8]
= 0.15 × 25.7 = 3.855
Step 3: Since f''(x) < 0, the curve is concave, so the trapezium rule gives an underestimate.
Practice
Question 3: Use the trapezium rule with 6 strips to estimate . Compare your answer to the exact value and calculate the percentage error.
Step 1: h = (4 − 1)/6 = 0.5
Step 2: x-values: 1, 1.5, 2, 2.5, 3, 3.5, 4
Step 3: y-values:
y₀ = 1, y₁ = 1.225, y₂ = 1.414, y₃ = 1.581, y₄ = 1.732, y₅ = 1.871, y₆ = 2
Step 4: Apply formula:
(0.5/2)[(1 + 2) + 2(1.225 + 1.414 + 1.581 + 1.732 + 1.871)]
= 0.25[3 + 2(7.823)]
= 0.25[3 + 15.646] = 0.25 × 18.646 = 4.662
Exact value: ∫₁⁴ √x dx = [⅔x^(3/2)]₁⁴ = ⅔(8) − ⅔(1) = 14/3 ≈ 4.667
Percentage error: |4.662 − 4.667|/4.667 × 100% = 0.11%
This is an underestimate because f''(x) = −¼x^(−3/2) < 0 (concave).
Summary
Key Concepts
ConceptKey Point
The Formula
Strip Width
Number of Valuesn strips require (n + 1) y-values
OverestimateWhen curve is convex (f''(x) > 0)
UnderestimateWhen curve is concave (f''(x) < 0)
AccuracyMore strips → smaller error
Exam Tips
Set up a table for x and y values to stay organised
Keep extra decimal places during working; round at the end
Always check: did you use (n + 1) values for n strips?
For over/underestimate questions, find f''(x) and determine its sign
Next: Why Numerical Integration?