Vector Calculus

# 42 Divergence and Curl

### Learning Objectives

• Determine divergence from the formula for a given vector field.
• Determine curl from the formula for a given vector field.
• Use the properties of curl and divergence to determine whether a vector field is conservative.

In this section, we examine two important operations on a vector field: divergence and curl. They are important to the field of calculus for several reasons, including the use of curl and divergence to develop some higher-dimensional versions of the Fundamental Theorem of Calculus. In addition, curl and divergence appear in mathematical descriptions of fluid mechanics, electromagnetism, and elasticity theory, which are important concepts in physics and engineering. We can also apply curl and divergence to other concepts we already explored. For example, under certain conditions, a vector field is conservative if and only if its curl is zero.

In addition to defining curl and divergence, we look at some physical interpretations of them, and show their relationship to conservative and source-free vector fields.

### Divergence

Divergence is an operation on a vector field that tells us how the field behaves toward or away from a point. Locally, the divergence of a vector field F in or at a particular point P is a measure of the “outflowing-ness” of the vector field at P. If F represents the velocity of a fluid, then the divergence of F at P measures the net rate of change with respect to time of the amount of fluid flowing away from P (the tendency of the fluid to flow “out of” P). In particular, if the amount of fluid flowing into P is the same as the amount flowing out, then the divergence at P is zero.

Definition

If is a vector field in and and all exist, then the divergence of F is defined by

Note the divergence of a vector field is not a vector field, but a scalar function. In terms of the gradient operator divergence can be written symbolically as the dot product

Note this is merely helpful notation, because the dot product of a vector of operators and a vector of functions is not meaningfully defined given our current definition of dot product.

If is a vector field in and and both exist, then the divergence of F is defined similarly as

To illustrate this point, consider the two vector fields in (Figure). At any particular point, the amount flowing in is the same as the amount flowing out, so at every point the “outflowing-ness” of the field is zero. Therefore, we expect the divergence of both fields to be zero, and this is indeed the case, as

(a) Vector field has zero divergence. (b) Vector field also has zero divergence.

By contrast, consider radial vector field in (Figure). At any given point, more fluid is flowing in than is flowing out, and therefore the “outgoingness” of the field is negative. We expect the divergence of this field to be negative, and this is indeed the case, as

This vector field has negative divergence.

To get a global sense of what divergence is telling us, suppose that a vector field in represents the velocity of a fluid. Imagine taking an elastic circle (a circle with a shape that can be changed by the vector field) and dropping it into a fluid. If the circle maintains its exact area as it flows through the fluid, then the divergence is zero. This would occur for both vector fields in (Figure). On the other hand, if the circle’s shape is distorted so that its area shrinks or expands, then the divergence is not zero. Imagine dropping such an elastic circle into the radial vector field in (Figure) so that the center of the circle lands at point (3, 3). The circle would flow toward the origin, and as it did so the front of the circle would travel more slowly than the back, causing the circle to “scrunch” and lose area. This is how you can see a negative divergence.

Calculating Divergence at a Point

If then find the divergence of F at

The divergence of F is

Therefore, the divergence at is If F represents the velocity of a fluid, then more fluid is flowing out than flowing in at point

Find for

Hint

One application for divergence occurs in physics, when working with magnetic fields. A magnetic field is a vector field that models the influence of electric currents and magnetic materials. Physicists use divergence in Gauss’s law for magnetism, which states that if B is a magnetic field, then in other words, the divergence of a magnetic field is zero.

Determining Whether a Field Is Magnetic

Is it possible for to be a magnetic field?

If F were magnetic, then its divergence would be zero. The divergence of F is

and therefore F cannot model a magnetic field ((Figure)).

The divergence of vector field is one, so it cannot model a magnetic field.

Another application for divergence is detecting whether a field is source free. Recall that a source-free field is a vector field that has a stream function; equivalently, a source-free field is a field with a flux that is zero along any closed curve. The next two theorems say that, under certain conditions, source-free vector fields are precisely the vector fields with zero divergence.

Divergence of a Source-Free Vector Field

If is a source-free continuous vector field with differentiable component functions, then

#### Proof

