6.5 Divergence and Curl

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 ℝ 2 ℝ 2 or ℝ 3 ℝ 3 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 F = 〈 P , Q , R 〉 F = 〈 P , Q , R 〉 is a vector field in ℝ 3 ℝ 3 and P x , Q y , P x , Q y , and R z R z all exist, then the divergence of F is defined by

div F = P x + Q y + R z = ∂ P ∂ x + ∂ Q ∂ y + ∂ R ∂ z . div F = P x + Q y + R z = ∂ P ∂ x + ∂ Q ∂ y + ∂ R ∂ z .

Note the divergence of a vector field is not a vector field, but a scalar function. In terms of the gradient operator ∇ = 〈 ∂ ∂ x , ∂ ∂ y , ∂ ∂ z 〉 , ∇ = 〈 ∂ ∂ x , ∂ ∂ y , ∂ ∂ z 〉 , divergence can be written symbolically as the dot product

div F = ∇ · F . div F = ∇ · F .

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 F = 〈 P , Q 〉 F = 〈 P , Q 〉 is a vector field in ℝ 2 , ℝ 2 , and P x P x and Q y Q y both exist, then the divergence of F is defined similarly as

div F = P x + Q y = ∂ P ∂ x + ∂ Q ∂ y = ∇ · F . div F = P x + Q y = ∂ P ∂ x + ∂ Q ∂ y = ∇ · F .

To illustrate this point, consider the two vector fields in Figure 6.50. 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

div ( 〈 1 , 2 〉 ) = ∂ ∂ x ( 1 ) + ∂ ∂ y ( 2 ) = 0 and div ( 〈 − y , x 〉 ) = ∂ ∂ x ( − y ) + ∂ ∂ y ( x ) = 0 . div ( 〈 1 , 2 〉 ) = ∂ ∂ x ( 1 ) + ∂ ∂ y ( 2 ) = 0 and div ( 〈 − y , x 〉 ) = ∂ ∂ x ( − y ) + ∂ ∂ y ( x ) = 0 .

Two images of vector fields A and B in two dimensions. Vector field A has arrows pointing up and to the right. They do not change in size or direction. It has zero divergence. Vector field B has arrows surrounding the origin in a counterclockwise direction. The arrows are larger the closer they are to the origin. It also has zero divergence.

Figure 6.50 (a) Vector field 〈 1 , 2 〉 〈 1 , 2 〉 has zero divergence. (b) Vector field 〈 − y , x 〉 〈 − y , x 〉 also has zero divergence.

By contrast, consider radial vector field R ( x , y ) = 〈 − x , − y 〉 R ( x , y ) = 〈 − x , − y 〉 in Figure 6.51. 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 div ( R ) = ∂ ∂ x ( − x ) + ∂ ∂ y ( − y ) = −2 . div ( R ) = ∂ ∂ x ( − x ) + ∂ ∂ y ( − y ) = −2 .

A vector field in two dimensions with negative divergence. The arrows point in towards the origin in a radial pattern. The closer the arrows are to the origin, the larger they are.

Figure 6.51 This vector field has negative divergence.

To get a global sense of what divergence is telling us, suppose that a vector field in ℝ 2 ℝ 2 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 6.50. 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 6.51 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.

Example 6.48

Calculating Divergence at a Point

If F ( x , y , z ) = e x i + y z j − y z 2 k , F ( x , y , z ) = e x i + y z j − y z 2 k , then find the divergence of F at ( 0 , 2 , −1 ) . ( 0 , 2 , −1 ) .

Solution

The divergence of F is

∂ ∂ x ( e x ) + ∂ ∂ y ( y z ) − ∂ ∂ z ( y z 2 ) = e x + z − 2 y z . ∂ ∂ x ( e x ) + ∂ ∂ y ( y z ) − ∂ ∂ z ( y z 2 ) = e x + z − 2 y z .

Therefore, the divergence at ( 0 , 2 , −1 ) ( 0 , 2 , −1 ) is e 0 − 1 + 4 = 4 . e 0 − 1 + 4 = 4 . If F represents the velocity of a fluid, then more fluid is flowing out than flowing in at point ( 0 , 2 , −1 ) . ( 0 , 2 , −1 ) .

