Consider a collection of $n$ point masses evolving under the influence of gravity. For very large $n$, one might be interested in making a continuum approximation of this system (for cosmology, say). However, my naïve attempt to derive a continuum model directly from particle-particle interactions fails. In particular, consider a function $\rho: \Omega \rightarrow \mathbb{R}$ that describes the mass density over some domain $\Omega$. To compute the gravitational force at a point $x \in \Omega$, I might try to simply integrate the force contributed by every other point $y$:
$$ f(x) = \int_\Omega \frac{\rho(x)\rho(y)}{|x-y|^2}\frac{y-x}{|y-x|} $$
Even if we exclude the point $x$ (i.e., we integrate over $\Omega \backslash x$ instead of all of $\Omega$) this integral diverges -- we effectively have particles arbitrarily close to $x$.
So the question is: what's the right way to compute the gravitational force in this situation? It would also be nice to have some pointers to continuum models used in cosmology and their derivation from the particle model (many references simply start with a continuum model and do not explain its origin). By the way, I really only care about classical models -- let's forget about relativity, etc., for now.
Thanks!
