Open rules that avoid the endpoints of the interval, with special attention to the simple and composite midpoint rule.
Why they are open
Open formulas use only interior nodes. They are useful when the endpoints are not defined, are singular, or have not been measured.
Open rule
Simple approximation
Leading error
Punto medio
(b-a) f((a+b)/2)
(b-a)^3 f''(xi)/24
Dos nodos interiores
(b-a)/2 [f((2a+b)/3)+f((a+2b)/3)]
3h^3 f''(xi)/4, h=(b-a)/3
Tres nodos interiores
(b-a)/3 [2f((3a+b)/4)-f((a+b)/2)+2f((a+3b)/4)]
14h^5 f^(4)(xi)/45, h=(b-a)/4
Simple midpoint
The simple midpoint rule replaces the curve by a rectangle whose height is measured at the centre of the interval. It uses one function value, not the endpoints.
The approximation is the area of the rectangle with base b−a and height f(m), where m=(a+b)/2.
Direct derivation
Define the midpoint of the interval:
m=2a+b
Approximate f(x) by the constant f(m) on all of [a,b]:
∫abf(x)dx≈∫abf(m)dx
Since f(m) does not depend on x, it factors out and leaves the rectangle area:
M1=(b−a)f(2a+b)
If f∈C2[a,b], the exact error has positive sign under the convention E=I−M1:
EM=∫abf(x)dx−M1=24(b−a)3f′′(ξ)
Composite midpoint
To use midpoint on n subintervals, split [a,b] with step h=(b−a)/n and evaluate the function at the centre of each subinterval. This notation does not require n to be even.
Composite midpoint sums rectangles of width h. Each height is f(mi), with mi at the centre of its subinterval.
Derivation for n subintervals
Take the partition nodes and the centre of each subinterval:
xi=a+ih,mi=2xi+xi+1=a+(i+21)h
On the subinterval [xi,xi+1], use the simple midpoint rule:
Mi=hf(mi)
The composite rule is the sum of all rectangles:
Mn=hi=0∑n−1f(mi)=hi=0∑n−1f(a+(i+21)h)
Summing the local errors h3f′′(ξi)/24 gives the global error: