fluidistic
Gold Member
- 3,928
- 272
Homework Statement
A sphere of radius a has a distribution of charge \rho (r)=Cr where C is a constant.
1)Calculate the electric field in all points of space.
2)Calculate the electric potential outside the sphere.
Homework Equations
To figure out.
The Attempt at a Solution
I got all wrong, I'd like to know where are my mistakes.
1) The electric field is radial. To calculate it outside the sphere I first calculate the total charge Q of the sphere : Q= \int _0^a \rho (r) dr = \int _0 ^a Crdr= \frac{Ca^2}{2}.
Now I imagine a sphere (Gaussian surface) of radius r>a and I have that \Phi=\frac{Q_{\text{enclosed}}}{\varepsilon _0} = \oint \vec E d \vec A=EA=E4 \pi r^2 but we already saw that Q_{\text{enclosed}}= \frac{Ca^2}{2}, thus E4 \pi r^2 = \frac{Ca^2}{2 \varepsilon _0} \Rightarrow E= \frac{Ca^2}{8 \pi \varepsilon _0 r^2}, r>a. (wrong result)
Now I calculate the electric field inside the sphere : \Phi=\oint \vec E d \vec A = 4 \pi r^2 E = \frac{Cr^2}{2 \varepsilon _0} \Rightarrow E= \frac{C}{8 \pi \varepsilon _0} for r<a. (wrong result, as you can see I got that the electric field inside the sphere does not depend on r... impossible!)
2)E=- \nabla \varphi.
Thus \varphi (r)=- \int _a ^r E(r)dr = - \int _a ^r \frac{Ca^2}{8 \pi \varepsilon _0 r^2}dr=\frac{Ca^2}{8 \pi \varepsilon _0} \left [ \frac{1}{r}- \frac{1}{a} \right ], with r>a where r is the distance between the center of the sphere and the considered point outside the sphere.
Which is also wrong.