Skip to main content
Physics LibreTexts

6.2: Explaining Gauss’s Law

  • Page ID
    4380
  • [ "article:topic", "Gauss\'s law", "Gaussian surface", "authorname:openstax", "license:ccby" ]

    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

    \[\vec{E}_p = \dfrac{1}{4\pi \epsilon_0}\dfrac{1}{r^2}\hat{r},\]

    where \(\hat{r}\) 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.

    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 \(\PageIndex{1}\): A closed spherical surface surrounding a point charge q.

    Then we apply \(\Phi = \int_S \vec{E} \cdot \hat{n} dA\) to this system and substitute known values. On the sphere, \(\hat{n}\) and \(r = R\) so for an infinitesimal area dA,

    \[d\Phi = \vec{E} \cdot \hat{n} dA = \dfrac{1}{4\pi \epsilon_0} \dfrac{q}{R^2} \hat{r} \cdot \hat{r} dA = \dfrac{1}{4\pi \epsilon_0} \dfrac{q}{R^2} dA.\]

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

    \[\Phi = \dfrac{1}{4\pi \epsilon_0} \dfrac{q}{R^2} \oint_S dA = \dfrac{1}{4\pi \epsilon_0} \dfrac{q}{R^2} (4\pi R^2) = \dfrac{q}{\epsilon_0}.\]

    where the total surface area of the spherical surface is \(4\pi R^2\). This gives the flux through the closed spherical surface at radius r as

    \[\Phi = \dfrac{q}{\epsilon_0}.\]

    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 \(1/r^2\) with distance, which just cancels the \(r^2\) 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 \(R_1\) also pierces the surface at \(R_2\) (Figure).

    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 \(\PageIndex{2}\): Flux through spherical surfaces of radii \(R_1\) and \(R_2\) 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 \(dA_1\) and leaves at \(dA_2\). 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(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 \(\PageIndex{3}\): 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 \(\vec{E}\) through any closed surface, also called a Gaussian surface, is equal to the net charge enclosed \((q_{enc})\) divided by the permittivity of free space \((\epsilon_0)\):

    \[\Phi_{Closed \space Surface} = \dfrac{q_{enc}}{\epsilon_0}.\]

    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(b)), then the flux through either \(S\) or \(S'\) 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 \(\PageIndex{4}\): 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 is \(\Phi = (q_1 + q_2 + q_5)/\epsilon_0\). Note that \(q_{enc}\) 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 \(\PageIndex{5}\): The flux through the Gaussian surface shown, due to the charge distribution, is \(\Phi = (q_1 + q_2 + q_5)/\epsilon_0\).

    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.

    Note: Gauss's Law

    The flux \(\Phi\) of the electric field \(\vec{E}\) through any closed surface S (a Gaussian surface) is equal to the net charge enclosed \((q_{enc})\) divided by the permittivity of free space \((\epsilon_0)\):

    \[\Phi = \oint_S \vec{E} \cdot \hat{n} dA = \dfrac{q_{enc}}{\epsilon_0}.\]

    To use Gauss’s law effectively, you must have a clear understanding of what each term in the equation represents. The field \(\vec{E}\) 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, \(q_{enc}\) 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).

    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 \(\PageIndex{6}\): 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.

    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 \(\PageIndex{7}\): Various Gaussian surfaces and charges.

    Strategy

    From Gauss’s law, the flux through each surface is given by \(q_{enc}/\epsilon_0\), where \(q_{enc}\) is the charge enclosed by that surface.

    Solution

    For the surfaces and charges shown, we find

    a. \(\Phi = \frac{2.0 \space \mu C}{\epsilon_0} = 2.3 \times 10^5 N \cdot m^2/C\).

    b. \(\Phi = \frac{-2.0 \space \mu C}{\epsilon_0} = -2.3 \times 10^5 N \cdot m^2/C\).

    c. \(\Phi = \frac{2.0 \space \mu C}{\epsilon_0} = 2.3 \times 10^5 N \cdot m^2/C\).

    d. \(\frac{-4.0 \space \mu C + 6.0 \space \mu C - 1.0 \space \mu C}{\epsilon_0} = 1.1 \times 10^5 N \cdot m^2/C\).

    e. \(\frac{4.0 \space \mu C + 6.0 \space \mu C - 10.0 \space \mu C}{\epsilon_0} = 0\).

    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.

    Note

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

    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 \(\PageIndex{8}\): A cubical Gaussian surface with various charge distributions.

    [Hide Solution]

    a. \(3.4 \times 10^5 N \cdot m^2/C\);

    b. \(-3.4 \times 10^5 N \cdot m^2/C\);

    c. \(3.4 \times 10^5 N \cdot m^2/C\);

    d. 0

    Note

    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.

    Contributors

    Paul Peter Urone (Professor Emeritus at California State University, Sacramento) and Roger Hinrichs (State University of New York, College at Oswego) with Contributing Authors: Kim Dirks (University of Auckland) and Manjula Sharma (University of Sydney). This work is licensed by OpenStax University Physics under a Creative Commons Attribution License (by 4.0).