# What is the meaning of evaluating the divergence at a _point_?

Divergence (div) is “flux density”—the amount of flux entering or leaving a point. Think of it as the rate of flux expansion (positive divergence) or flux contraction (negative divergence). If you measure flux in bananas (and c’mon, who doesn’t?), a positive divergence means your location is a source of bananas. You’ve hit the Donkey Kong jackpot.

Wikipedia has:

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"—the extent to which there is more exiting an infinitesimal region of space than entering it.

What puzzles me is, what's the direction? Doesn't divergence need a direction too?

For example, say you have this 2d vector field

$$F(x,y) = (x,y)$$

This field is everywhere "spreading" from the origin:

The divergence is:

$$\nabla \cdot (x,y) = 2$$

Ie everywhere positive. Everywhere is a "source". At every point, if you draw an infinitesimally small circle, as the Wikipedia definition has, no matter how small it is, that circle will see more "stuff" leaving it than entering it -- ie everywhere is a source. But that only makes sense if you are talking as measured using a vector from the origin. But nowhere in the definitions of divergence do I see this last bolded comment mentioned, making me uneasy.

Take a vector field with values in the opposite direction:

$$F(x,y) = (-x,-y)$$

The divergence everywhere is

$$\nabla \cdot (-x,-y) = -2$$

Ie everywhere negative. Everywhere is a "sink". Ie the field "slows down" at every point. If you are talking about every point, and the direction of flow is actually towards the origin. Then and only then, is the function everywhere "slowing down".

So like, what exactly is the divergence at a point? Does it really make sense? Am I right about having to consider the direction as towards the origin in order for the "sources/sinks" idea to make sense? Where is this stated?

-
But if you pick a single point $p$, other than the origin, and draw a little circular fence around it, there will be more bananas coming in the side of the fence that faces away from the origin than are leaving through the side of the fence that faces toward the origin. So there is a net flow of bananas into $p$ for all $p$. – MJD May 28 '12 at 18:46
@MarkDominus Even if I draw it really small? (Just kidding, good point!) – bobobobo May 28 '12 at 18:58
The total flow is close to zero if you draw it really small, but the total flow per unit of fence length goes to 2, and that is exactly the divergence! – MJD May 28 '12 at 19:23

Divergence doesn't need a direction because it's the average outflow of bananas in every direction around a point $p$. You draw a closed curve around $p$, add up the total number of bananas passing through the curve (positive for outgoing bananas, negative for incoming) and then divide by the area enclosed by the curve. And then the divergence is what happens to that quantity when the curve is very small, enclosing $p$ and not much else.

It takes into account flows into and out of $p$ from all directions, and averages them together.

You can see this from (one possible) definition of the divergence:

$$\mathrm{div}\ {\bf F} = \lim_{S\to\{p\}}{1\over V(S)}\oint_S {{\bf F}\cdot d{\bf n}}$$

Notice the $V(S)$ in the denominator, where we're dividing by the area enclosed by the curve $S$; the integral adds up the total net banana flow, and dividing the total net flow by $V(S)$ finds the average net flow per unit area. (If we were working in three dimensions instead of two, $V(S)$ would be the volume enclosed by the surface $S$.)

${\bf F}\cdot d{\bf n}$ projects each bit of the total flow onto a small normal vector, so that we only add up the contribution of the flow inwards or outwards, and disregard the part of the flow that is parallel to the curve $S$.

-