Electric field and potential of a sphere

AI Thread Summary
The discussion focuses on calculating the electric field and potential of a charged sphere with a charge density that varies with radius. The initial calculations for the electric field outside and inside the sphere were incorrect, particularly regarding the total charge and the dependence of the electric field on radius. It was clarified that the total charge should be calculated using a three-dimensional integral, and the electric field inside the sphere is zero due to Gauss's law, as all charge resides on the surface. The correct approach involves using radial symmetry and integrating the charge density over the volume of the sphere. The thread concludes with a successful calculation of the total charge and a suggestion to simplify the process using calculus I techniques.
fluidistic
Gold Member
Messages
3,928
Reaction score
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.
 
Physics news on Phys.org
the total charge on the sphere is the surface of the sphere times the charge density so:

Qtot = rho * 4 pi r^2

so in the limit of space the electric field is just :

E = 1/ (4*pi *eta) * Qtot / r^2

however for points close to the sphere this is more complicated and you need some integration.

the electric field inside the sphere however is not a function of r because it is 0 everywhere inside the sphere.

from gauss's law we know that the electric flux = Qinclosed / eta = (integral) E dA

when we draw imaginary spheres inside the sphere, the Q inclosed is zero because all the charge is on the sphere, while we are in it. So because the area of the imaginary sphere is non zero, the electric field HAS to be zero to conform to gauss's law.

Qinclosed = 0 -> electric flux = 0 / eta = 0 = E * A (A is non-zero) -> E = 0
 
latrocinia said:
the total charge on the sphere is the surface of the sphere times the charge density so:

Qtot = rho * 4 pi r^2

so in the limit of space the electric field is just :

E = 1/ (4*pi *eta) * Qtot / r^2

however for points close to the sphere this is more complicated and you need some integration.

the electric field inside the sphere however is not a function of r because it is 0 everywhere inside the sphere.

from gauss's law we know that the electric flux = Qinclosed / eta = (integral) E dA

when we draw imaginary spheres inside the sphere, the Q inclosed is zero because all the charge is on the sphere, while we are in it. So because the area of the imaginary sphere is non zero, the electric field HAS to be zero to conform to gauss's law.

Qinclosed = 0 -> electric flux = 0 / eta = 0 = E * A (A is non-zero) -> E = 0

I don't think so. I haven't been clear. The sphere is not empty as the exercise points out that \rho (r)=Cr. Hence Q is not worth 4 \pi a^2 \rho. Furthermore the electric field inside the sphere is not null.
 
First off, something seems off about your calculation of the total charge. A sphere is a three dimensional object, and to calculate the total charge, you will need the volume. Thus, the integral must be three dimensional, whereas yours is one dimensional.

Why is the electric field at all points in space outside of the sphere not simply the same electric field formula for a point charge?

Take a Gaussian surface of radius r > a. The flux inside is equal to E*SA = Q_inside / eps_0. Q_inside is simply the total charge of the sphere. Change eps_0 into the Coulomb's constant equivalent, and you can see the behavior I mentioned above.

I would help with the inside the sphere, but I'm working on my own homework at the moment. xD Sorry. Here's a little bit of help: E should be directly proportional to r in your final formula.
 
TwoTruths said:
First off, something seems off about your calculation of the total charge. A sphere is a three dimensional object, and to calculate the total charge, you will need the volume. Thus, the integral must be three dimensional, whereas yours is one dimensional.

Why is the electric field at all points in space outside of the sphere not simply the same electric field formula for a point charge?

Take a Gaussian surface of radius r > a. The flux inside is equal to E*SA = Q_inside / eps_0. Q_inside is simply the total charge of the sphere. Change eps_0 into the Coulomb's constant equivalent, and you can see the behavior I mentioned above.

I would help with the inside the sphere, but I'm working on my own homework at the moment. xD Sorry. Here's a little bit of help: E should be directly proportional to r in your final formula.
Oh thanks... you're right. Hopefully my only error was with calculating the total charge of the sphere. I hope my reasoning is right otherwise.
 
I used calculus III to calculate the total charge of the sphere, which gave me Q=C \int _0^{2\pi} \int _0^{\pi} \int _0^a r^3 \sin (\phi) d r d\phi d\theta =\pi a^4 C.
I guess I'm almost done for the exercise.
Thanks a lot.
Thread solved.
 
Good work on figuring out the triple integral btw. =)
 
fluidistic said:
I used calculus III to calculate the total charge of the sphere, which gave me Q=C \int _0^{2\pi} \int _0^{\pi} \int _0^a r^3 \sin (\phi) d r d\phi d\theta =\pi a^4 C.
Good! But take advantage of radial symmetry to get the answer quicker (with calculus I) by viewing the sphere as composed of concentric shells:

Q = \int _0^a 4\pi r^2 \rho(r) dr = 4\pi C \int _0^a r^3 dr = \pi a^4 C
 
so if you knew the electric field, how can you derive the charge of the enclosed sphere
 
  • #10
i was thinking using gauss law for next flux = q(enclosed)/eta
 
Back
Top