Appendix B: Estimating Integrals

Advanced ≈ 35 min Chapter B 8 exercises
Why this mattersReal life rarely grants closed-form antiderivatives. Estimation is how mathematics still gets answers — with a guarantee attached. This appendix collects the three classic ways and their error terms.

1 · Estimating integrals using strips

Divide [a,b] into n subintervals of width h = (b−a)/n. Approximate the integral by rectangles — left, right, or midpoint. Errors shrink as 1/n (first-order methods), more slowly than Taylor estimates but always available.

2 · The trapezoidal rule

Replace each rectangle by a trapezoid and average left and right ends:

Tₙ = h/2 · [f(x₀) + 2Σ_{i=1}^{n−1} f(xᵢ) + f(xₙ)].

Second-order accurate: error O(1/n²).

3 · Simpson’s rule — parabola-fitting

Fit a parabola through triples of points (n must be even):

Sₙ = (h/3) · [f(x₀) + 4Σ odd i + 2Σ even i (excluding ends) + f(xₙ)]. Works beautifully on cubics (exact!) and usually rivals trapezoids with far fewer strips.

Worked example 1

Estimate ∫₀¹ e^{−x²}dx with Simpson, n=2 (h=0.5): values are 1, e^{−0.25}≈0.779, e^{−1}≈0.368. Simpson: 0.5/3·[1 + 4·0.779 + 0.368] ≈ 0.7477. The true value is 0.7468 — error 0.001. Trapezoidal with the same two strips gives 0.7533, with more error. Simpson wins.

4 · The error in our approximations

For smooth f, trapezoidal error ≤ −(b−a)h²/12 · f″(ξ), Simpson error ≤ −(b−a)h⁴/180 · f⁽⁴⁾(ξ). The h⁴ in Simpson explains its reputation for accuracy per strip.

Watch out

Simpson’s rule demands an even number of strips — an odd n silently breaks the pairing. And on non-smooth functions (sharp corners, kinks), both rules lose their high order: refine near the kink, and don’t trust an error bound that assumed 4th-order smoothness you don’t have.

Chapter formula sheet Tₙ = (h/2)[f(x₀) + 2Σmid + f(xₙ)]  error ≈ −(b−a)h²/12 · f″(ξ)
Sₙ = (h/3)[f(x₀) + 4Σodd + 2Σeven + f(xₙ)]  error ≈ −(b−a)h⁴/180 · f⁽⁴⁾(ξ)
Exact for: Simpson on polynomials degree ≤ 3
Choose n for desired digits: more strips are cheap, error bounds are not

Common mistakes

  • Misidentifying h: it’s (b−a)/n, not 1/n — scaling matters.
  • Applying Simpson with odd n — it needs an even number of subintervals.
  • Trusting a trapezoid on a sharp peak; refine where f curves, not where it’s flat.
  • Quoting an estimate without its error bound — “≈ 0.75” is a claim; “0.75 ± 0.01” is an answer.

✎ Practice — marked instantly

The trapezoidal rule uses:
  • A. trapezoids over each subinterval
  • B. parabolas over each subinterval
  • C. midpoint rectangles only
  • D. exact antiderivatives

Multiple choice · interactive marking is enabled when JavaScript loads.

Simpson’s rule (paired strips) uses:
  • A. parabola fits over pairs of strips
  • B. single rectangles
  • C. trapezoids
  • D. Taylor series

Multiple choice · interactive marking is enabled when JavaScript loads.

Trapezoidal estimate of ∫₀¹ x² dx with n=2 (h=0.5) is: values 0, 0.25, 1 → (h/2)[0 + 2·0.25 + 1]. Compute it.

Numeric answer · interactive marking is enabled when JavaScript loads.

Simpson with n=2 for ∫₀¹ x² dx is exact. Recall its value.

Numeric answer · interactive marking is enabled when JavaScript loads.

Simpson needs which parity of n?
  • A. n even
  • B. n odd
  • C. any n
  • D. n = 1

Multiple choice · interactive marking is enabled when JavaScript loads.

The trapezoidal error scales like:
  • A. h²
  • B. h⁴
  • C. h
  • D. constant

Multiple choice · interactive marking is enabled when JavaScript loads.

For ∫₀¹ e^{−x²}dx, Simpson (n=2) gave ≈ 0.7477 and the true value is 0.7468. The error is:

Short answer · interactive marking is enabled when JavaScript loads.

Why does Simpson beat trapezoidal on smooth integrands?
  • A. its error term is O(h⁴) versus O(h²)
  • B. it uses more memory
  • C. it requires antiderivatives
  • D. it averages left and right

Multiple choice · interactive marking is enabled when JavaScript loads.