Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Adding up tiny pieces
If you drive at a steady 60 km/h for 2 hours, you travel 120 km: speed × time. But what if your speed keeps changing? Chop the trip into many tiny moments. In each one the speed is nearly constant, so add up speed × (tiny time). With more and thinner slices, the total gets exact. That’s an integral.
On a graph of speed against time, each slice is a thin rectangle, so the distance is the area under the curve.
A spacecraft’s navigation computer can’t see where it is. It knows how hard its thrusters pushed, moment by moment. Adding those pushes up (integrating) gives its speed, and adding the speeds up gives its position. Tiny errors in that sum also add up, which is why spacecraft also take star sightings.
- 1. 60 km/h for 2 hours covers…
- 2. On a speed–time graph, the distance is the…
- 3. Using more, thinner strips makes the area estimate…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Riemann sums
Split into strips of width , and add the strip areas:
The fundamental theorem of calculus (FTC)
If ( is an antiderivative), then
An infinite sum becomes one subtraction. With :
- 1. ∫₀¹ x² dx = ?
- 2. ∫₀² 3 dx = ?
- 3. ∫₀² x³ dx = ?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Numerical integration rules
| Rule | Formula on one strip | Error (total) |
|---|---|---|
| left/right | ||
| midpoint | ||
| trapezoid | ||
| Simpson | on pairs of strips | , exact for cubics |
What integrals mean
| Quantity | Integral |
|---|---|
| distance from velocity | (robot odometry) |
| average value | , e.g. the RMS of a voltage |
| probability | , with (A4) |
| expected value | |
| work |
Area below the axis counts as negative: .
FTC, part 1
The running integral is an antiderivative, even when no formula exists. For example, (the error function) has derivative .
- 1. The average of sin on [0, π]?
- 2. d/dx ∫₀ˣ t² dt at x = 3?
- 3. Simpson's rule is exact for polynomials up to degree…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.The precise definition (Darboux)
For a partition , the lower sum uses on each strip, and the upper sum uses . is Riemann integrable if , and that common value is the integral.
- Continuous ⇒ integrable. On , is uniformly continuous (Heine–Cantor). So for fine partitions, on every strip, and .
- Monotone ⇒ integrable, with .
- Not integrable: the Dirichlet function (1 on rationals, 0 on irrationals). Every lower sum is 0 and every upper sum is . The Lebesgue integral handles it (value 0), and it is the foundation of modern probability.
Proof of the FTC
Part 1. Let . Then for some (the mean value theorem for integrals, using continuity). As , , so . ∎
Part 2. If , then , so is constant (by the MVT). Hence . ∎
Exercise 3.1: Why is the trapezoid error O(h²) but the left-rule error only O(h)?
On one strip, the left rule misses the triangle . Summed over strips, that is . The trapezoid uses the chord, so the linear term cancels and the leftover per strip is , giving in total.
- 1. Is the Dirichlet function Riemann integrable?
- 2. Continuous on [a, b] implies…
- 3. The upper sum of f(x) = x on [0, 1] with 4 strips?
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Dead reckoning: integration in robot navigation
An inertial measurement unit (IMU) measures acceleration. Integrating once gives velocity, and integrating twice gives position. A constant accelerometer bias grows into a position error of . Noise grows too, as a random walk. That’s why rovers, drones and spacecraft fuse IMUs with GPS, wheel odometry, star trackers or cameras through Kalman filtering (Kalman, 1960; Groves, 2013).
Beyond the basic rules
- Gaussian quadrature (Gauss, 1814) chooses the nodes as roots of Legendre polynomials (A2.4-1). points are exact up to degree (Practice Code 5). It is used in finite-element codes and in physics simulators’ integrators.
- Adaptive quadrature (QUADPACK, Piessens et al., 1983; behind
scipy.integrate.quad) refines strips only where the error estimate is large. - Monte Carlo integration estimates by averaging at random points. Its error is in any dimension, which is why it dominates high-dimensional integrals: Bayesian inference, rendering, and expected rewards in reinforcement learning (Metropolis and Ulam, 1949).
- ODE solvers are integration rules applied to . Euler is the left rule, and Heun’s method and RK2 are trapezoid-like. They are the engine of every robot simulator.
References
- B. Riemann (1854). “Über die Darstellbarkeit einer Function durch eine trigonometrische Reihe.” (Habilitation thesis; the Riemann integral.)
- G. Darboux (1875). “Mémoire sur les fonctions discontinues.” Annales scientifiques de l’ÉNS, 4.
- C. F. Gauss (1814). “Methodus nova integralium valores per approximationem inveniendi.”
- H. Lebesgue (1902). Intégrale, longueur, aire. Thesis, Paris.
- N. Metropolis, S. Ulam (1949). “The Monte Carlo method.” Journal of the American Statistical Association, 44.
- R. Piessens, E. de Doncker-Kapenga, C. Überhuber, D. Kahaner (1983). QUADPACK: A Subroutine Package for Automatic Integration. Springer.
- P. Groves (2013). Principles of GNSS, Inertial, and Multisensor Integrated Navigation Systems, 2nd ed. Artech House.