1.2 Integrals
If derivatives describe rates of change, integrals describe accumulated quantities. The integral of velocity over time is displacement; the integral of force over distance is work; the integral of acoustic pressure squared over time is acoustic energy. Every conservation law in physics is, when stated quantitatively, an integral equation.
This lesson develops the working subset of integration: what an integral is (the Riemann sum), the fundamental theorem that ties integration to differentiation, and the three manipulation rules — substitution, integration by parts, and partial fractions — that handle nearly every integral you’ll meet in the rest of the bookshelf.
The Riemann integral
The interactive shows the Riemann sum — the definite integral built up as the sum of areas of thin rectangles. Pick a function, a sampling rule (left, midpoint, right), and a partition count . Watch the sum converge to the exact value as grows. The midpoint rule typically wins per partition; the left and right rules under- or over-estimate when the function has monotone curvature.
The Riemann integral is
where the partition subdivides into intervals of width . It measures the signed area under over — positive where , negative where .
The fundamental theorem of calculus ties differentiation and integration together: if for some antiderivative , then
This is one of the most-used identities in physics. It converts an integral — a limit of sums, conceptually awkward and computationally expensive — into a difference of two function values. The challenge of integration is therefore mostly finding the antiderivative for a given ; once you have it, the integral is trivial.
The three manipulation rules
Linearity
Same form as for derivatives:
Integral of a sum is the sum of integrals. The reason Fourier-series coefficients can be computed term by term.
Substitution
The mirror image of the chain rule for derivatives: if the integrand is a composed function times the inner derivative, the integral simplifies to one in the inner variable.
Example: . Let , so . The integral becomes . Differentiate to verify: . ✓
Integration by parts
The mirror image of the product rule. Useful when the integrand is a product where differentiating one factor and integrating the other gives a simpler integral.
Example: . Pick (so ) and (so ). Then
The strategy is to choose to be the factor that simplifies under differentiation (often a polynomial), and to be the factor that’s easy to integrate. Most Fourier-series coefficients are computed via integration by parts on terms of the form — the polynomial simplifies on differentiation while the exponential integrates to itself.
We use integration by parts throughout the Sound book: deriving energy and momentum integrals (Sound Ch 5), computing Fourier coefficients (Sound Ch 8), and reducing the convolution integral.
Partial fractions
A rational function (polynomial over polynomial) with distinct real roots in the denominator can be decomposed into a sum of simpler fractions, each of which integrates straightforwardly. The technique is essential for two things we do later: computing inverse Fourier and Laplace transforms of rational or , and decomposing transfer functions of filters into their modal contributions.
Example. . Multiply both sides by :
Setting kills the term: , so . Setting kills the term: , so . Therefore
and each piece on the right integrates to a logarithm.
When does this come up? A second-order linear filter has a transfer function . Factoring the denominator into its roots and applying partial fractions converts the transfer function into a sum of two first-order pieces — each of which has a simple impulse response . The full impulse response is then a sum of the two exponentials. This is the standard route from frequency-domain to time-domain in linear-systems analysis.
▶ Worked example: partial-fraction decomposition with a repeated root
The simple example above had distinct roots. The general algorithm handles two more cases — repeated real roots and irreducible quadratic (complex-conjugate) factors. Here is a representative worked example with a repeated root.
The problem. Decompose
Step 1 — Write the ansatz. For a repeated factor we need two terms with descending powers: and . Plus the simple factor contributes . The decomposition takes the form
Step 2 — Multiply through by the common denominator.
Step 3 — Apply the “cover-up” trick at the roots of the denominator.
At , the and terms drop out:
At , the and terms drop out:
Step 4 — Find the remaining coefficient. The cover-up trick gave us and but not . Pick a third value of , e.g. :
Step 5 — Final decomposition.
Step 6 — Sanity-check at .
LHS: .
RHS: . ✓
Each term integrates straightforwardly:
The third case — irreducible quadratic factors like — produces a term of the form which integrates to a logarithm plus an arctangent. The full algorithm is worth committing to memory; it is the workhorse of inverse Fourier and Laplace transforms in Foundations 7.3 and beyond.
RMS values
A frequent application of integration on the bookshelf. The root-mean-square of a function over a duration is
For a sinusoid , . The RMS value captures the amplitude scale of the signal in a way that respects sign cancellations: a pure sinusoid has zero mean but a non-zero RMS, and the RMS scales linearly with amplitude.
Acoustic intensity, pressure amplitude on a microphone, electrical power dissipated by an AC current — all of these are most naturally written in terms of RMS values, because all of them depend on . We meet RMS again in Sound 5.3 — Intensity.
What’s next
The next lesson, 1.3 — Taylor series and linearisation, shifts focus from finding antiderivatives to approximating functions by polynomials. Taylor series are the bridge between calculus and the linearised theories that dominate physics — including the entire small-perturbation theory of acoustics.