treynolds147
- 20
- 0
Homework Statement
A charge distribution has the form ##\rho=-\frac{q}{4\pi ra^{2}}(1-\frac{r^{2}}{a^{2}})\exp(-\frac{r^{2}}{2a^{2}})##. Compute the total charge Q, the electric field E, the potential ##\Phi##, and the electrostatic energy W for this charge distribution.
Homework Equations
##\Phi=\frac{1}{4\pi\epsilon_{0}}\int\rho(\mathbf{x}')\frac{1}{|\mathbf{x}-\mathbf{x}'|}\,\mathrm{d}^{3}x'##
The Attempt at a Solution
This one is pretty straightforward in what it's asking. I calculate the total charge alright, but then I try calculating the potential, and that's where I start getting nonsense. To me, the charge distribution should be independent of angle, so I can just use ##\frac{1}{r}## in place of ##\frac{1}{|\mathbf{x}-\mathbf{x}'|}##. Using spherical coordinates, I end up with ##-\frac{1}{4\pi\epsilon_{0}}\frac{q}{a^{2}}\int_{0}^{\infty}(1-\frac{r^{2}}{a^{2}})\exp(-\frac{r^{2}}{2a^{2}})\,\mathrm{d}r##, which ends up giving me a constant potential of ##(\frac{\sqrt{2}}{2}-1)\frac{\sqrt{\pi}}{4\pi\epsilon_{0}}\frac{q}{a}##. And of course, that gives me a zero electric field upon taking the gradient, which can't be right at all! I'm really not sure where I'm going wrong here, any ideas?