Techniques of Integration/Approximate and Improper Integrals

Lesson 7.41,090 words

Approximate and Improper Integrals

Two definite integrals the Fundamental Theorem cannot reach. With no antiderivative available, the Midpoint, Trapezoidal, and Simpson rules approximate the integral from sample values, each carrying a provable error bound.

╌╌╌╌

The Fundamental Theorem evaluates from an antiderivative of . Two situations put that out of reach. Either has no elementary antiderivative — as with or — or is known only as measured data with no formula at all. In both cases the integral is approximated numerically. A separate failure occurs when the interval runs to infinity or has an infinite discontinuity; there the integral is redefined as a limit, and the question becomes whether that limit exists.

Numerical approximation

The definite integral is a limit of Riemann sums, so any Riemann sum approximates it. Divide into subintervals of width with endpoints . Sampling the left or right endpoint of each subinterval gives the crude approximations and . Two better sampling choices follow.

The Midpoint Rule sums rectangles whose height is read at the middle of each strip; the Trapezoidal Rule replaces each strip's top by the straight chord joining its endpoints, so the area element is a trapezoid. Both are exact for straight-line and err in proportion to how much curves.

The Midpoint Rule: each rectangle's height is the value of at the center of its subinterval, marked by a dot on the curve; the over- and under-shoots on the two halves of a strip partly cancel.

Simpson's Rule

Fitting a straight chord ignores curvature. Fitting a parabola through three consecutive points captures it. Group the subintervals in pairs (so must be even) and pass a parabola through each triple of points; the area under one parabola over works out to . Summing gives the rule.

The Trapezoidal Rule tops each strip with a straight chord; Simpson's Rule tops each pair of strips with a parabola through three points, following the curve far more closely.

Error bounds

Each rule comes with a provable bound on the error, the amount that must be added to the approximation to make it exact. The bounds depend on how large a derivative of can be on .1

The Midpoint error bound is half the Trapezoidal, and in practice their errors have opposite signs — Simpson's Rule combines the two as the weighted average . Doubling cuts the trapezoidal and midpoint errors by about (the ), but cuts Simpson's error by about (the ). Because vanishes for any cubic, Simpson's Rule is exact on polynomials of degree or lower.

The rates show clearly when the errors for (true value ) are tabulated against .

error error error
Error against the number of subintervals on log axes: the trapezoidal and midpoint errors fall as (slope ), Simpson's as (slope ).

To guarantee accuracy within a tolerance, solve the bound for . For , here so on ; the Trapezoidal bound forces , while Simpson's needs only .

The bound also caps the error of a computed approximation before the true value is known.

Improper integrals over infinite intervals

The region under to the right of extends forever, yet its area is finite. The area out to is

which approaches as . Defining the integral over as this limit gives it the value .

The nearly identical curve behaves oppositely:

so diverges. The two curves look alike for large and both tend to , but decays fast enough for finite area while does not.

The regions under and to the right of : the faster decay of gives finite area, while encloses infinite area.

The pattern generalizes to a benchmark family, the -integrals, obtained by the same limit computation for a general exponent.

A doubly-infinite integral splits at any finite point and converges only if both halves do.

Improper integrals with a discontinuous integrand

The second kind of impropriety comes from the integrand rather than the interval. If has a vertical asymptote at an endpoint, integrate up to a movable bound and take the limit toward the bad point.

For , the integrand blows up at the left endpoint , so

a finite value: the region is unbounded in height but has finite area. A logarithmic example converges too: .

The region under from to : the integrand shoots to infinity at the left endpoint, but the tail is thin enough that the area is finite, equal to .

The interior case demands care. The integrand of has an asymptote at inside the interval. Splitting at , the piece already diverges, so the whole integral diverges. Treating it as an ordinary integral and writing is wrong: it ignores the discontinuity. Always scan the interval for points where the integrand is undefined before evaluating.

The Comparison Test

When an improper integral has no elementary antiderivative, its value cannot be computed directly, but convergence can still be settled by comparison with a simpler integral of known behavior.

A finite area under the upper curve caps the area under the lower one; an infinite area under the lower curve forces the upper one to be infinite too.

The Comparison Test: with , finite area under bounds the area under , and infinite area under forces the same for .

The classic application is the Gaussian integral. The antiderivative of is not elementary, yet its convergence is easy. For , , so , and

converges. By comparison converges, and adding the ordinary integral over shows converges. Its exact value comes later, from multivariable methods, and underlies the normal distribution used in probability. The opposite conclusion follows from a divergent lower bound: since and diverges, so does .

ImproprietyCauseDefinitionDecide by
Type 1infinite intervallimit as bound direct limit, -integral, comparison
Type 2infinite discontinuitylimit toward the bad pointdirect limit, comparison
interior discontinuityasymptote inside split at ; both pieces must convergeevaluate each piece

Between the exact methods and the approximation and limit definitions, every definite integral that arises in practice can be either evaluated exactly, approximated to a stated tolerance, or bounded for convergence.2

Footnotes

  1. Stewart, Calculus, §7.7 — Approximate Integration: the Midpoint, Trapezoidal, and Simpson rules with their error bounds and the observation that Simpson is exact on cubics.
  2. Stewart, Calculus, §7.8 — Improper Integrals: the Type 1 and Type 2 definitions, the -integral, and the Comparison Test.

╌╌ END ╌╌