Since F is source free, there is a function with and Therefore, and by Clairaut’s theorem.

The converse of (Figure) is true on simply connected regions, but the proof is too technical to include here. Thus, we have the following theorem, which can test whether a vector field in is source free.

Divergence Test for Source-Free Vector Fields

Let be a continuous vector field with differentiable component functions with a domain that is simply connected. Then, if and only if F is source free.

Determining Whether a Field Is Source Free

Is field source free?

Note the domain of F is which is simply connected. Furthermore, F is continuous with differentiable component functions. Therefore, we can use (Figure) to analyze F. The divergence of F is

Therefore, F is source free by (Figure).

Let be a rotational field where a and b are positive constants. Is F source free?

Yes

Hint

Calculate the divergence.

Recall that the flux form of Green’s theorem says that

where C is a simple closed curve and D is the region enclosed by C. Since Green’s theorem is sometimes written as

Therefore, Green’s theorem can be written in terms of divergence. If we think of divergence as a derivative of sorts, then Green’s theorem says the “derivative” of F on a region can be translated into a line integral of F along the boundary of the region. This is analogous to the Fundamental Theorem of Calculus, in which the derivative of a function on a line segment can be translated into a statement about on the boundary of Using divergence, we can see that Green’s theorem is a higher-dimensional analog of the Fundamental Theorem of Calculus.

We can use all of what we have learned in the application of divergence. Let v be a vector field modeling the velocity of a fluid. Since the divergence of v at point P measures the “outflowing-ness” of the fluid at P, implies that more fluid is flowing out of P than flowing in. Similarly, implies the more fluid is flowing in to P than is flowing out, and implies the same amount of fluid is flowing in as flowing out.

Determining Flow of a Fluid

Suppose models the flow of a fluid. Is more fluid flowing into point than flowing out?

To determine whether more fluid is flowing into than is flowing out, we calculate the divergence of v at

To find the divergence at substitute the point into the divergence: Since the divergence of v at is negative, more fluid is flowing in than flowing out ((Figure)).

Vector field has negative divergence at

For vector field find all points P such that the amount of fluid flowing in to P equals the amount of fluid flowing out of P.

All points on line

Hint

Find where the divergence is zero.

### Curl

The second operation on a vector field that we examine is the curl, which measures the extent of rotation of the field about a point. Suppose that F represents the velocity field of a fluid. Then, the curl of F at point P is a vector that measures the tendency of particles near P to rotate about the axis that points in the direction of this vector. The magnitude of the curl vector at P measures how quickly the particles rotate around this axis. In other words, the curl at a point is a measure of the vector field’s “spin” at that point. Visually, imagine placing a paddlewheel into a fluid at P, with the axis of the paddlewheel aligned with the curl vector ((Figure)). The curl measures the tendency of the paddlewheel to rotate.

To visualize curl at a point, imagine placing a small paddlewheel into the vector field at a point.

