beginner · Physics · Math Foundations: Calculus, Probability & Statistics
Calculus Essentials: Definite Integrals
Quantum mechanics measures probabilities, and a probability is an area under
a curve — the area under ∣ψ(x)∣2. Computing those areas is what the
definite integral does. This lesson gives you exactly the calculus you need:
how to evaluate ∫abf(x)dx for the polynomial integrands that show up in
normalization, expectation values, and probability over an interval.
The definite integral as area
For a function f(x) on an interval [a,b], the definite integral
∫abf(x)dx
is the (signed) area between the curve y=f(x) and the x-axis from x=a to
x=b. When f(x)=∣ψ(x)∣2 is a probability density, that area is the
probability of finding the particle between a and b.
The power rule
An antiderivativeF(x) of f(x) is any function whose derivative is f:
F′(x)=f(x). For powers of x, the antiderivative follows one rule — raise the
exponent by one and divide by the new exponent:
∫xndx=n+1xn+1(n=−1).
A sum integrates term by term, and a constant multiple pulls outside the integral,
so any polynomial integrates immediately. For example ∫(x2−2x3)dx=3x3−2x4.
The Fundamental Theorem of Calculus
To turn an antiderivative into a definite integral, evaluate it at the two
endpoints and subtract. This is the Fundamental Theorem of Calculus: if
F′(x)=f(x), then
∫abf(x)dx=F(x)ab=F(b)−F(a).
The notation F(x)ab is just shorthand for "plug in b, then subtract the
value at a."
A worked example
Evaluate ∫01x2(1−x)2dx — the exact integral you will meet
again when normalizing a wavefunction. First expand the integrand:
x2(1−x)2=x2(1−2x+x2)=x2−2x3+x4.
Integrate term by term with the power rule:
∫01(x2−2x3+x4)dx=[3x3−2x4+5x5]01.
At x=1 every power is 1 and at x=0 every term vanishes, so by the
Fundamental Theorem:
31−21+51=3010−15+6=301≈0.0333.
Try it
This is a numerical exercise — your code should return a number. Compute the
definite integral ∫01x2(1−x)2dx and return its value.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.