Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.An endless shape with a finite area
Eat half a cake, then half of what’s left, then half again, forever. You eat infinitely many pieces, but never more than one cake: .
Areas work the same way. A shape that stretches forever can still have a finite area, if it gets thin fast enough. If it thins too slowly, the area is infinite. Integrals over endless ranges are called improper integrals.
The famous bell curve (the Gaussian) stretches forever in both directions, yet its total area is exactly √π. That number sits inside the formula for the normal distribution, which describes sensor noise in every robot and every spacecraft navigation system.
- 1. ½ + ¼ + ⅛ + … (forever) adds up to…
- 2. Can an infinitely long shape have a finite area?
- 3. 1 + 1 + 1 + … forever is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Definition: a limit of ordinary integrals
If the limit exists and is finite, the integral converges. Otherwise it diverges. Blow-ups inside the range are handled the same way, for example .
| Integral | Value |
|---|---|
| 1 | |
| diverges | |
| 2 | |
| 1 |
- 1. ∫₁^∞ dx/x² = ?
- 2. Does ∫₁^∞ dx/x converge?
- 3. ∫₀^∞ e^(−x) dx = ?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.The p-test and comparison
Comparison: if and converges, so does . If diverges, so does . For example, , and in fact .
The Gaussian integral
This is why the normal density is : the constant makes the total probability 1. Its moments are and (for ).
Conditional convergence
converges because the positive and negative lobes cancel. But diverges (it grows like ). This kind of fragile convergence needs care in numerical work and in Fourier analysis.
- 1. ∫_{−∞}^{∞} e^(−x²) dx = ?
- 2. ∫₀¹ x^(−1/3) dx = ?
- 3. ∫₀^∞ sin x / x dx converges…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Proof of the Gaussian integral (Poisson’s trick)
Let . Square it and switch to polar coordinates:
So . ∎ The extra from the polar area element (A3.2) is exactly what makes the inner integral elementary. As a bonus, (substitute ).
Why comparison works
For , is non-decreasing. A non-decreasing function converges iff it is bounded (completeness of ℝ, A3.1-1). If , then . ∎
Absolute vs conditional convergence
If converges, so does (absolute convergence). The reverse fails, as shows. Lebesgue integration (A3.1-6) only accepts absolutely integrable functions. That’s why is an “improper Riemann” but not a Lebesgue integral on .
Exercise 3.1: Compute ∫₀^∞ x e^(−x²) dx
Substitute , : .
- 1. Γ(½) = ?
- 2. The polar trick works because the area element is…
- 3. For which p do both ∫₁^∞ x^(−p) and ∫₀¹ x^(−p) diverge?
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Laplace’s method: integrals dominated by a peak
For large , is dominated by the maximum of . Expand to second order and use the Gaussian integral:
Applied to , it gives Stirling’s formula , with relative error about . In statistics and ML, the Laplace approximation fits a Gaussian at a posterior’s mode (MacKay, 1992). It approximates Bayesian evidence, and it is used for uncertainty in neural networks (Daxberger et al., 2021) and in robot localization.
Why convergence matters in practice
- Gaussians everywhere. The multivariate version (Practice Code 5) normalizes every Gaussian belief. These include Kalman filters, Gaussian processes (I2) and factor-graph SLAM, where terms appear in likelihoods.
- Heavy tails. The Cauchy distribution’s mean integral diverges, so sample averages never settle (Practice Code 4). Sensor data with heavy-tailed outliers (lidar on glass, GPS multipath) breaks least squares. Robust losses and Student-t models are the fix (A3.1-5).
- Probability of collision. For a robot with a Gaussian position belief, the collision probability is the integral of that Gaussian over the obstacle region. Chance-constrained planners bound it (Blackmore, Ono and Williams, 2011).
- Discounting in RL. converges for bounded rewards because of the exponential discount. This is the continuous-time analogue of .
References
- P.-S. Laplace (1774). “Mémoire sur la probabilité des causes par les événements.” (Laplace’s method and the Gaussian integral.)
- J. Stirling (1730). Methodus Differentialis.
- C. F. Gauss (1809). Theoria motus corporum coelestium. (The normal distribution for astronomical errors.)
- D. MacKay (1992). “A practical Bayesian framework for backpropagation networks.” Neural Computation, 4(3).
- L. Blackmore, M. Ono, B. Williams (2011). “Chance-constrained optimal path planning with obstacles.” IEEE Transactions on Robotics, 27(6).
- E. Daxberger, A. Kristiadi, A. Immer, R. Eschenhagen, M. Bauer, P. Hennig (2021). “Laplace redux: effortless Bayesian deep learning.” NeurIPS.
- N. Bleistein, R. Handelsman (1986). Asymptotic Expansions of Integrals. Dover.