Integrals
Accumulation: areas, totals, averages and probabilities. The other half of calculus, and the mathematics of Monte Carlo, rendering and probabilistic machine learning.
8 topics
Where the derivative asks how fast, the integral asks how much in total. Adding up infinitely many infinitely thin contributions turns out to be everywhere in computing:
INTEGRAL
├──► Probability (probabilities are areas under densities; expectations are integrals)
├──► Physics (work, mass, energy, position from velocity)
├──► Simulation (every time step integrates the equations of motion)
├──► Signals (energy, convolution, Fourier coefficients)
└──► Monte Carlo (estimate an integral by averaging random samples — and render images with it)
In machine learning the connection is real but less direct than with derivatives: the true objective is an expected loss — an integral over the data distribution — which training approximates with averages over mini-batches.
Topics
Antiderivatives and indefinite integrals
is an antiderivative of if ; all of them differ by a constant, written . Many elementary functions, such as , have no elementary antiderivative.
Riemann sums
Approximate the area under a curve by thin rectangles, . As the sum converges to the integral — slowly for the left/right rule (), faster for the midpoint ().
Definite integral
is the limit of Riemann sums: the signed area between the graph and the axis, or, more generally, the total accumulated by a rate over .
Integration by substitution
The chain rule read backwards: . In probability it is how densities transform when a random variable is transformed.
Integration by parts
The product rule read backwards: . It moves a derivative from one factor to the other — the trick behind the weak formulation of differential equations and finite elements.
Trigonometric integrals
Integrals of products of and . The key fact: different frequencies are orthogonal — for — which is what makes Fourier series work.
Partial fractions
Split a rational function into simple pieces , that integrate to logarithms and arctangents. Engineers use the same decomposition to invert Laplace and Z transforms.
Improper integrals
Integrals over infinite intervals or of unbounded functions, defined as limits: . Every probability density over integrates to 1 this way.