Reading and display settings

Appearance

System follows your operating system and keeps following it, even if you change it later. The header's sun, moon and monitor cycle the same three options.

Text size (%) 100%

Default. Scales every text size on the site, equations and tables included.

Reading width 70ch

How much text runs across one line of prose. Narrower is easier to track; wider fits more on screen.

Line spacing 1.6

The leading on body text. Taller leading helps a tired eye stay on the line.

Density

Padding and gaps around controls, cards, and tables — how much breathing room the layout leaves itself.

Motion

System follows your operating system. Reduced removes every transition on this site. Full keeps them on unless your system asks for less.

1

The double integral as a limit of sums

Cut the reachable set into cells and add them up

Put the arm's base at the origin. With link lengths $L_1 = 1.3$ m and $L_2 = 0.7$ m, the set of positions the hand can reach is the annulus $0.6 \le \sqrt{x^2+y^2} \le 2.0$ — an inner circle the fully folded arm cannot get inside, an outer circle it cannot pass. Suppose the arm carries a payload whose areal density rises with distance from the base, $\rho(x,y) = 1 + 0.4\,(x^2+y^2)$ kg/m². The total mass is a double integral:

$$ M \;=\; \iint_D \rho(x,y)\,dA \;=\; \lim_{\text{cells}\to 0} \sum_k \rho(x_k,y_k)\,\Delta A_k . $$

The definition is the right-hand side: chop $D$ into small cells, evaluate the density at a point of each cell, multiply by the cell's area, and add. Pick a region shape, raise the grid resolution, and watch the sum converge to the exact value underneath. A cell counts as inside when its centre is inside; at low resolution that is a crude boundary, and the crude boundary is the whole point.

Shaded cells are the ones the sum includes. The outline is the true region; the stair-step edge is what a finite grid sees.

2

Polar coordinates and the area element $r\,dr\,d\theta$

Why an area element is not simply $dr\,d\theta$

For a region with circular symmetry — an annulus is the obvious one — the natural grid is polar: a radial coordinate $r$ and an angle $\theta$. The tempting area element is $\Delta r\,\Delta\theta$, but that is wrong, and the picture shows why. A cell at radius $r$ spanning $dr$ and $d\theta$ is, to first order, a rectangle with sides $dr$ and $r\,d\theta$. Its area is

$$ dA \;=\; r\,dr\,d\theta, \qquad \iint_D f\,dA \;=\; \int_0^{2\pi}\!\!\int_0^{R} f(r\cos\theta,\,r\sin\theta)\;r\,dr\,d\theta . $$

The factor $r$ is the local stretch of a change of variables, and it is exactly the Jacobian determinant from Part 5: the map $(r,\theta)\mapsto(x,y)$ has determinant $r$. Slide the sweep open and watch the ring cells fill the disc; the highlighted element carries its own $r\,dr\,d\theta$ label. The readout compares the sum against the exact integral, which for a full sweep is $\pi R^2 + 0.4\,\pi R^4/2$.

Each shaded patch is one polar cell. The double-highlighted patch is a single area element, drawn as the curved rectangle whose sides are $\Delta r$ and $r\Delta\theta$.

3

Triple integrals: solids, and the two volume elements

Ball, cylinder, box — and the element each one wants

The same construction one dimension up: a triple integral is a limit of sums over little boxes, $\iiint_V f\,dV = \lim \sum f\,\Delta V$. Pick the solid and the coordinates that fit it. A cylinder is cut naturally into shells $r$, angles $\theta$ and heights $z$, and the box cut by $dr,d\theta,dz$ has volume $r\,dr\,d\theta\,dz$, so

$$ \iiint_V f\,dV \;=\; \iiint f(r\cos\theta,r\sin\theta,z)\;r\,dr\,d\theta\,dz . $$

