The Trapezoidal Rule — A Visual, First-Principles Introduction

The Trapezoidal Rule — A Visual, First-Principles Introduction

11 November 2025 · @mathematics.proofs

To understand integration deeply, it helps to think geometrically. Instead of memorising formulas, we begin by observing shapes. The goal is simple: break the interval into small pieces, estimate the area on each piece, and add everything together.

Rectangles give a basic approximation. But functions rarely behave perfectly flat on every interval. A better idea is to allow the top edge to tilt. This leads us naturally to trapezoids.

The Trapezoidal Rule — A Visual, First-Principles Introduction

1) Partitioning the Interval

Consider an interval from a to b. We divide it into n equal parts.

Δx = (b − a) / n
xi = a + i·Δx for i = 0, 1, 2, …, n

At each xi, we record the height of the function f(xi). These sample values will guide our area estimates.

2) One Slice: Rectangle + Triangle

Focus on a single subinterval [xi, xi+1]. If we draw a vertical line at xi and take a height of f(xi), we obtain a rectangle of area:

Δx · f(xi)

But the function may rise or fall by the time we reach xi+1. The additional (or missing) area is approximately a triangle:

(1/2) · Δx · ( f(xi+1) − f(xi) )

Together, the rectangle and triangle form a trapezoid. Its area can be written compactly as:

Ai = (1/2) · Δx · ( f(xi) + f(xi+1) )

This single expression accounts for both the base height and the way the function changes across the interval.

3) Summing All the Trapezoids

To approximate the total area under the curve from x = a to x = b, we add the areas of all trapezoids:

A0 + A1 + … + An−1 = (1/2) · Δx · ( f(x0) + f(x1) )
  + (1/2) · Δx · ( f(x1) + f(x2) )
  + …
  + (1/2) · Δx · ( f(xn−1) + f(xn) )

When written out, the middle values appear twice: each interior height serves once as the right side of one trapezoid, and once as the left side of the next. Only the endpoints appear once.

So the sum becomes:

(1/2) · Δx · [
f(x0)
+ 2·f(x1)
+ 2·f(x2)
+ …
+ 2·f(xn−1)
+ f(xn)
]

4) The Trapezoidal Rule

We now have a remarkably simple formula:

∫ from a to b of f(x) dx ≈ (Δx / 2) · [ f(x0) + 2·f(x1) + 2·f(x2) + … + 2·f(xn−1) + f(xn) ]

where

Δx = (b − a) / n

5) Why It Works

Each trapezoid captures both the function’s height at the left of the interval and how it changes across the interval. This gives a better approximation than a plain rectangle.

As Δx becomes smaller and smaller, the triangular correction also becomes tiny. The sum of trapezoids settles closer and closer to the true area. In the limit (as n → ∞), this approximation becomes the integral.


Key idea: The trapezoidal rule arises naturally from geometry. Divide the interval, estimate each slice as a trapezoid, and observe how the interior points contribute twice. The structure reveals itself beautifully — nothing is forced.

@mathematics.proofs

Comments

Popular posts from this blog

The Method of Differences — A Clean Proof of the Sum of Cubes

The Pythagram Defined

3D Rotation Matrix Primer