Solution
= Solution
Estimate $T\sim M\langle v^2\rangle/2$ and $V\sim-GM^2/\langle R\rangle$. The <virial theorem> gives
$$
M\sim\frac{\langle R\rangle\langle v^2\rangle}{G}
$$
up to a profile-dependent factor. If this exceeds the stellar/gas luminous mass, the difference is attributed primarily to dark matter (with modelling uncertainties and non-equilibrium effects checked).