Replacing a convex curve by straight chords overestimates its integral. For on , the composite trapezoid error is exactly , where . Doubling the subdivision count therefore quarters the total error, rather than merely halving it.用直线弦段代替凸函数的曲线,会高估积分。对区间 上的平方函数,复合梯形公式的总误差恰好是步长平方的六分之一。分段数加倍、步长减半时,总误差缩小到原来的四分之一。
Gold chords sit above the green parabola; the shaded slivers add up to the displayed error . A moving vertical segment inspects the local gap. The loop compares 2, 4, 8 and 16 equal subdivisions against the same exact integral, .金色弦段位于绿色抛物线上方,夹出的阴影合起来就是底部显示的总误差 。移动的竖线逐点检查两者的间隙。动画依次比较 2、4、8、16 等分,始终以精确积分 为参照。