Chapter 6. Gauss’s Law

6.2 Explaining Gauss’s Law

Learning Objectives

By the end of this section, you will be able to:

  • State Gauss’s law
  • Explain the conditions under which Gauss’s law may be used
  • Apply Gauss’s law in appropriate systems

We can now determine the electric flux through an arbitrary closed surface due to an arbitrary charge distribution. We found that if a closed surface does not have any charge inside where an electric field line can terminate, then any electric field line entering the surface at one point must necessarily exit at some other point of the surface. Therefore, if a closed surface does not have any charges inside the enclosed volume, then the electric flux through the surface is zero. Now, what happens to the electric flux if there are some charges inside the enclosed volume? Gauss’s law gives a quantitative answer to this question.

To get a feel for what to expect, let’s calculate the electric flux through a spherical surface around a positive point charge q, since we already know the electric field in such a situation. Recall that when we place the point charge at the origin of a coordinate system, the electric field at a point P that is at a distance r from the charge at the origin is given by

[latex]{\stackrel{\to }{\textbf{E}}}_{P}=\frac{1}{4\pi {\epsilon }_{0}}\phantom{\rule{0.2em}{0ex}}\frac{1}{{r}^{2}}\hat{\textbf{r}},[/latex]

where [latex]\hat{\textbf{r}}[/latex] is the radial vector from the charge at the origin to the point P. We can use this electric field to find the flux through the spherical surface of radius r, as shown in Figure 6.13.

A sphere labeled S with radius R is shown. At its center, is a small circle with a plus sign, labeled q. A small patch on the sphere is labeled dA. Two arrows point outward from here, perpendicular to the surface of the sphere. The smaller arrow is labeled n hat equal to r hat. The longer arrow is labeled vector E.
Figure 6.13 A closed spherical surface surrounding a point charge q.

Then we apply [latex]\text{Φ}={\int }_{S}\stackrel{\to }{\textbf{E}}·\hat{\textbf{n}}\phantom{\rule{0.2em}{0ex}}dA[/latex] to this system and substitute known values. On the sphere, [latex]\hat{\textbf{n}}=\hat{\textbf{r}}[/latex] and [latex]r=R[/latex], so for an infinitesimal area dA,

[latex]d\text{Φ}=\stackrel{\to }{\textbf{E}}·\hat{\textbf{n}}\phantom{\rule{0.2em}{0ex}}dA=\frac{1}{4\pi {\epsilon }_{0}}\phantom{\rule{0.2em}{0ex}}\frac{q}{{R}^{2}}\hat{\textbf{r}}·\hat{\textbf{r}}\phantom{\rule{0.2em}{0ex}}dA=\frac{1}{4\pi {\epsilon }_{0}}\phantom{\rule{0.2em}{0ex}}\frac{q}{{R}^{2}}\phantom{\rule{0.2em}{0ex}}dA.[/latex]

We now find the net flux by integrating this flux over the surface of the sphere:

[latex]\text{Φ}=\frac{1}{4\pi {\epsilon }_{0}}\phantom{\rule{0.2em}{0ex}}\frac{q}{{R}^{2}}{\oint }_{S}\phantom{\rule{0.2em}{0ex}}dA=\frac{1}{4\pi {\epsilon }_{0}}\phantom{\rule{0.2em}{0ex}}\frac{q}{{R}^{2}}\left(4\pi {R}^{2}\right)=\frac{q}{{\epsilon }_{0}}.[/latex]

where the total surface area of the spherical surface is [latex]4\pi {R}^{2}.[/latex] This gives the flux through the closed spherical surface at radius r as

[latex]\text{Φ}=\frac{q}{{\epsilon }_{0}}.[/latex]

A remarkable fact about this equation is that the flux is independent of the size of the spherical surface. This can be directly attributed to the fact that the electric field of a point charge decreases as [latex]1\text{/}{r}^{2}[/latex] with distance, which just cancels the [latex]{r}^{2}[/latex] rate of increase of the surface area.

Electric Field Lines Picture

An alternative way to see why the flux through a closed spherical surface is independent of the radius of the surface is to look at the electric field lines. Note that every field line from q that pierces the surface at radius [latex]{R}_{1}[/latex] also pierces the surface at [latex]{R}_{2}[/latex] (Figure 6.14).

