  in vector calculus, divergence is a vector operator that measures the magnitude of a vector field's source or sink at a given point, in terms of a signed scalar. more technically, the divergence represents the volume density of the outward flux of a vector field from an infinitesimal volume around a given point. for example, consider air as it is heated or cooled. the relevant vector field for this example is the velocity of the moving air at a point. if air is heated in a region it will expand in all directions such that the velocity field points outward from that region. therefore the divergence of the velocity field in that region would have a positive value, as the region is a source. if the air cools and contracts, the divergence has a negative value, as the region is a sink. == definition of divergence == in physical terms, the divergence of a three-dimensional vector field is the extent to which the vector field flow behaves like a source or a sink at a given point. it is a local measure of its "outgoingness"&mdash;the extent to which there is more exiting an infinitesimal region of space than entering it. if the divergence is nonzero at some point then there must be a source or sink at that position.divergence of a vector field (note that we are imagining the vector field to be like the velocity vector field of a fluid (in motion) when we use the terms flow, sink and so on.) more rigorously, the divergence of a vector field f at a point p is defined as the limit of the net flow of f across the smooth boundary of a three-dimensional region v divided by the volume of v as v shrinks to p. formally, :\operatorname{div}\,\mathbf{f}(p) = \lim_{v \rightarrow \{p\}} \iint_{s(v)} {\mathbf{f}\cdot\mathbf{n} \over |v| } \; ds where |v | is the volume of v, s(v) is the boundary of v, and the integral is a surface integral with n being the outward unit normal to that surface. the result, div f, is a function of p. from this definition it also becomes explicitly visible that div f can be seen as the source density of the flux of f. in light of the physical interpretation, a vector field with constant zero divergence is called incompressible or solenoidal &ndash; in this case, no net flow can occur across any closed surface. the intuition that the sum of all sources minus the sum of all sinks should give the net flow outwards of a region is made precise by the divergence theorem. === application in cartesian coordinates === let x, y, z be a system of cartesian coordinates in 3-dimensional euclidean space, and let i,&nbsp;j,&nbsp;k be the corresponding basis of unit vectors. the divergence of 
Linear_operators_in_calculus Vector_calculus