17.3: Gauss’s Law

Physics: A Foundation for Scientists and Engineers · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    17.3: Gauss’s Law

    Now place a point charge \(q\) at the center of a sphere of radius \(r\), and find the flux through the sphere. On the sphere the field has the same magnitude everywhere, \(E = k_eq/r^2\), and it points radially outward, parallel to the outward area vector of every patch. So \(\vec{E}\cdot d\vec{A} = E\,dA\) everywhere, and

    \[\Phi_E = \oint E\,dA = E\oint dA = \frac{k_e q}{r^2}\,(4\pi r^2) = 4\pi k_e q = \frac{q}{\epsilon_0},\]

    using \(k_e = 1/4\pi\epsilon_0\). (Here is the payoff for writing the Coulomb constant with a \(4\pi\) in it.) The radius has dropped out. The field weakens as \(1/r^2\), and the area of the sphere grows as \(r^2\), so every sphere centered on the charge, large or small, has the same flux through it. In the field-line picture this is obvious: every one of the lines leaving the charge crosses every one of the spheres.

    That observation extends to a surface of any shape. However the closed surface bulges and folds, each field line leaving a charge inside it must eventually cross the surface to get out, and if it crosses back in somewhere, it must cross out again, so the net count for each line is exactly one crossing outward. The net flux through the surface is the same as through a sphere: \(q/\epsilon_0\). A charge outside the surface is different. Each of its field lines that enters the surface also leaves it, so its net contribution is zero. Finally, by the superposition principle, the field of many charges is the sum of their individual fields, and so the flux is the sum of their individual fluxes. Putting these facts together gives Gauss’s law:

    Key Equation: Gauss’s law

    \[\Phi_E = \oint\vec{E}\cdot d\vec{A} = \frac{q_{\text{enc}}}{\epsilon_0}. \tag{17.4}\]

    The net electric flux through any closed surface equals the net charge enclosed by the surface, divided by \(\epsilon_0\). The closed surface can be real or imaginary. In applications it is usually imaginary, drawn wherever it is most convenient, and it is called a Gaussian surface.

    Two panels of Gaussian surfaces around a positive and a negative charge.
    Figure 17.6. (a) Four Gaussian surfaces around two charges. The net flux through each depends only on the charge it encloses: \(q_1/\epsilon_0\) for \(S_1\), \(q_2/\epsilon_0\) for \(S_2\), zero for \(S_3\), and \((q_1 + q_2)/\epsilon_0\) for \(S_4\). (b) The same surfaces with the field lines drawn, eight lines for \(q_1 = +4.0\,\mathrm{nC}\) and twelve for \(q_2 = -6.0\,\mathrm{nC}\). Every line from \(q_1\) crosses \(S_1\) outward, and every line into \(q_2\) crosses \(S_2\) inward. Lines that pass through \(S_3\) enter it and then leave it, so its net flux is zero. Lines that run off the edge of the drawing loop around far away and return to \(q_2\). Some lines leave \(S_4\) and come back in, but the four lines arriving from far away enter it and never leave, so its net flux is negative, matching its net enclosed charge of \(-2.0\,\mathrm{nC}\).
    Figure descriptionTwo panels showing the same arrangement. Panel a: a positive charge q sub 1 and a negative charge q sub 2 side by side, with four closed Gaussian surfaces drawn as dashed curves. Surface S sub 1 encloses only the positive charge; surface S sub 2 encloses only the negative charge; surface S sub 3, drawn above the charges, encloses neither; and the large surface S sub 4 encloses both charges. Panel b: the same charges and surfaces with the field lines drawn, for q sub 1 equal to plus 4 nanocoulombs and q sub 2 equal to minus 6 nanocoulombs. Eight field lines leave q sub 1, all crossing S sub 1 outward, and all eight curve around to end on q sub 2. Twelve lines end on q sub 2, all crossing S sub 2 inward: the eight from q sub 1 and four more that come in from far away on the right. Several of the arching lines from q sub 1 to q sub 2 pass through S sub 3, entering on one side and leaving on the other, so every line that enters S sub 3 also leaves it. The lines that arch high above the charges leave S sub 4 and come back in again, while the four lines from far away enter S sub 4 and never leave, so four more lines enter S sub 4 than leave it.

    Three points about Gauss’s law are easy to get wrong.

    • The field \(\vec{E}\) in the integral is the total field at each point of the surface, produced by all charges, inside and outside. Charges outside the surface do change the field on it. What they cannot change is the net flux, because their contributions in and out cancel.
    • \(q_{\text{enc}}\) is the net charge inside, with signs. A surface enclosing \(+q\) and \(-q\) has zero net flux, even though the field on it is not zero.
    • Zero net flux does not mean zero field. In Example 17.2 the field was the same everywhere and the net flux was still zero.
    Example 17.3: Flux through four surfaces

    In Figure 17.6, \(q_1 = +4.0\,\mathrm{nC}\) and \(q_2 = -6.0\,\mathrm{nC}\). Find the net flux through each of the four surfaces.

    Solution

    Apply equation (17.4) to each surface, counting only the charge inside:

    \[\begin{aligned}\Phi_1 &= \frac{q_1}{\epsilon_0} = \frac{4.0\times10^{-9}}{8.85\times10^{-12}} = \boxed{+452\,\mathrm{N\cdot m^2/C}}, \\ \Phi_2 &= \frac{q_2}{\epsilon_0} = \frac{-6.0\times10^{-9}}{8.85\times10^{-12}} = \boxed{-678\,\mathrm{N\cdot m^2/C}}, \\ \Phi_3 &= \boxed{0}, \\ \Phi_4 &= \frac{q_1 + q_2}{\epsilon_0} = \frac{-2.0\times10^{-9}}{8.85\times10^{-12}} = \boxed{-226\,\mathrm{N\cdot m^2/C}}.\end{aligned}\]

    The shapes and sizes of the surfaces never entered. Surface \(S_3\) sits in a strong field and field lines certainly cross it, but every line that goes in comes back out.

    Example 17.4: A charge at the center of a cube

    A point charge \(q = +6.0\,\mathrm{nC}\) sits at the center of a cube. Find the flux through one face of the cube.

    Solution

    Calculating the flux through a single face directly would mean integrating a field that varies in both magnitude and direction across the face. Symmetry avoids that. By Gauss’s law the net flux through the whole cube is \(q/\epsilon_0\), and the charge sits at the center, so all six faces are equivalent and share it equally:

    \[\Phi_{\text{face}} = \frac{q}{6\epsilon_0} = \frac{6.0\times10^{-9}}{6(8.85\times10^{-12})} = \boxed{113\,\mathrm{N\cdot m^2/C}}.\]

    Example 17.5: Finding charge from a field

    In a certain region the electric field is \(\vec{E} = bx\,\hat{\imath}\), with \(b = 3.0\times 10^{3}\,\mathrm{N/(C\cdot m)}\). It points along \(x\) and grows in proportion to \(x\). A cube of side \(a = 0.20\,\mathrm{m}\) has one corner at the origin and its edges along the axes. How much charge is inside the cube?

    Solution

    The field is everywhere parallel to the \(x\)-axis, so only the two faces perpendicular to \(x\) have any flux. On the face at \(x = 0\), \(E = 0\) and there is no flux. On the face at \(x = a\), \(E = ba\), pointing along the outward normal, so the flux is \((ba)(a^2) = ba^3\). The net flux is

    \[\Phi_E = ba^3 = (3.0\times10^{3})(0.20)^3 = 24\,\mathrm{N\cdot m^2/C},\]

    and by Gauss’s law,

    \[q_{\text{enc}} = \epsilon_0\Phi_E = (8.85\times10^{-12})(24) = \boxed{2.1\times 10^{-10}\,\mathrm{C}}.\]

    A field that grows as it leaves the cube carries more flux out than in, and the excess must have been produced by charge inside. Here Gauss’s law runs backward, from field to charge, which is how charge densities are often measured.

    Note: Gauss’s law for gravity

    Nothing in the argument for Gauss’s law used anything but the inverse-square law and superposition. The gravitational field \(\vec{g}\) of Chapter 13 obeys both, so it has a Gauss’s law of its own:

    \[\oint\vec{g}\cdot d\vec{A} = -4\pi G M_{\text{enc}},\]

    with a minus sign because gravity points toward mass. The shell theorems that Newton proved by laborious integration follow from it in a few lines, exactly as the electric shell theorems do in Section 17.4.

    Checkpoint 17.3

    A closed surface encloses a net charge of zero. (a) Must the field be zero everywhere on the surface? (b) Must the net flux be zero? (c) A point charge \(+q\) outside the surface is moved closer to it. Does the net flux change? Does the field on the surface change?

    Answer

    Answers to Checkpoints

    Checkpoint 17.3. (a) No. Zero enclosed charge fixes only the net flux; the field on the surface can be large, produced by charges outside or by equal positive and negative charges inside. (b) Yes. By Gauss’s law, net flux \(= q_{\text{enc}}/\epsilon_0 = 0\). (c) The net flux does not change: it stays zero, because the charge is still outside. The field on the surface does change, growing stronger on the side nearer the charge, but every extra line entering the surface also leaves it.


    This page titled 17.3: Gauss’s Law was last modified on Thu, 12 Nov 2026 04:27:10 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Michael Ragsdale.