Module IV
Module IV
Narla
Vector Calculus
Vector Differential Calculus: Gradient, Divergence, and Curl
1
Module IV: Vector Calculus Prof. V. K. Narla
Solution.
1 2 2 2 x y z
f = ln(x + y + z )
2
⇒ ∇f = , , ,
x2 + y 2 + z 2 x2 + y 2 + z 2 x2 + y 2 + z 2
Solution.
2x 2y z
∇g = − ,− 2 ,e ,
x2 + y 2 x + y2
valid where x2 + y 2 > 0 (i.e., off the z–axis). □
where s 2 2 2
′ dg dh dk
∥r (t)∥ = + + .
dt dt dt
2
Module IV: Vector Calculus Prof. V. K. Narla
Then √ √
r′ (t) = ⟨1, 1, 1⟩, ∥r′ (t)∥ = 12 + 12 + 12 = 3,
√
so ds = ∥r′ (t)∥ dt = 3 dt.
Along the curve, x = t, y = t, z = t, hence
Therefore,
1 √ √ 1 √
Z Z
f (x, y, z) ds = 2t − 3t2 3 dt = 3 t2 − t3 0 = 3(1 − 1) = 0.
C 0
Figure 1: Path from the origin to (1, 1, 1) formed by two line segments C1 and C2 .
3
Module IV: Vector Calculus Prof. V. K. Narla
4
Module IV: Vector Calculus Prof. V. K. Narla
∇f = 2x i + 2y j + 2z k.
Thus, the gradient field points radially outward from the origin, and its magnitude increases
linearly with distance. The gradient ∇f is a normal vector to the surface.
Example 2.5 (Temperature Gradient Field). ∗∗∗
Supposethatamaterialisheated, andthattheresultingtemperatureT at each point (x, y, z) in
a region of space is given by
T = 100 − x2 − y 2 − z 2 ,
and that F(x, y, z) is defined to be the gradient of T . Find the vector field F.
Solution. The gradient field F is given by
∂T ∂T ∂T
F = ∇T = i+ j+ k.
∂x ∂y ∂z
5
Module IV: Vector Calculus Prof. V. K. Narla
Hence,
F = −2x i − 2y j − 2z k.
At each point in the region, the vector field F gives the direction in which the temperature
increases most rapidly. The vectors point toward the origin, where the temperature attains
its maximum value. □
Example 2.6. ∗∗∗
Find the gradient field of the function
g(x, y, z) = xy + yz + xz.
Solution. The gradient of a scalar function g(x, y, z) is defined as
∂g ∂g ∂g
∇g = , , .
∂x ∂y ∂z
Compute the partial derivatives:
∂g ∂g ∂g
= y + z, = x + z, = x + y.
∂x ∂y ∂z
Hence, the gradient field is
∇g(x, y, z) = ⟨y + z, x + z, x + y⟩.
□
∗∗∗
Example 2.7.
p
Gradient field of f (x, y, z) = ln x2 + y 2 + z 2 Find ∇f .
Solution. Let
u(x, y, z) = 2x2 + y 2 + z 2 ,
so that f = ln u. Using the chain rule,
1
∇f = ∇u.
u
Now compute
∂u ∂u ∂u
∇u = , , = ⟨4x, 2y, 2z⟩.
∂x ∂y ∂z
Therefore,
1 4x 2y 2z
∇f (x, y, z) = 2 ⟨4x, 2y, 2z⟩ = , , .
2x + y 2 + z 2 2x + y + z 2x + y + z 2x + y 2 + z 2
2 2 2 2 2 2 2
□
Example 2.8 (Gradient field of g(x, y, z) = ez − ln(x2 + y 2 )). Find ∇g.
Solution.
2x 2y z
∇g = − ,− 2 ,e ,
x2 + y 2 x + y2
valid where x2 + y 2 > 0 (i.e., off the z–axis). □
6
Module IV: Vector Calculus Prof. V. K. Narla
Definition 3.1. A vector field in three-dimensional space is a function that assigns to each
point (x, y, z) a vector:
Vector fields arise naturally in physics and engineering—for instance, as velocity fields in
fluids, or as force fields such as gravitational or magnetic fields.
Here:
dr
T= is the unit tangent vector to the curve C,
ds
ds is the differential element of arc length along the curve,
dr = T ds is the differential displacement vector.
7
Module IV: Vector Calculus Prof. V. K. Narla
8
Module IV: Vector Calculus Prof. V. K. Narla
x = cos t, y = sin t, z = t,
so that
dx = − sin t dt, dy = cos t dt, dz = dt.
Then,
Z Z 2π
(−y dx + z dy + 2x dz) = (− sin t)(− sin t) + t cos t + 2 cos t dt.
C 0
Simplifying, Z 2π
[ 2 cos t + t cos t + sin2 t ] dt.
0
Now integrate term by term:
Z 2π
2 cos t dt = [ 2 sin t ]2π
0 = 0,
0
Z 2π
t cos t dt = [ t sin t + cos t ]2π
0 = (0 + 1) − (0 + 1) = 0,
0
and
2π 2π
1 − cos 2t
Z Z
2 1h sin 2t i2π
sin t dt = dt = t − = π.
0 0 2 2 2 0
Adding all parts,
Z
(−y dx + z dy + 2x dz) = π.
C
Definition 3.3 (Work Done by a Force Along a Curve). Let C be a smooth curve parametrized
by r(t), a ≤ t ≤ b, and let F be a continuous force field over a region containing C. Then
the work done in moving an object from the point A = r(a) to the point B = r(b) along C
is Z Z b Z
dr
W = F · T ds = F r(t) · dt = F · dr.
C a dt C
Physical Meaning: The expression F · T represents the component of the force vector F
acting in the direction of motion (the unit tangent T). Multiplying this component by the
small displacement ds gives the infinitesimal work done by the force over that small segment
of the curve.
By integrating F · T ds along the entire curve C, we obtain the total work done by the
force in moving a particle from the starting point to the endpoint along the path C.
If the force is directed opposite to the motion, F · T < 0, the work is negative, indicating
that energy is being taken from the particle (for example, due to friction). When F and
9
Module IV: Vector Calculus Prof. V. K. Narla
T are in the same direction, the work is positive, corresponding to a gain in energy of the
moving particle.
P = r(t) proj
θ TF
ds T
∗∗∗
Example 3.3 (Work Done by a Force Field).
F = (y − x2 ) i + (z − y 2 ) j + (x − z 2 ) k
r(t) = t i + t2 j + t3 k, 0 ≤ t ≤ 1,
1
2 2 3 3 29
W = t5 − t6 + t4 − t9 = .
5 6 4 9 0 60
29
Therefore, the work done is W = . □
60
10
Module IV: Vector Calculus Prof. V. K. Narla
Example 3.4 (Work Done by a Force Field). Find the work done by the force field
F = xi + yj + zk
Definition 3.4 (Flow Integrals and Circulation for Velocity Fields). If r(t) parametrizes a
smooth curve C in the domain of a continuous velocity field F, then the flow of the field
along the curve from
A = r(a) to B = r(b)
is defined as Z
Flow = F · T ds,
C
where T is the unit tangent vector to the curve C.
Z
The integral F · T ds is called a flow integral. It represents the component of the velocity
C
field F along the direction of motion of the curve. If the curve starts and ends at the same
point, i.e.,
A = B,
then the flow around the closed curve C is called the circulation of F around C.
11
Module IV: Vector Calculus Prof. V. K. Narla
Physical Interpretation:
The flow integral Z
Flow = F · T ds
C
measures the amount of the vector field F that is directed along the curve C. In the case
of a velocity field, this quantity represents the rate at which fluid flows through or along the
path. If F and T point in the same direction, the integrand F · T is positive, indicating that
the flow moves in the same sense as the path. If they point in opposite directions, the dot
product becomes negative, representing flow opposing the path’s orientation.
When the curve C is closed, the integral
I
Circulation = F · T ds
C
measures the total tendency of the vector field to circulate around the loop. In
fluid mechanics, this quantity corresponds to the net rotation or swirling motion of the fluid
around the curve. A large positive circulation means the field strongly follows the curve’s
orientation, while a negative value means it circulates in the opposite sense.
Thus, the flow integral measures movement along an open path, while the circulation
describes the rotational effect of the field around a closed loop.
∗∗∗
Example 3.5 (Flow Along a Helix).
A fluid’s velocity field is given by
F = x i + z j + y k.
Then,
dr
= (− sin t) i + (cos t) j + k.
dt
dr
The dot product of F and is
dt
dr
F· = (cos t)(− sin t) + (t)(cos t) + (sin t)(1) = − sin t cos t + t cos t + sin t.
dt
Hence the flow along the curve is
Z π/2
Flow = (− sin t cos t + t cos t + sin t) dt.
0
12
Module IV: Vector Calculus Prof. V. K. Narla
Evaluating,
π/2
cos2 t
π 1 π 1
Flow = + t sin t = 0+ − +0 = − .
2 0 2 2 2 2
π 1
Therefore, the flow along the helix is − . □
2 2
Example 3.6 (Circulation Around a Circle). Find the circulation of the field
F = (x − y) i + x j
around the circle
r(t) = (cos t) i + (sin t) j, 0 ≤ t ≤ 2π.
Solution. On the circle, we substitute x = cos t and y = sin t, giving
F = (x − y) i + x j = (cos t − sin t) i + (cos t) j.
The derivative of r(t) is
dr
= (− sin t) i + (cos t) j.
dt
Then,
dr
F· = (cos t − sin t)(− sin t) + (cos t)(cos t) = − sin t cos t + sin2 t + cos2 t = 1 − sin t cos t.
dt
Therefore, the circulation is
Z 2π Z 2π 2π
sin2 t
dr
Circulation = F· dt = (1 − sin t cos t) dt = t − .
0 dt 0 2 0
Hence,
Circulation = (2π − 0) = 2π.
Therefore, the circulation of the field around the circle is 2π. □
Note:
Once we define work as Z
W = F · T ds,
C
it is natural to ask whether there exists an analogous integral that measures how much of
the vector field F passes across a curve rather than along it. This leads to the important
concept of flux.
In the work integral, F · T represents the tangential component of F along the curve. If
instead we wish to measure the component of F that is normal (perpendicular) to the curve,
we define the flux of F across C by
Z
Φ= F · n ds,
C
13
Module IV: Vector Calculus Prof. V. K. Narla
where n is the unit normal vector directed outward from the enclosed region.
For a plane curve C lying in the xy-plane, with unit tangent vector T oriented counterclock-
wise and k the unit vector in the +z-direction, the unit normal vector n is defined by the
right-hand rule as
dx dy dy dx
n=T×k= i + j × k = i − j.
ds ds ds ds
i j k
dx dy dy dx
n= 0 = i− j.
ds ds ds ds
0 0 1
Hence, n is obtained by rotating T through 90◦ outward from the region bounded by C.
Thus, while Z
F · T ds
C
measures the tangential influence of the field (such as work done along the path), the flux
integral Z
F · n ds
C
measures the transverse influence or flow across the curve.
Definition 3.5 (Flux Across a Simple Closed Plane Curve). Let C be a smooth, simple,
closed curve in the plane that encloses a region R, and let F(x, y) = M (x, y) i+N (x, y) j be a
continuously differentiable two-dimensional vector field defined on an open region containing
R and its boundary C.
The flux of the vector field F across the curve C is defined as
I
Flux = F · n ds,
C
where n is the unit normal vector directed outward from the region R and ds is the differential
element of arc length along C.
In terms of the components M (x, y) and N (x, y), if the curve C is traversed counterclockwise
(so that the outward normal n points away from R), then
I
Flux = M dy − N dx.
C
Physical Interpretation: The flux integral measures the rate at which the vector field
passes through or escapes from the region R. If F represents a fluid velocity field, the flux
gives the net outflow of the fluid across the boundary. A positive flux indicates that the field
is, on average, directed outward from the region, whereas a negative flux corresponds to an
inward flow.
Example 3.7. Find the flux of F = (x−y)i+xj across the circle x2 +y 2 = 1 in the xy-plane.
14
Module IV: Vector Calculus Prof. V. K. Narla
traces the circle counterclockwise exactly once. We can therefore use this parametrization
in Equation (9).
With
M = x − y = cos t − sin t, N = x = cos t,
and
dx = d(cos t) = − sin t dt, dy = d(sin t) = cos t dt,
we find
I Z 2π Z 2π
Flux = M dy − N dx = (cos t − sin t)(cos t) dt − cos t(− sin t) dt.
C 0 0
Simplifying,
Z 2π Z 2π
2
Flux = (cos t − sin t cos t + cos t sin t) dt = cos2 t dt
0 0
Z 2π 2π
1 + cos 2t t sin 2t
= dt = + = π.
0 2 2 4 0
Hence, the flux of F across the circle is π. Since the result is positive, the net flow is
outward across the curve. A negative value would indicate a net inward flow.
x − y = t − (2t + 1) = −t − 1.
Hence,
3 3
t2
Z Z
9 15
(x − y) dx = (−t − 1) dt = − − t =− −3=− .
C 0 2 0 2 2
□
∗∗∗
Example 3.9. Z
Find the line integrals along the given path C. (x2 + y 2 ) dy, where C is given in
C
Figure 4.
15
Module IV: Vector Calculus Prof. V. K. Narla
C = C1 ∪ C2 .
x2 + y 2 = 9 + t2 .
Thus,
3 3
t3
Z Z
2 2 2
(x + y ) dy = (9 + t ) dt = 9t + = 27 + 9 = 36.
C2 0 3 0
Therefore, Z Z Z
2 2
(x + y ) dy = + = 0 + 36 = 36.
C C1 C2
Example 3.10. Find the line integrals of F from (0, 0, 0) to (1, 1, 1) over each of the following
paths in the accompanying Figure 5.
16
Module IV: Vector Calculus Prof. V. K. Narla
c. The path C3 ∪ C4 consisting of the line segment from (0, 0, 0) to (1, 1, 0) followed by the
segment from (1, 1, 0) to (1, 1, 1).
Z
I. If F = 3y i + 2x j + 4z k. Find F · dr from (0, 0, 0) to (1, 1, 1) along (a) C1 , (b) C2 ,
C
(c) C3 ∪ C4 .
Z Z
Solution. General recipe: F · dr = F(r(t)) · r′ (t) dt.
C
F(r(t)) = (3t2 , 2t, 4t4 ), F·r′ = 3t2 + 4t2 + 16t7 = 7t2 + 16t7 .
Z 1
1
(7t2 + 16t7 ) dt = 37 t3 + 2t8 0 = 13
3
.
0
(c) C3 ∪ C4 :
C3 : r(s) = (s, s, 0), r′ (s) = (1, 1, 0), F = (3s, 2s, 0), F·r′ = 5s,
Z 1
5s ds = 25 .
0
17
Module IV: Vector Calculus Prof. V. K. Narla
C4 : r(u) = (1, 1, u), r′ (u) = (0, 0, 1), F = (3, 2, 4u), F·r′ = 4u,
Z 1
4u du = 2.
0
5 9
Total = 2
+2= 2
.
□
Z
1
II. If F = j. Evaluate F · dr along (a) C1 , (b) C2 , (c) C3 ∪ C4 .
x2 + 1 C
Solution.
□
Z
III. If F = xy i + yz j + xz k. Evaluate F · dr along (a) C1 , (b) C2 , (c) C3 ∪ C4 .
C
Solution.
18
Module IV: Vector Calculus Prof. V. K. Narla
(c) C3 ∪ C4 : Z 1
′ 2
C3 : r (s) = (1, 1, 0), F = (s , 0, 0) ⇒ s2 ds = 13 .
0
Z 1
′
C4 : r (u) = (0, 0, 1), F = (1 · 1, 1 · u, 1 · u) = (1, u, u) ⇒ u du = 12 .
0
5
Total = 6
.
□
Z
IV. If F = (3x2 − 3x) i + 3z j + k. Evaluate F · dr along (a) C1 , (b) C2 , (c) C3 ∪ C4 .
C
Solution.
(c) C3 ∪ C4 :
Z 1
′ 2
C3 : r (s) = (1, 1, 0), F = (3s − 3s, 0, 1) ⇒ (3s2 − 3s) ds = − 12 .
0
Z 1
′
C4 : r (u) = (0, 0, 1), F = (0, 3u, 1) ⇒ 1 du = 1.
0
1
Total = 2
.
□
Z
V. If F = (y + z) i + (z + x) j + (x + y) k. Evaluate F · dr along (a) C1 , (b) C2 , (c)
C
C3 ∪ C4 .
Solution.
19
Module IV: Vector Calculus Prof. V. K. Narla
(c) C3 ∪ C4 :
Z 1
′
C3 : r (s) = (1, 1, 0), F = (s, s, 2s) ⇒ (s + s) ds = 1.
0
Z 1
′
C4 : r (u) = (0, 0, 1), F = (1 + u, 1 + u, 2) ⇒ 2 du = 2.
0
Total = 3 .
□
Example 3.11. Evaluate the line integral
√
Z
x + y dx,
C
where C is the piecewise smooth curve shown in Figure 6: (0, 0) → (1, 3) along the line
y = 3x, then (1, 3) → (0, 3) (horizontal segment), then (0, 3) → (0, 0) (vertical segment).
20
Module IV: Vector Calculus Prof. V. K. Narla
(iii) Segment C3 : from (0, 3) to (0, 0) (vertical). Here x ≡ 0, so dx = 0 and the integral
is 0:
√
Z
x + y dx = 0.
C3
Total.
Z
√ 4 2 √ 4 16 √ √
− (8 − 3 3) + 0 = −
x + y dx = + 2 3 = 2 3 − 4.
C 3 3 3 3
Z
√ √
Answer: x + y dx = 2 3 − 4. □
C
Z
Example 3.12. Evaluate xy dx + (x + y) dy, where C is the curve y = x2 from (−1, 1)
C
to (2, 4).
Solution. Parametrize C by x = t, y = t2 with t ∈ [−1, 2]. Then dx = dt, dy = 2t dt.
Z Z 2 Z 2 Z 2
2 2
3t3 + 2t2 dt.
xy dx + (x + y) dy = t · t dt + (t + t )(2t) dt =
C −1 −1 −1
Z 2 2 52 1 69
3t3 + 2t2 dt = 43 t4 + 23 t3
= − = .
−1 −1 3 12 4
□
Z
Example 3.13. Let F = x2 i − y j. Evaluate F · T ds along the curve x = y 2 oriented
C
from (4, 2) to (1, −1).
Solution. Recall F · T ds = F · dr. Parametrize by y = t, x = t2 with t : 2 → −1. Then
dr = (2t, 1) dt and F( t2 , t ) = (t4 , −t).
F · dr = (t4 , −t) · (2t, 1) = 2t5 − t.
Hence
Z Z −1 −1
39
F · T ds = (2t5 − t) dt = 1 6
3
t − 12 t2 = 1
3
− 1
2
− 64
3
−2 = − .
C 2 2 2
□
Z
Example 3.14. Let F = y i − x j. Evaluate F · dr counterclockwise on the unit circle
C
x2 + y 2 = 1 from (1, 0) to (0, 1).
Solution. Use r(t) = (cos t, sin t), t ∈ [0, π2 ]. Then dr = (− sin t, cos t) dt and F(r(t)) =
(sin t, − cos t).
F · dr = (sin t, − cos t) · (− sin t, cos t) = − sin2 t − cos2 t = −1.
Therefore Z Z π/2
π
F · dr = (−1) dt = − .
C 0 2
□
21
Module IV: Vector Calculus Prof. V. K. Narla
dr
so that = (1, 2).
dt
Evaluate the field along the curve:
dr
Dot with and integrate:
dt
Z Z 1 Z 1
2
1 25
1 + 5t + 2t2 dt = t + 52 t2 + 23 t3 0 = .
W = F · dr = 1 + 3t + 2t · 1 + t · 2 dt =
C 0 0 6
Example 3.16 (Work by a gradient field around a circle). Find the work done by the gradient
of f (x, y) = (x + y)2 counterclockwise around the circle x2 + y 2 = 4 from (2, 0) to itself.
Solution. Since F = ∇f is conservative, the line integral over any closed curve is zero:
I
∇f · dr = 0.
C
Hence the work from (2, 0) back to (2, 0) along the circle is 0 .
(Verification by parametrization: let r(t) = (2 cos t, 2 sin t), 0 ≤ t ≤ 2π. Then ∇f =
2(x + y)⟨1, 1⟩, so along r(t), ∇f = 4(cos t + sin t)⟨1, 1⟩ and dr = (−2 sin t, 2 cos t) dt. Thus
I Z 2π Z 2π Z 2π
2 2
∇f ·dr = 4(cos t+sin t)(−2 sin t+2 cos t) dt = 8 (cos t−sin t) dt = 8 cos(2t) dt = 0.
C 0 0 0
22
Module IV: Vector Calculus Prof. V. K. Narla
I
Solution. (A) Circulation: F · dr.
C
On C1 :
F(r1 (t)) = ⟨a cos t, a sin t⟩, r′1 (t) = ⟨−a sin t, a cos t⟩.
Hence
F · r′1 (t) = a cos t(−a sin t) + a sin t(a cos t) = 0,
so Z Z π
F · dr = 0 dt = 0.
C1 0
On C2 :
F(r2 (t)) = ⟨t, 0⟩, r′2 (t) = ⟨1, 0⟩,
so Z Z a
F· r′2 (t) = t, F · dr = t dt = 0.
C2 −a
Therefore, I
F · dr = 0.
C
□
Definition 4.2. If F is a vector field defined on D and F = ∇f for some scalar function f
on D, then f is called a potential function for F.
23
Module IV: Vector Calculus Prof. V. K. Narla
Remark 1. The above relation shows that the work done by a conservative force depends
only on the initial and final positions, not on the specific path taken. In physical terms:
For a gravitational field, f (x, y, z) represents the potential energy per unit mass, and
∇f gives the direction of the greatest rate of change of potential.
For an electric field, f represents electric potential (voltage), and the work done in
moving a charge between two points depends solely on the potential difference.
This property distinguishes conservative forces from non-conservative ones such as friction,
where energy is dissipated and path dependence arises.
C
C
24
Module IV: Vector Calculus Prof. V. K. Narla
∇ × F = 0 implies F = ∇f,
i.e., the existence of a potential function is guaranteed. However, in regions that are not
simply connected, a zero curl field may fail to be conservative because of the presence of
holes around which circulation may exist.
Theorem 4.1 (Fundamental Theorem of Line Integrals). Let C be a smooth curve joining
the point A to the point B in the plane or in space, and let it be parametrized by r(t),
a ≤ t ≤ b. If f is a differentiable scalar function whose gradient vector
F = ∇f
Proof. Let r(t) = g(t)i+h(t)j+k(t)k be a smooth curve in D joining A = r(a) and B = r(b).
Since F = ∇f , the line integral becomes
Z Z B Z b
F · dr = ∇f · dr = ∇f (r(t)) · r′ (t) dt.
C A a
d
f (r(t)) = ∇f (r(t)) · r′ (t).
dt
Hence,
Z b Z b
′ d
∇f (r(t)) · r (t) dt = f (r(t)) dt = f (r(b)) − f (r(a)) = f (B) − f (A).
a a dt
25
Module IV: Vector Calculus Prof. V. K. Narla
Remark 2. This theorem states that the line integral of a conservative field depends only on
the endpoints of the path, not on the particular route taken between them.
In mechanics, this expresses the fact that the work done by a conservative force (such
as gravity or electrostatic force) depends only on the initial and final positions.
The theorem also implies that for a conservative field,
I
F · dr = 0
C
26
Module IV: Vector Calculus Prof. V. K. Narla
Theorem 4.3 (Component Test for Conservative Fields). The vector field F is conservative
if and only if
∂P ∂N ∂M ∂P ∂N ∂M
= , = , and = .
∂y ∂z ∂z ∂x ∂x ∂y
Remark 3. These equalities ensure that the curl of the field F is zero:
∇ × F = 0.
∂f ∂f ∂f
= M, = N, = P.
∂x ∂y ∂z
To determine f , we proceed as follows:
Step I. Integrate M (x, y, z) with respect to x to obtain a preliminary expression for f (x, y, z).
Step II. Include an arbitrary function of y and z, say g(y, z), to account for any terms lost
during partial differentiation.
Step III. Differentiate this expression with respect to y and compare it with N (x, y, z) to deter-
mine g(y, z).
Step IV. Repeat the process with respect to z to ensure consistency with P (x, y, z).
Remark 4. This process reconstructs the potential function f (x, y, z) whose gradient equals
F. Physically, f represents the potential energy associated with the conservative field F.
∗∗∗
Example 4.3.
Show that
F = (ex cos y + yz)i + (xz − ex sin y)j + (xy + z)k
is conservative over its natural domain, and find a potential function for it.
27
Module IV: Vector Calculus Prof. V. K. Narla
Solution. The natural domain of F is all of space, which is open and simply connected.
We identify
∂g
= 0,
∂y
so g depends only on z; say g(y, z) = h(z). Hence,
dh 1
=z ⇒ h(z) = z 2 + C.
dz 2
Therefore, the potential function is
28
Module IV: Vector Calculus Prof. V. K. Narla
∂P/∂y = 0 ̸= −1 = ∂N/∂z
However, the test’s “if and only if” direction requires D to be simply connected. Here D
is not simply connected: any loop encircling the z–axis cannot be continuously contracted
to a point while staying in D.
To show F is not conservative, compute its line integral around the unit circle C : r(t) =
(cos t) i + (sin t) j, 0 ≤ t ≤ 2π, which wraps once around the excluded z–axis. Along C,
D sin t cos t E
F(r(t)) = − 2 , , 0 = ⟨− sin t, cos t, 0⟩, r′ (t) = ⟨− sin t, cos t, 0⟩.
sin t + cos2 t sin2 t + cos2 t
Therefore
I Z 2π Z 2π Z 2π
′ 2 2
F · dr = F(r(t)) · r (t) dt = sin t + cos t dt = 1 dt = 2π ̸= 0.
C 0 0 0
29
Module IV: Vector Calculus Prof. V. K. Narla
Example 4.6. Determine which of the following vector fields are conservative, and find a
potential function for each conservative field.
(I) ***
F = yz i + xz j + xy k
f (x, y, z) = xyz + C.
f (x, y, z) = xyz
(II)
F = (y sin z) i + (x sin z) j + (xy cos z) k
f (x, y, z) = xy sin z + C.
f (x, y, z) = xy sin z
30
Module IV: Vector Calculus Prof. V. K. Narla
(III)
F = (ex cos y) i − (ex sin y) j + z k
z2
f (x, y, z) = ex cos y + + C.
2
f (x, y, z) = ex cos y + 21 z 2
Example 4.7. Find a potential function f for each of the following vector fields F.
(I) ***
F = 2x i + 3y j + 4z k
fz = h′ (z) = 4z ⇒ h(z) = 2z 2 + C.
Hence,
f (x, y, z) = x2 + 23 y 2 + 2z 2 + C.
31
Module IV: Vector Calculus Prof. V. K. Narla
(II)
F = (y sin z) i + (x sin z) j + (xy cos z) k
We want ∇f = F:
Hence,
f (x, y, z) = xy sin z + C.
32
Module IV: Vector Calculus Prof. V. K. Narla
i j k
∂ ∂ ∂ ∂P ∂N ∂M ∂P ∂N ∂M
∇×F= = − i+ − j+ − k.
∂x ∂y ∂z ∂y ∂z ∂z ∂x ∂x ∂y
M N P
i j k
∂ ∂ ∂
∇×F= = (x − z) i + (y − x) j + (z − y) k.
∂x ∂y ∂z
yz zx xy
33
Module IV: Vector Calculus Prof. V. K. Narla
Example 5.3. Find the k-component of curl of each planar vector field F = M (x, y) i +
N (x, y) j, where
∂N ∂M
curl F = − k.
∂x ∂y
1. F = (x + y)i + (2xy)j
2. F = (x2 − y)i + (y 2 )j
3. F = (xey )i + (yex )j
1. M = x + y, N = 2xy.
∂N ∂M
= 2y, = 1,
∂x ∂y
curl F = 2y − 1.
2. M = x2 − y, N = y 2 .
∂N ∂M
= 0, = −1,
∂x ∂y
curl F = 0 − (−1) = 1.
3. M = xey , N = yex .
∂N ∂M
= yex , = xey ,
∂x ∂y
curl F = yex − xey .
4. M = x2 y, N = xy 2 .
∂N ∂M
= y2, = x2 ,
∂x ∂y
curl F = y 2 − x2 .
5. M = y sin x, N = x sin y.
∂N ∂M
= sin y, = sin x,
∂x ∂y
curl F = sin y − sin x.
34
Module IV: Vector Calculus Prof. V. K. Narla
x y
6. M = , N = − (for x ̸= 0, y ̸= 0).
y x
∂N ∂ y y y ∂M ∂ x x
=− = − − 2 = 2, = = − 2,
∂x ∂x x x x ∂y ∂y y y
y x y x
curl F = 2 − − 2 = 2
+ 2.
x y x y
□
Physical Interpretations
Gradient: Direction and rate of maximum change of a scalar field.
However, when F is not conservative, we cannot find such a potential function. In this
situation, Green’s Theorem provides a powerful alternative: it converts a line integral over
a closed curve C into a double integral over the region R enclosed by C. This method is
particularly useful for computing the work or flux of a vector field around a closed boundary.
Circulation Density (Local Spin):
Let the two-dimensional vector field be
F = M (x, y) i + N (x, y) j.
∂N ∂M
− .
∂x ∂y
This measures how much the field “spins” or “rotates” around that point. In physical terms,
it represents the tendency of the fluid particles to rotate about the z-axis.
This scalar is also the k-component of the curl, written as
(∇ × F) · k.
35
Module IV: Vector Calculus Prof. V. K. Narla
Definition 5.3. The circulation density of a vector field F = M i + N j at the point (x, y)
is the scalar
∂N ∂M
(∇ × F) · k = − .
∂x ∂y
Remark 5. This quantity measures the local angular rotation or spin around the z-axis
produced by the field F. If the value is positive, the rotation is counterclockwise (right-handed
about the z-axis); if it is negative, the rotation is clockwise.
In Green’s Theorem, this circulation density plays a central role in relating the microscopic
rotation (curl) within a region to the macroscopic circulation around its boundary.
Example 5.4. The following vector fields represent the velocity of a gas flowing in the xy-
plane. Find the circulation density of each vector field and interpret its physical meaning.
Figure 7 displays the vector fields.
Figure 7: Vector fields for (a) uniform expansion, (b) rotation, (c) shear, and (d) whirlpool
flow.
Solution.
36
Module IV: Vector Calculus Prof. V. K. Narla
∂(cy) ∂(cx)
(∇ × F) · k = − = 0.
∂x ∂y
Interpretation: The gas expands or contracts uniformly, but there is no microscopic
rotation. Hence, the fluid is not circulating at small scales.
37
Module IV: Vector Calculus Prof. V. K. Narla
The divergence measures the net rate of fluid outflow per unit area at a point. If div F > 0,
the point acts like a source (outflow); if div F < 0, it acts like a sink (inflow); and if div F = 0,
the flow is said to be incompressible.
Example 5.5. Find the divergence and interpret its physical meaning for each vector field
in Example 7, which represent the velocity of a gas flowing in the xy-plane.
Solution.
F = cxi + cyj
∂(cx) ∂(cy)
div F = + = 2c.
∂x ∂y
If c > 0, the gas is expanding uniformly; if c < 0, it is compressing uniformly.
Physical Interpretation: Cases (b), (c), and (d) correspond to incompressible flow, a
condition satisfied by most liquids. In fluid mechanics, incompressible flow means that the
velocity field has zero divergence:
div F = 0.
□
38
Module IV: Vector Calculus Prof. V. K. Narla
Let C be a piecewise smooth, simple closed curve enclosing a region R in the plane. Let
F = M (x, y)i + N (x, y)j be a vector field with M and N having continuous first partial
derivatives in an open region containing R. Then the counterclockwise circulation of F
around C equals the double integral of (∇ × F) · k over R:
I I ZZ
∂N ∂M
F · T ds = M dx + N dy = − dx dy. (1)
C C R ∂x ∂y
A second form of Green’s Theorem relates to the outward flux of F across C, and says that
the flux equals the double integral of the divergence of F over R.
Theorem 5.2 (Green’s Theorem—Flux–Divergence or Normal Form). Let C be a piecewise
smooth, simple closed curve enclosing a region R in the plane. Let F = M (x, y)i + N (x, y)j
be a vector field with M and N having continuous first partial derivatives in an open region
containing R. Then the outward flux of F across C equals the double integral of div F over
R: I I ZZ
∂M ∂N
F · n ds = M dy − N dx = + dx dy. (2)
C C R ∂x ∂y
Equivalence of the Two Forms: The two forms of Green’s Theorem are equivalent.
Applying Equation (1) from Theorem 4 to the vector field G1 = −N i + M j gives Equa-
tion (2) from Theorem 5. Conversely, applying Equation (2) to G2 = N i − M j reproduces
Equation (1).
∗∗∗
Example 5.6.
39
Module IV: Vector Calculus Prof. V. K. Narla
Simplifying,
I Z 2π Z 2π
2 2
F · T ds = (− sin t cos t + sin t + cos t) dt = (− sin t cos t + 1) dt = 2π.
C 0 0
M = x − y, N = x.
Then,
∂M ∂M ∂N ∂N
= 1, = −1, = 1, = 0.
∂x ∂y ∂x ∂y
Hence,
ZZ ZZ ZZ
∂N ∂M
− dx dy = (1−(−1)) dx dy = 2 dx dy = 2(area of unit circle) = 2π.
R ∂x ∂y R R
Therefore, both sides of Equation (3) are equal, verifying the circulation–curl form of Green’s
Theorem.
Step 2: Verification of the Flux–Divergence Form (Theorem 2)
We compute the outward flux:
I I Z 2π
F · n ds = M dy − N dx = (cos t − sin t)(cos t) dt − (cos t)(− sin t) dt
C C 0
Z 2π Z 2π Z 2π Z 2π
2 1 + cos(2t) 1 1
= cos t dt = dt = 1 dt + cos(2t) dt.
0 0 2 2 0 2 0
Now compute the divergence integral:
∂M ∂N
div F = + = 1 + 0 = 1.
∂x ∂y
40
Module IV: Vector Calculus Prof. V. K. Narla
Thus, ZZ ZZ
div F dx dy = (1) dx dy = area of unit circle = π.
R R
Hence, both sides of Equation (4) equal π, confirming the flux–divergence form.
Conclusion: Both the circulation–curl and flux–divergence forms of Green’s Theorem hold
true for F(x, y) = (x − y)i + xj over the unit circle. □
Example 5.8. Compute the outward flux of F(x, y) = 2exy i + y 3 j across the square R =
[−1, 1] × [−1, 1].
41
Module IV: Vector Calculus Prof. V. K. Narla
whose outer integral vanishes by odd symmetry on [−1, 1]. The second term gives
Z 1 Z 1
2 2
y 2 dy = 6 · = 4.
3y · 2 dy = 6
−1 −1 3
Therefore Φ = 4.
(ii) Circulation–curl form. Outward flux can be written as the circulation of the
rotated field I I
F · n ds = M dy − N dx, where F = (M, N ).
C C
I
Thus evaluate 2exy dy − y 3 dx with M̃ = −N = −y 3 and Ñ = M = 2exy :
C
ZZ ! ZZ
∂ Ñ ∂ M̃
2y exy + 3y 2 dA = 4,
− dA =
R ∂x ∂y R
Example 5.9. Verify Green’s Theorem for each vector field F = M (x, y) i + N (x, y) j on the
disk
R : x2 + y 2 ≤ a2 ,
with positively oriented boundary circle
1. *** F = −y i + x j
2. F = y i
3. *** F = −x2 y i + xy 2 j
42
Module IV: Vector Calculus Prof. V. K. Narla
2. F = y i.
M = y, N = 0.
Circulation side (3):
∂N ∂M
− = 0 − 1 = −1,
∂x ∂y
ZZ
(−1) dA = −πa2 .
R
On C, M = a sin t:
I Z 2π Z 2π
2
M dx + N dy = (a sin t)(−a sin t) dt = −a sin2 t dt = −a2 · π = −πa2 .
C 0 0
3. F = −x2 y i + xy 2 j.
M = −x2 y, N = xy 2 .
43
Module IV: Vector Calculus Prof. V. K. Narla
∂N ∂M
− = y 2 − (−x2 ) = x2 + y 2 .
∂x ∂y
On C,
M = −a3 cos2 t sin t, N = a3 cos t sin2 t,
M dx + N dy = 2a4 cos2 t sin2 t dt,
so I Z 2π Z 2π
4 2 2 4 π 4
M dx + N dy = 2a cos t sin t dt = 2a 1
4
sin2 2t dt = a.
C 0 0 2
Flux side (4):
ZZ
∂M ∂N
+ = (−2xy) + (2xy) = 0, 0 dA = 0.
∂x ∂y R
Example 5.10. Use Green’s Theorem to find the counterclockwise circulation and the out-
ward flux for the vector field F along the curve C.
44
Module IV: Vector Calculus Prof. V. K. Narla
M = x2 + 4y, N = x + y2.
Circulation (counterclockwise):
∂N ∂M
− = 1 − 4 = −3.
∂x ∂y
I ZZ
F · T ds = (−3) dA = −3 · (1 · 1) = −3 .
C R
Outward flux:
∂M ∂N
+ = 2x + 2y.
∂x ∂y
I ZZ Z 1Z 1
F · n ds = (2x + 2y) dA = (2x + 2y) dx dy = 1 + 1 = 2 .
C R 0 0
2. F = (x + y, −(x2 + y 2 )).
Region R is the triangle with vertices (0, 0), (1, 0), (1, 1):
0 ≤ x ≤ 1, 0 ≤ y ≤ x.
M = x + y, N = −(x2 + y 2 ).
Circulation (counterclockwise):
∂N ∂M
− = (−2x) − 1 = −2x − 1.
∂x ∂y
I ZZ Z 1Z x Z 1
F · T ds = (−2x − 1) dA = (−2x − 1) dy dx = (−2x − 1)x dx
C R 0 0 0
Z 1 1
2 1 2 1 7
= (−2x2 − x) dx = − x3 − x2 =− − = − .
0 3 2 0 3 2 6
Outward flux:
∂M ∂N
+ = 1 + (−2y) = 1 − 2y.
∂x ∂y
I ZZ Z 1Z x Z 1
x − x2 dx
F · n ds = (1 − 2y) dA = (1 − 2y) dy dx =
C R 0 0 0
3 1
x2 x
1 1 1
= − = − = .
2 3 0 2 3 6
Thus Green’s Theorem gives:
45
Module IV: Vector Calculus Prof. V. K. Narla
This integral is also called the flux of the vector field F across the surface S.
6.1 Interpretation
The quantity F · n is the component of the vector field F that passes through the
surface in the direction of the chosen normal.
The flux integral measures the total flow of the field across S.
Reversing the orientation (changing n to −n) reverses the sign of the flux.
dS = (ru × rv ) du dv,
2. Graph Surfaces z = f (x, y). If S is given by z = f (x, y), then the upward-oriented
surface element is
dS = ⟨−fx , −fy , 1⟩ dx dy,
so ZZ ZZ
F · n dσ = F(x, y, f (x, y)) · ⟨−fx , −fy , 1⟩ dx dy.
S R
46
Module IV: Vector Calculus Prof. V. K. Narla
Physical Meaning
In fluid flow, the integral gives the amount of fluid per unit time passing through S.
F(x, y, z) = yz i + x j − z 2 k
y = x2 , 0 ≤ x ≤ 1, 0 ≤ z ≤ 4,
r(x, z) = x i + x2 j + z k.
47
Module IV: Vector Calculus Prof. V. K. Narla
D = {(x, z) | 0 ≤ x ≤ 1, 0 ≤ z ≤ 4}.
Thus Z 4 Z 1
Flux = (2x3 z − x) dx dz.
0 0
First integrate with respect to x:
1 1 1 1 1
x4 x2
Z Z Z
3 3 z 1
(2x z − x) dx = 2z x dx − x dx = 2z − = − .
0 0 0 4 0 2 0 2 2
Answer. The flux of F through the given patch of the parabolic cylinder, in the specified
normal direction, is
2.
□
∗∗∗
Example 6.2.
y 2 + z 2 = 1, z ≥ 0,
48
Module IV: Vector Calculus Prof. V. K. Narla
Figure 8: The surface S cut from the cylinder y 2 + z 2 = 1, z ≥ 0, between the planes x = 0
and x = 1, with its projection Rxy on the xy-plane.
g(x, y, z) = y 2 + z 2 = 1.
Thus
∇g 2y j + 2z k 2y j + 2z k 2y j + 2z k
n= =p = p = = y j + z k.
∥∇g∥ 2
(2y) + (2z) 2 2
2 y +z 2 2·1
Since y 2 + z 2 = 1 on the cylinder, this vector already points outward.
2. Surface area differential for an implicit surface
For a surface g(x, y, z) = c and projection onto the xy-plane, the formula is
∥∇g∥
dσ = dA.
|∇g · k|
Hence p p
(2y)2 + (2z)2 2 y2 + z2 1
dσ = dA = dA = dA,
|2z| 2z z
because y 2 + z 2 = 1 and z ≥ 0 on S.
3. Compute F · n on the surface
49
Module IV: Vector Calculus Prof. V. K. Narla
F · n = (yz j + z 2 k) · (y j + z k) = yz · y + z 2 · z = y 2 z + z 3 = z(y 2 + z 2 ) = z · 1 = z.
0 ≤ x ≤ 1, −1 ≤ y ≤ 1,
Final Answer: ZZ
F · n dσ = 2.
S
***
50