Improper and Numerical Integration
A finite-looking formula can hide an infinite total, and a decimal approximation can hide its error. This chapter separates convergence of improper integrals from accuracy of finite quadrature.
- Improper and numerical integration: Improper integrals use limits at infinite bounds or singularities. Numerical integration approximates an integral with a finite computation.
Define the missing endpoint by a limit
An improper integral is a limit of ordinary integrals. For example,
converges exactly when , and then equals . At a finite singular endpoint, converges exactly when . Thus , but diverges.
For an interior singularity, both sides must converge separately. A symmetric principal value may exist even when the improper integral does not: the symmetric cancellation of on is not ordinary convergence.
Approximate a finite integral
On divide into equal steps of width . The composite trapezoid rule averages endpoint heights; the midpoint rule uses each interval centre. For on ,
If (twice continuously differentiable) and , their absolute errors are bounded by and . These bounds need the stated smoothness. Composite Simpson's rule requires even ; with a bounded continuous fourth derivative its error is at most .
Account for both kinds of error
An improper numerical integral needs a tail bound as well as quadrature error on its truncated interval. For , truncating at omits exactly . Refining only the finite interval cannot remove that tail. Roundoff and data error are additional sources; neither is the same as the mathematical discretization error.
Basic practice
Prepare
Reuse ∫₀¹ x² dx = 1/3. Use exact arithmetic for n = 2 and n = 4.
Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.
Predict
Will doubling n reduce the trapezoid error by two or by four?
Execute
- Calculate trapezoid and midpoint estimates for n = 2 and 4.
- Use Simpson weights 1, 4, 1 with n = 2 and compare.
- For ∫₁∞ x⁻² dx, choose a cutoff making the omitted tail at most 0.001.
Observe and record
| Case or quantity | Prediction | Exact result or argument | Error or software check |
|---|---|---|---|
| n = 2: T and M | |||
| n = 4: T and M | |||
| Simpson n = 2 | |||
| Tail cutoff |
Check after working: T ₂ = 3/8, M₂ = 5/16, T₄ = 11/32, and M₄ = 21/64. Simpson is exact here and gives 1/3. A cutoff R ≥ 1000 controls the tail, independently of quadrature accuracy.
Optional extension
Compare the symmetric principal value of 1/x with the two divergent one-sided improper integrals.
Keep and continue
Keep the error-versus-step table. Next, apply convergence ideas to infinite sequences and sums.
Previous: Totals, Mass, and Averages