DONAT STEMSciences and MathsENFR
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.

  • Best for S6 · Unit 4: Integration
  • Also useful S6 · Unit 3: Series (adding many terms and finding a limit)
  • Also useful S4 · Unit 8: Differentiation of polynomial, rational and irrational functions (antiderivatives reverse differentiation)
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.

Simulation

A farmer in the Bugesera wants to know the area of a field with one curved side along a river, to buy the right amount of fertiliser. Cutting the field into thin strips and adding them up is exactly the idea of integration.

Change and observe

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

  1. 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.
  2. 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?
  3. Repeat with Right rectangles, then Trapezia, then Midpoint rectangles. Which method is closest with n = 4?
  4. Calculate ∫₀³ x² dx = [x³ ÷ 3]₀³ by hand and compare with the exact value shown.
  5. Try 2x + 1: why do the trapezia give the exact answer even with n = 1?
  6. 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?

2. What is the width of each strip for 6 strips from x = 1 to x = 4?

3. For an increasing curve, left rectangles give…

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).

For class and homework

Teacher resources

  • 📋 Free lesson plan: S6 · Unit 4: Integration
  • Worksheet and marking scheme: use the print buttons below.
  • Learners can download their results table with ⬇️ Download my results (CSV) under the table, and open it in Excel or Google Sheets.

The worksheet has the steps, an empty results table, a graph grid and all the questions with answer lines. The marking scheme has the expected results and every answer with its marks.

Keep learning

More free practice: Calculus Grapher (external website, by PhET Interactive Simulations, University of Colorado Boulder). It opens in a new tab.

This simulation is an original model made for Rwandan learners. Real experiments can give slightly different numbers: a simulation never replaces handling real apparatus when your school has it.