1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Using Gauss's law to calculate magnitude of electric field

  1. Apr 9, 2006 #1
    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.
  2. jcsd
  3. Apr 9, 2006 #2


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    By definition, the charge in a volume V is the integral of the volume charge density p over that volume, [itex] q_{enc}= \int dV \rho [/itex]. 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 [itex] q_{enc}= 4 \pi \int_0^R dr r^2 \rho(r) [/itex] 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)

  4. Apr 9, 2006 #3
    You'll have to integrate. Imagine thin spherical shells a distance [tex]r[/tex] from the origin of thickness [tex]dr[/tex].
  5. Apr 9, 2006 #4
    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!
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook