Skip to main content
Physics LibreTexts

5.5: Gauss’ Law - Integral Form

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Gauss’ Law is one of the four fundamental laws of classical electromagnetics, collectively known as Maxwell’s Equations. Before diving in, the reader is strongly encouraged to review Section 2.4. In that section, Gauss’ Law emerges from the interpretation of the electric field as a flux density. Section 2.4 does not actually identify Gauss’ Law, but here it is:

    Gauss’ Law (Equation \ref{m0014_eGL}) states that the flux of the electric field through a closed surface is equal to the enclosed charge.

    Gauss’ Law is expressed mathematically as follows:

    \[\boxed{ \oint_{\mathcal S} {\bf D}\cdot d{\bf s} = Q_{encl} } \label{m0014_eGL} \]

    where \({\bf D}\) is the electric flux density \(\epsilon{\bf E}\), \({\mathcal S}\) is a closed surface with differential surface normal \(d{\bf s}\), and \(Q_{encl}\) is the enclosed charge. We can see the law is dimensionally correct; \({\bf D}\) has units of C/m\(^{2}\), thus integrating \({\bf D}\) over a surface gives a quantity with units of C/m\(^{2}\) \(\cdot\) m\(^{2}\) = C, which are the units of charge.

    Gauss’ Law has a number of applications in electromagnetic theory. One of them, as explored below, is as a method to compute the electric field in response to a distribution of electric charge. Note that a method to do this, based on Coulomb’s Law, is described in Sections 5.1, 5.2, and 5.4. Gauss’ Law provides an alternative method that is easier or more useful in certain applications.

    Example \(\PageIndex{1}\): Electric field associated with a charged particle, using Gauss’ Law.

    In this example, we demonstrate the ability of Gauss’ Law to predict the field associated with a charge distribution. Let us do this for the simplest possible charge distribution. A particle of charge \(q\) located at the origin, for which we already have the answer (Section 5.1).


    Gauss’ Law applies to any surface that encloses the charge, so for simplicity we chose a sphere of radius \(r\) centered at the origin. Note that \(Q_{encl}\) on the right hand side is just \(q\) for any surface having \(r>0\). Gauss’ Law in this case becomes

    \[\int_{\theta=0}^{\pi} \int_{\phi=0}^{2\pi} { {\bf D} \cdot \left(\hat{\bf r}r^2 \sin\theta~d\theta~d\phi\right) } = q \nonumber \]

    If we can solve for \({\bf D}\), we can get \({\bf E}\) using \({\bf D} = \epsilon {\bf E}\). The simplest way to solve for \({\bf D}\) is to use a symmetry argument, which proceeds as follows. In this problem, the magnitude of \({\bf D}\) can depend only on \(r\), and not \(\theta\) or \(\phi\). This is because the charge has no particular orientation, and the sphere is centered on the charge. Similarly, it is clear that \({\bf D}\) must point either directly toward or directly away from the charge. In other words, \({\bf D} = \hat{\bf r}D(r)\). Substituting this in the above equation, we encounter the dot product \(\hat{\bf r} \cdot \hat{\bf r}\), which is simply 1. Since \(D(r)\) and \(r^2\) are constants with respect to the integration, we obtain:

    \[r^2 D(r) \int_{\theta=0}^{\pi} \int_{\phi=0}^{2\pi} { \sin\theta~d\theta d\phi } = q \nonumber \]

    The remaining integral is simply \(4\pi\), thus we obtain: \[D(r) = \frac{q}{4\pi r^2} \nonumber \] Bringing the known vector orientation of \({\bf D}\) back into the equation, we obtain \[{\bf D} = \hat{\bf r}\frac{q}{4\pi r^2} \nonumber \] and finally using \({\bf D} = \epsilon {\bf E}\) we obtain the expected result \[{\bf E} = \hat{\bf r}\frac{q}{4\pi\epsilon r^2} \nonumber \]

    Here’s the point you should take away from the above example:

    Gauss’ Law combined with a symmetry argument may be sufficient to determine the electric field due to a charge distribution. Thus, Gauss’ Law may be an easier alternative to Coulomb’s Law in some applications.

    This page titled 5.5: Gauss’ Law - Integral Form is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Steven W. Ellingson (Virginia Tech Libraries' Open Education Initiative) .