Figure shows three concentric circles. The smallest one at the center is labeled q, the middle one has radius R1 and the largest one has radius R2. Eight arrows radiate outward from the center in all eight directions.
Figure 6.14 Flux through spherical surfaces of radii [latex]{R}_{1}[/latex] and [latex]{R}_{2}[/latex] enclosing a charge q are equal, independent of the size of the surface, since all E-field lines that pierce one surface from the inside to outside direction also pierce the other surface in the same direction.

Therefore, the net number of electric field lines passing through the two surfaces from the inside to outside direction is equal. This net number of electric field lines, which is obtained by subtracting the number of lines in the direction from outside to inside from the number of lines in the direction from inside to outside gives a visual measure of the electric flux through the surfaces.

You can see that if no charges are included within a closed surface, then the electric flux through it must be zero. A typical field line enters the surface at [latex]d{A}_{1}[/latex] and leaves at [latex]d{A}_{2}.[/latex] Every line that enters the surface must also leave that surface. Hence the net “flow” of the field lines into or out of the surface is zero (Figure 6.15(a)). The same thing happens if charges of equal and opposite sign are included inside the closed surface, so that the total charge included is zero (part (b)). A surface that includes the same amount of charge has the same number of field lines crossing it, regardless of the shape or size of the surface, as long as the surface encloses the same amount of charge (part (c)).

Figure a shows an irregular 3 dimensional shape labeled S. A small circle with a plus sign, labeled q is outside it. Three arrows labeled vector E originate from q and pass through S. The patches where the arrows pierce the surface of S are highlighted. The patch where one arrow enters the shape is labeled dA1 and the patch where the arrow emerges from the shape is labeled dA2. Figure b shows an oval with two small circles inside it. These are labeled plus and minus. Three arrow from outside the oval point to the circle labeled minus. Three arrows point from plus to minus. Three arrows point from plus to outside the oval. Figure c has an irregular shape labeled S2. Within it is a circle named S1. At its center is a small circle labeled plus. Six arrows radiate outward from here in different directions.
Figure 6.15 Understanding the flux in terms of field lines. (a) The electric flux through a closed surface due to a charge outside that surface is zero. (b) Charges are enclosed, but because the net charge included is zero, the net flux through the closed surface is also zero. (c) The shape and size of the surfaces that enclose a charge does not matter because all surfaces enclosing the same charge have the same flux.

Statement of Gauss’s Law

Gauss’s law generalizes this result to the case of any number of charges and any location of the charges in the space inside the closed surface. According to Gauss’s law, the flux of the electric field [latex]\stackrel{\to }{\textbf{E}}[/latex] through any closed surface, also called a Gaussian surface, is equal to the net charge enclosed [latex]\left({q}_{\text{enc}}\right)[/latex] divided by the permittivity of free space [latex]\left({\epsilon }_{0}\right)[/latex]:

[latex]{\text{Φ}}_{\text{Closed Surface}}=\frac{{q}_{\text{enc}}}{{\epsilon }_{0}}.[/latex]

