# 4.7: Divergence Theorem

- Page ID
- 24243

The *Divergence Theorem* relates an integral over a volume to an integral over the surface bounding that volume. This is useful in a number of situations that arise in electromagnetic analysis. In this section, we derive this theorem.

Consider a vector field \({\bf A}\) representing a flux density, such as the electric flux density \({\bf D}\) or magnetic flux density \({\bf B}\). The divergence of \({\bf A}\) is

\[\nabla \cdot {\bf A} = f \label{m0046_eDivAf}\]

where is \(f({\bf r})\) is the flux per unit volume through an infinitesimally-small closed surface surrounding the point at \({\bf r}\). Since \(f\) is flux per unit volume, we can obtain flux for any larger contiguous volume \({\mathcal V}\) by integrating over \({\mathcal V}\); i.e., \[\mbox{flux through} ~{\mathcal V} = \int_{\mathcal V} f ~dv\]

In the Cartesian system, \({\mathcal V}\) can be interpreted as a three-dimensional grid of infinitesimally-small cubes having side lengths \(dx\), \(dy\), and \(dz\), respectively. Note that the flux *out of* any face of one of these cubes is equal to the flux *into* the cube that is adjacent through that face. That is, the portion of the total flux that flows between cubes cancels when added together. In fact, the only fluxes which do not cancel in the integration over \({\mathcal V}\) are those corresponding to faces which lie on the bounding surface \({\mathcal S}\), since the integration stops there. Stating this mathematically:

\[\int_{\mathcal V} f ~dv = \oint_{\mathcal S} {\bf A}\cdot d{\bf s} \label{m0046_eIntVIntS}\]

Thus, we have converted a volume integral into a surface integral.

To obtain the Divergence Theorem, we return to Equation \ref{m0046_eDivAf}. Integrating both sides of that equation over \({\mathcal V}\), we obtain \[\int_{\mathcal V} \left( \nabla \cdot {\bf A} \right) dv = \int_{\mathcal V} f ~dv\] Now applying Equation \ref{m0046_eIntVIntS} to the right hand side:

\[\boxed{ \int_{\mathcal V} \left( \nabla \cdot {\bf A} \right) dv = \oint_{\mathcal S} {\bf A}\cdot d{\bf s} } \label{m0046_eDivThm}\]

The Divergence Theorem (Equation \ref{m0046_eDivThm}) states that the integral of the divergence of a vector field over a volume is equal to the flux of that field through the surface bounding that volume.

The principal utility of the Divergence Theorem is to convert problems that are defined in terms of quantities known throughout a volume into problems that are defined in terms of quantities known over the bounding surface and vice-versa.

## Contributors and Attributions

Ellingson, Steven W. (2018) Electromagnetics, Vol. 1. Blacksburg, VA: VT Publishing. https://doi.org/10.21061/electromagnetics-vol-1 Licensed with CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0. Report adoption of this book here. If you are a professor reviewing, adopting, or adapting this textbook please help us understand a little more about your use by filling out this form.