Checkpoint 6.40

Find div F div F for F ( x , y , z ) = 〈 x y , 5 − z 2 y , x 2 + y 2 〉 . F ( x , y , z ) = 〈 x y , 5 − z 2 y , x 2 + y 2 〉 .

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 ∇ · B = 0 ; ∇ · B = 0 ; in other words, the divergence of a magnetic field is zero.

Example 6.49

Determining Whether a Field Is Magnetic

Is it possible for F ( x , y ) = 〈 x 2 y , y − x y 2 〉 F ( x , y ) = 〈 x 2 y , y − x y 2 〉 to be a magnetic field?

Solution

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

∂ ∂ x ( x 2 y ) + ∂ ∂ y ( y − x y 2 ) = 2 x y + 1 − 2 x y = 1 ∂ ∂ x ( x 2 y ) + ∂ ∂ y ( y − x y 2 ) = 2 x y + 1 − 2 x y = 1

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

A vector field in two dimensions with divergence equal to 1. The arrows are quite flat near the x axis and vertical near the y axis. They seem to asymptotically approach the axes in quadrants 2 and 4, pointing up and to the right in quadrant 2 and down and to the left in quadrant 4. In quadrant 1, they start by pointing up and to the right close to the y axis, but they soon shift to pointing down and to the right. In quadrant 3, they start by pointing down and to the left close to the y axis, bu they soon shift to pointing up and to the left. The closer the arrows are to the origin, the shorter they are.

Figure 6.52 The divergence of vector field F ( x , y ) = 〈 x 2 y , y − x y 2 〉 F ( x , y ) = 〈 x 2 y , y − x y 2 〉 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.

Theorem 6.14

Divergence of a Source-Free Vector Field

If F = 〈 P , Q 〉 F = 〈 P , Q 〉 is a source-free continuous vector field with differentiable component functions, then div F = 0 . div F = 0 .

Proof

Since F is source free, there is a function g ( x , y ) g ( x , y ) with g y = P g y = P and − g x = Q . − g x = Q . Therefore, F = 〈 g y , − g x 〉 F = 〈 g y , − g x 〉 and div F = g y x − g x y = 0 div F = g y x − g x y = 0 by Clairaut’s theorem.

The converse of Divergence of a Source-Free Vector Field 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 ℝ 2 ℝ 2 is source free.

Theorem 6.15

Divergence Test for Source-Free Vector Fields

Let F = 〈 P , Q 〉 F = 〈 P , Q 〉 be a continuous vector field with differentiable component functions with a domain that is simply connected. Then, div F = 0 div F = 0 if and only if F is source free.

Example 6.50

Determining Whether a Field Is Source Free

Is field F ( x , y ) = 〈 x 2 y , 5 − x y 2 〉 F ( x , y ) = 〈 x 2 y , 5 − x y 2 〉 source free?

Solution

Note the domain of F is ℝ 2 , ℝ 2 , which is simply connected. Furthermore, F is continuous with differentiable component functions. Therefore, we can use Divergence Test for Source-Free Vector Fields to analyze F. The divergence of F is

∂ ∂ x ( x 2 y ) + ∂ ∂ y ( 5 − x y 2 ) = 2 x y − 2 x y = 0 . ∂ ∂ x ( x 2 y ) + ∂ ∂ y ( 5 − x y 2 ) = 2 x y − 2 x y = 0 .

Therefore, F is source free by Divergence Test for Source-Free Vector Fields.

Checkpoint 6.41

Let F ( x , y ) = 〈 − a y , b x 〉 F ( x , y ) = 〈 − a y , b x 〉 be a rotational field where a and b are positive constants. Is F source free?

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

∫ C F · N d s = ∬ D P x + Q y d A , ∫ C F · N d s = ∬ D P x + Q y d A ,

where C is a simple closed curve and D is the region enclosed by C. Since P x + Q y = div F , P x + Q y = div F , Green’s theorem is sometimes written as

∫ C F · N d s = ∬ D div F d A . ∫ C F · N d s = ∬ D div F d A .

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 f f on a line segment [ a , b ] [ a , b ] can be translated into a statement about f f on the boundary of [ a , b ] . [ a , b ] . 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, div v ( P ) > 0 div v ( P ) > 0 implies that more fluid is flowing out of P than flowing in. Similarly, div v ( P ) < 0 div v ( P ) < 0 implies the more fluid is flowing in to P than is flowing out, and div v ( P ) = 0 div v ( P ) = 0 implies the same amount of fluid is flowing in as flowing out.

