Divergence
Template:Short description Script error: No such module "about".
Script error: No such module "sidebar".
In vector calculus, divergence is a vector operator that operates on a vector field, producing a scalar field giving the rate that the vector field alters the volume in an infinitesimal neighborhood of each point. (In 2D this "volume" refers to area.) More precisely, the divergence at a point is the rate that the flow of the vector field modifies a volume about the point in the limit, as a small volume shrinks down to the point.
As an example, consider air as it is heated or cooled. The velocity of the air at each point defines a vector field. While air is heated in a region, it expands in all directions, and thus the velocity field points outward from that region. The divergence of the velocity field in that region would thus have a positive value. While the air is cooled and thus contracting, the divergence of the velocity has a negative value.
Physical interpretation of divergence
Script error: No such module "Labelled list hatnote". In physical terms, the divergence of a vector field is the extent to which the vector field flux behaves like a source or a sink at a given point. It is a local measure of its "outgoingness" – the extent to which there are more of the field vectors exiting from an infinitesimal region of space than entering it. A point at which the flux is outgoing has positive divergence, and is often called a "source" of the field. A point at which the flux is directed inward has negative divergence, and is often called a "sink" of the field. The greater the flux of field through a small surface enclosing a given point, the greater the value of divergence at that point. A point at which there is zero flux through an enclosing surface has zero divergence.
The divergence of a vector field is often illustrated using the simple example of the velocity field of a fluid, a liquid or gas. A moving gas has a velocity, a speed and direction at each point, which can be represented by a vector, so the velocity of the gas forms a vector field. If a gas is heated, it will expand. This will cause a net motion of gas particles outward in all directions. Any closed surface in the gas will enclose gas which is expanding, so there will be an outward flux of gas through the surface. So the velocity field will have positive divergence everywhere. Similarly, if the gas is cooled, it will contract. There will be more room for gas particles in any volume, so the external pressure of the fluid will cause a net flow of gas volume inward through any closed surface. Therefore, the velocity field has negative divergence everywhere. In contrast, in a gas at a constant temperature and pressure, the net flux of gas out of any closed surface is zero. The gas may be moving, but the volume rate of gas flowing into any closed surface must equal the volume rate flowing out, so the net flux is zero. Thus the gas velocity has zero divergence everywhere. A field which has zero divergence everywhere is called solenoidal.
If the gas is heated only at one point or small region, or a small tube is introduced which supplies a source of additional gas at one point, the gas there will expand, pushing fluid particles around it outward in all directions. This will cause an outward velocity field throughout the gas, centered on the heated point. Any closed surface enclosing the heated point will have a flux of gas particles passing out of it, so there is positive divergence at that point. However any closed surface not enclosing the point will have a constant density of gas inside, so just as many fluid particles are entering as leaving the volume, thus the net flux out of the volume is zero. Therefore, the divergence at any other point is zero.
Definition
The divergence of a vector field F(x)Script error: No such module "Check for unknown parameters". at a point x0Script error: No such module "Check for unknown parameters". is defined as the limit of the ratio of the surface integral of FScript error: No such module "Check for unknown parameters". out of the closed surface of a volume VScript error: No such module "Check for unknown parameters". enclosing x0Script error: No such module "Check for unknown parameters". to the volume of VScript error: No such module "Check for unknown parameters"., as VScript error: No such module "Check for unknown parameters". shrinks to zero
where Template:AbsScript error: No such module "Check for unknown parameters". is the volume of VScript error: No such module "Check for unknown parameters"., S(V)Script error: No such module "Check for unknown parameters". is the boundary of VScript error: No such module "Check for unknown parameters"., and is the outward unit normal to that surface. It can be shown that the above limit always converges to the same value for any sequence of volumes that contain x0Script error: No such module "Check for unknown parameters". and approach zero volume. The result, div FScript error: No such module "Check for unknown parameters"., is a scalar function of xScript error: No such module "Check for unknown parameters"..
Since this definition is coordinate-free, it shows that the divergence is the same in any coordinate system. However the above definition is not often used practically to calculate divergence; when the vector field is given in a coordinate system the coordinate definitions below are much simpler to use.
A vector field with zero divergence everywhere is called solenoidal – in which case any closed surface has no net flux across it. This is the same as saying that the (flow of the) vector field preserves volume: The volume of any region does not change after it has been transported by the flow for any period of time.
Definition in coordinates
Cartesian coordinates
In three-dimensional Cartesian coordinates, the divergence of a continuously differentiable vector field is defined as the scalar-valued function:
Although expressed in terms of coordinates, the result is invariant under rotations, as the physical interpretation suggests. This is because the trace of the Jacobian matrix of an NScript error: No such module "Check for unknown parameters".-dimensional vector field FScript error: No such module "Check for unknown parameters". in Template:Mvar-dimensional space is invariant under any invertible linear transformationTemplate:Clarification needed.
The common notation for the divergence ∇ · FScript error: No such module "Check for unknown parameters". is a convenient mnemonic, where the dot denotes an operation reminiscent of the dot product: take the components of the ∇Script error: No such module "Check for unknown parameters". operator (see del), apply them to the corresponding components of FScript error: No such module "Check for unknown parameters"., and sum the results. Because applying an operator is different from multiplying the components, this is considered an abuse of notation.
Cylindrical coordinates
For a vector expressed in local unit cylindrical coordinates as where eaScript error: No such module "Check for unknown parameters". is the unit vector in direction aScript error: No such module "Check for unknown parameters"., the divergence isTemplate:Refn
The use of local coordinates is vital for the validity of the expression. If we consider xScript error: No such module "Check for unknown parameters". the position vector and the functions r(x)Script error: No such module "Check for unknown parameters"., θ(x)Script error: No such module "Check for unknown parameters"., and z(x)Script error: No such module "Check for unknown parameters"., which assign the corresponding global cylindrical coordinate to a vector, in general , , and . In particular, if we consider the identity function F(x) = xScript error: No such module "Check for unknown parameters"., we find that:
Spherical coordinates
In spherical coordinates, with Template:Mvar the angle with the Template:Mvar axis and Template:Mvar the rotation around the Template:Mvar axis, and FScript error: No such module "Check for unknown parameters". again written in local unit coordinates, the divergence isTemplate:Refn
Tensor field
Let AScript error: No such module "Check for unknown parameters". be continuously differentiable second-order tensor field defined as follows:
the divergence in cartesian coordinate system is a first-order tensor fieldTemplate:Sfn and can be defined in two ways:[1]
We have
If tensor is symmetric Aij = AjiScript error: No such module "Check for unknown parameters". then . Because of this, often in the literature the two definitions (and symbols divScript error: No such module "Check for unknown parameters". and ) are used interchangeably (especially in mechanics equations where tensor symmetry is assumed).
Expressions of in cylindrical and spherical coordinates are given in the article del in cylindrical and spherical coordinates.
General coordinates
Using Einstein notation we can consider the divergence in general coordinates, which we write as x1, …, xi, …, xnScript error: No such module "Check for unknown parameters"., where Template:Mvar is the number of dimensions of the domain. Here, the upper index refers to the number of the coordinate or component, so x2Script error: No such module "Check for unknown parameters". refers to the second component, and not the quantity Template:Mvar squared. The index variable Template:Mvar is used to refer to an arbitrary component, such as xiScript error: No such module "Check for unknown parameters".. The Voss-Weyl formula,[5] which allows the divergence to be determined using simply partial coordinate derivatives, is as follows:
where is the local coefficient of the volume element and FiScript error: No such module "Check for unknown parameters". are the components of with respect to the local unnormalized covariant basis (sometimes written as ). The Einstein notation implies summation over Template:Mvar, since it appears as both an upper and lower index.
The volume coefficient Template:Mvar is a function of position which depends on the coordinate system. In Cartesian, cylindrical and spherical coordinates, using the same conventions as before, we have ρ = 1Script error: No such module "Check for unknown parameters"., ρ = rScript error: No such module "Check for unknown parameters". and ρ = r2 sin θScript error: No such module "Check for unknown parameters"., respectively. The volume can also be expressed as , where gabScript error: No such module "Check for unknown parameters". is the metric tensor. The determinant appears because it provides the appropriate invariant definition of the volume, given a set of vectors. Since the determinant is a scalar quantity which doesn't depend on the indices, these can be suppressed, writing . The absolute value is taken in order to handle the general case where the determinant might be negative, such as in pseudo-Riemannian spaces. The reason for the square-root is a bit subtle: it effectively avoids double-counting as one goes from curved to Cartesian coordinates, and back. The volume (the determinant) can also be understood as the Jacobian of the transformation from Cartesian to curvilinear coordinates, which for n = 3Script error: No such module "Check for unknown parameters". gives .
Some conventions expect all local basis elements to be normalized to unit length, as was done in the previous sections. If we write for the normalized basis, and for the components of FScript error: No such module "Check for unknown parameters". with respect to it, we have that using one of the properties of the metric tensor. By dotting both sides of the last equality with the contravariant element , we can conclude that . After substituting, the formula becomes:
See Template:Section link for further discussion.
Properties
Script error: No such module "Labelled list hatnote".
The following properties can all be derived from the ordinary differentiation rules of calculus. Most importantly, the divergence is a linear operator, i.e.,
for all vector fields FScript error: No such module "Check for unknown parameters". and GScript error: No such module "Check for unknown parameters". and all real numbers aScript error: No such module "Check for unknown parameters". and bScript error: No such module "Check for unknown parameters"..
There is a product rule of the following type: if Template:Mvar is a scalar-valued function and FScript error: No such module "Check for unknown parameters". is a vector field, then
or in more suggestive notation
Another product rule for the cross product of two vector fields FScript error: No such module "Check for unknown parameters". and GScript error: No such module "Check for unknown parameters". in three dimensions involves the curl and reads as follows:
or
The Laplacian of a scalar field is the divergence of the field's gradient:
The divergence of the curl of any vector field (in three dimensions) is equal to zero:
If a vector field FScript error: No such module "Check for unknown parameters". with zero divergence is defined on a ball in R3Script error: No such module "Check for unknown parameters"., then there exists some vector field GScript error: No such module "Check for unknown parameters". on the ball with F = curl GScript error: No such module "Check for unknown parameters".. For regions in R3Script error: No such module "Check for unknown parameters". more topologically complicated than this, the latter statement might be false (see Poincaré lemma). The degree of failure of the truth of the statement, measured by the homology of the chain complex
serves as a nice quantification of the complicatedness of the underlying region UScript error: No such module "Check for unknown parameters".. These are the beginnings and main motivations of de Rham cohomology.
Decomposition theorem
Script error: No such module "Labelled list hatnote". It can be shown that any stationary flux v(r)Script error: No such module "Check for unknown parameters". that is twice continuously differentiable in R3Script error: No such module "Check for unknown parameters". and vanishes sufficiently fast for Template:Abs → ∞Script error: No such module "Check for unknown parameters". can be decomposed uniquely into an irrotational part E(r)Script error: No such module "Check for unknown parameters". and a source-free part B(r)Script error: No such module "Check for unknown parameters".. Moreover, these parts are explicitly determined by the respective source densities (see above) and circulation densities (see the article Curl):
For the irrotational part one has
with
The source-free part, BScript error: No such module "Check for unknown parameters"., can be similarly written: one only has to replace the scalar potential Φ(r)Script error: No such module "Check for unknown parameters". by a vector potential A(r)Script error: No such module "Check for unknown parameters". and the terms −∇ΦScript error: No such module "Check for unknown parameters". by +∇ × AScript error: No such module "Check for unknown parameters"., and the source density div vScript error: No such module "Check for unknown parameters". by the circulation density ∇ × vScript error: No such module "Check for unknown parameters"..
This "decomposition theorem" is a by-product of the stationary case of electrodynamics. It is a special case of the more general Helmholtz decomposition, which works in dimensions greater than three as well.
In arbitrary finite dimensions
The divergence of a vector field can be defined in any finite number of dimensions. If
in a Euclidean coordinate system with coordinates x1, x2, ..., xnScript error: No such module "Check for unknown parameters"., define
In the 1D case, FScript error: No such module "Check for unknown parameters". reduces to a regular function, and the divergence reduces to the derivative.
For any nScript error: No such module "Check for unknown parameters"., the divergence is a linear operator, and it satisfies the "product rule"
for any scalar-valued function Template:Mvar.
Relation to the exterior derivative
One can express the divergence as a particular case of the exterior derivative, which takes a 2-form to a 3-form in R3Script error: No such module "Check for unknown parameters".. Define the current two-form as
It measures the amount of "stuff" flowing through a surface per unit time in a "stuff fluid" of density ρ = 1 dx ∧ dy ∧ dzScript error: No such module "Check for unknown parameters". moving with local velocity FScript error: No such module "Check for unknown parameters".. Its exterior derivative djScript error: No such module "Check for unknown parameters". is then given by
where is the wedge product.
Thus, the divergence of the vector field FScript error: No such module "Check for unknown parameters". can be expressed as:
Here the superscript ♭ is one of the two musical isomorphisms, and ⋆Script error: No such module "Check for unknown parameters". is the Hodge star operator. When the divergence is written in this way, the operator is referred to as the codifferential. Working with the current two-form and the exterior derivative is usually easier than working with the vector field and divergence, because unlike the divergence, the exterior derivative commutes with a change of (curvilinear) coordinate system.
In curvilinear coordinates
The appropriate expression is more complicated in curvilinear coordinates. The divergence of a vector field extends naturally to any differentiable manifold of dimension nScript error: No such module "Check for unknown parameters". that has a volume form (or density) Template:Mvar, e.g. a Riemannian or Lorentzian manifold. Generalising the construction of a two-form for a vector field on R3Script error: No such module "Check for unknown parameters"., on such a manifold a vector field XScript error: No such module "Check for unknown parameters". defines an (n − 1)Script error: No such module "Check for unknown parameters".-form j = iX μScript error: No such module "Check for unknown parameters". obtained by contracting XScript error: No such module "Check for unknown parameters". with Template:Mvar. The divergence is then the function defined by
The divergence can be defined in terms of the Lie derivative as
This means that the divergence measures the rate of expansion of a unit of volume (a volume element) as it flows with the vector field.
On a pseudo-Riemannian manifold, the divergence with respect to the volume can be expressed in terms of the Levi-Civita connection ∇Script error: No such module "Check for unknown parameters".:
where the second expression is the contraction of the vector field valued 1-form ∇XScript error: No such module "Check for unknown parameters". with itself and the last expression is the traditional coordinate expression from Ricci calculus.
An equivalent expression without using a connection is
where Template:Mvar is the metric and denotes the partial derivative with respect to coordinate xTemplate:I supScript error: No such module "Check for unknown parameters".. The square-root of the (absolute value of the determinant of the) metric appears because the divergence must be written with the correct conception of the volume. In curvilinear coordinates, the basis vectors are no longer orthonormal; the determinant encodes the correct idea of volume in this case. It appears twice, here, once, so that the can be transformed into "flat space" (where coordinates are actually orthonormal), and once again so that is also transformed into "flat space", so that finally, the "ordinary" divergence can be written with the "ordinary" concept of volume in flat space (i.e. unit volume, i.e. one, i.e. not written down). The square-root appears in the denominator, because the derivative transforms in the opposite way (contravariantly) to the vector (which is covariant). This idea of getting to a "flat coordinate system" where local computations can be done in a conventional way is called a vielbein. A different way to see this is to note that the divergence is the codifferential in disguise. That is, the divergence corresponds to the expression with the differential and the Hodge star. The Hodge star, by its construction, causes the volume form to appear in all of the right places.
The divergence of tensors
Divergence can also be generalised to tensors. In Einstein notation, the divergence of a contravariant vector Template:Mvar is given by
where ∇μScript error: No such module "Check for unknown parameters". denotes the covariant derivative. In this general setting, the correct formulation of the divergence is to recognize that it is a codifferential; the appropriate properties follow from there.
Equivalently, some authors define the divergence of a mixed tensor by using the musical isomorphism ♯: if TScript error: No such module "Check for unknown parameters". is a (p, q)Script error: No such module "Check for unknown parameters".-tensor (pScript error: No such module "Check for unknown parameters". for the contravariant vector and qScript error: No such module "Check for unknown parameters". for the covariant one), then we define the divergence of Template:Mvar to be the (p, q − 1)Script error: No such module "Check for unknown parameters".-tensor
that is, we take the trace over the first two covariant indices of the covariant derivative.Template:Efn The symbol refers to the musical isomorphism.
See also
Notes
Citations
<templatestyles src="Reflist/styles.css" />
Script error: No such module "Check for unknown parameters".
References
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
External links
- Template:Springer
- The idea of divergence of a vector field
- Khan Academy: Divergence video lesson
- Script error: No such module "citation/CS1".Template:Cbignore