While doing practice question, I came across a question...
A solid sphere of radius a has a cavity of radius b which has a uniformly charge distributed with density $-\rho$ and the remaining part of the sphere has charge density $+\rho$. Find the electric potential at the centre of the sphere of cavity. The centre of the cavity is at a distance c (c>b) from the centre of the sphere.
My approach: I tried to draw this situation.
Note that I have putted +q charge inside the cavity so that the charge density on the surface of cavity could be $-\rho$. However I doubt this step taken by me because $\rho$ is generally used for 'charge per unit volume' and I have used it for charge per unit area.
Now charge on the surface of sphere $q_1 = \rho (4\pi a^2)$
Charge on the surface of cavity $q_2 = -\rho (4\pi b^2)$
Now $V_{sphere} - V_{cavity}$ $$\Rightarrow \dfrac{kq_1}{a} - \dfrac{kq_2}{b}$$
$$\Rightarrow \dfrac{k\rho (4\pi a^2)}{a} - \dfrac{-k\rho (4\pi b^2)}{b}$$
$$\Rightarrow \dfrac{\rho (a+b)}{\epsilon_0}$$
But it is wrong. Why is that? What mistake(s) did I commit?
Correct answer is
$\dfrac{\rho}{3\epsilon_0} (\dfrac{3R^2}{2}-\dfrac{2b^3}{c})$
EDIT: After some insight I got a bit near the answer...
$$q_1 = \rho(4/3 \pi (a^3-b^3))$$ $$q_2 = \rho(4/3 \pi b^3)$$ So..$$V_C = \dfrac{\rho}{4 \pi \epsilon_0} (\dfrac{3*4\pi (a^3-b^3)}{2*3a}-\dfrac{4\pi b^3}{3c}) $$ $$= \dfrac{\rho}{3\epsilon_0}(3a^2/2 - \dfrac{3b^3}{2a} -b^3/c)$$
However it still is wrong which means there still a missing concept.:(