Example 6.51

Determining Flow of a Fluid

Suppose v ( x , y ) = 〈 − x y , y 〉 , y > 0 v ( x , y ) = 〈 − x y , y 〉 , y > 0 models the flow of a fluid. Is more fluid flowing into point ( 1 , 4 ) ( 1 , 4 ) than flowing out?

Solution

To determine whether more fluid is flowing into ( 1 , 4 ) ( 1 , 4 ) than is flowing out, we calculate the divergence of v at ( 1 , 4 ) : ( 1 , 4 ) :

div ( v ) = ∂ ∂ x ( − x y ) + ∂ ∂ y ( y ) = − y + 1 . div ( v ) = ∂ ∂ x ( − x y ) + ∂ ∂ y ( y ) = − y + 1 .

To find the divergence at ( 1 , 4 ) , ( 1 , 4 ) , substitute the point into the divergence: −4 + 1 = −3 . −4 + 1 = −3 . Since the divergence of v at ( 1 , 4 ) ( 1 , 4 ) is negative, more fluid is flowing in than flowing out (Figure 6.53).

A vector field in two dimensions with negative divergence at (1,4). The arrows are very flat but become more vertical closer to the y axis. Above the x axis, the arrows point up and towards the y axis on either side of it. Below the x axis, the arrows point down and away from the y axis on either side of it.

Figure 6.53 Vector field v ( x , y ) = 〈 − x y , y 〉 v ( x , y ) = 〈 − x y , y 〉 has negative divergence at ( 1 , 4 ) . ( 1 , 4 ) .

Checkpoint 6.42

For vector field v ( x , y ) = 〈 − x y , y 〉 , y > 0 , v ( x , y ) = 〈 − x y , y 〉 , y > 0 , find all points P such that the amount of fluid flowing in to P equals the amount of fluid flowing out of P.

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 6.54). The curl measures the tendency of the paddlewheel to rotate.

A diagram of a small paddlewheel in water. Arrows are drawn surrounding the center in a counterclockwise circle. At the center, the height is labeled n.

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

Consider the vector fields in Figure 6.50. 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 2 k ) . 2 k ) .

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 F = 〈 P , Q , R 〉 F = 〈 P , Q , R 〉 is a vector field in ℝ 3 , ℝ 3 , and P x , P y , P z , Q y , Q x , Q z , R z , R x , and R y P x , P y , P z , Q y , Q x , Q z , R z , R x , and R y all exist, then the curl of F is defined by

curl F = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = ( ∂ R ∂ y − ∂ Q ∂ z ) i + ( ∂ P ∂ z − ∂ R ∂ x ) j + ( ∂ Q ∂ x − ∂ P ∂ y ) k . curl F = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = ( ∂ R ∂ y − ∂ Q ∂ z ) i + ( ∂ P ∂ z − ∂ R ∂ x ) j + ( ∂ Q ∂ x − ∂ P ∂ y ) k .

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 ∇ × F ∇ × F to stand for a “determinant” that gives the curl formula:

| i j k ∂ ∂ x ∂ ∂ y ∂ ∂ z P Q R | . | i j k ∂ ∂ x ∂ ∂ y ∂ ∂ z P Q R | .

The determinant of this matrix is

( R y − Q z ) i − ( R x − P z ) j + ( Q x − P y ) k = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = curl F . ( R y − Q z ) i − ( R x − P z ) j + ( Q x − P y ) k = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = curl F .

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 F = 〈 P , Q 〉 F = 〈 P , Q 〉 is a vector field in ℝ 2 , ℝ 2 , then the curl of F, by definition, is

curl F = ( Q x − P y ) k = ( ∂ Q ∂ x − ∂ P ∂ y ) k . curl F = ( Q x − P y ) k = ( ∂ Q ∂ x − ∂ P ∂ y ) k .

Example 6.52

Finding the Curl of a Three-Dimensional Vector Field

