If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Intuition for divergence formula

Why does adding up certain partial derivatives have anything to do with outward fluid flow?

Background

Warmup for the intuition

In the last article, I showed you the formula for divergence, as well as the physical concept it represents. However, you might still be wondering how these two are connected. Before we dive into the intuition, the following questions should help us warm up by thinking of partial derivatives in the context of a vector field.
Reflection question: A two-dimensional vector field is given by a function v defined with two components v1 and v2,
v(x,y)=[v1(x,y)v2(x,y)]
A few vectors near a point (x0,y0) are sketched below:
Quiz diagram
  • Which of the following describes v1(x0,y0)?
    Choose 1 answer:

  • Which of the following describes v2(x0,y0)?
    Choose 1 answer:

  • Which of the following describes v1x(x0,y0)?
    Choose 1 answer:

  • Which of the following describes v2y(x0,y0)?
    Choose 1 answer:

Intuition behind the divergence formula

Let's limit our view to a two-dimensional vector field,
v(x,y)=[v1(x,y)v2(x,y)]
Remember, the formula for divergence looks like this:
v=v1x+v2y
Why does this have anything to do with changes in the density of a fluid flowing according to v(x,y)?
Let's look at each component separately.
For example, suppose v1(x0,y0)=0, meaning the vector attached to (x0,y0) has no horizontal component. And let's say v1x(x0,y0) happens to be positive. This means that near the point (x0,y0), the vector field might look something like this.
(Partial to x) > 0
  • The value of v1(x,y0) increases as x grows.
  • The value of v1(x,y0) decreases as x gets smaller.
Therefore, vectors to the left of (x0,y0) will point a little to the left, and vectors to the right of (x0,y0) will point a little to the right (see the diagram above). This suggests an outward fluid flow, at least as far as the x-component is concerned.
In contrast, here's how it looks if v1x(x0,y0) is negative:
(Partial to x) < 0
  • The vectors to the left of (x0,y0) will point to the right.
  • The vectors to the right of (x0,y0) will point to the left.
This indicates an inward fluid flow, according to the x-component.
The same intuition applies if v1(x0,y0) is nonzero. For instance, if v1(x0,y0) is positive and v1x(x0,y0) is also positive, this means all the vectors around (x0,y0) point to the right, but they get bigger as we look from left to right. You can imagine the fluid flowing slowly towards (x0,y0) from the left, but flowing fast away from it to the right. Since more is leaving than is coming in, the density at this point decreases.
Analyzing the value v2y is similar. It indicates the change in the vertical component of vectors, v2, as one moves up and down in the vector field, changing y.
For example, suppose v2(x0,y0)=0, meaning the vector attached to (x0,y0) has no vertical component. Also suppose v2y(x0,y0) is positive, meaning the vertical component of vectors increases as we move upward.
Here's how that might look:
(Partial to y) > 0
  • Vectors below (x0,y0) will point slightly downward.
  • Vectors above (x0,y0) will point slightly upward
This indicates an outward fluid flow, as far as the y-direction is concerned.
Likewise, if v2y(x0,y0) is negative, it indicates an inward fluid flow near (x0,y0) as far as the y-direction is concerned.
(Partial to y) < 0

Divergence adds these two influences

Adding the two components v1x and v2y brings together the separate influences of the x and y directions in determining whether fluid-density near a given point increases or decreases.
v=v1xChange in densityin the x-direction+v2yChange in densityin the y-direction

Want to join the conversation?