I was given the following exercise:
There are two concentric hollow spheres of radii $a$ and $b$ as shown. The inner sphere is connected to a constant potential $V_0$ while the outer sphere has uniform surface charge density $\rho$. Find the potential in all the space.
I have the correct answer from my professor which is:
- if $r > b$ :
$$V = \frac{1}{r} \left[ \left(V_0 - \frac{\rho b}{\epsilon_0}\right) a + \frac{\rho b^2}{\epsilon_0}\right]$$
if $a < r < b$: $$V = \frac{a}{r}\left(V_0 -\frac{\rho b}{\epsilon_0}\right)+\frac{\rho b}{\epsilon_0}$$
else $V = V_0$
My attempt
However, I can't find the correct procedure. I started making $V(\infty) = 0$. Then, I tried with the image method, so I replaced the inner surface with a point charge located at the center (where r = 0) to find an equivalent problem in the region $r > a$. Since I know that $V(a) = V_0$, I have that:
$$ V_0 = - \int_\infty^a E dr = \int_a^b \frac{k q}{r^2} dr + \int_b^\infty \frac{\rho}{\epsilon_0} \frac{b^2}{r^2} dr = k q \left(\frac{1}{a} - \frac{1}{b} \right) + \frac{\rho b}{\epsilon_0}$$
$$k q = \left(V_0 - \frac{\rho b}{\epsilon_0} \right) \left(\frac{1}{a} - \frac{1}{b} \right)^{-1}$$
Now, I find again the potential, starting with the region $r > b$
$$ V(r) = - \int_\infty^r \left(\frac{kq}{r^2} + \frac{\rho}{\epsilon_0} \frac{b^2}{r^2} \right) dr = \frac{1}{r} \left( kq + \frac{\rho b^2}{\epsilon_0}\right) = \frac{1}{r} \left[ \left(V_0 - \frac{\rho b}{\epsilon_0} \right) \left(\frac{1}{a} - \frac{1}{b} \right)^{-1} + \frac{\rho b^2}{\epsilon_0}\right]$$
Which is different from the answer. The term $\left(\frac{1}{a} - \frac{1}{b} \right)^{-1}$ should be just simply $a$ instead. And for $a < r < b$, the contribution of the outer sphere in the electric field is zero, so I only count the field of the charge:
$$ V(r) = \int_a^b \frac{k q}{r^2} dr + V(b) = k q \left(\frac{1}{a} - \frac{1}{b} \right) + \frac{1}{b} \left[ \left(V_0 - \frac{\rho b}{\epsilon_0} \right) \left(\frac{1}{a} - \frac{1}{b} \right)^{-1} + \frac{\rho b^2}{\epsilon_0}\right]$$
The image method is not valid inside both surfaces because the electric field is not the same in that region. But since the electric field is zero, it is trivial to note that $V(r)$ has to be equal to $V_0$.
I can't figure out if I'm wrong or not. Does anyone know if my method is not correct or if I just made a mistake in some computation?