Trapezoidal rule: Tn against the exact integral

Year 12 Mathematics Advanced · Tn = h/2 [y0 + 2(y1 + … + yn−1) + yn] · h = (b − a)/n · n strips need n + 1 values
Curve

Graph

curve trapezoids chord above curve chord below curve
4

4 strips → 5 function values (y0 to y4), width h = 0.5

Tn (trapezoidal)
exact ∫ab f(x) dx
closed form
error Tn − exact
relative

The n + 1 values and their coefficients

End values carry coefficient 1; every interior value is an edge shared by two trapezoids, so it carries 2.

Predict before you look

The exact value, the error and the verdict stay masked until you commit. Look at the shading first: is the chord above or below the curve?

Concavity decides the direction