Skip to main content

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,

∫1∞x−p dx=lim⁡R→∞∫1Rx−p dx\int_1^\infty x^{-p}\,dx=\lim_{R\to\infty}\int_1^R x^{-p}\,dx

converges exactly when p>1p>1, and then equals 1/(p−1)1/(p-1). At a finite singular endpoint, ∫01x−p dx\int_0^1x^{-p}\,dx converges exactly when p<1p<1. Thus ∫01x−1/2 dx=2\int_0^1x^{-1/2}\,dx=2, but ∫01x−1 dx\int_0^1x^{-1}\,dx 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 1/x1/x on [−1,1][-1,1] is not ordinary convergence.

Approximate a finite integral​

On [a,b][a,b] divide into nn equal steps of width h=(b−a)/nh=(b-a)/n. The composite trapezoid rule averages endpoint heights; the midpoint rule uses each interval centre. For f(x)=x2f(x)=x^2 on [0,1][0,1],

Tn=13+16n2,Mn=13−112n2.T_n=\frac13+\frac1{6n^2},\qquad M_n=\frac13-\frac1{12n^2}.
Finite quadrature rectangles and a separately shaded improper tail
Refinement controls a finite-interval approximation; truncation requires its own tail estimate.

If f∈C2[a,b]f\in C^2[a,b] (twice continuously differentiable) and ∣f′′∣≤K|f''|\le K, their absolute errors are bounded by K(b−a)3/(12n2)K(b-a)^3/(12n^2) and K(b−a)3/(24n2)K(b-a)^3/(24n^2). These bounds need the stated smoothness. Composite Simpson's rule requires even nn; with a bounded continuous fourth derivative its error is at most ∥f(4)∥∞(b−a)5/(180n4)\|f^{(4)}\|_\infty(b-a)^5/(180n^4).

Account for both kinds of error​

An improper numerical integral needs a tail bound as well as quadrature error on its truncated interval. For ∫1∞x−2 dx\int_1^\infty x^{-2}\,dx, truncating at RR omits exactly 1/R1/R. 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​

  1. Calculate trapezoid and midpoint estimates for n = 2 and 4.
  2. Use Simpson weights 1, 4, 1 with n = 2 and compare.
  3. For ∫₁∞ x⁻² dx, choose a cutoff making the omitted tail at most 0.001.

Observe and record​

Case or quantityPredictionExact result or argumentError 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

Next: Sequences and Infinite Series