A ball wants spherical coordinates $(\rho,\varphi,\theta)$, where $\varphi$ is the angle down from the $z$-axis. The small coordinate box has sides $d\rho$, $\rho\,d\varphi$ and $\rho\sin\varphi\,d\theta$, giving the classic element

$$ dV \;=\; \rho^2\sin\varphi\;d\rho\,d\varphi\,d\theta . $$

Switch solid and coordinate system below. The canvas draws an $(r,z)$ cross-section with a representative cell highlighted; the readout reports the numeric triple integral using the chosen element, against the exact volume. Any coordinate system can compute any solid if you carry the right Jacobian — but the natural pairing converges fastest.

Half cross-section through the axis. Grid lines mark the coordinate cells; the highlighted patch is one volume element, labelled with its factor.

4

Why the factors are forced

Sum without $r$ or $\rho^2\sin\varphi$ and get the wrong solid

It is worth seeing the factors fail. Compute the volume of a solid with the coordinate cells but drop the Jacobian: sum $\Delta r\,\Delta\theta\,\Delta z$ for a cylinder, or $\Delta\rho\,\Delta\varphi\,\Delta\theta$ for a ball. The sums still converge — to the wrong numbers, and to numbers you can predict. For a cylinder of radius $R$ and height $H$, the correct sum tends to $\pi R^2 H$; the naive one tends to $R\cdot 2\pi\cdot H = 2\pi R H$, which even has the wrong units. For a ball the naive sum tends to $2\pi^2 R$. The factor is not bookkeeping, it is the geometry: near the axis a coordinate cell is thin, near the rim it is stretched, and $r$ (or $\rho^2\sin\varphi$) measures that stretch.

Both sums use the same cells at the same resolution. Only one of them has the Jacobian.

⚠️ The naive sum converges to a finite but wrong volume. A valid limit of sums needs the cell to measure the actual region it covers.
5

Fubini: the order of integration does not matter

Add the cells column by column, or row by row

A double integral over a rectangle is an iterated integral, and you may integrate in either order. This is Fubini's theorem: for a function continuous on the rectangle,

$$ \iint_{[a,b]\times[c,d]} f\,dA \;=\; \int_a^b\!\!\left(\int_c^d f\,dy\right)dx \;=\; \int_c^d\!\!\left(\int_a^b f\,dx\right)dy . $$

Both sides sum exactly the same cells, merely in a different sequence, so the totals agree. The demo makes that visible: switch the order and the shaded cells light up column-first instead of row-first, while the two totals in the readout stay equal. The progress slider sums cells in the chosen order and shows the partial total climbing toward the same value along the two different routes.

Colour encodes the order in which cells are added. Bright cells have been counted; faint ones have not.

6

Where this shows up

Volume elements are everywhere a density is

The change-of-variables machinery underneath these factors is in Part 5, and it pays off directly in Part 11: a probability density is normalised by integrating it to one, and changing variables for a random vector means multiplying by exactly the Jacobian determinant you watched stretch grids here. The same spherical element is how you integrate a radiance field over directions, which is the continuous version of the sampling in Multi-view geometry; and every expectation, marginal and normalisation constant in a model is a multiple integral over the space the variables live in.

7

Elements to carry forward

NotationReads asWhere it comes up
∬_D f dADouble integral over a planar region — a limit of $\sum f\,\Delta A$Every areal density or expectation
dA = dx dyArea element in rectangular coordinatesRectangular domains, Fubini
dA = r dr dθArea element in polar coordinates (Jacobian $r$)Discs, annuli, rotationally symmetric regions
dV = r dr dθ dzVolume element in cylindrical coordinatesSolids of revolution, shells
dV = ρ² sinφ dρ dφ dθVolume element in spherical coordinatesBalls, radial densities, directional integrals
∭_V f dVTriple integral — a limit of sums over small boxesMass, charge, probability in 3-D
FubiniThe integration order can be swapped on a rectangleChoosing the easier iterated integral
8

Further reading

9

Check your understanding

0/4 answered