Simpson’s Rule (3/8)

Summary

Simpson’s 3/8 rule integrates a cubic interpolant on three equal subintervals (four nodes). Composite use requires the number of subintervals to be a multiple of 3.

Prerequisites

Problem Type

Approximate abf(x)dx , often combining 3/8 panels with 1/3 panels when nmod6 constraints appear.

Method Definition

One 3/8 panel: n=3 subintervals, h=(ba)/3 , nodes x0,x1,x2,x3 .

abf(x)dx3h8(f(x0)+3f(x1)+3f(x2)+f(x3)).

Composite ( n multiple of 3): weights follow the repeating pattern

1,3,3,2,3,3,2,,3,3,1

scaled by 3h/8 .[1]

Assumptions / Requirements

Error / Accuracy

Single 3/8 panel error is O(h5) involving f(4) , same order family as Simpson 1/3; constants differ. For smooth f , 1/3 is usually preferred panel-for-panel, while 3/8 is useful for fitting nmod3 constraints.

Worked Example

Integrate f(x)=x2 on [0,3] with one 3/8 panel ( h=1 ).

Nodes: 0,1,2,3 with values 0,1,4,9 .

03x2dx318(0+31+34+9)=38(0+3+12+9)=3824=9.

Exact integral: [x3/3]03=9 . Exact again for a quadratic.

Counterexample of a wrong formula: applying trapezoidal-style weights h/3(y0+4yi+yn) with h=1 on [0,4] is not Simpson 3/8 and need not be accurate; always use 3h/8 with pattern 1,3,3,1 per block of three subintervals.

Common Failure Modes

Connections

References


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