Isaac Newton proved the Shell Theorem, which states that: A spherically symmetric object affects other objects gravitationally as if all of its mass were concentrated at its center.
From this statement, it seems as though the shell theorem only requires the mass to be a perfect symmetrical sphere in order to apply. However, if a solid sphere has non-uniform density, can we still assume that all its mass is concentrated at its center?