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=(ba)/2 and nodes a , a+h , b .

abf(x)dxh3(f(a)+4f(a+h)+f(b)).

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

abfh3(f(x0)+f(xn)+4i oddf(xi)+2i 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=(ba)180h4f(4)(ξ)

for some ξ(a,b) .

Worked Example

Compute 01x2dx with one Simpson panel.

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

01x2dx1/23(0+4(12)2+1)=16(0+414+1)=162=13.

Exact value is 1/3 (Simpson is exact for quadratics). Using the wrong step h=(ba)/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 ↩︎