This equation holds for charges of either sign, because we define the area vector of a closed surface to point outward. If the enclosed charge is negative (see Figure 6.16(b)), then the flux through either [latex]S\phantom{\rule{0.2em}{0ex}}\text{or}\phantom{\rule{0.2em}{0ex}}S\text{'}[/latex] is negative.

Figure a has an irregular shape labeled S. Within it is a circle labeled S prime. At its center is a small circle labeled plus. Six arrows radiate outward from here in different directions. Figure b has the same irregular shape S and circle S prime. At its center is a small circle labeled minus. Six arrows from different directions radiate inward to minus.
Figure 6.16 The electric flux through any closed surface surrounding a point charge q is given by Gauss’s law. (a) Enclosed charge is positive. (b) Enclosed charge is negative.

The Gaussian surface does not need to correspond to a real, physical object; indeed, it rarely will. It is a mathematical construct that may be of any shape, provided that it is closed. However, since our goal is to integrate the flux over it, we tend to choose shapes that are highly symmetrical.

If the charges are discrete point charges, then we just add them. If the charge is described by a continuous distribution, then we need to integrate appropriately to find the total charge that resides inside the enclosed volume. For example, the flux through the Gaussian surface S of Figure 6.17 is [latex]\text{Φ}=\left({q}_{1}+{q}_{2}+{q}_{5}\right)\text{/}{\epsilon }_{0}.[/latex] Note that [latex]{q}_{\text{enc}}[/latex] is simply the sum of the point charges. If the charge distribution were continuous, we would need to integrate appropriately to compute the total charge within the Gaussian surface.

Figure shows an irregular shape labeled S. Within it are charges labeled positive q1 and negative q2 and q5. Outside S are charges labeled positive q3, q4, q6 and q N minus 1 and negative q7 and q N.
Figure 6.17 The flux through the Gaussian surface shown, due to the charge distribution, is [latex]\text{Φ}=|{q}_{1}|+|{q}_{2}|+|{q}_{5}|\text{/}{\epsilon }_{0}.[/latex]

Recall that the principle of superposition holds for the electric field. Therefore, the total electric field at any point, including those on the chosen Gaussian surface, is the sum of all the electric fields present at this point. This allows us to write Gauss’s law in terms of the total electric field.

Gauss’s Law

The flux [latex]\text{Φ}[/latex] of the electric field [latex]\stackrel{\to }{\textbf{E}}[/latex] through any closed surface S (a Gaussian surface) is equal to the net charge enclosed [latex]\left({q}_{\text{enc}}\right)[/latex] divided by the permittivity of free space [latex]\left({\epsilon }_{0}\right):[/latex]

[latex]\text{Φ}={\oint }_{S}\stackrel{\to }{\textbf{E}}·\hat{\textbf{n}}\phantom{\rule{0.2em}{0ex}}dA=\frac{{q}_{\text{enc}}}{{\epsilon }_{0}}.[/latex]

To use Gauss’s law effectively, you must have a clear understanding of what each term in the equation represents. The field [latex]\stackrel{\to }{\textbf{E}}[/latex] is the total electric field at every point on the Gaussian surface. This total field includes contributions from charges both inside and outside the Gaussian surface. However, [latex]{q}_{\text{enc}}[/latex] is just the charge inside the Gaussian surface. Finally, the Gaussian surface is any closed surface in space. That surface can coincide with the actual surface of a conductor, or it can be an imaginary geometric surface. The only requirement imposed on a Gaussian surface is that it be closed (Figure 6.18).

Figure shows a bottle that looks like an upside down flask whose neck is elongated, bent upward, twisted, taken inside the bottle and joined with its base, thus having only one surface.
Figure 6.18 A Klein bottle partially filled with a liquid. Could the Klein bottle be used as a Gaussian surface?

Example

Electric Flux through Gaussian Surfaces

Calculate the electric flux through each Gaussian surface shown in Figure 6.19.

Figures a through d show irregular shapes and figure e shows a cube. Figure a has a charge inside the shape labeled plus 2.0 mu C. Figure b has a charge inside the shape labeled minus 2.0 mu C. Figure c has a charge inside the shape labeled plus 2.0 mu C and two charges outside labeled plus 4 mu C and minus 2.0 mu C. Figure d has three charges inside the shape labeled minus 1.0 mu C, minus 4.0 mu C and plus 6.0 mu C and two charges outside the shape labeled minus 5.0 mu C and plus 4.0 mu C. Figure e has three charges inside labeled plus 4.0 mu C, plus 6.0 mu C and minus 10.0 mu C and two charges outside the cube labeled plus 5.0 mu C and 3.0 mu C.
Figure 6.19 Various Gaussian surfaces and charges.

Strategy

From Gauss’s law, the flux through each surface is given by [latex]{q}_{\text{enc}}\text{/}{\epsilon }_{0},[/latex] where [latex]{q}_{\text{enc}}[/latex] is the charge enclosed by that surface.

Solution

Show Answer

For the surfaces and charges shown, we find

  1. [latex]\text{Φ}=\frac{2.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}}{{\epsilon }_{0}}=2.3\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex]
  2. [latex]\text{Φ}=\frac{-2.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}}{{\epsilon }_{0}}=-2.3\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex]
  3. [latex]\text{Φ}=\frac{2.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}}{{\epsilon }_{0}}=2.3\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex]
  4. [latex]\text{Φ}=\frac{-4.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}+6.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}-1.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}}{{\epsilon }_{0}}=1.1\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex]
  5. [latex]\text{Φ}=\frac{4.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}+6.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}-10.0\phantom{\rule{0.2em}{0ex}}\mu \text{C}}{{\epsilon }_{0}}=0.[/latex]

