Consider a solid sphere of radius R and mass density ρ(r) = ρ0(1 – (r^2/R^2))