Simpson’s Rule (1/3)

Summary

Simpson’s 1/3 rule integrates a quadratic interpolant on two equal subintervals (three nodes). Composite Simpson is fourth-order accurate for smooth f and exact for cubics.

Prerequisites

Problem Type

Approximate ∫abf(x)dx with higher accuracy than the trapezoidal rule.

Method Definition

One panel (two subintervals): set h=(b−a)/2 and nodes a , a+h , b .

∫abf(x)dx≈h3(f(a)+4f(a+h)+f(b)).

Composite rule: n even, h=(b−a)/n , xi=a+ih :

∫abf≈h3(f(x0)+f(xn)+4∑i oddf(xi)+2∑i even,0<i<nf(xi)).

Weights pattern: 1,4,2,4,2,…,4,1 .[1]

Assumptions / Requirements

Error / Accuracy

Single panel error involves f(4)(ξ) and is O(h5) locally; composite error is O(h4) :

E=−(b−a)180h4f(4)(ξ)

for some ξ∈(a,b) .

Worked Example

Compute ∫01x2dx with one Simpson panel.

Here h=(1−0)/2=1/2 , nodes 0 , 1/2 , 1 :

∫01x2dx≈1/23(0+4⋅(12)2+1)=16(0+4⋅14+1)=16⋅2=13.

Exact value is 1/3 (Simpson is exact for quadratics). Using the wrong step h=(b−a)/3 would incorrectly produce 2/9 .

Common Failure Modes

Connections

References


  1. Burden & Faires, Numerical Analysis, Simpson’s rules; NIST DLMF Ch. 3, https://dlmf.nist.gov/3 ↩︎