Find the curl of F ( P , Q , R ) = 〈 x 2 z , e y + x z , x y z 〉 . F ( P , Q , R ) = 〈 x 2 z , e y + x z , x y z 〉 .

Solution

curl F = ∇ × F = | i j k ∂ / ∂ x ∂ / ∂ y ∂ / ∂ z P Q R | = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = ( x z − x ) i + ( x 2 − y z ) j + z k . curl F = ∇ × F = | i j k ∂ / ∂ x ∂ / ∂ y ∂ / ∂ z P Q R | = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = ( x z − x ) i + ( x 2 − y z ) j + z k .

Checkpoint 6.43

Find the curl of F = 〈 sin x cos z , sin y sin z , cos x cos y 〉 F = 〈 sin x cos z , sin y sin z , cos x cos y 〉 at point ( 0 , π 2 , π 2 ) . ( 0 , π 2 , π 2 ) .

Example 6.53

Finding the Curl of a Two-Dimensional Vector Field

Find the curl of F = 〈 P , Q 〉 = 〈 y , 0 〉 . F = 〈 P , Q 〉 = 〈 y , 0 〉 .

Solution

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

curl F = ( Q x − P y ) k = − k ≠ 0 . curl F = ( Q x − P y ) k = − k ≠ 0 .

Therefore, this vector field does have spin. To see why, imagine placing a paddlewheel at any point in the first quadrant (Figure 6.55). 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.

Two vector field diagrams consisting of vectors that are all parallel. The closer they are to the x axis, the shorter the arrows are. Above the x axis, the arrows point to the right, and below the x axis, the arrows point to the left.

Figure 6.55 Vector field F ( x , y ) = 〈 y , 0 〉 F ( x , y ) = 〈 y , 0 〉 consists of vectors that are all parallel.

Note that if F = 〈 P , Q 〉 F = 〈 P , Q 〉 is a vector field in a plane, then curl F · k = ( Q x − P y ) k · k = Q x − P y . curl F · k = ( Q x − P y ) k · k = Q x − P y . Therefore, the circulation form of Green’s theorem is sometimes written as

∫ C F · d r = ∬ D curl F · k d A , ∫ C F · d r = ∬ D curl F · k d A ,

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 f f on line segment [ a , b ] [ a , b ] can be translated into a statement about f f on the boundary of [ a , b ] . [ a , b ] . 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 m 1 m 1 at the origin and an object with mass m 2 . m 2 . Recall that the gravitational force that object 1 exerts on object 2 is given by field

F ( x , y , z ) = − G m 1 m 2 〈 x ( x 2 + y 2 + z 2 ) 3 / 2 , y ( x 2 + y 2 + z 2 ) 3 / 2 , z ( x 2 + y 2 + z 2 ) 3 / 2 〉 . F ( x , y , z ) = − G m 1 m 2 〈 x ( x 2 + y 2 + z 2 ) 3 / 2 , y ( x 2 + y 2 + z 2 ) 3 / 2 , z ( x 2 + y 2 + z 2 ) 3 / 2 〉 .

Example 6.54

Determining the Spin of a Gravitational Field

Show that a gravitational field has no spin.

Solution

To show that F has no spin, we calculate its curl. Let P ( x , y , z ) = x ( x 2 + y 2 + z 2 ) 3 / 2 , P ( x , y , z ) = x ( x 2 + y 2 + z 2 ) 3 / 2 , Q ( x , y , z ) = y ( x 2 + y 2 + z 2 ) 3 / 2 , Q ( x , y , z ) = y ( x 2 + y 2 + z 2 ) 3 / 2 , and R ( x , y , z ) = z ( x 2 + y 2 + z 2 ) 3 / 2 . R ( x , y , z ) = z ( x 2 + y 2 + z 2 ) 3 / 2 . Then,

