= Measure density
{title2=$\rho_{\mu,A}(x)$}
Let $A\subseteq\mathbb R^d$ be measurable and let $\mu$ be a locally finite positive <Borel measure>. At a point in the <support of a measure> of $\mu$, all sufficiently small balls have finite positive mass. Its relative density is
$$
\rho_{\mu,A}(x)=\lim_{r\downarrow0}\frac{\mu(A\cap B(x,r))}{\mu(B(x,r))},
$$
when the limit exists. The ratio lies in $[0,1]$. The support condition prevents zero denominators; at a point outside the support, sufficiently small balls have no mass and this ratio is undefined without an extra convention.
For <Lebesgue measure> on the real line and $A=[0,1]$, the density is one at interior points, zero at exterior points and one-half at either endpoint. For $\mu=\delta_0$, the density at its support point is $\mathbf1_A(0)$. This is a fraction of one measure's local mass. It differs from the <spherical derivative of a measure>, which compares the mass of a measure with Euclidean volume. The <Lebesgue density theorem> gives the almost-everywhere zero-or-one statement when the reference is Lebesgue measure.
Back to article page