A double integral adds up "something per unit area" over a region. If that something is density, you get mass; weight it by position and you get the balance point. You did this in one dimension with thin rods; now the objects are thin plates (laminas), and the same integrals measure probability for two random variables.
🔑 Key idea
For a plate on $D$ with density $\rho(x, y)$ (mass per unit area):
$$m = \iint_D \rho\,dA, \qquad \bar{x} = \frac{1}{m}\iint_D x\rho\,dA, \qquad \bar{y} = \frac{1}{m}\iint_D y\rho\,dA.$$
Moments of inertia: $I_x = \iint_D y^2\rho\,dA$, $I_y = \iint_D x^2\rho\,dA$. For a joint density $f(x, y)$, $P((X, Y) \in E) = \iint_E f\,dA$, and $\iint f\,dA = 1$ over all outcomes.
💡 Why it works
Chop the plate into small pieces. A piece of area $\Delta A$ near $(x, y)$ has mass about $\rho(x, y)\,\Delta A$; adding the pieces gives the mass. The balance point is a weighted average of positions, each piece weighted by its mass, just as the average of numbers weights each by how often it occurs: $\bar{x} = \frac{\sum x\,\Delta m}{\sum \Delta m}$. Probability works the same way, with "probability per unit area" in place of mass per unit area.
The triangle of the first example, sliced vertically: each slice runs from $y = 0$ to $y = 1 - x$.
Worked examples
✏️ Worked example: Mass and center of mass
A plate covers the triangle with vertices $(0, 0)$, $(1, 0)$, $(0, 1)$, with density $\rho = y$. Find its mass and center of mass.
Dividing by the area instead of the mass. With a variable density, $\bar{x} = \frac{\iint x\rho\,dA}{\iint \rho\,dA}$; dividing by the area gives the geometric centroid only when $\rho$ is constant. Check: the center of mass must move toward the heavy part of the plate, as $\bar{y}$ did in the example.
Practice
Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.