Mathematics · Simulation and virtual lab Free
Integration: rectangles, trapezia and the exact area
Fill the area under a curve with strips, make them thinner and thinner, and watch the total approach the exact value of the integral.
- You will learn to
- Approximate a definite integral with rectangles and with the trapezium rule.
- Describe how the error changes as the number of strips increases.
- Evaluate definite integrals exactly with F(b) − F(a).
- You will measure
- Estimate of the area for each method and number of strips; exact value and error.
- Time needed
- About 30–40 min
- Equipment
- Nothing extra. Real version: graph paper (count squares under a curve), calculator.
- Price
- Free: no payment, no account.
Virtual lab
Follow the steps with the simulation above (go back to the simulation ↑). Each time you tap Record, a row is added to the table and a point to the graph.
Aim
To approximate a definite integral with rectangles and trapezia, to see how the error falls as the number of strips grows, and to compare with the exact value F(b) − F(a).
What to do
- Choose f(x) = x² from 0 to 3, Left rectangles, n = 1. Record. Tap Double the number of strips and record each time up to 200.
- Look at the graph of the estimate against n. Which value does it approach? Is the left-rectangle estimate too big or too small? Why?
- Repeat with Right rectangles, then Trapezia, then Midpoint rectangles. Which method is closest with n = 4?
- Calculate ∫₀³ x² dx = [x³ ÷ 3]₀³ by hand and compare with the exact value shown.
- Try 2x + 1: why do the trapezia give the exact answer even with n = 1?
- Try 3 sin x from 0 to 3 and √x from 0 to 4. Check each exact value with an antiderivative.
Results
⚠️ Avoid these mistakes
- Using n instead of the strip width h = (b − a) ÷ n.
- In the trapezium rule, doubling the first and last heights: only the middle heights are doubled.
- Forgetting that the area below the x-axis counts as negative in a definite integral.
✍️ Conclusion
Write your own conclusion first: what do your results and graph show, and which law or principle do they support?
Check your conclusion
Every method approaches the same number as n increases: the definite integral F(b) − F(a). Left and right rectangles converge slowly; trapezia and midpoint rectangles converge much faster. For a straight line the trapezium rule is exact.
Questions
What does the definite integral ∫ₐᵇ f(x) dx represent when f(x) ≥ 0?
The area between the curve y = f(x), the x-axis and the lines x = a and x = b.
Why do left rectangles underestimate the area under x² on [0, 3]?
x² is increasing there, so the height at the left end of each strip is the smallest height in that strip: every rectangle lies under the curve.
What is the trapezium rule for n strips of width h?
Area ≈ h/2 [y₀ + 2(y₁ + y₂ + … + yₙ₋₁) + yₙ], with h = (b − a) ÷ n.
Calculate ∫₁³ (2x + 1) dx.
[x² + x]₁³ = (9 + 3) − (1 + 1) = 10.
Why does doubling n make the estimate better?
The strips are thinner, so the gaps or overlaps between the strips and the curve get smaller; the error tends to 0 as n → ∞.
State the fundamental theorem of calculus.
If F is an antiderivative of f (F′ = f), then ∫ₐᵇ f(x) dx = F(b) − F(a).
For teachers: expected results and how the model works
n takes 1, 2, 4, 8, 16, 50, 100 and 200 strips. For x² on [0, 3] (exact 9): left n = 8 gives 7.383, n = 200 gives 8.933; right n = 8 gives 10.758; trapezia n = 8 gives 9.070; midpoint n = 8 gives 8.965. The error of left and right rectangles halves when n doubles; the error of trapezia and midpoint falls to a quarter. Trapezia are exact for 2x + 1; for a concave-up curve they overestimate and midpoint rectangles underestimate.
Quick check 3 questions · scored
Choose one answer for each question. You see at once if it is right, why, and your score at the end.
1. Using F(x) = x³ ÷ 3, what is ∫₀³ x² dx?
F(3) − F(0) = 27 ÷ 3 − 0 = 9.
2. What is the width of each strip for 6 strips from x = 1 to x = 4?
h = (4 − 1) ÷ 6 = 0.5.
3. For an increasing curve, left rectangles give…
The left-end height is the lowest in each strip, so each rectangle is under the curve.
Your score:
Exam practice Exam set
National-exam style questions on this simulation (18 marks). Try each one on paper first, then open the marking scheme.
Use the trapezium rule with 4 strips to estimate ∫₀² x² dx, and compare with the exact value. (5 marks)
Marking scheme: h = 0.5; y = 0, 0.25, 1, 2.25, 4 (1); area ≈ 0.25 [0 + 2(0.25 + 1 + 2.25) + 4] (1) = 0.25 × 11 = 2.75 (1). Exact [x³/3]₀² = 8/3 ≈ 2.667 (1); the estimate is too big because the curve is concave up (1).
Evaluate (a) ∫₁⁴ 3√x dx, (b) ∫₀^π sin x dx. (4 marks)
Marking scheme: (a) [2x^(3/2)]₁⁴ = 16 − 2 = 14 (1, 1). (b) [−cos x]₀^π = 1 + 1 = 2 (1, 1).
Find the area enclosed between the curve y = 4x − x² and the x-axis. (4 marks)
Marking scheme: Roots x = 0 and x = 4 (1); ∫₀⁴ (4x − x²) dx = [2x² − x³/3]₀⁴ (1) = 32 − 64/3 (1) = 32/3 ≈ 10.7 square units (1).
Explain why the trapezium rule gives an exact answer for a straight-line function. (2 marks)
Marking scheme: The top of each trapezium is a straight line joining two points of the graph (1); for a linear function this line is the graph itself, so there is no gap (1).
The speed of a car is v = 3t² m/s. Find the distance travelled between t = 0 and t = 4 s. (3 marks)
Marking scheme: distance = ∫₀⁴ 3t² dt (1) = [t³]₀⁴ (1) = 64 m (1).

