We've discussed partial derivatives, and we've even discussed a way to take a sort of "complete" derivative of multivariable functions (the gradient). But the gradient only works for scalar functions; how about a "complete" kind of derivative for vector fields?
In two dimensions, there is just one, but in three dimensions, there are, for reasons which won't appear until much later in your mathematical education. The first of these is called the divergence, which we investigate now.
Consider a vector field , which we interpret as representing the velocity of a fluid occupying space, or a very thin layer of flowing fluid on a plane. Suppose we wished to find out if there are any sources of fluid (like a faucet), or drains - how might we go about this?
Well, consider some specific point, . If we surround with a sphere, call it S, then obviously
will contain some contribution from whatever "flow" is coming out of, or going into, . It will, of course, also contains contributions from the various other points in its interior, but, if we let the radius r of the sphere S go to 0, then this integral will ONLY measure the flow at . Hence we define the divergence of a vector field as
where is the outward pointing surface normal of unit length to S.
The obvious form of this for a two-dimensional vector field would be the limit of a line integral on a circle around a point, with one minor exception: usually, when we take the line integral of a vector field, we examine the dot product of the field with the curve tangent. However, in this case, we will examine the dot product of the field with the outward pointing curve normal, which for a circle, is where the derivative is taken with regard to arc length on the circle s.
Therefore, in two dimensions, we have:
- See the proof page for details.
This is an unwieldy definition, so we frequently use the equivalent statement
or in two dimensions, just . Note that if we were to define a "vector" , we would have . Note that this isn't technically a vector, since the component are not number but differential operators, and the kind of "multiplication" we're doing isn't really multiplication, since you can't multiply an operator by a function; instead we're differentiating the components. Nevertheless, it's a handy notational convenience, and it actually does point to a deeper truth we won't begin to address in this course, so we'll continue to use for the divergence.
Since we've taken the dot product of our new differential operator with a vector field, it only makes sense to see what happens when we take the cross product as well.
Of course, this is useless if we don't know what it measures. Let's investigate:
The first component, , gives us the extent of the vector in the x-axis direction. The expressions gives us, basically, how fast the fluid moving "up" along the z-axis "tips" in the direction of the y-axis, minus how much the fluid moving in the direction of the y axis tips in the direction of the z axis. This is just a measurement of how much the field is rotating about the x-axis (see illustration). By a similar logic, we see the other components will measure how much the field is rotating about the various other axes, and so when we add these all together, the result will be a vector which A) points along the line around which the field is rotating the most, and B) has magnitdue equal to how fast the fluid is rotating. For this reason, the expression is often called the rotation or curl of , and you will sometimes see or used for .
Applications of the Divergence and Curl
If we imagine a vector field as being a fluid which fills space, and moves around in it, so that the atom of water at point is travelling in the direction of with speed equal to s magnitude, then the divergence simply tells us if it is compressing or decompressing. For this reason, a vector field such that for all points is called incompressible. For reasons associated with magnetic and electrical phenomenon, we also call such a field "solenoidal".
Alternatively, we may view a vector field as heat flowing through a solid body, like a metal bar. Places where the divergence is positive would then be places where heat is being created (by a fire, by contact with a hot body, by nuclear decay, etc.), and for those reasons, points where are called sources. Similarly, if the divergence is negative, that means heat is leaving, maybe because of refrigeration, contact with a cold body, or an endothermic reaction of some kind. For that reason, points where are called heat sinks or more commonly, simply sinks.
If we return now the fluid understanding of a vector field, imagine putting a paddlewheel in a particular spot. The fluid might make the paddlewheel spin if we put in in along one axis, and might not if it goes in along another axis. The axis along which the wheel will spin fastest is the direction of , and the magnitude of tells us how fast the paddlewheel will spin.
So, if a vector field satisfies , it means it's not spinning around any axis, anywhere. It makes sense to call such a field irrotational.