Choose the polar axis in the source integration along the evaluation vector . The Euclidean distance then satisfies , giving
For the uniform ball, integrate its Newtonian gravitational potential in these spherical coordinates. With ,
For , the inner integral is
obtained from the antiderivative . Therefore
For , split the radial integral at . Its two pieces are and . The Newtonian gravitational potential of a uniform solid sphere is consequently
The centre value follows by continuity, removing the intermediate . For , the same integral gives , so both the potential and first derivative match at the surface. Finally inside, while is directed inward and vanishes at the centre, checking the sign and normalization.