Ma · Mathematics

How Are the Dot Product and Divergence Related?

Published By the 9to5Science editorial team

At a glance

  1. 1. Treat nabla as an operator

    In Cartesian coordinates, nabla lists partial-derivative operators rather than ordinary numbers.

  2. 2. Apply it to a field

    Take the dot product of nabla with the vector field, differentiating each matching component.

  3. 3. Interpret the result

    The divergence is a scalar that measures local outward flow per unit volume.

The dot product and divergence are connected through the symbol ∇⋅F\nabla \cdot \mathbf{F}. In Cartesian coordinates, this notation tells you to differentiate the components of a vector field and add the derivatives. The result, called the divergence, is a scalar field.

The notation resembles an ordinary dot product, but ∇\nabla is not an ordinary vector of numbers. It is a differential operator. Understanding that distinction explains both the formula and what divergence measures.

The Cartesian formula

For a vector field in three dimensions,

F(x,y,z)=(Fx(x,y,z),Fy(x,y,z),Fz(x,y,z)),\mathbf{F}(x,y,z) = \bigl(F_x(x,y,z), F_y(x,y,z), F_z(x,y,z)\bigr),

the divergence is defined in Cartesian coordinates by

∇⋅F=∂Fx∂x+∂Fy∂y+∂Fz∂z.\nabla \cdot \mathbf{F} = \frac{\partial F_x}{\partial x} + \frac{\partial F_y}{\partial y} + \frac{\partial F_z}{\partial z}.

The operator ∇\nabla (also called del or nabla) is written in these coordinates as

∇=(∂∂x,∂∂y,∂∂z).\nabla = \left(\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}\right).

The dot notation indicates that the first differential operator acts on the first component of F\mathbf{F}, the second on the second, and the third on the third. In two dimensions, omit the zz term; in nn dimensions, add one matching partial derivative for each coordinate.

Worked example

Consider

F(x,y,z)=(x2y, yz, xz2).\mathbf{F}(x,y,z) = (x^2y,\ yz,\ xz^2).

Differentiate each component with respect to its corresponding coordinate:

∇⋅F=∂(x2y)∂x+∂(yz)∂y+∂(xz2)∂z=2xy+z+2xz.\begin{aligned} \nabla \cdot \mathbf{F} &= \frac{\partial (x^2y)}{\partial x} + \frac{\partial (yz)}{\partial y} + \frac{\partial (xz^2)}{\partial z} \\ &= 2xy + z + 2xz. \end{aligned}

So the divergence is the scalar field 2xy+z+2xz2xy+z+2xz. At the point (1,2,3)(1,2,3), its value is

2(1)(2)+3+2(1)(3)=13.2(1)(2)+3+2(1)(3)=13.

This value describes the field’s local tendency to flow outward near that point. It is not the vector F(1,2,3)\mathbf{F}(1,2,3) itself; that vector is (2,6,9)(2,6,9).

Why call it a dot product?

For ordinary vectors a=(a1,a2,a3)\mathbf{a}=(a_1,a_2,a_3) and b=(b1,b2,b3)\mathbf{b}=(b_1,b_2,b_3), their dot product is a1b1+a2b2+a3b3a_1b_1+a_2b_2+a_3b_3. The divergence formula has the same component-by-component pattern, but the entries of ∇\nabla are derivative operators. When they act on the components of F\mathbf{F}, they produce derivatives rather than products of numbers.

Thus, ∇⋅F\nabla \cdot \mathbf{F} is often described as the dot product of the differential operator ∇\nabla with the vector field. This is useful notation, but it should not obscure the fact that differentiation is happening.

What divergence measures

Imagine a fluid velocity field. If more fluid flows out of a tiny region than flows in, the divergence there is positive. If more flows in than out, it is negative. If inflow and outflow balance locally, the divergence is zero. More precisely, divergence measures net outward flux per unit volume in the limit as the region shrinks to a point.

The same interpretation applies to other vector fields, such as an electric field, although the physical meaning of the field and its units differ. Divergence is a scalar because this local source-or-sink measure has a value at each point, not a direction.

Common mistakes

  • Treating ∇\nabla as a fixed numerical vector. Its entries are derivative operators, and they act on the field that follows.
  • Differentiating the wrong component. For Cartesian divergence, differentiate FxF_x with respect to xx, FyF_y with respect to yy, and so on.
  • Expecting a vector result. The sum of the matching partial derivatives is a scalar.
  • Confusing divergence with F⋅∇\mathbf{F}\cdot\nabla. The expression F⋅∇\mathbf{F}\cdot\nabla is a differential operator that acts on a scalar function, producing a directional-derivative-type expression. It is not the divergence of F\mathbf{F}.
  • Using the Cartesian formula in other coordinates without adjustment. In cylindrical or spherical coordinates, divergence has additional scale factors. The simple component formula above applies directly to Cartesian coordinates.

For example, if ff is a scalar function, then ∇f\nabla f is its gradient, a vector field. Taking the divergence of that gradient gives the Laplacian: ∇⋅(∇f)=∇2f\nabla\cdot(\nabla f)=\nabla^2 f. This is another use of the same operator notation, with the derivatives acting on the expression to their right.

References

  1. Vector Calculus, 6th Edition — Jerrold E. Marsden and Anthony Tromba

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.