Enclosed mass
= Enclosed mass
{title2=$m(r)$}
For a spherically symmetric density $\rho(r)$, the mass enclosed inside radius $r$ is
$$
m(r)=4\pi\int_0^r\rho(s)s^2\,ds,
\qquad
\frac{dm}{dr}=4\pi r^2\rho(r).
$$
= Enclosed mass
{title2=$m(r)$}
For a spherically symmetric density $\rho(r)$, the mass enclosed inside radius $r$ is
$$
m(r)=4\pi\int_0^r\rho(s)s^2\,ds,
\qquad
\frac{dm}{dr}=4\pi r^2\rho(r).
$$