Consider the vector fields in (Figure). In part (a), the vector field is constant and there is no spin at any point. Therefore, we expect the curl of the field to be zero, and this is indeed the case. Part (b) shows a rotational field, so the field has spin. In particular, if you place a paddlewheel into a field at any point so that the axis of the wheel is perpendicular to a plane, the wheel rotates counterclockwise. Therefore, we expect the curl of the field to be nonzero, and this is indeed the case (the curl is

To see what curl is measuring globally, imagine dropping a leaf into the fluid. As the leaf moves along with the fluid flow, the curl measures the tendency of the leaf to rotate. If the curl is zero, then the leaf doesn’t rotate as it moves through the fluid.

Definition

If is a vector field in and and all exist, then the curl of F is defined by

Note that the curl of a vector field is a vector field, in contrast to divergence.

The definition of curl can be difficult to remember. To help with remembering, we use the notation to stand for a “determinant” that gives the curl formula:

The determinant of this matrix is

Thus, this matrix is a way to help remember the formula for curl. Keep in mind, though, that the word determinant is used very loosely. A determinant is not really defined on a matrix with entries that are three vectors, three operators, and three functions.

If is a vector field in then the curl of F, by definition, is

Finding the Curl of a Three-Dimensional Vector Field

Find the curl of

The curl is

Find the curl of at point

Hint

Find the determinant of matrix

Finding the Curl of a Two-Dimensional Vector Field

Find the curl of

Notice that this vector field consists of vectors that are all parallel. In fact, each vector in the field is parallel to the x-axis. This fact might lead us to the conclusion that the field has no spin and that the curl is zero. To test this theory, note that

Therefore, this vector field does have spin. To see why, imagine placing a paddlewheel at any point in the first quadrant ((Figure)). The larger magnitudes of the vectors at the top of the wheel cause the wheel to rotate. The wheel rotates in the clockwise (negative) direction, causing the coefficient of the curl to be negative.

Vector field consists of vectors that are all parallel.

Note that if is a vector field in a plane, then Therefore, the circulation form of Green’s theorem is sometimes written as

where C is a simple closed curve and D is the region enclosed by C. Therefore, the circulation form of Green’s theorem can be written in terms of the curl. If we think of curl as a derivative of sorts, then Green’s theorem says that the “derivative” of F on a region can be translated into a line integral of F along the boundary of the region. This is analogous to the Fundamental Theorem of Calculus, in which the derivative of a function on line segment can be translated into a statement about on the boundary of Using curl, we can see the circulation form of Green’s theorem is a higher-dimensional analog of the Fundamental Theorem of Calculus.

We can now use what we have learned about curl to show that gravitational fields have no “spin.” Suppose there is an object at the origin with mass at the origin and an object with mass Recall that the gravitational force that object 1 exerts on object 2 is given by field

Determining the Spin of a Gravitational Field

Show that a gravitational field has no spin.

To show that F has no spin, we calculate its curl. Let and Then,

Since the curl of the gravitational field is zero, the field has no spin.

Field models the flow of a fluid. Show that if you drop a leaf into this fluid, as the leaf moves over time, the leaf does not rotate.

Hint

Calculate the curl.

### Using Divergence and Curl

Now that we understand the basic concepts of divergence and curl, we can discuss their properties and establish relationships between them and conservative vector fields.

If F is a vector field in then the curl of F is also a vector field in Therefore, we can take the divergence of a curl. The next theorem says that the result is always zero. This result is useful because it gives us a way to show that some vector fields are not the curl of any other field. To give this result a physical interpretation, recall that divergence of a velocity field v at point P measures the tendency of the corresponding fluid to flow out of P. Since the net rate of flow in vector field curl(v) at any point is zero. Taking the curl of vector field F eliminates whatever divergence was present in F.

Divergence of the Curl

Let be a vector field in such that the component functions all have continuous second-order partial derivatives. Then,

#### Proof

By the definitions of divergence and curl, and by Clairaut’s theorem,

Showing That a Vector Field Is Not the Curl of Another

Show that is not the curl of another vector field. That is, show that there is no other vector G with

Notice that the domain of F is all of and the second-order partials of F are all continuous. Therefore, we can apply the previous theorem to F.

The divergence of F is If F were the curl of vector field G, then But, the divergence of F is not zero, and therefore F is not the curl of any other vector field.

Is it possible for to be the curl of a vector field?

No

Hint

Find the divergence of G.

With the next two theorems, we show that if F is a conservative vector field then its curl is zero, and if the domain of F is simply connected then the converse is also true. This gives us another way to test whether a vector field is conservative.

Curl of a Conservative Vector Field

If is conservative, then

#### Proof

Since conservative vector fields satisfy the cross-partials property, all the cross-partials of F are equal. Therefore,

The same theorem is true for vector fields in a plane.

Since a conservative vector field is the gradient of a scalar function, the previous theorem says that for any scalar function In terms of our curl notation, This equation makes sense because the cross product of a vector with itself is always the zero vector. Sometimes equation is simplified as

Curl Test for a Conservative Field

Let be a vector field in space on a simply connected domain. If then F is conservative.

#### Proof

Since we have that and Therefore, F satisfies the cross-partials property on a simply connected domain, and (Figure) implies that F is conservative.

The same theorem is also true in a plane. Therefore, if F is a vector field in a plane or in space and the domain is simply connected, then F is conservative if and only if

Testing Whether a Vector Field Is Conservative

Use the curl to determine whether is conservative.

Note that the domain of F is all of which is simply connected ((Figure)). Therefore, we can test whether F is conservative by calculating its curl.

The curl of vector field is zero.

The curl of F is

Thus, F is conservative.

We have seen that the curl of a gradient is zero. What is the divergence of a gradient? If is a function of two variables, then We abbreviate this “double dot product” as This operator is called the Laplace operator, and in this notation Laplace’s equation becomes Therefore, a harmonic function is a function that becomes zero after taking the divergence of a gradient.

Similarly, if is a function of three variables then

Using this notation we get Laplace’s equation for harmonic functions of three variables:

Harmonic functions arise in many applications. For example, the potential function of an electrostatic field in a region of space that has no static charge is harmonic.

Analyzing a Function

Is it possible for to be the potential function of an electrostatic field that is located in a region of free of static charge?

If were such a potential function, then would be harmonic. Note that and and so Therefore, is not harmonic and cannot represent an electrostatic potential.

Is it possible for function to be the potential function of an electrostatic field located in a region of free of static charge?

Yes

Hint

Determine whether the function is harmonic.

### Key Concepts

• The divergence of a vector field is a scalar function. Divergence measures the “outflowing-ness” of a vector field. If v is the velocity field of a fluid, then the divergence of v at a point is the outflow of the fluid less the inflow at the point.
• The curl of a vector field is a vector field. The curl of a vector field at point P measures the tendency of particles at P to rotate about the axis that points in the direction of the curl at P.
• A vector field with a simply connected domain is conservative if and only if its curl is zero.

### Key Equations

• Curl
• Divergence
• Divergence of curl is zero
• Curl of a gradient is the zero vector

For the following exercises, determine whether the statement is true or false.

If the coordinate functions of have continuous second partial derivatives, then equals zero.

False

All vector fields of the form are conservative.

If then F is conservative.

True

If F is a constant vector field then

If F is a constant vector field then

True

For the following exercises, find the curl of F.

for constants a, b, c

For the following exercises, find the divergence of F.

for constants a, b, c

For the following exercises, determine whether each of the given scalar functions is harmonic.

Harmonic

If and find

If and find

Find given that where

Find the divergence of F for vector field

Find the divergence of F for vector field

For the following exercises, use and

Find the

Find the

Find the

Let where F is defined on Find

For the following exercises, use a computer algebra system to find the curl of the given vector fields.

[T]

[T]

For the following exercises, find the divergence of F at the given point.

at

at

at

at (1, 2, 1)

at (0, 0, 3)

For the following exercises, find the curl of F at the given point.

at

at

at (3, 2, 0)

at (1, 2, 1)

at (0, 0, 3)

Let For what value of a is F conservative?

Given vector field on domain is F conservative?

Given vector field on domain is F conservative?

F is conservative.

Find the work done by force field in moving an object from P(0, 1) to Q(2, 0). Is the force field conservative?

Compute divergence

Compute curl

For the following exercises, consider a rigid body that is rotating about the x-axis counterclockwise with constant angular velocity If P is a point in the body located at the velocity at P is given by vector field

Express F in terms of i, j, and k vectors.

Find

Find

In the following exercises, suppose that and

Does necessarily have zero divergence?

Does necessarily have zero divergence?

does not have zero divergence.

In the following exercises, suppose a solid object in has a temperature distribution given by The heat flow vector field in the object is where is a property of the material. The heat flow vector points in the direction opposite to that of the gradient, which is the direction of greatest temperature decrease. The divergence of the heat flow vector is

Compute the heat flow vector field.

Compute the divergence.

[T] Consider rotational velocity field If a paddlewheel is placed in plane with its axis normal to this plane, using a computer algebra system, calculate how fast the paddlewheel spins in revolutions per unit time.

### Glossary

curl
the curl of vector field denoted is the “determinant” of the matrix and is given by the expression it measures the tendency of particles at a point to rotate about the axis that points in the direction of the curl at the point
divergence
the divergence of a vector field denoted is it measures the “outflowing-ness” of a vector field