curl F = − G m 1 m 2 [ ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k ] = − G m 1 m 2 [ ( −3 y z ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 y z ( x 2 + y 2 + z 2 ) 5 / 2 ) ) i + ( −3 x z ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 x z ( x 2 + y 2 + z 2 ) 5 / 2 ) ) j + ( −3 x y ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 x y ( x 2 + y 2 + z 2 ) 5 / 2 ) ) k ] = 0. curl F = − G m 1 m 2 [ ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k ] = − G m 1 m 2 [ ( −3 y z ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 y z ( x 2 + y 2 + z 2 ) 5 / 2 ) ) i + ( −3 x z ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 x z ( x 2 + y 2 + z 2 ) 5 / 2 ) ) j + ( −3 x y ( x 2 + y 2 + z 2 ) 5 / 2 − ( −3 x y ( x 2 + y 2 + z 2 ) 5 / 2 ) ) k ] = 0.

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

Checkpoint 6.44

Field v ( x , y ) = 〈 − y x 2 + y 2 , x x 2 + y 2 〉 v ( x , y ) = 〈 − y x 2 + y 2 , x x 2 + y 2 〉 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.

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 ℝ 3 , ℝ 3 , then the curl of F is also a vector field in ℝ 3 . ℝ 3 . 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 div curl ( v ) = 0 , div curl ( v ) = 0 , 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.

Theorem 6.16

Divergence of the Curl

Let F = 〈 P , Q , R 〉 F = 〈 P , Q , R 〉 be a vector field in ℝ 3 ℝ 3 such that the component functions all have continuous second-order partial derivatives. Then, div curl ( F ) = ∇ · ( ∇ × F ) = 0 . div curl ( F ) = ∇ · ( ∇ × F ) = 0 .

Proof

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

div curl F = div [ ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k ] = R y x − Q x z + P y z − R y x + Q z x − P z y = 0. div curl F = div [ ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k ] = R y x − Q x z + P y z − R y x + Q z x − P z y = 0.

Example 6.55

Showing That a Vector Field Is Not the Curl of Another

Show that F ( x , y , z ) = e x i + y z j + x z 2 k F ( x , y , z ) = e x i + y z j + x z 2 k is not the curl of another vector field. That is, show that there is no other vector G with curl G = F . curl G = F .

Solution

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

The divergence of F is e x + z + 2 x z . e x + z + 2 x z . If F were the curl of vector field G, then div F = div curl G = 0 . div F = div curl G = 0 . But, the divergence of F is not zero, and therefore F is not the curl of any other vector field.

Checkpoint 6.45

Is it possible for G ( x , y , z ) = 〈 sin x , cos y , sin ( x y z ) 〉 G ( x , y , z ) = 〈 sin x , cos y , sin ( x y z ) 〉 to be the curl of a vector field?

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.

Theorem 6.17

Curl of a Conservative Vector Field

If F = 〈 P , Q , R 〉 F = 〈 P , Q , R 〉 is conservative, then curl F = 0 . curl F = 0 .

Proof

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

curl F = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = 0. curl F = ( R y − Q z ) i + ( P z − R x ) j + ( Q x − P y ) k = 0.

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 curl ( ∇ f ) = 0 curl ( ∇ f ) = 0 for any scalar function f . f . In terms of our curl notation, ∇ × ∇ ( f ) = 0 . ∇ × ∇ ( f ) = 0 . This equation makes sense because the cross product of a vector with itself is always the zero vector. Sometimes equation ∇ × ∇ ( f ) = 0 ∇ × ∇ ( f ) = 0 is simplified as ∇ × ∇ = 0 . ∇ × ∇ = 0 .

Theorem 6.18

Curl Test for a Conservative Field

Let F = 〈 P , Q , R 〉 F = 〈 P , Q , R 〉 be a vector field in space on a simply connected domain. If curl F = 0 , curl F = 0 , then F is conservative.

Proof

Since curl F = 0 , curl F = 0 , we have that R y = Q z , P z = R x , R y = Q z , P z = R x , and Q x = P y . Q x = P y . Therefore, F satisfies the cross-partials property on a simply connected domain, and Cross-Partial Property of Conservative Fields 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 curl F = 0 . curl F = 0 .

Example 6.56

Testing Whether a Vector Field Is Conservative

Use the curl to determine whether F ( x , y , z ) = 〈 y z , x z , x y 〉 F ( x , y , z ) = 〈 y z , x z , x y 〉 is conservative.

Solution

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

A diagram showing the curl of a vector field in two dimensions. The curl is zero. The arrows seem to be pointing up and over into the yz plane.

