IntermediateUpdated 2026-09-22

Approximate Integration

Some integrals — like — have no elementary antiderivative. Numerical methods approximate the definite integral directly from function values, without ever finding .

Setup

Split into equal subintervals of width , with endpoints .

Trapezoidal Rule

Approximate each strip with a trapezoid instead of a rectangle:

Midpoint Rule

Use the function value at the midpoint of each subinterval, :

Simpson's Rule

Fit a parabola through each pair of adjacent strips (requires even) — far more accurate for smooth functions:

Error bounds

If on :

If on :

Simpson's error shrinks like instead of , so it converges much faster as grows.

Worked example: Trapezoidal Rule

Approximate using ().

The true value is , so is off by about .

Worked example: Simpson's Rule

Approximate using ().

The true value is — accurate to about four decimal places, illustrating why Simpson's Rule is preferred when the integrand is smooth.

Practice

  1. 1.
    Simpson's Rule error shrinks proportional to:
  2. 2.
    The Trapezoidal Rule approximates each strip using:
  3. 3.
    Simpson's Rule requires to be: