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

Jeżeli jesteś za filtrem sieci web, prosimy, upewnij się, że domeny *.kastatic.org i *.kasandbox.org są odblokowane.

Główna zawartość

Formal definition of divergence in two dimensions

Learn how line integrals are used to formalize the idea of divergence.

Kontekst

If you haven't already, you may also want to read "Why care about the formal definitions of divergence and curl" for motivation.

Do czego zmierzamy

  • In two dimensions, divergence is formally defined as follows:
    divF(x,y)=lim|A(x,y)|01|A(x,y)|CFn^ds2d-flux through CFlux per unit area
There is a lot going on in this definition, but we will build up to it one piece at a time. The bulk of the intuition comes from the background understanding of flux.

"Outward flow" at a point doesn't really make sense

By this point you should have some idea of what divergence is trying to measure. When a vector field F(x,y) represents a fluid flow, divergence measures the tendency for the fluid to flow away from each point.
Filmy wideo na Khan Academy
However, there's a disconnect between the idea of "outward flow" and divergence itself:
  • Divergence is a function which takes in individual points in space.
  • The idea of outward flow only makes sense with respect to a region in space. You can ask if a fluid flows out of a given region or into it, but it doesn't make sense to talk about fluid flowing out of a single point.
Formally defining divergence will involve using a flux integral, which measures the outward flow in a region, then taking the appropriate limit as this region shrinks around a specific point.

From a region to a point

In the article on two-dimensional flux, we had the following setup:
  • F(x,y) is a vector-valued function representing the velocity vector field of some fluid.
  • C is a closed loop in the xy-plane.
  • n^(x,y) is a function that gives the outward unit normal vector at all points on the curve C.
I talked about how if you were tracking the mass of fluid in the region enclosed by the curve C, you could compute the rate at which mass is leaving the region using the following line integral:
d(fluid mass in region)dtRate at which mass leaves region=CFn^dsFlux integral
This is called a "flux integral". If it is positive, fluid tends to be exiting the region, otherwise it tends to be entering the region. You can interpret this integral by imagining walking along the boundary C and measuring how much fluid tends to be exiting/entering the region at each point.
What if instead of measuring the change of mass, you wanted to know the change in density? Well, just divide this integral by the area of the region in question. Let's go ahead and give that region a name, A, and say that |A| is the area of the region.
d(fluid density in region)dtChange in mass per unit area in A=1|A|CFn^ds
To formally define divergence of F at a point (x,y), we consider the limit of this change in density as the region shrinks around the point (x,y).
There is no set-in-stone notation for this, but here's what I'll go with:
  • Rather than just writing A, write A(x,y) to emphasize that this region contains a specific point (x,y).
This is important because as we start letting the region shrink, we don't want it to wander away from the point.
The expression "|A(x,y)|0" will indicate that we are considering the limit as the area of A(x,y) goes to 0, meaning A(x,y) is shrinking around the point (x,y).
With all this, here's how we write the formal definition of divergence:
divF(x,y)=lim|A(x,y)|0Region is shrinkingaround (x,y)1|A(x,y)|CFn^dsFlux through CNegative change offluid density in A(x,y)

"Simple" example: Constant divergence

Unlike other topics, the purpose of an example here is not to practice a skill that you will need. It is just to get a feel for what this relatively abstract definition actually looks like with a concrete function.
Let's use the quintessential "outward flowing" vector field in two dimensions:
F(x,y)=[xy]
Concept check: Using the usual divergence formula, the one which arises from the notation F, what is the divergence of F(x,y)=[xy]?
F(x,y)=

Now let's see how the formal definition of divergence works in this case. Let's focus on the origin.
(x,y)=(0,0)
And for our shrinking regions around this point, consider circles. Let Cr denote a circle of radius r centered at the origin, and Dr represent the region enclosed by that circle, where D stands for "Disk".
Notice, for all values of r, the disk Dr will contain the point (0,0), so this is indeed a good family of regions to use.
The formal definition of divergence at (0,0) would then be written as follows:
divF(0,0)=lim|Dr|01|Dr|CrFn^ds
This is rather abstract, so let's start filling in the details of this integral.
Concept check: What is |Dr|?
|Dr|=

Concept check: Which of the following parameterizes Cr?
Wybierz 1 odpowiedź:

Concept check: Using this parameterization, what should we replace ds with in the integral Crds?
ds=
dt

Concept check: Which of the following gives an outward facing unit normal vector n^ to Cr?
Wybierz 1 odpowiedź:

Applying all these answers to the expression we had before, here's what we get:
divF(0,0)=lim|Dr|01|Dr|CrFn^ds=limr01πr202πF(rcos(t),rsin(t))n^(rcos(t),rsin(t))rdt=limr01πr202π[rcos(t)rsin(t)][(rcos(t))/r(rsin(t))/r]rdt=limr01πr202π(rcos2(t)+rsin2(t))rrdt=limr01πr202πr2dt=limr01πr22πr2=2
So the formal definition does actually match the formula F that we know and love. Well, at least for this specific example anyway.
I think you'll agree, though, that this is much more labor-intensive to compute. But the point of this formal definition is not to use it for actual computations. The point is that it does a much better job reflecting the idea of "outward fluid flow" in a mathematical formula. Having such a solid grasp of that idea will be helpful when you learn about Green's divergence theorem.

What about higher dimensions?

In the next article, I'll show how you can do essentially the same thing to define three-dimensional divergence using three-dimensional flux, which involves a surface integral.

Podsumowanie

  • Given a fluid flow, divergence tries to capture the idea of "outward flow" at a point. But this doesn't quite make sense, because you can only measure the change in fluid density of a region.
  • When talking about a region, the idea of "outward flow" is the same as flux through that region's boundary.
  • To adapt the idea of "outward flow in a region" to the idea of "outward flow at a point", start by considering the average outward flow per unit area in a region. This just means dividing the flux integral by the area of the region.
  • Next, consider the limit of this outward flow per unit area as the region shrinks around a specific point.
  • Putting this all into symbols, we get the following definition of divergence:
    divF(x,y)=lim|A(x,y)|01|A(x,y)|CFn^ds2d-fluxFlux per unit area

Chcesz dołączyć do dyskusji?

Na razie brak głosów w dyskusji
Rozumiesz angielski? Kliknij tutaj, aby zobaczyć więcej dyskusji na angielskiej wersji strony Khan Academy.