Figure 6.56 The curl of vector field F ( x , y , z ) = 〈 y z , x z , x y 〉 F ( x , y , z ) = 〈 y z , x z , x y 〉 is zero.

The curl of F is

( ∂ ∂ y x y − ∂ ∂ z x z ) i + ( ∂ ∂ y y z − ∂ ∂ z x y ) j + ( ∂ ∂ y x z − ∂ ∂ z y z ) k = ( x − x ) i + ( y − y ) j + ( z − z ) k = 0 . ( ∂ ∂ y x y − ∂ ∂ z x z ) i + ( ∂ ∂ y y z − ∂ ∂ z x y ) j + ( ∂ ∂ y x z − ∂ ∂ z y z ) k = ( x − x ) i + ( y − y ) j + ( z − z ) k = 0 .

Thus, F is conservative.

We have seen that the curl of a gradient is zero. What is the divergence of a gradient? If f f is a function of two variables, then div ( ∇ f ) = ∇ · ( ∇ f ) = f x x + f y y . div ( ∇ f ) = ∇ · ( ∇ f ) = f x x + f y y . We abbreviate this “double dot product” as ∇ 2 . ∇ 2 . This operator is called the Laplace operator , and in this notation Laplace’s equation becomes ∇ 2 f = 0 . ∇ 2 f = 0 . Therefore, a harmonic function is a function that becomes zero after taking the divergence of a gradient.

Similarly, if f f is a function of three variables then

div ( ∇ f ) = ∇ · ( ∇ f ) = f x x + f y y + f z z . div ( ∇ f ) = ∇ · ( ∇ f ) = f x x + f y y + f z z .

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

∇ 2 f = 0 . ∇ 2 f = 0 .

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.

Example 6.57

Analyzing a Function

Is it possible for f ( x , y ) = x 2 + x − y f ( x , y ) = x 2 + x − y to be the potential function of an electrostatic field that is located in a region of ℝ 2 ℝ 2 free of static charge?

Solution

If f f were such a potential function, then f f would be harmonic. Note that f x x = 2 f x x = 2 and f y y = 0 , f y y = 0 , and so f x x + f y y ≠ 0 . f x x + f y y ≠ 0 . Therefore, f f is not harmonic and f f cannot represent an electrostatic potential.

Checkpoint 6.46

Is it possible for function f ( x , y ) = x 2 − y 2 + x f ( x , y ) = x 2 − y 2 + x to be the potential function of an electrostatic field located in a region of ℝ 2 ℝ 2 free of static charge?

Section 6.5 Exercises

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

If the coordinate functions of F : ℝ 3 → ℝ 3 F : ℝ 3 → ℝ 3 have continuous second partial derivatives, then curl ( div ( F ) ) curl ( div ( F ) ) equals zero.

∇ · ( x i + y j + z k ) = 1 . ∇ · ( x i + y j + z k ) = 1 .

All vector fields of the form F ( x , y , z ) = f ( x ) i + g ( y ) j + h ( z ) k F ( x , y , z ) = f ( x ) i + g ( y ) j + h ( z ) k are conservative.

If curl F = 0 , curl F = 0 , then F is conservative.

If F is a constant vector field then div F = 0 . div F = 0 .

If F is a constant vector field then curl F = 0 . curl F = 0 .

For the following exercises, find the curl of F.

F ( x , y , z ) = x y 2 z 4 i + ( 2 x 2 y + z ) j + y 3 z 2 k F ( x , y , z ) = x y 2 z 4 i + ( 2 x 2 y + z ) j + y 3 z 2 k

F ( x , y , z ) = x 2 z i + y 2 x j + ( y + 2 z ) k F ( x , y , z ) = x 2 z i + y 2 x j + ( y + 2 z ) k

F ( x , y , z ) = 3 x y z 2 i + y 2 sin z j + x e 2 z k F ( x , y , z ) = 3 x y z 2 i + y 2 sin z j + x e 2 z k

F ( x , y , z ) = x 2 y z i + x y 2 z j + x y z 2 k F ( x , y , z ) = x 2 y z i + x y 2 z j + x y z 2 k

F ( x , y , z ) = ( x cos y ) i + x y 2 j F ( x , y , z ) = ( x cos y ) i + x y 2 j

