On each interval of width , Taylor expansion about its midpoint shows that the local midpoint-rule error is . Summing over intervals gives the composite midpoint rule error
To remove the endpoint singularity, set . Then
whose transformed integrand is analytic. Applying the composite midpoint rule in with gives
This has the required form when
The quadratic substitution for a square-root endpoint singularity therefore restores second-order convergence.

Articles by others on the same topic (0)

There are currently no matching articles.