Using Gauss's law to calculate magnitude of electric field

Signifier
Messages
75
Reaction score
0
I understand how to use Gauss's law to calculate the electric field at some point for say a sphere with charge distributed uniformly in it. I am bit confused, though, about calculating the electric field at some point for a non-uniform charge distribution.

For example, say that I have a spherically symmetric negative charge distribution around the origin of my reference frame, with charge density p(r) given by -0.5e^(-r), where r is the distance from the origin (IE, the radius of a given sphere) (so, p(0) = -0.5 and p(1) ~ -0.2). If I wanted to calculate the magnitude of the electric field vector at some radius r, how would I do this?

Let's say I wrap up a portion of the charge distribution in a Gaussian sphere of radius r. The net flux through all tiles on this spherical Gaussian surface would be 4*pi*(r^2)*E, where E is the magnitude of the electric field at all points on the surface. Then, using Gauss's law and solving for E, I get

E = [k / (r^2)]Qenc(r)

Where Qenc(r) is the total charge enclosed by the closed surface at radius r. This is where I get stuck. Knowing the charge density function p(r) (in units C / m^3, let's say), how do I find the net enclosed charge by the sphere of radius r?

Any help would be appreciated.
 
Physics news on Phys.org
Signifier said:
I understand how to use Gauss's law to calculate the electric field at some point for say a sphere with charge distributed uniformly in it. I am bit confused, though, about calculating the electric field at some point for a non-uniform charge distribution.

For example, say that I have a spherically symmetric negative charge distribution around the origin of my reference frame, with charge density p(r) given by -0.5e^(-r), where r is the distance from the origin (IE, the radius of a given sphere) (so, p(0) = -0.5 and p(1) ~ -0.2). If I wanted to calculate the magnitude of the electric field vector at some radius r, how would I do this?

Let's say I wrap up a portion of the charge distribution in a Gaussian sphere of radius r. The net flux through all tiles on this spherical Gaussian surface would be 4*pi*(r^2)*E, where E is the magnitude of the electric field at all points on the surface. Then, using Gauss's law and solving for E, I get

E = [k / (r^2)]Qenc(r)

Where Qenc(r) is the total charge enclosed by the closed surface at radius r. This is where I get stuck. Knowing the charge density function p(r) (in units C / m^3, let's say), how do I find the net enclosed charge by the sphere of radius r?

Any help would be appreciated.

By definition, the charge in a volume V is the integral of the volume charge density p over that volume, q_{enc}= \int dV \rho. In your case, it is obviously easier to work in spherical coordinates and since the charge density is independent of the angle, you simply get q_{enc}= 4 \pi \int_0^R dr r^2 \rho(r) where R is the location of the point where you want to evaluate the E field.

(I am assuming that this point is inside the charged sphere. If the point is
outside of the sphere then you obviously integrate up to the radius of the sphere only)

Patrick
 
You'll have to integrate. Imagine thin spherical shells a distance r from the origin of thickness dr.
 
Okay, so I have a spherical shell of radius r and thickness dr. The volume enclosed by this shell would be the surface area of the sphere multiplied by the thickness (?), or 4*pi*(r^2)*dr. The charge enclosed by this would then be 4*pi*(r^2)*p(r)*dr. Then, to get the net charge enclosed by all of these shells from radius r = 0 to radius r = R, I integrate this expression from 0 to R as nrqed has.

Thanks durt and nrqed, I get it now!
 
##|\Psi|^2=\frac{1}{\sqrt{\pi b^2}}\exp(\frac{-(x-x_0)^2}{b^2}).## ##\braket{x}=\frac{1}{\sqrt{\pi b^2}}\int_{-\infty}^{\infty}dx\,x\exp(-\frac{(x-x_0)^2}{b^2}).## ##y=x-x_0 \quad x=y+x_0 \quad dy=dx.## The boundaries remain infinite, I believe. ##\frac{1}{\sqrt{\pi b^2}}\int_{-\infty}^{\infty}dy(y+x_0)\exp(\frac{-y^2}{b^2}).## ##\frac{2}{\sqrt{\pi b^2}}\int_0^{\infty}dy\,y\exp(\frac{-y^2}{b^2})+\frac{2x_0}{\sqrt{\pi b^2}}\int_0^{\infty}dy\,\exp(-\frac{y^2}{b^2}).## I then resolved the two...
Hello everyone, I’m considering a point charge q that oscillates harmonically about the origin along the z-axis, e.g. $$z_{q}(t)= A\sin(wt)$$ In a strongly simplified / quasi-instantaneous approximation I ignore retardation and take the electric field at the position ##r=(x,y,z)## simply to be the “Coulomb field at the charge’s instantaneous position”: $$E(r,t)=\frac{q}{4\pi\varepsilon_{0}}\frac{r-r_{q}(t)}{||r-r_{q}(t)||^{3}}$$ with $$r_{q}(t)=(0,0,z_{q}(t))$$ (I’m aware this isn’t...
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
Back
Top