Divergence and Curl: Intermediate Mathematics
Divergence and Curl: Intermediate Mathematics
1. Introduction (Grad)
The vector differential operator ∇ , called “del” or “nabla”, is defined
in three dimensions to be:
∂ ∂ ∂
∇= i+ j+ k.
∂x ∂y ∂z
Note that these are partial derivatives!
If a scalar function, f (x, y, z), is defined and differentiable at all points
in some region, then f is a differentiable scalar field. The del vector
operator, ∇, may be applied to scalar fields and the result, ∇f , is a
vector field. It is called the gradient of f (see the package on Gradi-
ents and Directional Derivatives).
Quiz As a revision exercise, choose the gradient of the scalar field
f (x, y, z) = xy 2 − yz.
(a) i + (2x − z)j − yk , (b) 2xyi + 2xyj + yk ,
(c) y 2 i − zj − yk , (d) y 2 i + (2xy − z)j − yk .
Section 1: Introduction (Grad) 4
The vector operator ∇ may also be allowed to act upon vector fields.
Two different ways in which it may act, the subject of this package,
are extremely important in mathematics, science and engineering. We
will first briefly review some useful properties of vectors.
Quiz Select the scalar product of a = (1, 2, 3) and b = (3, −2, 1).
(a) 2 , (b) 10 , (c) 3x − 4y + 3z , (d) 4 .
Quiz Choose the vector product of a = (1, 2, 3) and b = (3, −2, 1).
(a) 8i − 8j − 8k , (b) −4i − 10j + 4k ,
(c) 8i + 8j − 8k , (d) 8i − 10j − 8k .
Section 2: Divergence (Div) 6
2. Divergence (Div)
If F (x, y) is a vector field, then its divergence is written as
div F (x, y) = ∇ · F (r) which in two dimensions is:
∂ ∂
∇ · F (x, y) = ( i+ j) · (F1 (x, y)i + F2 (x, y)j) ,
∂x ∂y
∂F1 ∂F2
= + .
∂x ∂y
It is obtained by taking the scalar product of the vector operator ∇
applied to the vector field F (x, y) . The divergence of a vector field is
a scalar field.
Example 2 The divergence of F (x, y) = 3x2 i + 2yj is:
∂F1 ∂F2
∇ · F (x, y) = +
∂x ∂y
∂ ∂
= (3x2 ) + (2y) = 6x + 2 .
∂x ∂y
Section 2: Divergence (Div) 7
x
Quiz Select the divergence of F (x, y) = i + (2x − 3y)j.
y
1 x 1 x
(a) − 3, (b) − + 2, (c) − 2 , (d) −2 .
y y2 y y
3. Curl
The curl of a vector field, F (x, y, z), in three dimensions may be writ-
ten curl F (x, y, z) = ∇ × F (x, y, z), i.e.:
xi + yj + zk
(c) F = p , (d) F = x2 i + 2zj − yk .
x2 + y 2 + z 2
(a) ∇f = x3 − 4y , (b) ∇ · F = i − x2 yj − zk ,
(c) ∇ × G = ∇ · F .
Section 4: Final Quiz 11
4. Final Quiz
Begin Quiz Choose the solutions from the options given.
1. Select the divergence of G(x, y, z) = 2x3 i − 3xyj + 3x2 zk?
(a) 9x2 − 3x , (b) 6x2 + 3x , (c) 0 , (d) 3x2 − 3x ,
2. Select the divergence of r/r3 , where r = |r| and r = xi + yj + zk.
−1 −2 3
(a) , (b) 0 , (c) , (d) .
r3 r3 r3
3. Choose the curl of F (x, y, z) = x2 i + xyzj − zk at the point
(2, 1, −2).
(a) 2i + 2k , (b) −2i − 2j , (c) 4i − 4j + 2k , (d) −2i − 2k .
4. Select the irrotational vector field (i.e., whose curl is zero)
(a) yzi − 2xzj + xyzk , (b) yzi + xzj + xzk ,
(c) zi − z 2 j + yzk , (d) yi + (x − z)j − yk .
Solutions to Exercises
Exercise 1(a) The vector field F = xi + yj has components
F1 = x , F2 = y ,
and its divergence is
∂F1 ∂F2
∇ · F (x, y) = +
∂x ∂y
∂ ∂
= x+ y = 1 + 1 = 2.
∂x ∂y
Exercise 1(d)
The vector field G = x2 i + 2zj − yk has components
G1 = x2 , G2 = 2z , G3 = −y
and its divergence is
∂G1 ∂G2 ∂G3
∇·G = + +
∂x ∂y ∂z
∂ 2 ∂ ∂
= x + (2z) + (−y) = 2x + 0 + 0 = 2x .
∂x ∂y ∂z
Exercise 1(e)
4y
Consider the vector field G = i + sin(y)j + 3k . Its components are
x2
4y
G1 = , G2 = sin(y) , G3 = 3
x2
and its divergence is
∂G1 ∂G2 ∂G3
∇·G = + +
∂x ∂y ∂z
∂ 4y ∂ ∂
= + sin(y) + 3
∂x x2 ∂y ∂z
∂ −2
= 4y × x + cos(y) = 4y × (−2)x−2−1 + cos(y)
∂x
8y
= −8yx−3 + cos(y) = − 3 + cos(y) .
x
Exercise 2(a)
The components of the vector field F = xi − yj + zk are
F1 = x , F2 = −y , F3 = z
and its curl is:
∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
∇×F = ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
∂(z) ∂(−y) ∂(z) ∂(x) ∂(−y) ∂(x)
= ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
= 0i − 0j + 0k = 0 .
Therefore the vector field F = xi − yj + zk is an irrotational vector
field.
Click on the green square to return
Solutions to Exercises 19
Exercise 2(b)
The components of the vector field F = y 3 i + xyj − zk are
F1 = y 3 , F2 = xy , F3 = −z
and its curl is:
∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
∇×F = ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
∂(−z) ∂(xy) ∂(−z) ∂(y 3 )
= ( − )i − ( − )j
∂y ∂z ∂x ∂z
∂(xy) ∂(y 3 )
+( − )k
∂x ∂y
= 0i − 0j + (y − 3y 2 )k = (y − 3y 2 )k ,
i.e., the curl vector is in the k direction.
Click on the green square to return
Solutions to Exercises 20
xi + yj + zk
Exercise 2(c) The components of the vector field F = p
x2 + y 2 + z 2
x y z p
are F1 = , F2 = , F3 = , where r = x + y + z 2 .2 2
r r r
The i component of ∇ × F , is:
∂F3 ∂F2 ∂ z ∂ y ∂ 1 ∂ 1
− = ( )− ( )=z ( )−y ( )
∂y ∂z ∂y r ∂z r ∂y r ∂z r
1
The derivative of with respect to y is
r
∂ 1 ∂ 1 1 2y y
( ) = 1 = (− ) × 3 = − 3 .
∂y r ∂y (x + y + z ) 2
2 2 2 2 2 2
(x + y + z ) 2 2 r
∂ 1 z
and similarly ( ) = − 3 . Thus the i component of the curl is
∂z r r
zy yz
(− 3 ) − (− 3 ) = 0 . It may be checked that the j and k components
r r
of the curl also vanish.
Click on the green square to return
Solutions to Exercises 21
Exercise 2(d)
The components of the vector field F = x2 i + 2zj − yk are
F1 = x2 , F2 = 2z , F3 = −y
and its curl is:
∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
∇×F = ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
∂(−y) ∂(2z) ∂(−y) ∂(x2 )
= ( − )i − ( − )j
∂y ∂z ∂x ∂z
∂(2z) ∂(x2 )
+( − )k
∂x ∂y
= (−1 − 2)i − (0 − 0)j + (0 − 0)k = −3i .
Exercise 3(a)
The formula
∇f = x3 − 4y
must be incorrect because the gradient of a scalar function is a vector
field by definition, while the expression on the right hand side of this
equation is a scalar.
Click on the green square to return
Solutions to Exercises 23
Exercise 3(b)
The equation
∇ · F = i − x2 yj − zk
must be incorrect, because the divergence of a vector field must be a
scalar by definition but the right hand side of the equation is a vector.
Click on the green square to return
Solutions to Exercises 24
Exercise 3(c)
The equation
∇×G=∇·F
must be incorrect because its left hand side is a vector field, a curl,
while its right hand side is a scalar function, a divergence.
Click on the green square to return
Solutions to Quizzes 25
Solutions to Quizzes
Solution to Quiz:
If the scalar field is f (x, y, z) = xy 2 − yz, its gradient is
∂ ∂
∇f = (xy 2 − yz)i + (xy 2 − yz)j
∂x ∂y
∂
+ (xy 2 − yz)k
∂z
2 ∂ ∂ 2 ∂
= y × (x)i + x × (y ) − z × (y) j
∂x ∂y ∂y
∂
+ (−y) × (z)k
∂z
= y 2 i + (2xy − z)j − yk .
End Quiz
Solutions to Quizzes 26
Solution to Quiz:
The scalar product of the two vectors
Solution to Quiz:
The vector product of two vectors
= (2 × 1 − 3 × (−2)) i − (1 × 1 − 3 × 3) j
+ (1 × (−2) − 2 × 3)k
= (2 + 6) i − (1 − 9) j + (−2 − 6)k
= 8i − (−8)j − 8k = 8i + 8j − 8k .
End Quiz
Solutions to Quizzes 28
Solution to Quiz:
The vector field
x
F (x, y) = i + (2x − 3y)j
y
x
has components F1 (x, y) = and F2 = 2x − 3y , so its divergence is
y
∂F1 ∂F2
∇ · F (x, y) = +
∂x ∂y
∂ x ∂
= ( )+ (2x − 3y)
∂x y ∂y
1
= − 3.
y
N.B. The divergence of a vector is a scalar. End Quiz
Solutions to Quizzes 29
Solution to Quiz:
The components of the vector field F (x, y, z) = xi + yj + zk are
F1 = x , F2 = y , F3 = z
and its curl is:
∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
∇×F = ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
∂(z) ∂(y) ∂(z) ∂(x) ∂(y) ∂(x)
= ( − )i − ( − )j + ( − )k
∂y ∂z ∂x ∂z ∂x ∂y
= 0i − 0j + 0k = 0 .
N.B. A vector field with vanishing curl is called an irrotational vector
field. End Quiz