The Formula in Its Two Forms
Figure 1 — On a uniform partition the half-width factor is shared, so each interior height is used by two neighbouring strips and therefore appears twice in the combined formula.
For a partition with possibly unequal widths, the trapezoidal sum is a sum of strips:
When every width equals , the factor comes out of the sum and the interior terms pair up:
| Form | When to use | Failure mode |
|---|---|---|
| general sum | the table has unequal gaps | forgetting to halve each gap separately |
| closed form | the partition is uniform | using it on unequal gaps |
| average of and | you already computed both | computing both when only one is needed |