The power rule for a definite integral gives
With step size , the composite trapezoidal rule gives half weight to the two endpoints:
Therefore
It exceeds the exact definite integral by , as expected because is a convex function and each trapezoid lies above the curve.
For equal intervals, the composite trapezoidal rule is
Adding the missing term therefore gives the exact relation
Since is continuous, its Riemann sums, and hence its endpoint-averaged trapezoidal sums, converge to its definite integral. Thus and , giving
No pre-existing formula for the sum of squares is needed.

Articles by others on the same topic (0)

There are currently no matching articles.