Inverse-Square Law
Recorded: Sept. 15, 2026, 2:57 p.m.
| Original | Summarized |
Inverse-square law - lcamtuf’s thing lcamtuf’s thingSubscribeSign inInverse-square lawIn which Sally loses her marbles.Sep 14, 202612112ShareIf you’re dabbling in electronics, you might have heard of what’s known as the inverse-square law. This law says that the intensity of many types of physical phenomena decreases with the square of the distance to the origin. For example, if you get twice as far from a lightbulb, a handheld light meter will register a four-fold drop in luminance. The same goes for sound, radio transmissions, and so forth.But… why? Wouldn’t it be more natural if the intensity dropped in direct proportion to how far you are from the source? Or, if it’s about scattering in a three-dimensional space, shouldn’t it be the cube of distance? Let’s try to figure it out.The making of a sphereIf we want an answer that doesn’t merely kick the can down the road, we need to start with the formula for the surface area of a sphere. From school, you might recall that the equation is:\(S_{sphere} = 4 \pi r^2\)That said, I bet your teachers have never explained where the formula comes from. And as with many other “obvious” concepts in elementary mathematics, the answer is not as obvious as it seems — even though it’s been known since the times of Ancient Greeks.To get going, imagine a thin tube (a cap-less cylinder) constructed by gluing the edges of a rectangular sheet of paper:Constructing a paper cylinder.To make the cylinder, we didn’t need to squish or stretch the rectangle, so the process preserved the surface area. The outer surface of this cap-less cylinder is just height (h) multiplied by what used to be width (w) and is now circumference.Next, take a sphere with a radius r and place it inside such a fitted cylinder of the same circumference and the same height:Sphere packing.The sphere has a radius of r, so its circumference — and thus, the circumference of the cylinder — is 2𝜋r. It’s just a matter of how 𝜋 is commonly defined.The height of the cylinder is equal to the sphere’s diameter, or twice the radius. We know that the cylinder’s outer surface area is just circumference times height, so we can write that Stube = 4𝜋r2. Lo and behold — that’s the same formula as what we’ve been given in school for the inscribed sphere. But… how come?To get to the bottom of this, imagine tiling tiling flat squares on the outer surface of the cylinder, each square measuring a × a:A prison for spheres.This gives us an approximation of the cylinder; we can reduce the error of the approximation as much as we like by decreasing the size of the tiles. In the limit of this refinement process, as a becomes infinitesimal (infinitely small), we converge on the exact dimensions and curvature of the shape we intended to create.The four corners of each square in this tile-based sorta-cylinder can be projected toward the sphere’s vertical axis of symmetry, such that the horizontal coordinates converge toward the center while the vertical component remains unchanged. This projection is a wedge that intersects the surface of the sphere at an angle:The wedge.If we repeat this process for every outer square that makes up the cylinder, we end up with a neatly tessellated sphere (below, left):Tessellating a sphere.In this rendering, each of the resulting segments is markedly curved; if we replace them with flat polygonal tiles (right), the shape gets out of whack. That said, once again, we can improve the accuracy of this tiling to an arbitrary extent by projecting a finer-grained pattern of cylinder-side squares. In the limit, the flat approximation converges on a perfect sphere.A finer tessellation of a sphere.To recap what we’ve done so far: we’ve taken a cylinder with a known and easily-calculated outer surface area: Stube = 4𝜋r2. We then approximated it with some number of square tiles of size a; the number of tiles ideally “tends to” infinity, even if we still have ways to go in the illustrations accompanying this article. Each tile has a surface area of a2.We also mapped each cylinder-side tile to a polygonal tile constructed on the surface of an inscribed sphere (radius r). Each cylinder-side square maps to a sphere-side polygon of some sort; there are no gaps or overlaps. Our next task is to figure out what’s the surface area of these newly-conjured polygons.At first blush, the polygons look like rectangles, but they’re actually isosceles trapezoids; the top edge is narrower north of the equator and the opposite is true to the south. That said, through simple geometric rearrangement, we can show that the surface area of any trapezoid is equal to the surface area of a rectangle of of the same midpoint width:Surface area of an isosceles trapezoid is w × h.In other words, we only need to figure out the midpoint w and h. We can start with the horizontal dimension: viewed from the above, the wedge that cuts through the sphere is a triangle. It has an initial span of a at the surface of cylinder (always at a distance r from the center axis) and then converges toward zero as get closer to the axis:Wedge and its intersections, top view.If d is the distance from the center axis to the midpoint of the sphere-side polygon, the width at the intersection can be trivially calculated by taking a and then scaling it depending on where d is in proportion to r:\(w = a \cdot \frac{d}{r}\)We don’t know d, but we don’t actually need it; the term is going to cancel out down the line.To calculate the area of the sphere-side trapezoid, we also need to know its height. This is a bit trickier: in the side view, the wedge is is a rectangle, but the polygon on the sphere may be tilted depending on the latitude: Wedge, side view.On the drawing, I marked angle α that corresponds to the elevation of center of the polygon. From basic trigonometry, we should expect the same angle where the horizontal blue segment (d) meets the green diagonal, so I marked this location too.Together with the y axis, the segments marked d and r form an upside-down triangle shown in the inset. This right triangle has a hypotenuse of length r and an adjacent of length d; from the definition of cosine, the ratio of these values is the same as cos(α):\(cos(\alpha) = \frac{\text{adjacent}}{\text{hypotenuse}} = \frac{d}{r}\)Next, let’s zoom in on the far end of the wedge:Wedge close-up, part 1.The green diagonal originates from the center of the sphere, so it necessarily approaches the surface at an angle of 90°. From before, we know that the internal angle between this segment and the blue horizontal line is α; the sum of these angles — downward measurement from the blue horizontal line to the orange projection — is obviously 90° + α.Let’s mark that result, get rid of the radius line, and then dangle a vertical segment (light green) from the top:Wedge close-up, part 2.In this image, I also marked an unknown angle β. The angle between the horizontal line and the tilted projection is 90° + α, and β just subtracts 90° from it; in other words, β = α.We can now look at the shaded right triangle. Viewed from the top corner, its hypotenuse (orange, diagonal) is equal to the height of the tilted projection (h) and the adjacent (green, vertical) is the same as the height of the wedge (a). The angle between these segments is α, so once again, from the definition of cosine, we can write:\(cos(\beta) = cos(\alpha) = \frac{\text{adjacent}}{\text{hypotenuse}} = \frac{a}{h}\)Per the earlier analysis, we also know that cos(α) = d / r; this allows us to make a substitution that gets rid of the cosine and then solve for h:\(\begin{array}{r l} This site requires JavaScript to run correctly. Please turn on JavaScript or unblock scripts |
The inverse-square law describes a physical phenomenon where the intensity of various physical phenomena diminishes with the square of the distance from the source to the observation point. This principle applies to light, sound, and radio transmissions, meaning that if the distance from a light source is doubled, the measured luminance drops to one-quarter, and similarly for other phenomena. The text explores the geometric foundation of this law by demonstrating area preservation when approximating a three-dimensional shape. The derivation begins by examining the relationship between a cylinder and an inscribed sphere using surface area formulas. The surface area of a sphere is $S_{sphere} = 4 \pi r^2$, and the surface area of a corresponding fitted cylinder is also $S_{tube} = 4 \pi r^2$. The argument then proceeds by approximating the cylinder's surface with a tiling of small, square tiles of side length a. By mapping these tiles onto the surface of an inscribed sphere, the text establishes that the approximation is area-preserving. This process involves analyzing the geometry of the projected wedges formed when mapping the cylinder-side squares onto the sphere surface, ultimately showing that the surface area of the resulting polygons is equal to the area of the original square, $a^2$. This demonstrates that the mapping between the square-based approximation of a cylinder and the trapezoid-based approximation of a sphere is area-preserving, thereby confirming the inverse-square relationship. The physical significance of this mathematical relationship is further illuminated through an analogy involving the spreading of marbles in different spatial dimensions. The text distinguishes the rate of falloff based on the dimensionality of the space. In one dimension, the intensity of marbles landing in a void depends on the zeroth power of distance, meaning the ratio remains constant regardless of distance. In a two-dimensional space, the marble intensity decreases with the first power of distance, meaning if the distance doubles, the number of marbles swallowed by the void is halved. In three dimensions, where particles spread across a surface, the area occupied by the marble front increases with the square of the distance, $4 \pi r^2$, leading directly to the inverse-square law. This relationship can also be understood through the principle of energy conservation. When energy is emitted, it spreads over the surface of a sphere of radius $r$. The amount of energy collected by a surface $X$ is inversely proportional to the square of the distance, specified by the ratio $X / (4 \pi r^2)$. When the distance $r$ is doubled, the area of the collecting surface increases proportionally to $r^2$, causing the energy received per unit area to decrease by the factor of $r^2$ relative to the new distance. This confirms that the decrease in energy density is governed by the inverse-square relationship. |