Significance

In the special case of a closed surface, the flux calculations become a sum of charges. In the next section, this will allow us to work with more complex systems.

Check Your Understanding

Calculate the electric flux through the closed cubical surface for each charge distribution shown in Figure 6.20.

Figures a through d show a cuboid with one corner at the origin of the coordinate axes. In figure a, there is a charge plus 3.0 mu C on the surface parallel to the yz plane. In figure b, there is a charge minus 3.0 mu C on the surface parallel to the yz plane. In figure c, there is a charge plus 3.0 mu C on the surface parallel to the yz plane, a charge minus 3.0 mu C on the y axis outside the shape and a charge plus 6.0 mu C outside the shape. In figure d, there is a charge minus 3.0 mu C on the y axis outside the shape and charges plus 3.0 mu C and plus 6.0 mu C outside the shape.
Figure 6.20 A cubical Gaussian surface with various charge distributions.
Show Solution

a. [latex]3.4\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C;}[/latex] b. [latex]-3.4\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C;}[/latex] c. [latex]3.4\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C;}[/latex] d. 0

Use this simulation to adjust the magnitude of the charge and the radius of the Gaussian surface around it. See how this affects the total flux and the magnitude of the electric field at the Gaussian surface.

Summary

  • Gauss’s law relates the electric flux through a closed surface to the net charge within that surface,

    [latex]\text{Φ}={\oint }_{S}\stackrel{\to }{\textbf{E}}·\hat{\textbf{n}}\phantom{\rule{0.2em}{0ex}}dA=\frac{{q}_{\text{enc}}}{{\epsilon }_{0}},[/latex]


    where [latex]{q}_{\text{enc}}[/latex] is the total charge inside the Gaussian surface S.

  • All surfaces that include the same amount of charge have the same number of field lines crossing it, regardless of the shape or size of the surface, as long as the surfaces enclose the same amount of charge.

Conceptual Questions

Two concentric spherical surfaces enclose a point charge q. The radius of the outer sphere is twice that of the inner one. Compare the electric fluxes crossing the two surfaces.

Show Solution

Since the electric field vector has a [latex]\frac{1}{{r}^{2}}[/latex] dependence, the fluxes are the same since [latex]A=4\pi {r}^{2}[/latex].

Compare the electric flux through the surface of a cube of side length a that has a charge q at its center to the flux through a spherical surface of radius a with a charge q at its center.

(a) If the electric flux through a closed surface is zero, is the electric field necessarily zero at all points on the surface? (b) What is the net charge inside the surface?

Show Solution

a. no; b. zero

Discuss how Gauss’s law would be affected if the electric field of a point charge did not vary as [latex]1\text{/}{r}^{2}.[/latex]

Discuss the similarities and differences between the gravitational field of a point mass m and the electric field of a point charge q.

Show Solution

Both fields vary as [latex]\frac{1}{{r}^{2}}[/latex]. Because the gravitational constant is so much smaller than [latex]\frac{1}{4\pi {\epsilon }_{0}}[/latex], the gravitational field is orders of magnitude weaker than the electric field. Also, the gravitational flux through a closed surface is zero or positive; however, the electric flux is positive, negative, or zero, depending on the definition of flux for the given situation.

Discuss whether Gauss’s law can be applied to other forces, and if so, which ones.

Is the term [latex]\stackrel{\to }{\textbf{E}}[/latex] in Gauss’s law the electric field produced by just the charge inside the Gaussian surface?

Show Solution

No, it is produced by all charges both inside and outside the Gaussian surface.

Reformulate Gauss’s law by choosing the unit normal of the Gaussian surface to be the one directed inward.

Problems

Determine the electric flux through each surface whose cross-section is shown below.

Figure shows an irregular shape S1. Within it are four irregular shapes labeled S2, S3, S4 and S6 and a quadrilateral labeled S5. All these overlap with one or more of each other. A charge minus 2q is shown in the overlap region of S1, S2 and S4. A charge minus 2q is shown in the overlap region of S1, S4 and S5. A charge plus q is shown in the overlap region of S1 and S3. A charge plus 3q is shown in the overlap region of S1 and S6.

Find the electric flux through the closed surface whose cross-sections are shown below.

