Intuition for divergence formula (article) | Khan Academy (2024)

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

Background

  • Divergence

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:

  • Which of the following describes v1(x0,y0)?

    Choose 1 answer:

    Choose 1 answer:

    • Positive

    • Zero

    • Negative

    Remember, since v1 is the first component of v, it measures the component of each vector in the x direction, or the horizontal component.

    The arrow attached to the point (x0,y0) has no horizontal component, since it points straight up, so v1(x0,y0)=0

  • Which of the following describes v2(x0,y0)?

    Choose 1 answer:

    Choose 1 answer:

    • Positive

    • Zero

    • Negative

    Since v2 is the second component of v, it measures the component of each vector in the y direction, or the vertical component.

    The arrow attached to (x0,y0) points up, hence it has a positive vertical component.

  • Which of the following describes v1x(x0,y0)?

    Choose 1 answer:

    Choose 1 answer:

    The partial derivative v1x(x0,y0) measures how much v1 changes as x changes. In other words, what happens to the horizontal components of vectors as we move from the left to the right.

    As you pan from left to right around (x0,y0), the arrows go from pointing a little right, to having zero horizontal component, to pointing a little left. Therefore the horizontal component of vectors near (x0,y0) decreases as x increases, so v1x(x0,y0)<0.

  • Which of the following describes v2y(x0,y0)?

    Choose 1 answer:

    Choose 1 answer:

    • Positive

    • Zero

    • Negative

    The partial derivative v2y(x0,y0) measures how much v2 changes as y changes. In other words, what happens to the vertical components of vectors as we move from the bottom to the top.

    As you pan from down to up around (x0,y0), the upward component of each vector gets longer and longer. Therefore the vertical component of vectors near (x0,y0) increases as y increases, so v2y(x0,y0)>0.

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.

  • 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:

  • 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:

  • 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.

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 thex-direction+v2yChange in densityin they-direction

Intuition for divergence formula (article) | Khan Academy (2024)
Top Articles
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 5581

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.