Simpson's Rule
📂Numerical AnalysisSimpson's Rule
Definition

Let f:[a,b]→R be integrable on [a,b] and divide [a,b] into nodes with equal intervals of h:=nb−a like a=x0<⋯<xn=b. Then, the numerical integration operator In2 defined as follows is called the Simpson’s Rule.
In2(f):=k=1∑n/23h[f(x2k−2)+4f(x2k−1)+f(x2k)]
Theorem
Let us denote f∈C4[a,b]. The error E12 and the asymptotic error E~n2 of Simpson’s Rule are as follows:
- [1]: E12(f)=−90h5f(4)(ξ)
- [2]: E~n2(f)=−180h4[f(3)(b)−f(3)(a)]
Explanation
Expanding In2(f) gives the following.
In2(f)=3h[f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+⋯+2f(xn−2)+4f(xn−1)+f(xn)]
Unlike the Trapezoidal Rule which uses linear interpolation to compute the numerical integration of the definite integral I(f)=∫abf(x)dx, this method employs quadratic interpolation.
A point to note is that the error is computed as E12(f)=−90h5f(4)(ξ), indicating that even if an 2th order interpolation is performed for integration, if f is a polynomial of degree 3 or less, the error exactly becomes 0.
Proof
[1]
Strategy: Since the quadratic function is the quadratic interpolation of the given function, properties of polynomial interpolation can be utilized.
For convenience, let’s denote c:=(2a+b).
I12(f):=(6b−a)[f(a)+4f(c)+f(b)]
This approximates I(f) as the integral of the function obtained by performing quadratic interpolation over the interval [a,b].
Newton’s Divided Differences Formula: pn(x)=i=0∑nf[x0,⋯,xi]j=0∏i−1(x−xj)
Given three points a,c,b and for all x∈[a,b],
E12(f):====I(f)−I12(f)∫ab[f(x)−p2(x)]dx∫ab[p2+1(x)−p2(x)]dx∫ab(x−a)(x−c)(x−b)f[a,c,b,x]dx
Let’s define w as follows.
w(x):=∫ab(t−a)(t−c)(t−b)dt
Since (t−a)(t−c)(t−b) is an odd function centered at t=c, w(b)=0, and the integral turns out to be 0 if both ends are equal, w(a)=0. Then, according to the partial integration and the differentiation formulas for divided differences,
E12(f)===∫abw’(x)f[a,c,b,c]dx[w(x)f[a,c,b,x]]ab−∫abw(x)dxdf[a,c,b,x]dx−∫abw(x)f[a,c,b,x,x]dx
By the Fundamental Theorem of Calculus, since w(x)≥0, we can use the Mean Value Theorem for Integrals.
Mean Value Theorem for Integrals: If a function f is continuous on the closed interval [a,b] and w(x)≥0 is integrable, then there exists at least one η in [a,b] satisfying ∫abf(x)w(x)dx=f(η)∫abw(x)dx.
Furthermore, according to the properties of divided differences,
E12(f)===−f[a,c,b,η,η]∫abw(x)dx−24f(4)(ξ)[154h5]−90h5f(4)(ξ)
some η,ξ∈[a,b] exists that satisfies the above.
■
Proof[2]
Strategy: Once the Riemann sums are derived, the rest naturally follows from the Fundamental Theorem of Calculus. However, since the Simpson’s rule involves addition like k=1∑n/2, a trick of multiplying by 22 is used in deriving the Riemann sums.
According to Theorem [1], the error between the actual I(f) and In2(f) is computed as follows for some ξk∈[x2(k−1),x2k].
En2(f)==I(f)−In2(f)k=1∑n/2(−90h5f(4)(ξk))
Regarding this,
n→∞limh4En2(f)======n→∞limh41k=1∑n/2(−90h5f(4)(ξk))n→∞limh4122k=1∑n/2(−90h5f(4)(ξk))−1801n→∞limk=1∑n/22hf(4)(ξk)−1801n→∞limk=1∑n/2n/2b−af(4)(ξk)−1801∫abf(4)(x)dx−1801[f(3)(b)−f(3)(a)]
Therefore,
n→∞limEn(f)E~n(f)=1
En2(f)≈E~n2(f)=−180h4[f(3)(b)−f(3)(a)]
■