Math 2.0

Numerical analysis Numerical integration and differentiation Proposition

Adaptive quadrature

Builds on Numerical integrationQuadrature ruleSimpson's rule

Statement

Let f ⁣:[a,b]→ℝf \colon [a, b] \to \R be integrable and let τ>0\tau > 0 be a tolerance. For each closed subinterval JJ of [a,b][a, b], let A(J)A(J) be a computable approximation of I(J)=∫Jf(x) dxI(J) = \int_J f(x) \, dx, and let E(J)≥0E(J) \ge 0 be a computable error estimate. The adaptive quadrature procedure ADAPT(J,τJ)\mathrm{ADAPT}(J, \tau_J) returns A(J)A(J) if E(J)≤τJE(J) \le \tau_J; otherwise it splits JJ at its midpoint into J1J_1 and J2J_2 and returns ADAPT(J1,τJ/2)+ADAPT(J2,τJ/2)\mathrm{ADAPT}(J_1, \tau_J / 2) + \mathrm{ADAPT}(J_2, \tau_J / 2). Suppose that ADAPT([a,b],τ)\mathrm{ADAPT}([a, b], \tau) terminates, and let J1,…,JmJ_1, \ldots, J_m be the intervals at which it accepted A(Ji)A(J_i) with tolerance τi\tau_i. Then:

  1. the intervals J1,…,JmJ_1, \ldots, J_m cover [a,b][a, b] and overlap only at endpoints, and τ1+⋯+τm=τ\tau_1 + \cdots + \tau_m = \tau;
  2. if ∣I(Ji)−A(Ji)∣≤E(Ji)\abs{I(J_i) - A(J_i)} \le E(J_i) for each ii, then the result S=∑i=1mA(Ji)S = \sum_{i=1}^m A(J_i) satisfies ∣∫abf(x) dx−S∣≤τ\abs{\int_a^b f(x)\,dx - S} \le \tau.

Remarks

Clause 1 holds by induction on the recursion: a split replaces one interval with tolerance τJ\tau_J by its two halves with tolerances adding up to τJ\tau_J. Clause 2 then follows from the triangle inequality, since ∣∫abf−S∣≤∑i∣I(Ji)−A(Ji)∣≤∑iτi\abs{\int_a^b f - S} \le \sum_i \abs{I(J_i) - A(J_i)} \le \sum_i \tau_i. The usual example is adaptive Simpson's rule: with S(J)S(J) the Simpson value on JJ, one takes A(J)=S(J1)+S(J2)A(J) = S(J_1) + S(J_2) and E(J)=∣S(J1)+S(J2)−S(J)∣/15E(J) = \abs{S(J_1) + S(J_2) - S(J)}/15. This estimate is justified for f∈C4f \in C^4 and small JJ: the Simpson error on an interval of length ℓ\ell is −ℓ52880f(4)(ξ)-\frac{\ell^5}{2880} f^{(4)}(\xi), so halving the interval divides the error by about 1616. The hypothesis of clause 2 is essential, and the estimate EE can be fooled. For f(x)=(x(x−14)(x−12)(x−34)(x−1))2f(x) = \big(x (x - \tfrac14)(x - \tfrac12)(x - \tfrac34)(x - 1)\big)^2 on [0,1][0, 1], all the Simpson sample points of the first test are zeros of ff, so E([0,1])=0E([0,1]) = 0 and the procedure returns 00, while ∫01f>0\int_0^1 f > 0. Real programs also bound the depth of the recursion, since termination is not guaranteed for every ff.

Going deeper

For a student

Compared with a fixed composite rule, adaptivity can save many function evaluations when ff has a peak, a kink or an endpoint singularity. The error estimate comes from comparing two rules on the same interval, such as Simpson's rule on one and on two panels, or a Gauss rule with its Gauss–Kronrod extension. The guarantee is only as good as the estimate: it is a heuristic, not a proof, for a function known only through samples. Global variants keep a list of all intervals and always split the one with the largest estimated error.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Numerical integration concept
  2. Quadrature rule concept
  3. Simpson's rule concept
  4. Adaptive quadrature statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Adaptive_quadrature
About this page
Tag948A39DZDE
URIm2://948A39DZDE
Kindstatement, proposition
WritingW0 stub
MSC65D30, 65D32
StatusThis copy of the site has no build data. Run m2 status 948A39DZDE.
AboutNumerical integration
UsesNumerical integration, Quadrature rule, Simpson's rule
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.