JLT said:
Summary: What happens when r is zero?
So, let's say you have a donut - shaped planet, so a second object can move right on top of the center of mass of the first object. Does force go to infinity?
The potential energy formula: ##PE=-\frac{k}{r}## holds for a point mass or (using Newton's spherical shell theorem) for the exterior of a spherically symmetric mass distribution. It does not hold for the interior of an arbitrary object. It does not even hold for the exterior of an arbitrary object.
It does hold approximately when one is far away from a small object. However, that does not help when trying to ask about a point inside the object.
If you want to know the potential at the center of an arbitrary mass distribution, you can add up (i.e. integrate) the potentials from all the component pieces of that mass distribution. If you do that for a doughnut-shaped distribution, the total will be finite.
Simpler than the case of a toroid is the case of a sphere of uniform density. In the region outside the sphere, the force formula for a unit mass takes the form ##F=\frac{GM}{r^2}##. Integrating yields the potential formula: ##F=-\frac{GM}{r}## [with the zero point at infinity]
In the interior, the relevant mass is the portion inside the radius r. The mass of the outside portion is irrelevant (by Newton's shell theorem). Let R be the object's radius. Then ##F=\frac{GMr^3}{R^3r^2}=\frac{GMr}{R^2}##. Integrating this yields ##\frac{GMr^2}{2R^2}## [with the zero point at the center].
The two formulas will not match up at the object's surface. To get them to match, we could add ##\frac{GM}{R}## to the exterior formula and subtract ##\frac{GM}{2}## from the interior formula so that both would be zero at the surface. Once the formulas are fitted to a single reference level, the delta PE between the center point and infinity can be extracted. It is clearly finite.
[I am not 100% confident in the formulas above]