Applying definite integrals

For a discussion on the basic theory of integrals see: w:Riemann sum

Imagine an object  O {\displaystyle {\mathcal {O}}} that is free to move in one dimension — say, along the  x {\displaystyle x} axis. Like every physical object, it has a more or less fuzzy position (relative to whatever reference object we choose). For the purpose of describing its fuzzy position, quantum mechanics provides us with a probability density ρ ( x ) . {\displaystyle \rho (x).} This depends on actual measurement outcomes, and it allows us to calculate the probability of finding the particle in any given interval of the  x {\displaystyle x} axis, provided that an appropriate measurement is made.

We call  ρ ( x ) {\displaystyle \rho (x)} a probability density because it represents a probability per unit length. The probability of finding  O {\displaystyle {\mathcal {O}}} in the interval between  x 1 {\displaystyle x_{1}} and x 2 {\displaystyle x_{2}} is given by the area A {\displaystyle A} between the graph of  ρ ( x ) , {\displaystyle \rho (x),} the  x {\displaystyle x} axis, and the vertical lines at  x 1 {\displaystyle x_{1}} and x 2 , {\displaystyle x_{2},} respectively. How do we calculate this area? The trick is to cover it with narrow rectangles of width  Δ x . {\displaystyle \Delta x.}

The area of the first rectangle from the left is  ρ ( x 1 + Δ x ) Δ x , {\displaystyle \rho (x_{1}+\Delta x)\,\Delta x,} the area of the second is  ρ ( x 1 + 2 Δ x ) Δ x , {\displaystyle \rho (x_{1}+2\,\Delta x)\,\Delta x,} and the area of the last is  ρ ( x 1 + 12 Δ x ) Δ x . {\displaystyle \rho (x_{1}+12\,\Delta x)\,\Delta x.} For the sum of these areas we have the shorthand notation

∑ k = 1 12 ρ ( x + k Δ x ) Δ x . {\displaystyle \sum _{k=1}^{12}\rho (x+k\,\Delta x)\,\Delta x.}

It is not hard to visualize that if we increase the number  N {\displaystyle N} of rectangles and at the same time decrease the width  Δ x {\displaystyle \Delta x} of each rectangle, then the sum of the areas of all rectangles fitting under the graph of  ρ ( x ) {\displaystyle \rho (x)} between  x 1 {\displaystyle x_{1}} and x 2 {\displaystyle x_{2}} gives us a better and better approximation to the area A {\displaystyle A} and thus to the probability of finding  O {\displaystyle {\mathcal {O}}} in the interval between  x 1 {\displaystyle x_{1}} and x 2 . {\displaystyle x_{2}.} As  Δ x {\displaystyle \Delta x} tends toward 0 and  N {\displaystyle N} tends toward infinity ( ∞ {\displaystyle \infty } ), the above sum tends toward the integral

∫ x 1 x 2 ρ ( x ) d x . {\displaystyle \int _{x_{1}}^{x_{2}}\rho (x)\,dx.}

We sometimes call this a definite integral to emphasize that it's just a number. (As you can guess, there are also indefinite integrals, about which more later.) The uppercase delta has turned into a d {\displaystyle d} indicating that  d x {\displaystyle dx} is an infinitely small (or infinitesimal) width, and the summation symbol (the uppercase sigma) has turned into an elongated S indicating that we are adding infinitely many infinitesimal areas.

Don't let the term "infinitesimal" scare you. An infinitesimal quantity means nothing by itself. It is the combination of the integration symbol  ∫ {\displaystyle \textstyle \int } with the infinitesimal quantity  d x {\displaystyle dx} that makes sense as a limit, in which  N {\displaystyle N} grows above any number however large,  d x {\displaystyle dx} (and hence the area of each rectangle) shrinks below any (positive) number however small, while the sum of the areas tends toward a well-defined, finite number.