Join the two endpoint samples with a straight line and integrate that line. The film adds trapezoidal areas for on and compares successive uniform refinements.
Before watching¶
The curve is convex. Predict whether its endpoint chord lies above or below the curve, and what that implies for the integral estimate.
Mathematical connection¶
Let be the exact integral over one panel of width . The trapezoid rule is
Taylor expansion of the endpoint value and integration of the same series give
Thus . The local error is and the composite error over a fixed interval is for a sufficiently smooth function. The straight-line model integrates constants and linear functions exactly.
Explain what you saw¶
Compare the actual errors after each halving of the panel width. Explain why a ratio near four is expected once the leading second-order composite error dominates. This ratio is an asymptotic prediction, not an unconditional guarantee.
Use the player controls to pause, replay, or view fullscreen. The animation has no narration; its labels and the explanation above carry the content.
Continue: Lecture 7 · Full reading · All animations
![Join the two endpoint samples with a straight line and integrate that line. The film adds trapezoidal areas for e^x on [0,1] and compares successive uniform refinements.](/comp521/build/TrapezoidRecall-post-b0bccd01e8f7ac9ea3d9546702aa9d3d.png)