# Electric Potential of a Charged Sphere

Problem Consider a sphere with radius $R$, and with a charge distribution $\rho(r)=\rho_0r$. Using Poisson's equation, calculate the electric potential inside and outside the sphere.

Solution I don't know how to solve completely this problem. I understand that outside the sphere ($r>R$), the potential must satisfy the Laplace's equation. And by symmetry the solution can be written in terms of spherical harmonics $Y_l^m(\theta,\phi)$. But inside the sphere ($r<R$) I'm not sure how to proceed. I was thinking in using Poisson's equation in the "spherical form" (in spherical coordinates), and by symmetry again, the potential $V$ must depend only of the radial coordinate in spherical coordinates $r$. Then the laplacian operator acting on $V$ yelds $$\frac{1}{r^2}\frac{d}{d r}(r^2 \frac{d V(r)}{d r})=-\rho_0r$$

A subsequent integration yelds $$\frac{d V}{d r}=-\frac{\rho_0}{4}r^2$$ and finally $$V(r)=-\frac{\rho_0}{4\cdot3}r^3$$

But, as I said, I'm not sure if this method gives me the correct answer. Can you give me another method or can you check this with your own and tell me if this answer is correct please?

-

The problem is radially symmetric both in and outside the sphere. Because of the radial symmetry only the component with $l=0$ and $m=0$ survives; so that the potential is only a function of $r$.

As you correctly noted, the potential thus satisfies the equation $$\frac{1}{r^2}\frac{d}{d r}\left(r^2 \frac{d V(r)}{d r}\right)=-\rho(r)$$ with $$\rho(r) = \begin{cases} \rho_0 r, & r<R, \\ 0, &R>0.\end{cases}$$

Solving the potential outside the sphere $$\frac{1}{r^2}\frac{d}{d r}\left(r^2 \frac{d V(r)}{d r}\right)= 0,$$ we find $V(r>R) = \frac{C}{r}$ with $C$ a constant; we set the integration constant such that $V$ approaches $0$ for $r\to\infty$.

The equation for the potential inside the sphere fulfils the equation $$\frac{1}{r^2}\frac{d}{d r}\left(r^2 \frac{d V(r)}{d r}\right)= -\rho_0 r$$ with the solution $$V(r<R) = -\frac{\rho_0 r^3}{12} + c$$ where we took into account that the potential should remain finite for $r=0$.

From the condition that $V(r)$ and $V'(r)$ are continuous at $r=R$, we obtain the relations $$c- \frac{\rho_0 R^3}{12} = \frac{C}R, \qquad -\frac{\rho_0 R^2}4 = -\frac{C}{R^2}$$ with the solution $C= \rho_0 R^4/4$ and $c= \rho_0 R^3/3$.

Thus the solution has the form $$V(r) = \begin{cases} \frac{\rho_0}{12} (4 R^3 -r^3),& r<R,\\ \frac{\rho_0 R^4}r, &r<R. \end{cases}$$

-
Oh, thanks a lot @Fabian. That's what I was forgetting, write the explicit expression for the charge density $\rho(r)$ in all the space, the integration constants and the boundary conditions. Thanks! –  Anuar Dec 1 '12 at 15:12
@Anuar: you are welcome –  Fabian Dec 1 '12 at 22:34