F ( x , y , z ) = ( x − y ) i + ( y − z ) j + ( z − x ) k F ( x , y , z ) = ( x − y ) i + ( y − z ) j + ( z − x ) k

F ( x , y , z ) = x y z i + x 2 y 2 z 2 j + y 2 z 3 k F ( x , y , z ) = x y z i + x 2 y 2 z 2 j + y 2 z 3 k

F ( x , y , z ) = x y i + y z j + x z k F ( x , y , z ) = x y i + y z j + x z k

F ( x , y , z ) = x 2 i + y 2 j + z 2 k F ( x , y , z ) = x 2 i + y 2 j + z 2 k

F ( x , y , z ) = a x i + b y j + c k F ( x , y , z ) = a x i + b y j + c k for constants a, b, c

For the following exercises, find the divergence of F.

F ( x , y , z ) = x 2 z i + y 2 x j + ( y + 2 z ) k F ( x , y , z ) = x 2 z i + y 2 x j + ( y + 2 z ) k

F ( x , y , z ) = 3 x y z 2 i + y 2 sin z j + x e 2 z k F ( x , y , z ) = 3 x y z 2 i + y 2 sin z j + x e 2 z k

F ( x , y ) = ( sin x ) i + ( cos y ) j F ( x , y ) = ( sin x ) i + ( cos y ) j

F ( x , y , z ) = x 2 i + y 2 j + z 2 k F ( x , y , z ) = x 2 i + y 2 j + z 2 k

F ( x , y , z ) = ( x − y ) i + ( y − z ) j + ( z − x ) k F ( x , y , z ) = ( x − y ) i + ( y − z ) j + ( z − x ) k

F ( x , y ) = x x 2 + y 2 i + y x 2 + y 2 j F ( x , y ) = x x 2 + y 2 i + y x 2 + y 2 j

F ( x , y ) = x i − y j F ( x , y ) = x i − y j

F ( x , y , z ) = a x i + b y j + c k F ( x , y , z ) = a x i + b y j + c k for constants a, b, c

F ( x , y , z ) = x y z i + x 2 y 2 z 2 j + y 2 z 3 k F ( x , y , z ) = x y z i + x 2 y 2 z 2 j + y 2 z 3 k

F ( x , y , z ) = x y i + y z j + x z k F ( x , y , z ) = x y i + y z j + x z k

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

u ( x , y , z ) = e − x ( cos y − sin y ) u ( x , y , z ) = e − x ( cos y − sin y )

w ( x , y , z ) = ( x 2 + y 2 + z 2 ) − 1 / 2 w ( x , y , z ) = ( x 2 + y 2 + z 2 ) − 1 / 2

If F ( x , y , z ) = 2 i + 2 x j + 3 y k F ( x , y , z ) = 2 i + 2 x j + 3 y k and G ( x , y , z ) = x i − y j + z k , G ( x , y , z ) = x i − y j + z k , find curl ( F × G ) . curl ( F × G ) .

If F ( x , y , z ) = 2 i + 2 x j + 3 y k F ( x , y , z ) = 2 i + 2 x j + 3 y k and G ( x , y , z ) = x i − y j + z k , G ( x , y , z ) = x i − y j + z k , find div ( F × G ) . div ( F × G ) .

Find div F , div F , given that F = ∇ f , F = ∇ f , where f ( x , y , z ) = x y 3 z 2 . f ( x , y , z ) = x y 3 z 2 .

Find the divergence of F for vector field F ( x , y , z ) = ( y 2 + z 2 ) ( x + y ) i + ( z 2 + x 2 ) ( y + z ) j + ( x 2 + y 2 ) ( z + x ) k . F ( x , y , z ) = ( y 2 + z 2 ) ( x + y ) i + ( z 2 + x 2 ) ( y + z ) j + ( x 2 + y 2 ) ( z + x ) k .

Find the divergence of F for vector field F ( x , y , z ) = f 1 ( y , z ) i + f 2 ( x , z ) j + f 3 ( x , y ) k . F ( x , y , z ) = f 1 ( y , z ) i + f 2 ( x , z ) j + f 3 ( x , y ) k .

For the following exercises, use r = | r | r = | r | and r = ( x , y , z ) . r = ( x , y , z ) .

Find the curl r . curl r .