Can you help me find the equation for determining density when also taking the object's own center of gravity into account? For example, say I have an Earth-sized volume of water (or pick any simple spherical object). You have to account for the increase of density as you go closer to the center of mass. Is there a simple equation to determine the change of density from R distance from the center of mass in this case? Thanks!