I know that the electric potential inside a conductor is always constant, regardless of anything surrounding the conductor.
Mathematically, I don't see how this makes sense. Please consider the following example:
In the picture we have a conducting ball, and a point charge to its side.
The potential at point r, inside the ball, is given by a line integral from infinity to r. The value of the line integral in an electric field shouldn't depend on the line taken, as long as the start and end points are the same.
However - here I have taken two lines for example, line A and line B. Clearly the value of these line integrals can be different, because they do not finish at the same point, as far as the external field is concerned.
And in the internal 0 field of the conductor, of course no value is added to these integrals.
So how is it possible for the potential inside the conductor to be constant?