Donat Sciences and MathsMathematics · Virtual lab worksheet
School: ........................................ Name: ................................ Class: ........ Date: ............
Integration: rectangles, trapezia and the exact area
Aim: To approximate a definite integral with rectangles and trapezia, to see how the error falls as the number of strips grows, and to compare with the exact value F(b) − F(a).
Apparatus (real laboratory): graph paper (count squares under a curve), calculator.
What to do (with the simulation on www.donatstem.co.rw)
- Choose f(x) = x² from 0 to 3, Left rectangles, n = 1. Record. Tap Double the number of strips and record each time up to 200.
- Look at the graph of the estimate against n. Which value does it approach? Is the left-rectangle estimate too big or too small? Why?
- Repeat with Right rectangles, then Trapezia, then Midpoint rectangles. Which method is closest with n = 4?
- Calculate ∫₀³ x² dx = [x³ ÷ 3]₀³ by hand and compare with the exact value shown.
- Try 2x + 1: why do the trapezia give the exact answer even with n = 1?
- Try 3 sin x from 0 to 3 and √x from 0 to 4. Check each exact value with an antiderivative.
Results
| # | f(x) | From a to b | Method | n | Estimated area | Exact | Error |
|---|
| 1 | | | | | | | |
| 2 | | | | | | | |
| 3 | | | | | | | |
| 4 | | | | | | | |
| 5 | | | | | | | |
| 6 | | | | | | | |
| 7 | | | | | | | |
| 8 | | | | | | | |
| 9 | | | | | | | |
| 10 | | | | | | | |
| 11 | | | | | | | |
| 12 | | | | | | | |
| 13 | | | | | | | |
| 14 | | | | | | | |
Graph
Plot the estimate (vertical axis) against n for each method. Draw a horizontal line at the exact value.
Questions
- What does the definite integral ∫ₐᵇ f(x) dx represent when f(x) ≥ 0? [2]
- Why do left rectangles underestimate the area under x² on [0, 3]? [2]
- What is the trapezium rule for n strips of width h? [2]
- Calculate ∫₁³ (2x + 1) dx. [2]
- Why does doubling n make the estimate better? [2]
- State the fundamental theorem of calculus. [2]
- Use the trapezium rule with 4 strips to estimate ∫₀² x² dx, and compare with the exact value. [5]
- Evaluate (a) ∫₁⁴ 3√x dx, (b) ∫₀^π sin x dx. [4]
- Find the area enclosed between the curve y = 4x − x² and the x-axis. [4]
- Explain why the trapezium rule gives an exact answer for a straight-line function. [2]
- The speed of a car is v = 3t² m/s. Find the distance travelled between t = 0 and t = 4 s. [3]

