For an arbitrary vector R with length $$R= |\overrightarrow{R}| > 1$$, we define the integral I(R), which is taken over a ball of unit radius: $$I(R)=\int_{|r|\leq 1} \frac{dxdydz}{|R-r|^{2}}$$ where r=(x,y,z). Your task in this exercise is to calculate the integral I(R) exactly, and see how accurate the approximation $$I(R)\simeq \frac{4*pi}{3*R^{2}}$$ works for $$(R\sim 1)$$
Find I(R) and enter the ratio in the answer $$ \frac{I(R)}{\frac{4*pi}{3*R^{2}}} $$ at R=2
I tried solving it by using spherical coordinates and this is what i got


Your answer is an approximation, not the correct solution since you are not taking a limit. The trick is to do the integral in spherical coordinates, but centered at the point $(0,0,R)$. In other words
$$\begin{cases}x = r\sin\theta\cos\varphi \\ y = r\sin\theta\sin\varphi \\ z = R + r\cos\theta\end{cases}$$
which orients the sphere in the $z$ direction, giving the equation
$$x^2+y^2+(z-R)^2 = 1$$
Can you take it from here?
($\textbf{HINT}$: convert the above equation into spherical coordinates and solve for $\theta$, $\textbf{not}$ $r$. Then integrate with respect to $\theta$ first.)