Figure a shows an irregular shape with a positive charge inside it labeled 3 into 10 to the power minus 8 C. There is a negative charge outside it, labeled minus 2 into 10 to the power 8 C. Figure b shows an irregular shape with three charges outside it. These are plus 4 into 10 to the power minus 6 C, plus 5 into 10 to the power minus 6 C and minus three into 10 to the power minus 6 C. Figure c shows a square with the length of each side equal to a. There is a charge minus 2 into 10 to the power minus 6 C within it. Figure d shows a shaded strip with plus signs near the inside edges. It is labeled conductor. An arrow points outward from either end of the strip. These arrows are labeled infinity. A small rectangle is attached to one side of the strip, covering one plus sign. It is labeled end cap of area, 4 into 10 to the power minus 4 m squared. The strip is labeled sigma equal to 2 into 10 to the power minus 6 C by m squared.

Show Solution

a. [latex]\text{Φ}=3.39\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{3}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/}\text{C}[/latex]; b. [latex]\text{Φ}=0[/latex];
c. [latex]\text{Φ}=-2.25\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{5}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/}\text{C}[/latex];
d. [latex]\text{Φ}=90.4\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/}\text{C}[/latex]

A point charge q is located at the center of a cube whose sides are of length a. If there are no other charges in this system, what is the electric flux through one face of the cube?

A point charge of [latex]10\phantom{\rule{0.2em}{0ex}}\mu \text{C}[/latex] is at an unspecified location inside a cube of side 2 cm. Find the net electric flux though the surfaces of the cube.

Show Solution

[latex]\text{Φ}=1.13\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{6}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}[/latex]

A net flux of [latex]1.0\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{4}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}[/latex] passes inward through the surface of a sphere of radius 5 cm. (a) How much charge is inside the sphere? (b) How precisely can we determine the location of the charge from this information?

A charge q is placed at one of the corners of a cube of side a, as shown below. Find the magnitude of the electric flux through the shaded face due to q. Assume [latex]q>0[/latex].

Figure shows a cube with length of each side equal to a. The back surface of it is shaded. One front corner has a small circle on it labeled q.

Show Solution

Make a cube with q at the center, using the cube of side a. This would take four cubes of side a to make one side of the large cube. The shaded side of the small cube would be 1/24th of the total area of the large cube; therefore, the flux through the shaded area would be
[latex]\text{Φ}=\frac{1}{24}\phantom{\rule{0.2em}{0ex}}\frac{q}{{\epsilon }_{0}}[/latex].

The electric flux through a cubical box 8.0 cm on a side is [latex]1.2\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{3}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex] What is the total charge enclosed by the box?

The electric flux through a spherical surface is [latex]4.0\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{4}\phantom{\rule{0.2em}{0ex}}\text{N}·{\text{m}}^{2}\text{/C}\text{.}[/latex] What is the net charge enclosed by the surface?

Show Solution

[latex]q=3.54\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{-7}\phantom{\rule{0.2em}{0ex}}\text{C}[/latex]

A cube whose sides are of length d is placed in a uniform electric field of magnitude [latex]E=4.0\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{3}\phantom{\rule{0.2em}{0ex}}\text{N/C}[/latex] so that the field is perpendicular to two opposite faces of the cube. What is the net flux through the cube?

Repeat the previous problem, assuming that the electric field is directed along a body diagonal of the cube.

Show Solution

zero, also because flux in equals flux out

A total charge [latex]5.0\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{-6}\phantom{\rule{0.2em}{0ex}}\text{C}[/latex] is distributed uniformly throughout a cubical volume whose edges are 8.0 cm long. (a) What is the charge density in the cube? (b) What is the electric flux through a cube with 12.0-cm edges that is concentric with the charge distribution? (c) Do the same calculation for cubes whose edges are 10.0 cm long and 5.0 cm long. (d) What is the electric flux through a spherical surface of radius 3.0 cm that is also concentric with the charge distribution?

Glossary

Gaussian surface
any enclosed (usually imaginary) surface
Licenses and Attributions

Explaining Gauss’s Law. Authored by: OpenStax College. Located at: https://openstax.org/books/university-physics-volume-2/pages/6-2-explaining-gausss-law. License: CC BY: Attribution. License Terms: Download for free at https://openstax.org/books/university-physics-volume-2/pages/1-introduction

License

Icon for the Creative Commons Attribution 4.0 International License

University Physics Volume 2 Copyright © 2016 by cnxuniphysics is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book