Donat Sciences and MathsMathematics · Virtual lab worksheet
School: ........................................ Name: ................................ Class: ........ Date: ............
Marking scheme: Integration: rectangles, trapezia and the exact area
Expected results
n takes 1, 2, 4, 8, 16, 50, 100 and 200 strips. For x² on [0, 3] (exact 9): left n = 8 gives 7.383, n = 200 gives 8.933; right n = 8 gives 10.758; trapezia n = 8 gives 9.070; midpoint n = 8 gives 8.965. The error of left and right rectangles halves when n doubles; the error of trapezia and midpoint falls to a quarter. Trapezia are exact for 2x + 1; for a concave-up curve they overestimate and midpoint rectangles underestimate.
Answers
- What does the definite integral ∫ₐᵇ f(x) dx represent when f(x) ≥ 0? [2]
The area between the curve y = f(x), the x-axis and the lines x = a and x = b.
- Why do left rectangles underestimate the area under x² on [0, 3]? [2]
x² is increasing there, so the height at the left end of each strip is the smallest height in that strip: every rectangle lies under the curve.
- What is the trapezium rule for n strips of width h? [2]
Area ≈ h/2 [y₀ + 2(y₁ + y₂ + … + yₙ₋₁) + yₙ], with h = (b − a) ÷ n.
- Calculate ∫₁³ (2x + 1) dx. [2]
[x² + x]₁³ = (9 + 3) − (1 + 1) = 10.
- Why does doubling n make the estimate better? [2]
The strips are thinner, so the gaps or overlaps between the strips and the curve get smaller; the error tends to 0 as n → ∞.
- State the fundamental theorem of calculus. [2]
If F is an antiderivative of f (F′ = f), then ∫ₐᵇ f(x) dx = F(b) − F(a).
- Use the trapezium rule with 4 strips to estimate ∫₀² x² dx, and compare with the exact value. [5]
h = 0.5; y = 0, 0.25, 1, 2.25, 4 (1); area ≈ 0.25 [0 + 2(0.25 + 1 + 2.25) + 4] (1) = 0.25 × 11 = 2.75 (1). Exact [x³/3]₀² = 8/3 ≈ 2.667 (1); the estimate is too big because the curve is concave up (1).
- Evaluate (a) ∫₁⁴ 3√x dx, (b) ∫₀^π sin x dx. [4]
(a) [2x^(3/2)]₁⁴ = 16 − 2 = 14 (1, 1). (b) [−cos x]₀^π = 1 + 1 = 2 (1, 1).
- Find the area enclosed between the curve y = 4x − x² and the x-axis. [4]
Roots x = 0 and x = 4 (1); ∫₀⁴ (4x − x²) dx = [2x² − x³/3]₀⁴ (1) = 32 − 64/3 (1) = 32/3 ≈ 10.7 square units (1).
- Explain why the trapezium rule gives an exact answer for a straight-line function. [2]
The top of each trapezium is a straight line joining two points of the graph (1); for a linear function this line is the graph itself, so there is no gap (1).
- The speed of a car is v = 3t² m/s. Find the distance travelled between t = 0 and t = 4 s. [3]
distance = ∫₀⁴ 3t² dt (1) = [t³]₀⁴ (1) = 64 m (1).