Simpson's Rule & Adaptive Numerical Integration

Parabolas approximating the area under a curve, with adaptive subdivision refining where the local error is large.

Simpson error O(h⁴) Trapezoid error O(h²) Eval cost O(n) Adaptive: |S2−S| < 15ε

Controls

slow fast

Visualization

curve f(x) Simpson parabola panel trapezoid chord sample node adaptive split point

Live Stats

Estimate
True value
Abs error
f-evals
0
panels
0

What's Happening

Pick a function, an interval, and a mode, then press Run (animated) or Step (one panel at a time).

Big-O & Error Table

RuleShapePer-panel error Composite errorDegree of precisionEval cost
Midpointrectangle+(h³/24)f″O(h²)1O(n)
Trapezoidline−(h³/12)f″O(h²)1O(n)
Simpson 1/3parabola−(h⁵/90)f⁗O(h⁴)3O(n)
Boolequartic−(8h⁷/945)f⁽⁶⁾O(h⁶)5O(n)
Gauss n-pointoptimalf⁽²ⁿ⁾ termdegree 2n−1 exact2n−1O(n)

Operation Log