Divergence theorem
In vector calculus, the divergence theorem, also known as Gauss's theorem or Ostrogradsky's theorem, is a theorem relating the flux of a vector field through a closed surface to the divergence of the field in the volume enclosed. More precisely, the divergence theorem states that the surface integral of a vector field over a closed surface, which is called the "flux" through the surface, is equal to the volume integral of the divergence over the region enclosed by the surface. Intuitively, it states that "the sum of all sources of the field in a region (with sinks regarded as negative sources) gives the net flux out of the region". The divergence theorem is an important result for the... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In vector calculus, the divergence theorem, also known as Gauss's theorem or Ostrogradsky's theorem, is a theorem relating the flux of a vector field through a closed surface to the divergence of the field in the volume enclosed. More precisely, the divergence theorem states that the surface integral of a vector field over a closed surface, which is called the "flux" through the surface, is equal to the volume integral of the divergence over the region enclosed by the surface. Intuitively, it states that "the sum of all sources of the field in a region (with sinks regarded as negative sources) gives the net flux out of the region". The divergence theorem is an important result for the mathematics of physics and engineering, particularly in electrostatics and fluid dynamics. In these fields, it is usually applied in three dimensions. However, it generalizes to any number of dimensions. In one dimension, it is equivalent to the fundamental theorem of calculus. In two dimensions, it is equivalent to Green's theorem. ==Mathematical statement== Suppose is a subset of \mathbb{R}^n (in the case of represents a volume in three-dimensional space) which is compact and has a piecewise smooth boundary (also indicated with \partial V = S ). If is a continuously differentiable vector field defined on a neighborhood of , then: {{oiint | preintegral = \iiint_V\left(\mathbf{\nabla}\cdot\mathbf{F}\right)\,\mathrm{d}V= | intsubscpt = \scriptstyle S | integrand = (\mathbf{F}\cdot\mathbf{\hat{n}})\,\mathrm{d}S . }} The left side is a volume integral over the volume , and the right side is the surface integral over the boundary of the volume . The closed, measurable set \partial V is oriented by outward-pointing normals, and \mathbf{\hat{n}} is the outward pointing unit normal at almost each point on the boundary \partial V . ( \mathrm{d} \mathbf{S} may be used as a shorthand for \mathbf{\hat{n}} \mathrm{d} S , representing an area vector.) In terms of the intuitive description above, the left-hand side of the equation represents the total of the sources in the volume , and the right-hand side represents the total flow across the boundary . ==Informal derivation== The divergence theorem follows from the fact that if a volume is partitioned into separate parts, the flux out of the original volume is equal to the algebraic sum of the flux out of each component volume. This is true despite the fact that the new subvolumes have surfaces that were not part of the original volume's surface, because these surfaces are just partitions between two of the subvolumes and the flux through them just passes from one volume to the other and so cancels out when the flux out of the subvolumes is summed. See the diagram. A closed, bounded volume is divided into two volumes and by a surface (green) . The flux out of each component region is equal to the sum of the flux through its two faces, so the sum of the flux out of the two parts is \Phi(V_\text{1}) + \Phi(V_\text{2}) = \Phi_\text{1} + \Phi_\text{31} + \Phi_\text{2} + \Phi_\text{32} where and are the flux out of surfaces and , is the flux through out of volume 1, and is the flux through out of volume 2. The point is that surface is part of the surface of both volumes. The "outward" direction of the normal vector \mathbf{\hat n} is opposite for each volume, so the flux out of one through is equal to the negative of the flux out of the other so these two fluxes cancel in the sum. \Phi_\text{31} = \iint_{S_3} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S = -\iint_{S_3} \mathbf{F} \cdot (-\mathbf{\hat n}) \; \mathrm{d}S = -\Phi_\text{32} Therefore: \Phi(V_\text{1}) + \Phi(V_\text{2}) = \Phi_\text{1} + \Phi_\text{2} Since the union of surfaces and is \Phi(V_\text{1}) + \Phi(V_\text{2}) = \Phi(V) This principle applies to a volume divided into any number of parts, as shown in the diagram. Since the integral over each internal partition (green surfaces) appears with opposite signs in the flux of the two adjacent volumes they cancel out, and the only contribution to the flux is the integral over the external surfaces (grey) . Since the external surfaces of all the component volumes equal the original surface. \Phi(V) = \sum_{V_\text{i}\subset V} \Phi(V_\text{i}) The flux out of each volume is the surface integral of the vector field over the surface \iint_{S(V)} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S = \sum_{V_\text{i}\subset V} \iint_{S(V_\text{i})} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S The goal is to divide the original volume into infinitely many infinitesimal volumes. As the volume is divided into smaller and smaller parts, the surface integral on the right, the flux out of each subvolume, approaches zero because the surface area approaches zero. However, from the definition of divergence, the ratio of flux to volume, \frac{\Phi(V_\text{i})} = \frac{1} \iint_{S(V_\text{i})} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S , the part in parentheses below, does not in general vanish but approaches the divergence as the volume approaches zero. \iint_{S(V)} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S = \sum_{V_\text{i} \subset V} \left(\frac{1} \iint_{S(V_\text{i})} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S\right) |V_\text{i}| As long as the vector field has continuous derivatives, the sum above holds even in the limit when the volume is divided into infinitely small increments \iint_{S(V)} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S = \lim_ \iint_{S(V_\text{i})} \mathbf{F} \cdot \mathbf{\hat n} \; \mathrm{d}S\right) |V_\text{i}| As |V_\text{i}| approaches zero volume, it becomes the infinitesimal , the part in parentheses becomes the divergence, and the sum becomes a volume integral over Since this derivation is coordinate free, it shows that the divergence does not depend on the coordinates used. ==Proofs== ===For bounded open subsets of Euclidean space=== We are going to prove the following: Proof of Theorem. {{ordered list | 1 = The first step is to reduce to the case where u \in C_c^1(\mathbb{R}^n) . Pick \phi \in C_c^{\infty}(O) such that \phi = 1 on \overline{\Omega} . Note that \phi u \in C_c^{1}(O) \subset C_c^1(\mathbb{R}^n) and \phi u = u on \overline{\Omega} . Hence it suffices to prove the theorem for \phi u . Hence we may assume that u \in C_c^1(\mathbb{R}^n) . | 2 = Let x_0 \in \partial \Omega be arbitrary. The assumption that \overline{\Omega} has C^1 boundary means that there is an open neighborhood U of x_0 in \mathbb{R}^n such that \partial \Omega \cap U is the graph of a C^1 function with \Omega \cap U lying on one side of this graph. More precisely, this means that after a translation and rotation of \Omega , there are r > 0 and h > 0 and a C^1 function g : \mathbb{R}^{n - 1} \to \mathbb{R} , such that with the notation x' = (x_1, \dots, x_{n - 1}), it holds that U = \{x \in \mathbb{R}^n : |x'| and for x \in U , \begin{align} x_n = g(x') & \implies x \in \partial \Omega, \\ -h Since \partial \Omega is compact, we can cover \partial \Omega with finitely many neighborhoods U_1, \dots, U_N of the above form. Note that \{\Omega, U_1, \dots, U_N\} is an open cover of \overline{\Omega} = \Omega \cup \partial \Omega . By using a C^{\infty} partition of unity subordinate to this cover, it suffices to prove the theorem in the case where either u has compact support in \Omega or u has compact support in some U_j . If u has compact support in \Omega , then for all i \in \{1, \dots, n\} , \int_{\Omega} u_{x_i}\,dV = \int_{\mathbb{R}^n}u_{x_i}\,dV = \int_{\mathbb{R}^{n - 1}} \int_{-\infty}^{\infty}u_{x_i}(x)\,dx_i\,dx' = 0 by the fundamental theorem of calculus, and \int_{\partial \Omega}u\nu_i\,dS = 0 since u vanishes on a neighborhood of \partial \Omega . Thus the theorem holds for u with compact support in \Omega . Thus we have reduced to the case where u has compact support in some U_j . | 3 = So assume u has compact support in some U_j . The last step now is to show that the theorem is true by direct computation. Change notation to U = U_j , and bring in the notation from (2) used to describe U . Note that this means that we have rotated and translated \Omega . This is a valid reduction since the theorem is invariant under rotations and translations of coordinates. Since u(x) = 0 for |x'| \geq r and for |x_n - g(x')| \geq h , we have for each i \in \{1, \dots, n\} that \begin{align} \int_{\Omega}u_{x_i}\,dV &= \int_{|x'| For i = n we have by the fundamental theorem of calculus that \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{g(x')}u_{x_n}(x', x_n)\,dx_n\,dx' = \int_{\mathbb{R}^{n - 1}}u(x', g(x'))\,dx'. Now fix i \in \{1, \dots, n - 1\} . Note that \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{g(x')}u_{x_i}(x', x_n)\,dx_n\,dx' = \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{0}u_{x_i}(x', g(x') + s)\,ds\,dx' Define v : \mathbb{R}^{n} \to \mathbb{R} by v(x', s) = u(x', g(x') + s) . By the chain rule, v_{x_i}(x', s) = u_{x_i}(x', g(x') + s) + u_{x_n}(x', g(x') + s)g_{x_i}(x'). But since v has compact support, we can integrate out dx_i first to deduce that \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{0}v_{x_i}(x', s)\,ds\,dx' = 0. Thus \begin{align} \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{0}u_{x_i}(x', g(x') + s)\,ds\,dx' &= \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{0}-u_{x_n}(x', g(x') + s)g_{x_i}(x')\,ds\,dx' \\ &= \int_{\mathbb{R}^{n - 1}}-u(x', g(x'))g_{x_i}(x')\,dx'. \end{align} In summary, with \nabla u = (u_{x_1}, \dots, u_{x_n}) we have \int_{\Omega}\nabla u\,dV = \int_{\mathbb{R}^{n - 1}}\int_{-\infty}^{g(x')}\nabla u\,dV = \int_{\mathbb{R}^{n - 1}}u(x', g(x'))(-\nabla g(x'), 1)\,dx'. Recall that the outward unit normal to the graph \Gamma of g at a point (x', g(x')) \in \Gamma is \nu(x', g(x')) = \frac{1}{\sqrt{1 + |\nabla g(x')|^2}}(-\nabla g(x'), 1) and that the surface element dS is given by dS = \sqrt{1 + |\nabla g(x')|^2}\,dx' . Thus \int_{\Omega}\nabla u\,dV = \int_{\partial \Omega}u\nu\,dS. This completes the proof. }} ===For compact Riemannian manifolds with boundary=== We are going to prove the following: Proof of Theorem. We use the Einstein summation convention. By using a partition of unity, we may assume that u and X have compact support in a coordinate patch O \subset \overline{\Omega} . First consider the case where the patch is disjoint from \partial \Omega . Then O is identified with an open subset of \mathbb{R}^n and integration by parts produces no boundary terms: \begin{align} (\operatorname{grad} u, X) &= \int_O \langle \operatorname{grad} u, X \rangle \sqrt g \, dx \\ &= \int_O \partial_j u X^j \sqrt g\,dx \\[5pt] &= -\int_O u \partial_j \left(\sqrt g X^j\right)\,dx \\[5pt] &= -\int_O u \frac{1}{\sqrt g}\partial_j \left(\sqrt g X^j\right)\sqrt g \, dx \\[5pt] &= \left(u, -\frac{1}{\sqrt g}\partial_j \left(\sqrt g X^j \right)\right) \\[5pt] &= (u, -\operatorname{div} X). \end{align} In the last equality we used the Voss–Weyl coordinate formula for the divergence, although the preceding identity could be used to define -\operatorname{div} as the formal adjoint of \operatorname{grad} . Now suppose O intersects \partial \Omega . Then O is identified with an open set in \mathbb{R}_{+}^n = \{x \in \mathbb{R}^n : x_n \geq 0\} . We zero extend u and X to \mathbb{R}_+^n and perform integration by parts to obtain \begin{align} (\operatorname{grad} u, X) &= \int_O \langle \operatorname{grad} u, X \rangle \sqrt g \,dx \\ &= \int_{\mathbb{R}_+^n}\partial_j u X^j \sqrt g \, dx \\ &= (u, -\operatorname{div} X) - \int_{\mathbb{R}^{n - 1}}u(x', 0)X^n(x', 0)\sqrt{g(x', 0)} \, dx', \end{align} where dx' = dx_1 \cdots dx_{n - 1} . By a variant of the straightening theorem for vector fields, we may choose O so that \frac{\partial}{\partial x_n} is the inward unit normal -N at \partial \Omega . In this case \sqrt{g(x', 0)}\,dx' = \sqrt{g_{\partial \Omega}(x')} \, dx' = dS is the volume element on \partial \Omega and the above formula reads (\operatorname{grad} u, X) = (u, -\operatorname{div} X) + \int_{\partial \Omega} u\langle X, N \rangle \,dS. This completes the proof. ==Corollaries== By replacing in the divergence theorem with specific forms, other useful identities can be derived (cf. vector identities). With \mathbf{F}\rightarrow \mathbf{F}g for a scalar function and a vector field , A special case of this is \mathbf{F} = \nabla f , in which case the theorem is the basis for Green's identities. With \mathbf{F}\rightarrow \mathbf{F}\times \mathbf{G} for two vector fields and , where \times denotes a cross product, With \mathbf{F}\rightarrow \mathbf{F}\cdot \mathbf{G} for two vector fields and , where \cdot denotes a dot product, With \mathbf{F}\rightarrow f\mathbf{c} for a scalar function and vector field c: The last term on the right vanishes for constant \mathbf{c} or any divergence free (solenoidal) vector field, e.g. Incompressible flows without sources or sinks such as phase change or chemical reactions etc. In particular, taking \mathbf{c} to be constant: With \mathbf{F}\rightarrow \mathbf{c}\times\mathbf{F} for vector field and constant vector c: By reordering the triple product on the right hand side and taking out the constant vector of the integral, Hence, S = \left \{ (x,y, z) \in \mathbb{R}^3 \ : \ x^2+y^2+z^2 = 1 \right \}, and is the vector field \mathbf{F} = 2x\mathbf{i}+y^2\mathbf{j}+z^2\mathbf{k}. The direct computation of this integral is quite difficult, but we can simplify the derivation of the result using the divergence theorem, because the divergence theorem says that the integral is equal to: \begin{align} \iiint_W (\nabla \cdot \mathbf{F})\,\mathrm{d}V &= 2\iiint_W \left(1 + y + z\right)\ \mathrm{d}V \\ &= 2\iiint_W \mathrm{d}V + 2\iiint_W y\, \mathrm{d}V + 2\iiint_W z\, \mathrm{d}V, \end{align} where is the unit ball: W = \left \{ (x,y, z) \in \mathbb{R}^3 \ : \ x^2+y^2+z^2\leq 1 \right \}. Since the function is positive in one hemisphere of and negative in the other, in an equal and opposite way, its total integral over is zero. The same is true for : \iiint_W y\, \mathrm{d}V = \iiint_W z\, \mathrm{d}V = 0. Therefore, because the unit ball has volume . ==Applications== ===Differential and integral forms of physical laws=== As a result of the divergence theorem, a host of physical laws can be written in both a differential form (where one quantity is the divergence of another) and an integral form (where the flux of one quantity through a closed surface is equal to another quantity). Three examples are Gauss's law (in electrostatics), Gauss's law for magnetism, and Gauss's law for gravity. ====Continuity equations==== Continuity equations offer more examples of laws with both differential and integral forms, related to each other by the divergence theorem. In fluid dynamics, electromagnetism, quantum mechanics, relativity theory, and a number of other fields, there are continuity equations that describe the conservation of mass, momentum, energy, probability, or other quantities. Generically, these equations state that the divergence of the flow of the conserved quantity is equal to the distribution of sources or sinks of that quantity. The divergence theorem states that any such continuity equation can be written in a differential form (in terms of a divergence) and an integral form (in terms of a flux). ===Inverse-square laws=== Any inverse-square law can instead be written in a Gauss's law-type form (with a differential and integral form, as described above). Two examples are Gauss's law (in electrostatics), which follows from the inverse-square Coulomb's law, and Gauss's law for gravity, which follows from the inverse-square Newton's law of universal gravitation. The derivation of the Gauss's law-type equation from the inverse-square formulation or vice versa is exactly the same in both cases; see either of those articles for details. R = \left \{ (x, y) \in \mathbb{R}^2 \ : \ x^2 + y^2 \leq 1 \right \}, and the vector field: \mathbf{F}(x,y)= 2 y\mathbf{i} + 5x \mathbf{j}. The boundary of R is the unit circle, C , that can be represented parametrically by: x = \cos(s), \quad y = \sin(s) such that 0 \leq s \leq 2\pi where s units is the length arc from the point s = 0 to the point P on C . Then a vector equation of C is C(s) = \cos(s)\mathbf{i} + \sin(s)\mathbf{j}. At a point P on C : P = (\cos(s),\, \sin(s)) \, \Rightarrow \, \mathbf{F} = 2\sin(s)\mathbf{i} + 5\cos(s)\mathbf{j}. Therefore, \begin{align} \oint_C \mathbf{F} \cdot \mathbf{n}\, \mathrm{d}s &= \int_0^{2\pi} (2 \sin(s) \mathbf{i} + 5 \cos(s) \mathbf{j}) \cdot (\cos(s) \mathbf{i} + \sin(s) \mathbf{j})\, \mathrm{d}s\\ &= \int_0^{2\pi} (2 \sin(s) \cos(s) + 5 \sin(s) \cos(s))\, \mathrm{d}s\\ &= 7\int_0^{2\pi} \sin(s) \cos(s)\, \mathrm{d}s\\ &= 0. \end{align} Because M = \mathfrak{Re}(\mathbf{F}) = 2y , we can evaluate and because \frac{\partial N}{\partial y} = 0 . Thus \iint_R \, \mathbf{\nabla}\cdot\mathbf{F} \, \mathrm{d}A = \iint_R \left (\frac{\partial M}{\partial x} + \frac{\partial N}{\partial y} \right) \, \mathrm{d}A = 0. ===Example 2=== Let's say we wanted to evaluate the flux of the following vector field defined by \mathbf{F}=2x^2 \textbf{i} +2y^2 \textbf{j} +2z^2\textbf{k} bounded by the following inequalities: \left\{0\le x \le 3\right\}, \left\{-2\le y \le 2\right\}, \left\{0\le z \le 2\pi\right\} By the divergence theorem, We now need to determine the divergence of \textbf{F} . If \mathbf{F} is a three-dimensional vector field, then the divergence of \textbf{F} is given by \nabla \cdot \textbf{F} = \left( \frac{\partial}{\partial x}\textbf{i} + \frac{\partial}{\partial y}\textbf{j} + \frac{\partial}{\partial z}\textbf{k} \right) \cdot \textbf{F} . Thus, we can set up the following flux integral as follows: \begin{align} I &=\iiint_V \nabla \cdot \mathbf{F} \, \mathrm{d}V\\[6pt] &=\iiint_V \left( \frac{\partial\mathbf{F_x}}{\partial x}+\frac{\partial\mathbf{F_y}}{\partial y}+\frac{\partial\mathbf{F_z}}{\partial z} \right) \mathrm{d}V\\[6pt] &=\iiint_V (4x+4y+4z) \, \mathrm{d}V\\[6pt] &=\int_0^3 \int_{-2}^2 \int_0^{2\pi} (4x+4y+4z) \, \mathrm{d}V \end{align} Now that we have set up the integral, we can evaluate it. \begin{align} \int_0^3 \int_{-2}^2 \int_0^{2\pi} (4x+4y+4z) \, \mathrm{d}V &=\int_{-2}^2 \int_0^{2\pi} (12y+12z+18) \, \mathrm{d}y \, \mathrm{d}z\\[6pt] &=\int_0^{2\pi} 24 (2z+3)\, \mathrm{d}z\\[6pt] &=48\pi(2\pi+3) \end{align} ==Generalizations== ===Multiple dimensions=== One can use the generalised Stokes' theorem to equate the -dimensional volume integral of the divergence of a vector field over a region to the -dimensional surface integral of over the boundary of : \underbrace{ \int \cdots \int_U }_n \nabla \cdot \mathbf{F} \, \mathrm{d}V = \underbrace{ \oint \cdots \oint_{\partial U} }_{n-1} \mathbf{F} \cdot \mathbf{n} \, \mathrm{d}S This equation is also known as the divergence theorem. When , this is equivalent to Green's theorem. When , it reduces to the fundamental theorem of calculus, part 2. ===Tensor fields=== Writing the theorem in Einstein notation: {{oiint | preintegral = \iiint_V \dfrac{\partial \mathbf{F}_i}{\partial x_i} \, \mathrm{d}V= | intsubscpt = \scriptstyle S | integrand = \mathbf{F}_i n_i\, \mathrm{d}S }} suggestively, replacing the vector field with a rank- tensor field , this can be generalized to: {{oiint | preintegral = \iiint_V \dfrac{\partial T_{i_1i_2\cdots i_q\cdots i_n}}{\partial x_{i_q}} \, \mathrm{d}V= | intsubscpt = \scriptstyle S | integrand = T_{i_1i_2\cdots i_q\cdots i_n}n_{i_q}\, \mathrm{d}S . }} where on each side, tensor contraction occurs for at least one index. This form of the theorem is still in 3d, each index takes values 1, 2, and 3. It can be generalized further still to higher (or lower) dimensions (for example to 4d spacetime in general relativity ). ==See also== Kelvin–Stokes theorem Generalized Stokes theorem Differential form ==References== ==External links== Differential Operators and the Divergence Theorem at MathPages The Divergence (Gauss) Theorem by Nick Bykov, Wolfram Demonstrations Project. – This article was originally based on the GFDL article from PlanetMath at https://web.archive.org/web/20021029094728/http://planetmath.org/encyclopedia/Divergence.html
Cite this
"Divergence theorem". 1787250068. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1370381473 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy