Professional Documents
Culture Documents
A Crash Course in Vector Calculus: Scalar and Vector Fields
A Crash Course in Vector Calculus: Scalar and Vector Fields
1
ρ as the radial distance from the origin O and θ as the angle made by the radial
vector with a reference line (usually chosen to coincide with the x-axis of the
cartesian system). The radial unit vector ρ̂ and the tangential (or angular) unit
vector θ̂ are taken respectively along the direction of increasing distance ρ and
that of increasing angle θ respectively, as shown in the figure.
y
^θ
ρ^
θ θ
ρ
y
θ
x
x
x = ρ cos θ
y = ρ sin θ
2
Example 1 :
A vector A~ has cartesian components Ax and Ay . Write the vector in terms of its
radial and tangential components.
Solution :
Let us write
A~ = Aρ ρ̂ + Aθ θ̂
Note that (see figure) ρ̂ makes an angle θ with the x-axis (ı̂) and π/2 − θ with the
y-axis (̂). Similarly, the unit vector θ̂ makes π/2 + θ with the x-axis and θ with
the y-axis. Thus
~ · ρ̂ =
Aρ = A Ax ı̂ · ρ̂ + Ay ̂ · ρ̂
= Ax cos θ + Ay cos(π/2 − θ)
= Ax cos θ + Ay sin θ
~ · θ̂ =
Aθ = A Ax ı̂θ̂ + Ay · θ̂
= Ax cos(π/2 + θ) + Ay cos θ
= −Ax sin θ + Ay cos θ
The Jacobian :
When we transform from one coordinate system to another, the differential ele-
ment also transform.
x = f (u, v) and y = g(u, v), then, in going from (x, y) to (u, v), the differential
3
element dxdy →| J | dudv where J is given by the determinant
∂x ∂x
J=
∂u ∂v
∂y ∂y
∂u ∂v
The differentiations are partial, i.e., while differentiating ∂x/∂u = ∂f (u, v)/∂u,
the variable v is treated as constant. An useful fact is that the Jacobian of the
inverse transformation is 1/J because the detrminant of the inverse of a matrix is
equal to the inverse of the determinant of the original matrix.
Example 2 : Show that the Jacobian of the transformation from cartesian to polar
coordinates is ρ.
Solution :
We have
∂x ∂x
∂ρ ∂θ
J =
∂y ∂y
∂ρ ∂θ
Using x = ρ cos θ and y = ρ sin θ, we have
cos θ −ρ sin θ
J= =ρ
sin θ ρ cos θ
Exercise :
Show that√the Jacobian of the inverse transformation from polar to cartesian is
1/ρ = 1/ x2 + y 2 .
Example 3 :
find the area of a circle of radius R.
Solution :
Take the origin to be at the centre of the circle and the plane of the circle to be the
ρ − θ plane. Since the area element in the polar coordinates is ρdθdr, the area of
the circle is " #R
ρ2
Z 2π Z R
dθ ρdρ = 2π = πR2
0 0 2 0
- a very well known result !
Example 4 : Z
2 2
Find the integral e−(x +y ) dxdy where the region of integration is a unit circle
about the origin.
2
Using polar coordinates the integrand becomes e−ρ . The range of i integration
for ρ is from 0 to 1 and for θ is from 0 to 2π. The integral is given by
Z 2π Z 1 2
Z 1 2
I= dθ e−ρ ρdρ = 2π e−ρ ρdρ
0 0 0
4
The radial integral is evaluated by substitution w = ρ2 so that ρdρ = dw/2. The
value of the integral is
1 1
Z
I = 2π e−w dw/2 = π[−e−w ]10 = π(1 − )
0 e
Exercise R: R
Evaluate xydxdy where the region of integration is the part of the area between
circles of radii 1 and 2 that lies in the first quadrant. (Ans. 15/8)
Exercise :
2
Evaluate the Gaussian integral I = 0∞ e−x dx
R
[ Hint : The integration cannot be done using cartesian coordinates but is relatively
easy using polar coordinates and propertiesR of definite integrals. By changing the
2
dummy variable x to y, one can write I = 0∞ e−y dy, so that we can write
Z ∞ Z ∞ 2 +y 2 )
I2 = e−(x dxdy
0 0
5
ρ^(t+dt)
^ (t+dt) dθ
θ
dθ ^ (t)
θ ρ^ (t)
dθ
In the figure, the positions of a particle are shown at time t and t + dt. The unit
vectors ρ̂ is shown in red while the unit vector θ̂ is shown in blue. It can be easily
seen by triangle law of addition of vectors that the magnitude of ∆ρ̂ and ∆θ̂ is
1.dθ = dθ. However, as the limit dt → 0, the direction of ∆ρ̂ is in the direction
of θ̂ while that of ∆θ̂ is in the direction of −ρ̂. Thus
dρ̂ ∆ρ̂ dθ
= lim = θ̂
dt ∆t→0 ∆t dt
dθ̂ ∆θ̂ dθ
= lim = − ρ̂
dt ∆t→0 ∆t dt
Now, dθ/dt is the angular velocity of the point, which is usually denoted by ω,
Thus we have,
dρ̂
= ω θ̂
dt
dθ̂
= −ω ρ̂
dt
Exercise :
Obtain the above relationships directly by using the expression for the unit vectors
ρ̂ and θ̂ in terms of the cartesian unit vectors, viz.,
ρ̂ = ı̂ cos θ + ̂ sin θ
θ̂ = −ı̂ sin θ + ̂ cos θ
6
1.1.2 Cylindrical coordinates :
Cylnidrical coordinate system is obtained by extending the polar coordinates by
adding a z-axis along the height of a right circular cylinder. The z-axis of the
coordinate system is same as that in a cartesian system.
In the figure ρ is the distance of the
foot of the perpendicular drawn from
the point to the x − y(ρ, θ) plane.
Note that ρ here is not the distance
of the point P from the origin, as is z
the case in polar coordinate systems. ^z
(Some texts use r to denote what we
^
are calling as ρ here. However, we θ
use ρ to denote the distance from the P
origin to the foot of the perpendicu- θ
^ρ
lar to avoid confusion.) In terms of
cartesian coordinates z
x = ρ cos θ
y = ρ sin θ O y y
x θ ρ
z = z
P’
so that the inverse relationships are
x
q
ρ = x2 + y 2
y
θ = tan−1
x
z = z
Exercise :
Find the cylindrical coordinate of the point 3ı̂ + 4̂ + k̂. [Hint : Determine ρ and
tan θ using above transformation] (Ans. 5ρ̂ + tan−1 (4/3)θ̂ + k̂)
The line element in the system is given by
~ = ρ̂dρ + ρdθθ̂ + dẑ
dl
7
1.2.3 Spherical Polar Coordinates :
Spherical coordinates are useful in dealing with problems which possess spheri-
cal symmetry. The independent variables of the system are (r, θ, φ). Here r is the
distance of the point P from the origin. Angles θ and φ are similar to latitudes
and longitudes.
Two mutually perpendicular lines are chosen, taken to coincide with the x-axis
and z-axis of the cartesian system. We take angle θ to be the angle made by the
radius vector (i.e. the vector connecting the origin to P) with the z-axis (the angle
θ is actually complementary to the latitude). The angle φ is the angle between the
x-axis and the line joining the origin to P ′ , the foot of the perpendicular from P
to the x-y plane.
The unit vectors r̂, θ̂ and φ̂ are respectively along the directions of increasing r, θ
and φ.
^r
r sin θ
P ^φ
θ
r cos
r z ^
θ
θ
O y
φ
y P’
The surface of constant r are spheres of radius r about the centre. the surface of
constant θ is a cone of semi-angle θ about the z-axis. The reference for measur-
ing φ is the x-z plane of the cartesian system. A surface of constant φ is a plane
containing the z-axis which makes an angle φ with the reference plane.
Example 5 :
8
Express unit vectors of spherical coordinate system in terms of unit vectors of
cartesian system.
Solution :
From the point P drop a perpendicular on to the x-y plane. Denote OP ~ ′ by ρ~. The
figure below shows the unit vectors in both the systems. By triangle law of vector
addition,
~ = OP
~r = OP ~ ′ + P~′ P = r sin θρ̂ + r cos θk̂
However, ρ̂ = cos φı̂ + sin φ̂. Substituting this in the expression for ~r, we get on
dividing both sides by the magnitude of r
r̂ = sin θ cos φı̂ + sin θ sin φ̂ + r cos θk̂
z
9
√
−1 x2 + y 2 z
θ = tan = cos−1
z r
y
φ = tan−1
x
Range of the variables are as follows :
0 ≤ r < ∞ 0 ≤ θ ≤ π 0 ≤ φ ≤ 2π
Exercise :
A particle moves along a spherical helix. its position coordinate at time t is given
by
cos t sin t t
x=√ , y = √ , z = √
1 + t2 1 + t2 1 + t2
Express the equation
√ of the path in spherical coordinates. (Ans.
r = 1, cos θ = t/ 1 + t2 φ(t) = t)
z
The differential element of volume r sin θ d φ
is obtained by constructing a closed dφ
volume by extending r, θ and φ re- r sin θ
spectively by dr, dθ and dφ. The dr
rdθ
length elements in the direction of r
r̂ is dr, that along θ̂ rdθ while that dθ
θ
along φ̂ is r sin θdφ (see figure). The
volume element, therefore, is
y
dV = dr·rdθ·r sin θdφ = r 2 sin θdθdφdr dφ
φ
Thus the Jacobian of transformation
is r 2 sin θ.
Example 6:
Find the volume of a solid region in the first octant that is bounded from above by
the sphere x2 + y 2 + z 2 = 9 and from below by the cone x2 + y 2 = 3z 2 .
Solution :
Because of obvious spherical symmetry, the problem is best solved in spherical
polar coordinates. The equation to sphere is r = 3 so that the range of r vaiable
for our solid is from 0 to 3.
10
The equation to the cone x2 + y 2 =
3z 2 becomes r 2 sin2 θ = 3r 2 cos2 θ.
Solving, √the semi-angle of cone is
tan θ = 3 i.e. θ = π/3. Since the
solid is restricted to the first octant,
i.e., (x, y, z ≥ 0), the range of the
azimuthal angle φ is from 0 to π/2.
11
Z
~
F~ · dl
C
where C is the curve along which the
integral is calculated. Like the inte-
gral of a scalar function the integral
above is also interpreted as a limit
of a sum. We first divide the curve
C into a large number of infinitisi-
mally small line segments such that dl θ
the vector function is constant (in F
magnitude and direction) over each
such line segment. The integrand
is then equal to the product of the
length of the line segment and the
component of F~ along the segment.
The integration is defined as the limit
of the sum of contributions from all
such segments in the same manner as
ordinary integration is defined.
The concept of line integral is very useful in many branches of physics. In me-
chanics, we define work done by a force F~ in moving an object from an initial
position A to a final position B as the line integral of the force along the curve
joining the end points. Except in the case of conservative forces, the line integral
depends on the actual path along which the particle moves under the force.
Example 7:
A force F~ = zyı̂ + x̂ + z 2 xk̂ acts on a particle that travels from the origin to
the point (1, 2, 3). Calculate the work done if the particle travels (i) along the
path (0, 0, 0) → (1, 0, 0) → (1, 2, 0) → (1, 2, 3) along straightline segments join-
ing each pair of end points (ii) along the straightline joining the initial and final
points.
Solution :
12
Along the path (0, 0, 0) → (1, 0, 0),
~ = ı̂dx and y = 0, z = 0. Since
dl
Fx = 0 along this segment, the in- (1,2,3)
tegral along C1 is zero. Along the
path C2 joining (1, 0, 0) and (1, 2, 0),
~ = ̂dyand x = 1. Along this path
dl
Fy = x = 1. The integral C3
Z 2 Z 2
Fy dy = dy = 2
0 0 (1,2,0)
x =m
y = 2m
z = 3m
Thus the differential elements are dx = dm, dy = 2dm and dz = 3dm. The line
integral is given by
Z Z
~ =
F~ · dl (Fx dx + Fy dy + Fz dz)
Z 1
= (6m2 .dm + m.2dm + 9m3 .3dm)
0
13
m4 1
= 2m3 + m2 + 27 | = 9.75
4 0
Example 8 :
Find the line integral of F~ = yı̂ + ̂ over an anticlockwise circular loop of radius
1 with the origin as the centre of the circle.
Solution :
y
In polar coordinates, x = cos θ and y = sin θ (since the radius is 1). Thus
Z Z
~ =
F~ · dl Fx dx + Fy dy
Z 2π Z 2π
2
= − sin θdθ + cos θdθ
0 0
= −π + 0 = −π
Exercise :
A force F~ = xyı̂+ (x2 −z 2 )̂ −xz 2 k̂ acts on a particle. Calculate the work done if
the particle is taken from the point (0, 0, 0) to the point (2, 1, 3) along straight line
segment connecting (0, 0, 0) → (0, 1, 0) → (2, 1, 0) → (2, 1, 3). What would be
the work done if the particle directly moved to the final point along the straightline
connecting to origin. (Ans. −16, −13.8.)
Exercise :
A vector field is given by
14
Evaluate the line integral of the field around a circle of unit radius traversed in
clockwise fashion. (Ans. 6π)
Exercise :
Evaluate the line integral of a scalar function xy along a parabolic path y = x2
connecting the origin to the point (1, 1). q
[]Hint : Remember that the arc length along a curve is given by (dx)2 + (dy)2.
√
The curve can be parametrized by x = t and y = t2 . Ans. (25 5 + 1)/120 ]
V V
^n
θ
^n
If, on the other hand, the surface is tilted relative to the flow, as shown to the right,
the amount of flux through the area decreases. Clearly, only the part of the area
that is perpendicular to the direction of flow will contribute to the flux.
We define flux through an area element dS ~ as the dot product of the vector field
~ When V~ is parallel to dS,
~ with the area vector dS.
V ~ i.e. if the surface is oriented
perpendicular to the direction of flow, the flux is maximum. On the other hand, a
surface oriented parallel to the flow does not contribute to the flux.
15
Example 9 :
A hemispherical bowl of radius R is oriented such that the circular base is perpen-
dicular to direction of flow. Calculate the flux through the curved surface of the
bowl, assumuing the flow vector V ~ to be constant.
Solution :
Since the curved surface makes different angles at different positions, it is some-
what difficult to calculate the flux through it. However, one can circumvent it by
calculating the flux through the circular base.
V
^n
2
^n
1
^n ^n
1 2
Since the flow vector is constant all over the circular face which is oriented per-
pendicular to the direction of flow, the flux through the base is −πR2 V . The
minus sign is a result of the fact that the direction of the surface is opposite to
the direction of flow. Thus we may call the flux through the base as inward flux.
Since there is no source or sink of flow field (i.e. there is no accumulation of
water) inside the hemisphere, whatever fluid enters through the base must leave
through the curved face. Thus the outward flux from the curved face is +πR2 V .
We may now generalize the above for a surface over which the field is not uniform
by defining the flux through an area as the sum of contribution to the flux from
infinitisimal area elements which comprises the total area by treating the field to
be uniform over such area elements. Since the flux is a scalar, the surface integral,
defined as the limit of the sum, is also a scalar.
16
If ∆Si is the i−th surface element,
the normal n̂i to which makes an an-
gle θi with the vector field V~i at the ^n
i
position of the element, the total flux θi
~i · n̂i ∆Si = ∆S i
X X
Φ= V Vi δSi cos θi
i i
Example 10 :
~ = xyı̂ + yẑ + zxk̂. Evaluate the flux through each
A vector field is given by B
face of a unit cube whose edges along the cartesian axes and one of the corners is
at the origin.
Solution :
z
Consider the base of the cube
(OGCD), which is the x-y plane on
~ = xyı̂. E F
which z = 0. On this face B
The surface vector n̂ is along −k̂ di-
rection. Thus on this surface flux
~ A B
B · n̂dxdy = xyı̂ · k̂dxdy = 0
R R
17
zero while the front face (ABCD) contributes 1/2. The net flux, therefore, is 3/2.
Exercise :
z
~ =
Find the flux of the vector field V
2
Axı̂ + By ̂ through a rectangular
surface in the x-y plane having di-
mensions a × b. The origin of the co-
ordinate system is at one of the cor- O a x
ners of the rectangle and the x-axis
along its length. (Ans. Bab3 /3)
b
y
Example 11 :
Calculate directly the flux through the curved surface of the hemispherical bowl
of Example 10.
Solution :
Use a spherical polar coordinates with the
base of the hemisphere being the x-y plane
and the direction of the vector field as the z-
^n
axis. We have seen that an area element on x
the surface is givenR by dS = R2 sin θdθdφ.
Thus the flux Φ = V ~ · n̂ is given by φ z−axis
V
Z 2 Z π/2 O θ
Φ = | V | R2 πdφ cos θ sin θdθ
0 0
#2π
sin2 θ
"
2 y
= | V | R .2π
2 0
= π | V | R2
Exercise :
Find the flux through a hemispherical bowl with its base on the x-y plane and the
origin at the centre of the base. The vector field, in spherical polar coordinates is
~ = r sin θr̂ + θ̂ + φ̂.
V (Ans. π(1 + π/2))
18
Example 12 :
A cylindrical object occupies a volume defined by x2 + y 2 ≤ R2 and 0 ≤ z ≤ h.
Find the flux through each of the surfaces when the object is in a vector field
~ = ı̂x + ̂y + k̂z.
V
Solution :
Because of cylindrical symmetry, it is convenient to work in a cylindrical (ρ, θ, z)
coordinates. The vector field is given by
~ = ρρ̂ + z k̂
V
z
^n
x
The normal to the curved face is along ρ̂ direction. An area element on the curved
face is Rdθdz Thus the flux from this face is
Z Z 2π Z h
2
(Rρ̂ + z k̂) · ρ̂Rdθdz = R dθ dz = 2πR2 h
0 0
19
1.3 Gradient of a Scalar Function :
Consider a scalar field such as temperature T (x, y, z) in some region of space. The
distribution of temperature may be represented by drawing isothermal surfaces or
contours connecting points of identical temperatures,
T (x, y, z) = constant
One can draw such contours for different temperatures. If we are located at a point
~r on one of these contours and move away along any direction other than along
the contour, the temperature would change.
20
Note that ∇T , the gradient of a scalar T is itself a vector. If θ is the angle between
the direction of ∇T and d~r,
where (∇T )r is the component of the gradient in the direction of d~r. If d~r lies
on an isothermal surface then dT = 0. Thus, ∇T is perpendicular to the surfaces
of constant T . When d~r and ∇T are parallel, cos θ = 1 dT has maximum value.
Thus the magnitude of the gradient is equal to the maximum rate of change of T
and its direction is along the direction of greatest change.
The above discussion is true for any scalar field V . If a vector field can be written
as a gradient of some some scalar function, the latter is called the potential of the
vector field. This fact is of importance in defining a conservative field of force in
mechanics. Suppose we have a force field F~ which is expressible as a gradient
F~ = ∇V
Z f Z f
~ =
F~ · dl ∇V · d~l
i i
Z f
= dV = Vf − Vi
i
where the symbols i and f represent the initial and thec final positions and in the
last step we have used an expression for dV similar to that derived for dT above.
Thus the line integral of the force field is independent of the path connecting the
initial and final points. If the initial and final points are the same, i.e., if the particle
is taken through a closed loop under the force field, we have
I
~ =0
F~ · dl
Since the scalar product of force with displacement is equal to the work done by
a force, the above is a statement of conservation of mechanical energy. Because
of this reason, forces for which one can define a potential function are called con-
servative forces.
Example 13 :
Find the gradient of the scalar function V = x2 y + y 2 z + z 2 x + 2xyz.
21
Solution :
∂V ∂V ∂V
∇V = ı̂ + ̂ + k̂
∂x ∂y ∂z
= 2(xy + zx + yz)(ı̂ + ̂ + k̂)
Gradient can be expressed in other coordinate systems by finding the length ele-
ments in the direction of basis vectors. For example, in cylindrical coordinates the
length elements are dρ, ρdθ and dz along ρ̂, θ̂ and k̂ respectively. The expression
for gradient is
∂V 1 ∂V ∂V
∇V = ρ̂ + θ̂ + k̂
∂ρ ρ ∂θ ∂z
The following facts may be noted regarding the gradient
1. The gradient of a scalar function is a vector
2. ∇(U + V ) = ∇U + ∇V
4. ∇(V n ) = nV n−1 ∇V
Example 14 :
2 2
Find the gradient of V = e−(x +y ) in cylindrical (polar) coordinates.
Solution :
2
In polar variables the function becomes V = e−ρ . Thus
2
∂e−ρ
∇V = ρ̂
∂ρ
−ρ2
= ρ̂e .(−2)ρ = −2ρ̂ρV
Exercise :
Find the gradient of the function V of Example 15 in cartesian coordinates and
then transform into polar form to verify the answer.
22
Exercise : √
Find the gradient of the function ln ρ2 + z 2 in cylindrical coordinates.(Ans.(ρ̂ρ+
k̂z)/(ρ2 + z 2 ))
In spherical coordinates the length elements are dr, rdθ and r sin θdφ. Hence the
gradient of a scalar function U is given by
∂V 1 ∂V 1 ∂V
∇V = r̂ + θ̂ + k̂
∂r r ∂θ r sin θ ∂φ
Exercise :
Find the gradient of V = r 2 cos θ cos φ (Ans. 2r cos θ cos φr̂ − r sin θ cos φθ̂ −
r cos θ sin φφ̂.)
Exercise : √
A potential function is given in cylidrical coordinates as k/ ρ2 + z 2 Find the
force field it represents and express the field in spherical polar coordinates. (Ans.
−k~r/r 3 )
23
= +
We can generalize the above to closely packed volumes and conclude that the flux
out of the bounding surface S of a volume V is equal to the sum of fluxes out of
the elemental cubes. If ∆V is the volume of an elemental cube with ∆S as the
surface, then,
1
Z XZ Z
~ =
F~ · dS F~ · dS = lim ~ ∆V
F~ · dS
S ∆S ∆V →0 ∆V
The quantity in the bracket of the above expression was defined as the divergence
of F~ , giving
Z Z
~ =
F~ · dS divF~ dV
S V
24
[Fy (y + dy) − Fy (y)] dxdz z
2. ∇ · (F~ + G)
~ = ∇ · F~ + ∇ · G
~
25
3. ∇ · (φF~ ) = φ∇ · F~ + ∇φ · F~
4. In cylindrical coordinates
1 ∂ 1 ∂ ∂
∇ · F~ = (ρFρ ) + Fθ + Fz
ρ ∂ρ ρ ∂θ ∂z
5. In spherical polar coordinates
1 ∂ 1 ∂ 1 ∂
∇ · F~ = 2 (r 2 Fr ) + (Fθ sin θ) + Fφ
r ∂r r sin θ ∂θ r sin θ ∂φ
6. The divergence theorem is
I Z
~ =
F~ · dS ∇ · F~ dV
S V
Example 16 :
A vector field is given by F~ = 4xzı̂ − y 2 ̂ + yz k̂. Find the surface integral of the
field from the surfaces of a unit cube bounded by planes x = 0, x = 1, y = 0, y =
1, z = 0 and z = 1. Verify that the result agrees with the divergence theorem.
Solution :
Divergence of F~ is
∂Fx ∂Fy ∂Fz
∇ · F~ = + +
∂x ∂y ∂z
∂4xz ∂(−y 2 ) ∂yz
= + +
∂x ∂y ∂z
= 4z − 2y + y = 4z − y
26
The volume integral of above is
1 1 1 3
Z Z Z Z
∇ · F~ dV = dx dy (4z − y)dxdydz =
0 0 0 2
z
Consider the surface integral from
the six faces individually. For the
E (0,0,1) F
face AEOD, the normal is along −̂.
On this face y = 0 so that F~ = 4xzı̂.
Since ı̂ · ̂ = 0, the integrand is zero. A B
For the surface BFGC, the normal
^
is along ̂ and on this face y = 1. ^n = −j ^n = ^j
On this face the vector field is F~ =
4xzı̂ − ̂ + z k̂. The surface integral G (0,1,0)
O y
is
Z Z
~ =
F~ · dS F~ · ̂dxdz D
(1,0,0) C
Z 1 Z 1
= − dx dz = −1
0 0
x
Consider the top face (ABFE) for which the normal is k̂ so that the surface integral
is Fz dydx. On this face z = 1 and Fz = y. The contribution to the surface
R
On this face x = 0 giving Fx = 0. The surface integral is zero. For the front face
ABCD, the normal is along ı̂ and on this face x = 1 giving Fx = 4z. The surface
integral is Z Z 1 1
dy 4zdz = 2
0 0
Adding the six contributions above, the surface integral is 3/2 consistent with the
divergence theorem.
Exercise :
Verify the divergence theorem by calculating the surface integral of the vector
field F~ = ı̂x3 + ̂y 3 + k̂z 3 for the cubical volume of Example 17. (Ans. Surface
27
integral has value 3)
Example 17 :
In Example 13 we found that the surface integral of a vector field xı̂ + ŷ + z k̂
over a cylinder of radius R and height h is 3πR2 h. Verify this result using the
divergence theorem.
Solution :
In Example 16 we have seen that the divergence of the field vector is 3. Since the
integrand is constant, the volume integral is 3V = 3πR2 h.
Example 18 :
A vector field is given by F~ = x3 ı̂+y 3̂. Verify Divergence theorem for a cylinder
of radius 2 and height 5. The origin of the coordinate system is at the centre of the
base of the cylinderand z-axis along the axis.
Solution :
The problem is obviously simple in cylindrical coordinates. The divergence can
be easily seen to be 3(x2 + y 2) = 3ρ2 . Recalling that the volume element is
ρdρdθdz, the integral is
Z Z Z 2 Z 2π Z 5
div F~ dV = 3ρ2 dV = 3 ρ3 dρ dθ dz = 120π
0 0 0
In order to calculate the surface integral, we first observe that the end faces have
their normals along ±k̂. Since the field does not have any z- component, the
contribution to surface integral from the end faces is zero.
We will calculate the contribution to the surface integral from the curved surface.
Using the coordinate transformation to cylindrical
x = ρ cos θ y = ρ sin θ
and
ı̂ = ρ̂ cos θ − θ̂ sin θ
̂ = ρ̂ sin θ + θ̂ cos θ
k̂ = k̂
Using these
F~ = ρ3 (cos4 θ + sin4 θ)ρ̂ + ρ3 (sin3 θ cos θ − cos3 θ sin θ)θ̂
The area element on the curved surface is Rdθdz ρ̂, where R is the radius. Thus
the surface integral is
Z Z 2π Z 5
Fρ dS = R4 (cos4 θ + sin4 θ)dθ dz
0 0
28
3π
= 16. .5 = 120π
2
where we have used 02π sin4 θdθ = 02π cos4 θdθ = 3π/4.
R R
Exercise :
In the Exercise following Example 13, we had seen that surface integral of the
vector field V~ = 2ρ̂ − 3ρθ̂ + zρk̂ through the surface of a cylinder of radius 1 and
height 2 is 28π/3. Re-confirm the same result using divergence theorem.
Example 19 :
A hemispherical bowl of radius 1 lies with its base on the x-y plane and the origin
at the centre of the circular base. Calculate the surface integral of the vector field
F~ = x3 ı̂ + y 3̂ + z 3 k̂ in the hemisphere and verify the divergence theorem.
Solution :
The divergence of F~ is easily calculated
∂Fx ∂Fy ∂Fz
∇ · F~ = + +
∂x ∂y ∂z
3 3
∂x ∂y ∂z 3
= + +
∂x ∂y ∂z
= 3(x + y + z ) = 3r 2
2 2 2
where r is the distance from origin. The volume integral over the hemisphere is
conveniently calculated in spherical polar using the volume element r 2 sin θdθdφ.
Since it is a hemisphere with z = 0 as the base, the range of θ is 0 to π/2.
Z Z 1 Z π/2 Z 2π
∇ · F~ dV = 3 2
r dV = 3 4
r dr sin θdθ dφ
0 0 0
1 6π
= 3× × 1 × 2π =
5 5
The surface integrals are calculated conveniently in spherical polar. There is no
contribution to the flux from the base because the outward normal points in the
−z direction but the z-component of the field is zero because the base of the hemi-
sphere is z = 0.
In order to calculate the flux from the curved face we need to express the force
field and the unit vectors in spherical polar coordinates. Using the tranformation
properties given earlier and observing that we only require the radial component
of the vector field since the area element is radially directed. Using R2 sin θdθdφ
as the area element, a bit of laborious algebra gives
29
Z π/2 Z 2π Z π/2 Z 2π
~ = R5
F~ · dS 5
sin θdθ 4
cos φdφ + R 5 5
sin θdθ sin4 φdφ
0 0 0 0
Z π/2 Z 2π
+ R5 cos4 θ sin θdθ dφ
0 0
R π/2 R 2π
Using 0 sin5 θdθ = 8/15 and 0 cos4 φdφ = 3π/4, the above integral can be
seen to give the correct result.
1.5 Curl of a Vector - Stoke’s Theorem
We have seen that the line integral of a vector field F~ · dl
R
~ is essentially a sum
of the component of F~ along the curve. If the line integral is taken over a closed
path, we represent it as F~ · dl.
H
~ If the vector field is consevative, i.e., if there
exists a scalar function V such that one can write F~ as ∇V , the contour integral
is zero. In other cases, it is, in general, non-zero.
Consider a contour C enclosing a surface S. We may split the contour into a large
number of elementary surface areas defined by a mesh of closed contours.
30
along the outward normal to the area element ∆Si . For instance, the x-component
of the curl is given by
R
~
F~ · dl
Ci
(curl)x = lim n̂i
∆y,∆z→0 ∆y∆z
Thus
I Z
~ =
F~ · dl curlF~ · dS
C S
This is Stoke’s Theorem which relates the surface integral of a curl of a vector
~ and dS
to the line integral of the vector itself. The direction of dl ~ are fixed by the
right hand rule, i.e. when the fingers of the right hand are curled to point in the
~ the thumb points in the direction of dS.
diurection of dl, ~
1.5.1 Curl in Cartesian Coordinates :
We will obtain an expression for the curl in the cartesian coordinates. Let us
consider a rectangular contour ABCD in the y-z plane having dimensions ∆y ×
∆z. The rectangle is oriented with its edges parallel to the axes and one of the
corners is located at (y, z). We will calculate the line integral of a vector field
F~ along this contour. We assume the field to vary slowly over the length (or
the bredth) so that we may retain only the first term in a Taylor expansion in
computing the field variation.
z
^n
31
Contribution to the line integral from the two sides AB and CD are computed as
follows.
On AB : F~ · dl
R
~ = R F~ · ̂dy = R Fy dy
ON CD : F~ · dl
R
~ = R F~ · (−̂)dy = R Fy dy
Using Taylor expansion (retaining only the first order term), we can write
∂Fy
Fy |CD = Fy |AB + ∆z
∂z
Thus the line integral from the pair of sides AB and CD is
∂Fy ∂Fy
Z
− ∆zdy ≈ − ∆z∆y
∂z ∂z
In a similar way one can calculate the contributions from the sides BC and DA
and show it to be Z
∂Fz ∂Fz
∆ydz ≈ ∆y∆z
∂y ∂y
Adding up we get
∂Fz ∂Fy
∂y
− ∂z
∆y∆z ∂Fz ∂Fy
(curl F )x = lim = −
∆y,∆z→0 ∆y∆z ∂y ∂z
In a very similar way, one can obtain expressions for the y and z components
∂Fx ∂Fz
(curl F )y = −
∂z ∂x
∂Fy ∂Fx
(curl F )z = −
∂x ∂y
One can write the expression for the curl of F~ by using the del operator as
ı̂ ̂ k̂
curl F~ = ∇ × F~ = ∂ ∂ ∂
∂x ∂y ∂z
Fx Fy Fz
32
In the spherical coordinates the corresponding expression for the curl is
!
1 ∂ ∂Fθ
∇ × F~ = (Fφ sin θ) − r̂
r sin θ ∂θ ∂φ
! !
1 1 ∂Fr ∂ 1 ∂ ∂Fr
+ − (rFφ ) θ̂ + (rFθ ) − φ̂
r sin θ ∂φ ∂r r ∂r ∂θ
Example 20 :
C B(1,1)
Verify Stoke’s theorem for F~ =
x2 ı̂ + 2x̂ + z 2 k̂ for the rectangle shown
below, defined by sides x = 0, y = 0, x = 1
and y = 1.
O x
A (1,0)
The line integrals along the four sides are
I Z 1 Z 1 Z 0 Z 1
~ =
F~ · dl Fx |y=0 dx + Fy |x=0 dy + Fx |y=1 dx + Fy |x=1 dy
0 0 1 0
Z 1 Z 0 Z 1
= x2 dx + 0 + + x2 dx + 2dy
0 1 0
1 1
= +0− +2=2
3 3
Since the normal to the plane is along k̂, we only need z− component of ∇ × F~
to calculate the surface integral. It can be checked that
∂Fy ∂Fx
(∇ × F~ )z = − =2−0=2
∂x ∂y
Thus Z Z 1 Z 1
(∇ × F~ ) · k̂dS = 2dxdy = 2
S 0 0
which agrees with the line integral calculated.
Exercise :
33
B
A vector field is given by
F~ = −yı̂ + x̂ + x2 k̂. Calcu-
late the line integral of the field
along the triangular path shown
above. Verify your result by Stoke’s
theorem. (Ans. 1)
O A
(Hint : To calculate the line integral along a straightline, you need the equation
to the line. ForR instance, the equation to the line BO is y = 2x. Check that
R
F ~ = − ydx + R xdy = 1. )
~ · dl
AB
Example 21 :
A vector field is given by F~ = −yı̂ + ẑ + x2 k̂. Calculate the line integral of
the field along a circular path of radius R in the x-y plane with its centre at the
origin. Verify Stoke’s theorem by considering the circle to define (i) the plane of
the circle and (ii) a cylinder of height z = h.
Solution :
The curl of F~ may be calculated as
∇ × F~ = −ı̂ + 2x̂ + k̂
ı̂ = ρ̂ cos θ − θ̂ sin θ
̂ = ρ̂ sin θ − θ̂ cos θ
k̂ = k̂
Substituting the above, the field F~ and its curl are given by
34
^
k
z
x
Let us calculate the surface integral of the curl of the field over two surfaces bound
by the circular curve.
(i) On the circular surface bound by the curve in the x-y plane, the outward normal
is along k̂ (right hand rule). Thus
Z Z
(∇ × F~ ) · (k̂dS) = dS = πR2
S S
(ii) For the cylindrical cup, we have two surfaces : the curved face of the cylinder
on which n̂ = ρ̂ and the top circular face on which n̂ = k̂. The contribution from
the top circular cap is πR2 , as before because the two caps only differ in their
z values (the z-component of the curl is independent of z). The surface integral
from the curved surface is (the area element is Rdθdz ρ̂)
Z 2π Z h
Rdθ dz(−R sin θ cos θ + z cos θ)
0 0
For both the terms of the above integral, the angle integration gives zero. Thus the
net surface integral is πR2 , as expected.
Exercise :
A vector field is given by F~ = kρ2 z θ̂. Check the validity of the Stoke’s theorm
35
z
h=4
ing the surface integral of the open
surface of the cylinder below it, as
shown. (Hint : Express the curl in
cylindrical coordinates and take care y
R=2
of the signs of the surface elements
from the curved surface and the bot-
tom cap. Ans. 64kπ )
x
Exercise :
Let C be a closed curve in the x-y plane in the shape of a quadrant of a circle of
radius R.
y
z
Example 22 :
A vector field is given by F~ (r, θ, φ) = f (r)φ̂ where φ is the azimuthal angle
variable of a spherical coordinate system. Calculate the line integral over a circle
of radius R in the x-y plane centered at the origin. Consider an open surface in the
form of a hemispherical bowl in the northern hemisphere bounded by the circle.
36
Solution :
~ = Rdφφ̂. Hence,
On the equatorial circle dl
I Z 2π
~ =
F~ · dl f (R)Rdφ = 2πRf (R)
0
Exercise :
Verify Stoke’s theorem for a vector field 2zı̂ + 3x̂ + 5y k̂ where the contour is an
equatorial circle of radius R and is anticlockwise when viewed from above and
the surface is the hemisphere shown in the preceding example.. (Ans. 3R2 π)
1.6 Laplacian :
Since gradient of a scalar field gives a vector field, we may compute the diver-
gence of the resulting vector field to obtain yet another scalar field. The operator
div(grad) = ∇ · ∇ is called the Laplacian and is written as ∇2 .
If V is a scalar, then,
∇2 V = ∇ · (∇V )
! !
∂ ∂ ∂ ∂V ∂V ∂V
= ı̂ + ̂ + k̂ ı̂ + ̂ + k̂
∂x ∂y ∂z ∂x ∂y ∂z
∂2V ∂V ∂2V
= + +
∂x2 ∂y 2 ∂z 2
37
Example 23 : √
Calculate the Laplacian of 1/r = 1/ x2 + y 2 + z 2 .
Solution :
∂2 1 ∂ −x
2
√ 2 =
2
∂x x + y + z 2 ∂x (x + y62 + z 2 )3/2
2
2x2 − y 2 − z 2
=
(x2 + y 2 + z 2 )5/2
3x2 − r 2
=
r5
Adding similar contributions from ∂ 2 /∂y 2 and ∂ 2 /∂z 2 , we get
1 3(x2 + y 2 + z 2 ) − 3r 2 3r 2 − 3r 2
∇2 = = =0
r r5 r5
Laplacian in cylindrical and spherical coordinates:
In cylindrical :
1 ∂2 ∂2
!
21 ∂ ∂
∇ = ρ + 2 2+ 2
ρ ∂ρ ∂ρ ρ ∂θ ∂z
In spherical :
∂2
! !
1 ∂ ∂ 1 ∂ ∂ 1
∇2 = 2 r2 + 2 2 sin θ +
r ∂r ∂r r sin θ ∂θ ∂θ r 2 sin2 θ ∂φ2
Frequently the Laplacian of a vector field is used. It is simply a short hand notation
for the componentwise Laplacian
Exercise :
Show that
∇ × (∇ × F~ ) = ∇(∇ · F~ ) − ∇2 F~
38
is zero everywhere, other than at one point, the integral of the function over any
region which includes this singular point is finite. We define
δ(x − a) = 0 if x 6= a
with Z
f (x)δ(x − a)dx = f (a)
where f (x) is any function that is continuous at x = a, provided that the range of
integration includes the point x = a. Strictly speaking, δ(x − a) is not a function
in the usual sense as Riemann integral of any function which is zero everywhere,
excepting at discrete set of points should be zero. However, one can look at the δ
function as a limit of a sequence of functions. For instance, if we define a function
δǫ (x) such that
δ ε(x)
1 ǫ ǫ 1/ε
δǫ (x) = for − < x < +
ǫ 2 2
ǫ
= 0 for | x |>
2
Then δ(x) can be thought of as the
limit of δǫ (x) as ǫ → 0. x
− ε /2 0 + ε/2
One can easily extend the definition to three dimensions
δ(~r) = δ(x)δ(y)δ(z)
Solution :
The range of integration includes the point x = π at which the argument of the
delta function vanishes. Thus, the value of the integral is cos π = −1.
Exercise :
Evaluate ~r ·(~a−~r)δ(~r −~b)dr , where ~a = (1, 2, 3), ~b = (3, 2, 1) and the integration
R
39
A physical example is the volume density of charge in a region which contains a
point charge q. The charge density is zero everywhere except at the point where
the charge is located. However, the volume integral of the density in any region
which includes this point is equal to q itself. Thus if q is located at the point ~r = ~a,
we can write
ρ(~r) = qδ(~r − ~a)
Example :
Show that ∇2 (1/r) is a delta function.
Solution√:
As r = x2 + y 2 + z 2 , we have
∂r x ∂r y ∂r z
= , = , =
∂x r ∂y r ∂z r
using this it is easy to show that
∂2 1 3x2 − r 2
( )=
∂x2 r r5
Thus
∂2 ∂2 ∂2 3(x2 + y 2 + z 2 ) − 3r 2
!
1 1
2
∇ = + + ( )= =0
r ∂x2 ∂y 2 ∂z 2 r r5
However, the above is not true at the origin as 1/r diverges at r = 0 and is not
differentiable at that point. Interestingly, however, the integral of ∇2 (1/r) over
any volume which includes the point r = 0 is not zero. As the value of the
integrand is zero everywhere excepting at the origin, the point r = 0 has to be
treated with care.
Consider an infinitisimally small sphere of radius r0 with the centre at the origin.
Using divergence theorem, we have,
2 1 1 3 1
Z Z Z
3
∇ dr= ∇·∇ d r = ∇ i · dS
V r V r S r
where the last integral is over the surface S of the sphere defined above. As the
gradient is taken at points on the surface for which r 6= 0, we may replace ∇(1/r)
with −1/r02 at all points on the surface. Thus the value of the integral is
1 1
Z
− 2 dS = − 2 · 4πr02 = −4π
r0 S r0
Hence
2 1
∇ = −4πδ(r)
r
40