Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/iii/paper-314/3/a/solution

Spherical symmetry reduces the Poisson equation for gravity to
After one integration,
The omitted integration constant would represent a point mass and is absent for the dark-matter configuration alone. Choosing the additive constant so that the potential tends to zero at large radius gives

New to topics? Read the docs here!