**Required math: vectors, calculus**

**Required physics: electrostatics**

Reference: Griffiths, David J. (2007) Introduction to Electrodynamics, 3rd Edition; Prentice Hall – Problems 2.11 – 2.18.

Gauss’s law in electrostatics relates the integral over a closed surface of the electric field to the integral over the enclosed volume of the charge density. That is

where it is important to note that the integral on the left is over the enclosing surface (often called the *Gaussian surface*), while that on the right is over the volume enclosed by that surface.

In certain rather specialized situations, Gauss’s law allows the electric field to be found quite simply, without having to do sometimes horrendous integrals. The situations rely on the geometry of the charge distribution having some kind of symmetry. Here we’ll give a few examples of how Gauss’s law can be used in this way.

**Example 1. **We have a spherical shell with radius and constant surface charge density . By taking a spherical Gaussian surface inside the shell, we see that inside the shell, since there is no enclosed charge here. Outside the shell, we can take a spherical Gaussian surface with a radius . Outside the shell is radially symmetric. The magnitude can be found by integrating over the Gaussian surface:

Thus outside the shell, the charge behaves as a point charge at the centre of the sphere.

**Example 2. **Now we take a sphere of radius that has a uniform volume charge density . For

Outside the sphere, the sphere behaves as a point charge of magnitude so

**Example 3. **For an infinitely long charged wire of linear charge density we can choose a cylindrical Gaussian surface of length and radius centred on the wire. By symmetry the field points radially away from the wire and the end caps contribute nothing. The enclosed charge is then and the integral over the cylindrical surface gives

**Example 4. **A sphere of radius carries a volume charge density where is the distance from the centre and is a constant. Inside the sphere, the enclosed charge as a function of is

Therefore, using Gauss’s law, we get

Outside the sphere, the enclosed charge is so

**Example 5. **A hollow spherical shell contains charge density for . In the region , since again there is no enclosed charge. In the region we first calculate the enclosed charge.

Gauss’s law then says

For we get

**Example 6. **A coaxial cable has a cylindrical inner core of radius with uniform volume charge density , and an outer cylindrical shell of radius with a surface charge density that is of opposite sign to the charge on the core. The surface charge density is such that the cable is electrically neutral. Inside the inner cylinder, we can use the result of example 3. The field will point radially outward from the cylinder’s axis. Since the volume charge density is , the linear charge density for that portion of the cylinder inside radius is , so the field is

Between the inner cylinder and the outer shell, the linear charge density is so the field becomes

Outside the outer shell, the total enclosed charge is zero since the cable is neutral, so .

**Example 7.** An infinite plane slab has thickness , and carries a uniform volume charge density . If the axis is perpendicular to the plane and the plane is the centre plane of the slab, we can choose a Gaussian surface that is a cylinder of radius with axis perpendicular to the slab and thickness . The enclosed charge is , and by symmetry points away from the slab on both sides and only contributes on the ends of the cylinder, so

Outside the slab

That is, the electric field is constant no matter how far from the slab we are.

**Example 8. **We have two spheres, each of radius , one of which has volume charge density and the other of which has density . The vector from the centre of the positive sphere to the centre of the negative sphere is . The two spheres have a region of overlap and we want the electric field within this region.

We might be tempted to say that since, in the region of overlap, any volume contains zero net charge (since the densities are equal and opposite), there is zero field within this region. However, the problem with this argument is that when working out the surface integral of the field, there is no obvious symmetry we can invoke. Thus although it is correct to say that any integral over a closed surface entirely within the region of overlap is zero, this doesn’t automatically translate to the field being zero as it did in earlier examples.

The problem does, however, have a simple solution. If we look back at example 2, we see that the electric field inside a uniformly positively charged sphere is (restoring the vector notation)

where is the vector from the centre of the sphere to the point in question. Now suppose that is the vector from the centre of the negative sphere to the same point. Because the charge is negative, we get

so the total field is, using superposition

where is the vector joining the two centres. Thus the field is constant in the region of overlap, although it is not zero.

This is a bit of a trick question, since it relies on the field being directly proportional to the radius vector. For other geometries, no such simple solution exists.

## Trackbacks

[…] can find the potential at any point inside or outside the sphere, since we worked out the field as Example 2 in an earlier post, although there we used the charge density rather than the total charge . For […]

[…] 3. For a spherical shell of charge, from Example 1 in a previous post, we know that the field is inside the shell and points radially outward with a […]

[…] 2. Same problem, but now we use 3. We worked out the field earlier (Example 2 in this post). In this case, we will need the field for both inside and outside the sphere, since we must […]

[…] surface uniformly, since we know that the field inside a spherical shell is zero (see Example 1 in this post). In other words, we are claiming that there are two separate charge distributions (one consisting […]

[…] Example 2 in a previous post, the electric field inside a uniformly charged sphere with density […]

[…] The field due to an infinite wire can be found using Gauss’s law in cylindrical coordinates. For the wire carrying charge density we have, using a Gaussian cylinder of unit length centred on the wire (see Example 3 in this post) […]

[…] has the given form, since the equations a given result in an infinite field as . We’ve solved field and potential problems earlier in which there is a uniform charge density, but it is restricted to […]

[…] seen (Example 2 in here) that the field a distance from the centre of a uniformly charged sphere with charge density […]

[…] retains its spherical shape. Using Gauss’s law (it’s a calculation similar to Example 2 here) we can work out the electric field of a sphere with this charge density at a distance from its […]

[…] applied field. The nucleus must feel an equal and opposite field when it moves out the distance so using Gauss’s law we […]

[…] shell and a uniformly charged sphere. We’ve already solved this problem in examples 1 and 2 here, so we can just quote the results. Inside the sphere, the spherical shell contributes nothing, and […]

[…] entirely to the inner sphere, which we’ll assume has a surface charge density of . Then the field between the spheres […]

[…] of mass. We can look at this as analogous to the infinite plane of charge in electrostatics (see Example 7 here). In Newtonian physics, the gravitational field behaves the same as an electrostatic field, except […]