Main content

## Multivariable calculus

### Course: Multivariable calculus > Unit 2

Lesson 11: Divergence and curl (articles)# 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

A few vectors near a point $({x}_{0},{y}_{0})$ are sketched below:

- Which of the following describes
?${v}_{1}({x}_{0},{y}_{0})$ - Which of the following describes
?${v}_{2}({x}_{0},{y}_{0})$ - Which of the following describes
?$\frac{\partial {v}_{1}}{\partial x}}({x}_{0},{y}_{0})$ - Which of the following describes
?$\frac{\partial {v}_{2}}{\partial y}}({x}_{0},{y}_{0})$

## Intuition behind the divergence formula

Let's limit our view to a two-dimensional vector field,

Remember, the formula for divergence looks like this:

Why does this have anything to do with changes in the density of a fluid flowing according to $\overrightarrow{\mathbf{\text{v}}}(x,y)$ ?

Let's look at each component separately.

For example, suppose ${v}_{1}({x}_{0},{y}_{0})=0$ , meaning the vector attached to $({x}_{0},{y}_{0})$ has no horizontal component. And let's say $\frac{\partial {v}_{1}}{\partial {x}}}({{x}_{0}},{y}_{0})$ happens to be positive. This means that near the point $({x}_{0},{y}_{0})$ , the vector field might look something like this.

- The value of
increases as${v}_{1}({x},{y}_{0})$ grows.${x}$ - The value of
decreases as${v}_{1}({x},{y}_{0})$ gets smaller.${x}$

Therefore, vectors to the left of $({x}_{0},{y}_{0})$ will point a little to the left, and vectors to the right of $({x}_{0},{y}_{0})$ 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 $\frac{\partial {v}_{1}}{\partial {x}}}({{x}_{0}},{y}_{0})$ is negative:

- The vectors to the left of
will point to the right.$({x}_{0},{y}_{0})$ - The vectors to the right of
will point to the left.$({x}_{0},{y}_{0})$

This indicates an inward fluid flow, according to the $x$ -component.

The same intuition applies if ${v}_{1}({x}_{0},{y}_{0})$ is nonzero. For instance, if ${v}_{1}({x}_{0},{y}_{0})$ is positive and $\frac{\partial {v}_{1}}{\partial {x}}}({{x}_{0}},{y}_{0})$ is also positive, this means all the vectors around $({x}_{0},{y}_{0})$ point to the right, but they get bigger as we look from left to right. You can imagine the fluid flowing slowly towards $({x}_{0},{y}_{0})$ 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 $\frac{\partial {v}_{2}}{\partial {y}}$ is similar. It indicates the change in the vertical component of vectors, ${v}_{2}$ , as one moves up and down in the vector field, changing $y$ .

For example, suppose ${v}_{2}({x}_{0},{y}_{0})=0$ , meaning the vector attached to $({x}_{0},{y}_{0})$ has no vertical component. Also suppose $\frac{\partial {v}_{2}}{\partial {y}}}({x}_{0},{{y}_{0}})$ is positive, meaning the vertical component of vectors increases as we move upward.

Here's how that might look:

- Vectors below
will point slightly downward.$({x}_{0},{y}_{0})$ - Vectors above
will point slightly upward$({x}_{0},{y}_{0})$

This indicates an outward fluid flow, as far as the $y$ -direction is concerned.

Likewise, if $\frac{\partial {v}_{2}}{\partial {y}}}({x}_{0},{{y}_{0}})$ is negative, it indicates an inward fluid flow near $({x}_{0},{y}_{0})$ as far as the $y$ -direction is concerned.

## Divergence adds these two influences

Adding the two components $\frac{\partial {v}_{1}}{\partial x}$ and $\frac{\partial {v}_{2}}{\partial y}$ brings together the separate influences of the $x$ and $y$ directions in determining whether fluid-density near a given point increases or decreases.

## Want to join the conversation?

- When will there be practice exercises for this content? I feel like I am learning content but will not be able to say, pass a test. Answers will be appreciated.(15 votes)
- The author of these lessons told in another article that he prefers to teach us the concepts and to give the formulas, but that it isn't very important to practice again and again on examples. You can find some by yourself, but I suppose there won't be any here on these articles :/(4 votes)

- Wonderfully explained, all concepts are crystal clear now, Thankx(7 votes)
- but why they are linear add, not "Pythagorean Add": sqrt(a^2+b^2)(1 vote)
- There is no spoon (i mean
**triangle**), nor hypoteneuse... you just have divergence in the x-direction and divergence in the y-direction... total divergence is the one and the other, or mathematically, the one*plus*the other.

You might ask yourself: why would you take the square root of the sum of the squares?(1 vote)