Differentiate the product using the product rule and chain rule:
Combining terms over a common denominator gives
For a partial fraction decomposition, write
Multiplying by gives . Setting gives , and comparing the coefficient of gives . Thus
Integrating each term gives the antiderivative
The constant of integration can be chosen independently on each interval separated by and .
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.