Vector Differentiation
Vector Differentiation
Vector Differentiation
Chapter-6
Gradient, Divergence and Curl
1. The Gradient Vector: grad
Consider a room in which the temperature is given by a scalar field, T (u1 ,u 2 , u3 )at each
point (u1 , u2 , u3 ) (assume that the temperature does not change over time.). At each point in the
room, the gradient of T at that point will show the direction in which the temperature rises most
quickly. The magnitude of the gradient will determine how fast the temperature rises in that
direction.
A vector field, called the gradient, written: gradT or ∇ T , where ∇ is called ‘del’, can be
associated with a scalar field T .
u^ 1 ∂ T u^ 2 ∂T u^ 3 ∂T
gradT =∇ T = + + ∙
h1 ∂ u1 h 2 ∂ u2 h 3 ∂u3
where hi are scale factors and u^ i are the unit vectors along ui , ( i=1 , 2, 3 ) . For cartesian
coordinates u1=x , u2= y , u3=z , h1=h2 =h3=1, for cylindrical coordinates
u1=r ,u2 =φ , u3=z , h1=h3 =1 and h2 =r and for spherical coordinates
u1=r ,u2 =θ ,u 3=φ , h1=1 , h2=R ¿ h 3=R sin θ .
xyz
(a) T ( x , y , z )= at the point ( 1 ,1,1 ) .
( x + y 2+ z 2 )
2
1
Matrices, Vectors & Fourier Analysis Spring 2018-19
∂T ∂T ∂T
For Cartesian coordinates, gradT =∇ T = x^ + ^y + ^z ∙
∂x ∂y ∂z
¿ ^x
∂
( xyz
∂ x (x + y +z )
2 2 2
+ ^y
∂
) xyz
∂ y (x + y +z )
2 2 2 (+ z^
∂
)
xyz
(
∂ z ( x + y2 + z2 )
2 )
( x 2+ y 2+ z 2 ) yz−2 x 2 yz ( x 2+ y 2+ z 2 ) xz−2 y 2 xz ( x 2+ y 2+ z 2 ) xy−2 z 2 xy
¿ ^x 2
+ ^y 2
+ ^z 2
( x2+ y2+ z2 ) ( x 2+ y 2+ z 2 ) ( x 2+ y 2+ z 2 )
1
At the point ( 1 ,1,1 ) , ∇ T = ( ^x + ^y + ^z ) ∙
9
z cos ϕ
(b) T ( r , ϕ , z ) = , at the point ( 1 , π , 2 )
( 1+ r 2 )
r^ ∂ T ϕ^ ∂T z^ ∂ T
For cylindrical coordinates, gradT =∇ T = + +
1 ∂r r ∂ ϕ 1 ∂z
¿ r^
(
∂r ( 1+r )
2
+ϕ
)
∂ z cos ϕ ^ 1 ∂ z cos ϕ
r ∂ ϕ ( 1+r )
2
+ ^z
(
∂ z cos ϕ
∂ z ( 1+r )
2 )
=−r^
(
( 1+ r )
2 2
−ϕ
)
2 zr cos ϕ ^ 1 z sin ϕ
+ ^z
cos ϕ
r ( 1+r ) ( 1+r 2 )
2
∙
1
At the point ( 1 , π , 2 ) , ∇ T =^r − z^ ∙
2
∂ θ^ ∂ ϕ^ ∂
¿^
R ( R cos θ sin ϕ )+ ( R cos θ sin ϕ )+ ( R cos θ sin ϕ )
∂R R ∂θ R sin θ ∂ ϕ
ϕ^
¿^
R cos θ sin ϕ−θ^ sin θ sin ϕ+ R cos θ cos ϕ.
R sin θ
At the point 2 , ( π π
)
, , ∇ T =−θ^
2 4
1
√2
.
2. Directional Derivatives:
2
Matrices, Vectors & Fourier Analysis Spring 2018-19
Consider the temperature T at various points of a heated metal plate. Some contours for T are
We are interested in how T changes from one point to another. The rate of change of T in the
direction specified by AB is given by (20−15)/ AB=5 / AB , examples of directional derivative.
In general, for a given function T =T (u1 ,u 2), the directional derivative in the direction of a unit
vector is the gradient vector at a point A
Hence, the component of∇ T in the direction of a vectord is equal to∇ T ∙ d and it is called the
directional derivative ofT in the direction ofd .
Example 2.1 Find the directional derivative of T ( x , y , z )=x y 2−z 2at the point ( 1 ,−1 , 4 )in the
direction d= ^x −^y +4 z^ .
∂
Solution: ∇ T = ^x ( x y 2−z 2 ) + ^y ∂ ( x y 2−z 2 ) + ^z ∂ ( x y 2−z 2 )
∂x ∂y ∂z
2 ∂
¿ ^x y + ^y 2 xy + z^ (−2 z )
∂z
At the point ( 1 ,−1 , 4 ), ∇ T = ^x −2 ^y −8 ^z
3
Matrices, Vectors & Fourier Analysis Spring 2018-19
^x −^y +4 z^ 1 1 4
Now, the unit vector in the direction of ^x − ^y + 4 ^z is a^ = = ^x − ^y + ^z
√ 1+1+16 √ 18 √ 18 √18
Then the required directional derivative is,∇ T ∙ a^ =( x^ −2 ^y −8 z^ ) ∙ ( √118 ^x− √118 ^y+ √418 z^ )
1 2 32 −29
¿ + − = .
√ 18 √ 18 √ 18 √18
( )
−r
1 5 π
Example 2.2 Find the directional derivative of T ( r , ϕ , z ) = e cos ϕ at the point 2 , ,3 in the
2 4
direction r^ .
Solution:∇ T = r^
∂r 2(
∂ 1 −r /5
e cos ϕ + ϕ^ )
1 ∂ 1 −r /5
r ∂ϕ 2 (
e cos ϕ + ^z )
∂ 1 −r / 5
∂z 2
e cos ϕ ( )
1 −r /5 1 −r /5
¿−^r e cos ϕ− ϕ^ e sin ϕ
10 2r
At the point 2 , ( π
4 )
,3 , ∇ T =−^r
1
10 √ 2
e−2 /5− ϕ^
1 −2 /5
4 √2
e
−1 −2 /5
Then the required directional derivative is,∇ T ∙ r^ = e .
10 √ 2
At the point 5 , ( π π
4 2 ) 1
R + θ^
, , ∇ T =− ^
50
1
25
^= −1
Then the required directional derivative is,∇ T ∙ R .
50
3. The divergence and curl of a vector function
Consider air as it is heated or cooled. The velocity of the air at each point defines a vector field.
While air is heated in a region, it expands in all directions, and thus the velocity field points
4
Matrices, Vectors & Fourier Analysis Spring 2018-19
outward from that region. The divergence of the velocity field in that region would thus have a
positive value. While the air is cooled and thus contracting, the divergence of the velocity has a
negative value.
The divergence of a vector field is relatively easy to understand intuitively. Imagine that the
vector field A pictured below gives the velocity of some fluid flow. It appears that the fluid is
exploding outward from the origin.
∇ ∙ A> 0
This expansion of fluid flowing with velocity field A is captured by the divergence of A , which
we denote ¿ A or mathematically ∇ ∙ A . The divergence of the above vector field is positive since
the flow is expanding.
In contrast, the below vector field represents fluid flowing so that it compresses as it moves
toward the origin. Since this compression of fluid is the opposite of expansion, the divergence of
this vector field is negative.
∇ ∙ A< 0
5
Matrices, Vectors & Fourier Analysis Spring 2018-19
Hence the illustration of the divergence of a vector field at any point P is given below:
The curl of a vector field captures the idea of how a flow may rotate. Imagine that the below
vector field F represents fluid flow. The vector field indicates that the fluid is circulating around
a central axis. This rotation of fluid flowing with velocity field A is captured by the curl of A ,
which we denote curl A or mathematically∇ × A .
¿ A=∇ ∙ A=
1
[∂
h1 h2 h3 ∂ u1
( A 1 h 2 h3 ) +
∂
∂ u2
( h1 A 2 h3 ) +
∂
]
(h h A ) ∙
∂u 3 1 2 3
6
Matrices, Vectors & Fourier Analysis Spring 2018-19
| |
u^ 1 h1 u^ 2 h2 u^ 3 h3
1 ∂ ∂ ∂ ,
and curl A=∇ × A= h h h
1 2 3 ∂u 1 ∂ u 2 ∂ u3
h1 A1 h2 A2 h3 A 3
Example 3.1 Determine divergence and curl. Also check each of the following vector fields
solenoidal, conservative or both.
(a) A= ^x x 2+ ^y 2 xy
¿ A=∇ ∙ A= [ ∂ 2 ∂
∂x ]
( x ) + ( 2 xy ) =2 x +2 x=4 x .
∂y
| |
x^ ^y ^z
∂ ∂ ∂
curl A=∇ × A= =^z 2 y .
∂x ∂y ∂z
x2 2 xy 0
sin ϕ ^ cos ϕ
(b) A=^r 2
+ϕ 2
r r
¿ A=∇ ∙ A=
1
[ ∂
h1 h2 h3 ∂ u1
( A1 h2 h3 ) +
∂
∂ u2
( h1 A 2 h3 ) +
∂
(h h A )
∂u 3 1 2 3 ]
¿
[ ( ) ( )
1 ∂ sin ϕ
r ∂r r 2
r +
∂ cos ϕ
∂ϕ r 2
∂
+ (0 ∙ r ) =
∂z r
3
r ]
−sin ϕ sin ϕ −2 sin ϕ
− 3 =
r
3
.
| || |
u^ 1 h1 u^ 2 h2 u^ 3 h3 r^ ϕ^ r ^z
∂ ∂ ∂
1 ∂ ∂ ∂ 1 2 cos ϕ
curl A=∇ × A= = ∂r ∂ϕ ∂ z =−^z .
h1 h2 h3 ∂u 1 ∂ u2 ∂ u3 r r2
sin ϕ cos ϕ
h1 A1 h2 A2 h3 A 3 r 0
r2 r2
(c) A= ^
R( R e )
−R
¿ A=∇ ∙ A= 2
1
R sinθ ∂
∂
R [ ∂θ ∂ϕ ]
( R e− R ∙ R2 sin θ ) + ∂ ( 0 ∙ R sin θ )+ ∂ ( 0 ∙ R ) =e−R ( 3−R ) .
7
Matrices, Vectors & Fourier Analysis Spring 2018-19
| |
^
R θ^ R ϕ^ R sin θ
1 ∂ ∂ ∂
∇ × A= 2 =0.∴ A is conservative but not solenoidal.
R sin θ ∂ R ∂θ ∂ϕ
R e− R R ∙ 0 R sin θ ∙ 0
| |
x^ ^y ^z
∂ ∂ ∂
∇ × A= =0
∂x ∂y ∂z
2 3 2
y cos x + z 2 y sin x − y 3 x z +2
Hence A is conservative force field.
Let T ( x , y , z )be a scalar potential of A , i.e. A=∇ T ∙ ∴ T ( x , y , z ) =∫ A ∙ d l
¿ ∫ [ ^x ( y cos x + z ) + ^y ( 2 y sin x− y ) + ^z ( 3 x z +2 ) ] . [ ^x dx + ^y dy + ^z dz ]
2 3 2
¿ ∫ [ ( y cos x+ z ) dx + ( 2 y sin x− y ) dy + ( 3 x z +2 ) dz ]
2 3 2
( )
2 2
y y
¿ ∫ d x z + y sin x+ 2 z−
3 2 3 2
=x z + y sin x+ 2 z− + c , c is a constant.
2 2
( π2 ,−1, 2)
[ ]
( π2 ,−1 ,2)
2
Now, work done, ¿ y
∫ 3 2
A ∙ d l= x z + y sin x +2 z−
2
=4 π +7 ∙
( 0 ,1 ,−1 ) ( 0 ,1 ,−1 )
Example 3.3 Test whether A=r^ ( cos ϕ ) + ϕ^ ( z sin ϕ ) is a conservative force field. If conservative,
find the scalar potentialT such that A=∇ T . Hence find the work done in moving an object in this
field from ( 0 , π ,−1 ) to ( 1,2 π , 2 ) ∙
Solution: We know for conservative force field curl A=∇ × A=0
| |
r^ ϕ^ r z^
1 ∂ ∂ ∂
∇ × A= =0
r ∂r ∂ϕ ∂z
cos ϕ – r sin ϕ 0
Hence A is conservative force field.
LetT ( r , ϕ , z ) be a scalar potential of A , i.e. A=∇ T ∙ ∴ T ( r , ϕ , z )=∫ A ∙ d l
8
Matrices, Vectors & Fourier Analysis Spring 2018-19
¿ ∫ [ r^ ( cos ϕ ) + ^ϕ ( – sin ϕ ) ] . [ r^ dr + ϕ^ r d ϕ+ z^ dz ]
¿ ∫ [ cos ϕ dr−rsin ϕ d ϕ ]
∫ ( 1 ,2 π , 2)
A ∙ d l=[ r cos ϕ ] (0 , π ,−1)=1 ∙
( 0 , π ,−1 )
Example 3.4 Test whether A= ^ R ( sinθ cos ϕ )+ θ^ ( cos θ cos ϕ ) + ^ϕ (−sin ϕ ) is a conservative force
field. If conservative, find the scalar potentialT such that A=∇ T . Hence find the work done in
| |
^
R θ^ R ϕ^ R sin θ
1 ∂ ∂ ∂
∇ × A= 2 =0
R sin θ ∂R ∂θ ∂ϕ
sin θ cos ϕ R cos θ cos ϕ −R sin θ sin ϕ
Hence A is conservative force field.
LetT ( R , θ , ϕ )be a scalar potential of A , i.e. A=∇ T ∙ ∴ T ( R ,θ , ϕ ) =∫ A ∙ d l
¿∫ [ ^
R ( sin θ cos ϕ ) + θ^ ( cos θ cos ϕ )+ ϕ^ (−sin ϕ ) ] . [ ^
R dR+ θ^ R dθ+ ϕ^ R sin θ d ϕ ]
(1 , π2 , π )
(1 , π2 , π )
Now, work done, ∫ A ∙ d l= [ R sin θ cos ϕ ] π π =−1∙
(0 , 4 , 3 )
(0 , π4 , π3 )
4. Laplacian operator
The Laplacian of a scalar function is defined as the divergence of the gradient of that function.
The Laplacian of a scalar function T in different coordinate system are defined as follows:
9
Matrices, Vectors & Fourier Analysis Spring 2018-19
2 2 2
2 ∂ T ∂T ∂ T
In Cartesian coordinates ∇ T = 2
+ 2+ 2 ,
∂ x ∂ y ∂z
in Cylindrical coordinates∇ T =
2 1 ∂
r + ( )
∂ T 1 ∂2 T ∂2 T
+
r ∂ r ∂ r r2 ∂ ϕ2 ∂ z2
and
( ) ( ) ( )
2
1 ∂ 2 ∂T
2 1 ∂ ∂T 1 ∂ T
in Spherical coordinates ∇ T = 2 R + 2 sin θ + 2 2 ∙
R ∂R ∂ R R sin θ ∂θ ∂ θ R sin θ ∂ ϕ 2
3
Example 4.1 Find the Laplacian of the scalar functionT = 2 2
.
x +y
2 ∂2 T ∂ 2 T ∂ 2 T
∇ T= + +
∂ x2 ∂ y2 ∂ z2
∂ ∂ ∂ ∂ ∂ ∂
( ( 3 ( x + y ) ) )+ ( 3 ( x + y ) ))+ ( ( 3 ( x + y ) ))
2 2 −1 2 2 −1 2 2 −1
¿ (
∂x ∂x ∂ y ∂y ∂z ∂z
∂ ∂
¿
∂x
( −3 ( x 2+ y 2) .2 x )+
−2
∂y
(−3 ( x 2 + y 2 ) .2 y ) +0
−2
2 −3 2 −2 2 −3 2 −2
¿ 24 x ( x + y ) −6 ( x + y ) + 24 y ( x + y ) −6 ( x + y )
2 2 2 2 2 2
12
¿ 2
( x + y2 )
2
Example 4.2 Find the Laplacian of the scalar functionT =5 e−r cosϕ .
( )
2 2
2 1 ∂ ∂T 1 ∂ T ∂ T
∇ T= r + +
r ∂ r ∂ r r2 ∂ ϕ2 ∂ z 2
¿
1 ∂ ∂
(
−r 1 ∂ ∂
r (5 e cosϕ) + 2
r ∂r ∂ r r ∂ϕ ∂ϕ ) (
( 5 e−r cosϕ ) + ∂ ∂ ( 5 e−r cosϕ )
∂z ∂z ) ( )
5 cosϕ ∂ −r 5 e−r ∂
¿ (−r e )+ 2 (−sin ϕ)+0
r ∂r r ∂ϕ
−r
5 cosϕ [ −r 5e
−e −r e ]− 2 cos ϕ
−r
¿−
r r
10
Matrices, Vectors & Fourier Analysis Spring 2018-19
−r −r
−5 e cosϕ −r 5e
¿ +5 e cosϕ − 2 cos ϕ .
r r
Example 4.3 Find the Laplacian of the scalar functionT =10 e−R sinθ .
2
∇ T=
1 ∂
R2 ∂ R
R (
2 ∂T
+
1
) ∂
∂ R R2 sin θ ∂θ
sin θ
∂T
+ (
1
)∂2 T
∂ θ R2 sin2 θ ∂ ϕ 2
∙
( )
¿
1 ∂
R ∂R
2
R2 (
∂
∂R
(10 e− R sinθ) + 2 )
1 ∂
R sin θ ∂ θ
sinθ
∂
∂θ ( )
( 10 e− R sinθ ) + 2 1 2 ∂ ∂ ( 10 e−R sinθ )
R sin θ ∂ ϕ ∂ ϕ ( )
−R
10 sinθ ∂ 2 −R 10 e ∂
¿ 2
(−R e )+ 2 (sinθcosθ)+ 0
R ∂R R sin θ ∂ θ
−R
10 sinθ ∂ 10 e ∂
¿− (−R2 e−R )+ 2 (sinθcosθ )+ 0
R 2
∂R R sinθ ∂θ
−R
10 sinθ [ 10 e ∂
2 R e −R e ] − 2
−R 2 −R
¿− (sin 2θ)
R 2
2 R sin θ ∂ θ
10 sinθ [ −R 2 −R
] 10 e− R
¿− 2
2 R e −R e − 2
cos 2 θ .
R R sin θ
1. Find the gradient of the following scalar functions at the indicated point:
3 2 2 y
(a) T ( x , y , z )=2 x y z+ y x −5 at the point ( 0 , 2 ,−1 ) . ∙ Ans: ∇ T =5 ^y +10 ^z
z
(b) T ( r , ϕ , z ) =
z +sin ϕ
r (
, at the point 2 ,
3π
2 )
, 1 ∙ Ans: ∇ T = z^
1
2
(
(c) T ( R , θ , ϕ )=R2 cos ϕ sin θ , at the point 2 ,
π 2π
,
4 3
∙ )
1 ^
Ans: ∇ T =−√ 2 ^
R − θ− √ 3 ϕ^
√2
2. (a) Find the directional derivative (D. D.) of T ( x , y , z )=x 2 y −xz at the point ( 1 , 0 ,2 ) in the
2
direction d= ^x −2 ^y −6 ^z . Ans: ∇ T = ^x ( 2 xy −z )+ ^y x 2− z^ x and D. D. is ∙
√ 41
11
Matrices, Vectors & Fourier Analysis Spring 2018-19
(b) Find the directional derivative (D. D.) of T ( r , ϕ , z ) =r 3 cos ϕ at the point 2 , ( π
4 )
,1 in the
12
direction r^ . Ans: D.D. is ∙
√2
(a) A= ^x zy 3 + ^y 2 y sin( xy )+ ^z 3 x 2 ln z
3 2
Ans:∇ . A= x + 2sin xy +2 xy cos xy and ∇ × A= ^y ( y 3 −6 x lnz ) + z^ ( 2 y 2 cos xy −3 y 2 z ) ∙
z
(
π
)
object in this field from ( 1 ,−1 , 5 ) to 2 , ,1 ∙ Ans: T =x sin y + y 2 z+ x−3 z+ c
2
(b) Test whether A=r^ ( 2rz −cos ϕ ) + ^ϕ ( sin ϕ ) + ^z ( r 2 )is a conservative force field. If conservative,
find the scalar potentialT such that A=∇ T . Hence find the work done in moving an object in this
field from ( 1 , 0 ,−1 ) to ( 1 , π , 0 ) ∙ Ans: T =r 2 z−r cos ϕ+c
(c) Test whether A= ^ R ( cos θ ) + θ^ (−sin θ ) is a conservative force field. If conservative, find the
scalar potential T such that A=∇ T . Hence find the work done in moving an object in this field
( π π
from 0 , ,
4 3 ) ( π
)
to 1 , ,0 ∙ Ans: T =R cos θ+ c
2
5. Find the Laplacian of the following scalar functions:
(a) T =4 y 2 z 2 ∙ Ans: 8( y 2+ z 2 )
12
Matrices, Vectors & Fourier Analysis Spring 2018-19
2 2
(d) T = 3
cosθsinϕ ∙ Ans: 5
cos θ sin ϕ ( 4−csc 2 θ ) ∙
R R
Example 1.1. For a vector function A=r^ r 2+ ^z 2 z , find surface integral for the circular
cylindrical region enclosed by r =5 , z=0 , z=4.
Solution
❑ ❑ ❑ ❑
∮ A ∙ d s= ∫ A ∙ d s + ∫ A ∙ d s+ ∫ A ∙ d s
s top bottom walls
face face face
13
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 2π 5
∴ ∫ A ∙ d s=8 ∫ ∫ rdrd ϕ=200 π .
top 0 0
face
❑
Total, ∮ A ∙ d s=1200 π
s
14
Matrices, Vectors & Fourier Analysis Spring 2018-19
x 2+ y 2+ z 2=1 .
Solution
Since we are taking the upper half of the sphere the limits for the variables are,
0 ≤ R≤ 1
π
0≤θ≤
2
0≤φ≤2π
The integral is then,
π
❑ 2π 2 1
¿ ∫ ∫ ∫ 8 R sin2 θ dR dφdθ
3
0 0 0
π
2 2π
¿ ∫ ∫ 2 sin2 θ dφ dθ
0 0
π
2
¿ ∫ 4 π sin 2 θ dθ
0
π
¿−2 π cos 2 θ 2 =4 π .
0
Statement: The surface integral of the normal component of a vector function A taken arround a
closed surfce S is equal to the integral of the divergence of A taken over the volume V enclosed
by the surface S.
Mathematically, ∫ ∇ ∙ A dv=∮ A ∙ d s
V s
Example 2.1. For the vector field A= ^x xz− ^y y z2 − ^z xy , verify the divergence theorem by
computing (a) the total outward flux flowing through the surface of a cube centered at the origin
and with sides equal to 2 units each and parallel to the Cartesian axes,(b) the integral of ∇ ∙ A
over the cube’s volume.
15
Matrices, Vectors & Fourier Analysis Spring 2018-19
Solution
We first evaluate the surface integral over the six faces.
❑ 2 2
∫ A ∙ d s=0.
ii. Back face: x=0 , d s=− x^ dydz ∴ back
face
❑ 2 2
−32
iii. Right face: y=2, d s= ^y dxdz ∴ ∫ A ∙ d s=∫ ∫ − y z dxdz= 3 .
2
¿ 0 0
face
❑
❑ 2 2
❑ 2 2
16
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 2 2 2
−8
Hence ∫ ∇ ∙ A dv=∫ ∫ ∫ ( z−z ) dx dy dz=
2
∙
V 0 0 0 3
which is the same as the result of the closed surface integral. The divergence theorem is therefore
verified.
Example 2.2. Given A= ^x x 2+ ^y xy + ^z yz , verify the divergence theorem over a cubeone unit on
each side. The cube is situated in the first octant of the Cartesian coordinate system with one
corner at the origin.
Solution
We first evaluate the surface integral over the six faces.
¿
face
0 0 2 ∫ A ∙ d s=0
bottom
face
❑
1 1
Adding the above six values, we have∮ A ∙ d s=1+0+ + 0+ +0=2.
s 2 2
17
Matrices, Vectors & Fourier Analysis Spring 2018-19
∂ 2 ∂
Now the divergence of A is ( x ) + ( xy ) + ∂ ( yz ) =3 x+ y .
∂x ∂y ∂z
❑ 1 1 1
which is the same as the result of the closed surface integral. The divergence theorem is therefore
verified.
Example 2.3. For a vector function A=r^ r 2+ ^z 2 z , verify for the circular cylindrical region
enclosed by r =5 , z=0 , z=4.
Solution
1 ∂ 1 ∂ 1 ∂
∇ ∙ A=
r ∂r
( r Ar)+
r ∂ϕ
( Aϕ ) +
r ∂z
(r A z)
1 ∂
¿ ( r r 2 ) +0+ 1 ∂ ( r 2 z )= 1 ∂ ( r 3 ) +2= ( 3r + 2 )
r ∂r r ∂z r ∂r
❑ 4 2π 5
❑ ❑ ❑ ❑
∮ A ∙ d s= ∫ A ∙ d s + ∫ A ∙ d s+ ∫ A ∙ d s
s top bottom walls
face face face
∫ A ∙ d s=0.
ii. Bottom face: z=0 , A=r^ r 2 and d s=− z^ rdrd ϕ ∴ bottom
face
18
Matrices, Vectors & Fourier Analysis Spring 2018-19
Example 2.4 A vector field A=r^ 10 e−r − ^z 3 z ,verify the divergence theorem for the cylindrical
region enclosed by r =2 , z=0 and z=4.
Solution
1 ∂ 1 ∂ 1 ∂
∇ ∙ A=
r ∂r
( r Ar)+
r ∂ϕ
( Aϕ ) +
r ∂z
(r A z)
1 ∂
¿ ( r 10 e−r ) +0− 1 ∂ ( 3 zr )= 1 10 e−r ( 1−r )−3.
r ∂r r ∂z r
4 2π 2
V 0 0 0
4 2π 2 4 2π 2
160 π
¿ 10∫ ∫ ∫ e (1−r ) drd ϕ dz−3 ∫ ∫ ∫ rdrd ϕ dz=
−r
−48 π .
0 0 0 0 0 0 e2
19
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 2π 4
160 π
∴ ∫ A ∙ d s=20 ∫ ∫ e dzd ϕ=
−2
e
2
.
walls 0 0
face
160 π 160 π
Total ¿ 2
+0−48 π = 2 −48 π .
e e
Example 2.5 A vector field A=r^ r 3 exists in the region between two concentric cylindrical
surfaces defined by r =1 and r =2, with both cylinders extending between z=0 and z=5 . Verify
❑ ❑
Solution:
1 ∂ 1 ∂ 1 ∂
∇ ∙ A=
r ∂r
( r Ar)+
r ∂ϕ
( Aϕ ) +
r ∂z
(r A z)
1 ∂
¿ ( r r 3 ) +0+ 1 ∂ ( 0 )= 1 ∂ ( r 4 )=4 r 2 .
r ∂r r ∂ϕ r ∂r
❑ 5 2π 2 5 2π 2 5 2π
4 2
∫ ∇ ∙ A dv=∫ ∫∫ 4 r 2
rdrdφdz=∫ ∫ ∫ 4 r drd ϕ dz=∫ ∫ [ r
3
]1 d ϕ dz=150 π .
V 0 0 1 0 0 1 0 0
20
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 2π 5
∴ ∫ A ∙ d s=−∫ ∫ dzd ϕ=−10 π .
intside 0 0
Solution
❑ 2π π
∴∮ A ∙ d s=− ∫ ∫ 3 ×1 4 × sin θ dθ d ϕ=−12 π .
s φ=0 θ=0
∫ ∫ ∫ 12 R 3 sin θ dR d ϕ dθ=192 π
θ=0 φ=0 R=0
21
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ ❑
π 2π 1
∫ ∫ ∫ 12 R 3 sin θ dR d ϕ dθ=12 π
θ=0 φ=0 R=0
Example 2.7 Find ∮ A ∙ d s over the surface of a hemispherical region that is the top half of a
s
sphere of radius 3 centered at ( 0 , 0 , 0 ) with its flat base coinciding with the xy plane. Also verify
divergence theorem. where A=^z z .
Solution
Over the hemisphere surface d s= R^ R2 sin θ dθd ϕ and we get A ∙ d s=R3 cos2 θ sinθ dθd ϕ
π
❑ 2π 2
Now,∇ ∙ A=
1 ∂
[
R sin θ ∂ R
2
( R cos2 θ∙ R2 sin θ ) + ∂ (−R cos θ sin θ ∙ R sin θ )+ ∂ ( 0 ∙ R )
∂θ ∂ϕ ]
1
2
[ 3 R 2 cos 2 θ sin θ−R2 ( 2sin θ cos 2 θ−sin3 θ ) ] =3 cos2 θ−2 cos 2 θ+ sin2 θ=1
R sin θ
22
Matrices, Vectors & Fourier Analysis Spring 2018-19
π
❑ ❑ 2 2π 3 ❑
So, ∫ ∇ ∙ A dv=∫ dv= ∫ ∫ ∫ R 2 sin θ dR d ϕ dθ= 23 π 33=18 π=∮ A ∙ d s ∙
V V θ=0 φ=0 R=0 s
1. For the vector field A= ^x xy + ^y y 2 z + ^z xz , verify the divergence theorem by computing (a)
the total outward flux flowing through the surface of a cube centered at the origin and
with sides equal to 2 units each and parallel to the Cartesian axes, (b) the integral of ∇ ∙ A
over the cube’s volume.
2. For a vector function A=r^ r 2+ ^z 3 z , verify for the circular cylindrical region enclosed by
r =1, z=0 , z=4. Ans: 20 π
3. A vector field A=r^ r 2 exists in the region between two concentric cylindrical surfaces
defined by r =2 and r =3, with both cylinders extending between z=0 and z=3 . Verify
❑ ❑
the divergence theorem by evaluating the following: (a) ∮ A∙d s and (b) ∫ ∇ ∙ A dv.
s v
Ans: 114 π
❑
4. Find ∮ A ∙ d s over the surface of a hemispherical region that is the top half of a sphere of
s
radius 4 centered at ( 0 , 0 , 0 ) with its flat base coinciding with the xy plane. Also verify
divergence theorem. where A= ^ R R cos θ . Ans: 64 π
23
Matrices, Vectors & Fourier Analysis Spring 2018-19
3. Stokes’s Theorem:
Let S be the open surface (two-sided) and C be the closed boundary of S, the vector field A is
continuous on S. Then
❑ ❑
∫ ( ∇ × A ) ∙ d s=∮ A ∙ d l.
s c
Example 3.1. Assume that a vector field A= ^x ( 2 x + y ) + ^y ( xy − y ), (a) find ∮ A ∙ d l around the
2 2 2
c
❑
triangular contour, (b) find ∫ ( ∇ × A ) ∙ d s over triangular arc, (c) verify Stokes’s theorem and (d)
s
can A be expressed as gradient of a scalar? Explain.
Solution
c 1 2 3
❑ 2
16
Path c 2; y=0 , dy=0 ,∮ A ∙ d l=∫ 2 x dx=
2
∙
c2 0 3
Path c 3; y=2−x , dy =−dx ,
24
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 0
Solution
c1 0
❑ 1
c2 0
1
−5
¿ ∫ −( 1+2 y ) dy=
2
∙
0 3
Path c 3; y=x , dy=dx ,
25
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ 0 0
c3 1 1
❑
−5 2
Total, ∮ A ∙ d l= + =−1 ∙
c 3 3
| |
^x ^y ^z
∂ ∂ ∂
Now, ∇ × A=∇ × A= ∂ x =−3 x ^z , d s= ^z dxdy
∂y ∂z
xy −( x 2+2 y 2 ) 0
❑ 1 x
∴∫ ( ∇ × A ) ∙ d s=−∫ ∫ 3 x dydx=−1∙
s 0 0
c1 0
26
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑
−11 2
Total, ∮ A ∙ d l= + =−3 ∙
c 3 3
| |
x^ ^y ^z
∂ ∂ ∂
Now, ∇ × A=∇ × A= ∂ x =−3 x ^z , d s= ^z dxdy
∂y ∂z
xy −( x 2+2 y 2 ) 0
❑ 1 2− y
∴∫ ( ∇ × A ) ∙ d s=−∫ ∫ 3 x dxdy=−3 ∙
s 0 y
cos ϕ
Example 3.4. For vector field A=^z , verify Stokes’s theorem for a segment of a cylindrical
r
surface defined by r =2 , π /3 ≤ ϕ ≤ π /2, and 0 ≤ z ≤ 3.
Solution
❑ ❑
cos ϕ
LHS: With A having only a component A z= ,use of the expression for ∇ × A in cylindrical
r
coordinates,
∇ × A= r^ ( r ∂ϕ ∂z ∂z ) (
1 ∂ Az ∂ Aϕ ^ ∂ Ar ∂ Az
− +ϕ −
∂r
+ z^
r ∂r ) (
1 ∂ ( r A ϕ ) ∂ Ar
−
∂ϕ )
∂ ( cosr ϕ ) −ϕ^ ∂ ( cosr ϕ ) =−^r sin ϕ + ϕ^ cos ϕ
¿ r^
1
r ∂ϕ ∂r (r ) (r )
2 2
[ ( ) ( )]
❑ 3 π/2 3 π /2
sin ϕ ^ cos ϕ sin ϕ −3
∫ ( ∇ × A ) ∙ d s=∫ ∫ −r^
r
2
+ϕ
r
2
∙ r^ rd ϕ dz=−∫ ∫
r
d ϕ dz=
4
∙
s 0 π/3 0 π /3
27
Matrices, Vectors & Fourier Analysis Spring 2018-19
RHS: The surface S is bounded by contour c=PQRT shown in figure above. The direction of c is
chosen so that it is compatible with the surface normal r^ by the right-hand rule. Hence,
❑ Q R T P
where A PQ, AQR , A RT and ATP are the field A along segments PQ ,QR , RT and T P respectively.
cos ϕ
Over segment PQ the dot product of A PQ= z^ and d l=ϕ^ rd ϕ is zero, and the same is true for
r
cos π /2
segment RT . Over segment QR , ϕ =π /2 ; hence, AQR =^z =0. For the last segment,
2
cos π /3
ATP =^z = z^ / 4 and d l=^z dz . Hence,
2
P 0
∮ A ∙ d l=∫ ( z^ ∙ 14 ) ^z dz =∫ 14 dz= −3
❑
∙
c T 3 4
which is the same as the result obtained by evaluating the left-hand side of Stokes’s equation.
Example 3.5. Assume that a vector field A=r^ r cos ϕ + ϕ^ sin ϕ , (a) find ∮ A∙dl over the
c
❑
semicircular contour, and (b) find ∫ ( ∇ × A ) ∙ d s over the surface of the semicircle.
s
Solution
(a) d l=r^ dr + ϕ^ rd ϕ ∴ A ∙ d l=r cos ϕ dr +sin ϕr d ϕ
❑ 2
28
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ π
Path c 3; ϕ =π , d ϕ=0 ,
❑ 0 0 ❑
| |
r^ r ϕ^ z^
1 ∂ ∂ ∂ = z^ 1 ( sin ϕ+ r sin ϕ ) , d s=^z r drd ϕ
Now, ∇ × A=∇ × A=
r ∂r ∂ϕ ∂z r
r cos ϕ r sin ϕ 0
❑ π 2
∴∫ ( ∇ × A ) ∙ d s=∫∫ ( sin ϕ +r sin ϕ ) drd ϕ=8∙ Stokes’s theorem is verified.
s 0 0
29
Matrices, Vectors & Fourier Analysis Spring 2018-19
Solution
(a) d l=r^ dr + ϕ^ rd ϕ ∴ A ∙ d l=r cos ϕ dr +sin ϕr d ϕ
2
3
Path c 1; ϕ =0 , d ϕ=0 ,∮ A ∙ d l=∫ r cos ϕ dr= .
c 1 1 2
π
2
Path c 2; r =2 ,dr =0 ,∮ A ∙ d l=∫ sin ϕ r d ϕ=2.
c2 0
1
π
Path c 3; ϕ = , d ϕ=0 ,∮ A ∙ d l=∫ r cos ϕ dr=0 ∙
2 c 2 3
3 5
Total, ∮ A ∙ d l= +0+2−1= ∙
c 2 2
| |
r^ r ϕ^ z^
1 ∂ ∂ ∂ 1
Now, ∇ × A=∇ × A= = z^ ( sin ϕ+ r sin ϕ ) , d s=^z r drd ϕ
r ∂r ∂ϕ ∂z r
r cos ϕ r sin ϕ 0
π /2 2
5
∴∫ ( ∇ × A ) ∙ d s= ∫ ∫ ( sin ϕ +r sin ϕ ) drd ϕ= ∙ Stokes’s theorem is verified.
s 0 1 2
Example 3.7. Assume that a vector field A=r^ cos ϕ + ϕ^ sin ϕ , (a) find ∮ A∙dl over the path
c
comprising a quarter section of a circle, and (b) find ∫ ( ∇ × A ) ∙ d s over the surface of the quarter
s
section.
30
Matrices, Vectors & Fourier Analysis Spring 2018-19
Solution
(a) d l=r^ dr + ϕ^ rd ϕ ∴ A ∙ d l=cos ϕ dr + sin ϕ rd ϕ
❑ 3 3
π π
Path c 1; ϕ = , d ϕ=0 ,∮ A ∙ d l=∫ cos ϕ dr=∫ cos dr =0.
2 c 01 0 2
❑ π
❑ 0 0
Total, ∮ A ∙ d l=0+3+3=6 ∙
c
| |
r^ r ϕ^ z^
1 ∂ ∂ ∂ 1
Now, ∇ × A=∇ × A= = z^ 2sin ϕ , d s=^z rdrd ϕ
r ∂r ∂ϕ ∂z r
cos ϕ r sin ϕ 0
❑ π 3
∴∫ ( ∇ × A ) ∙ d s= ∫ ∫ 2 sin ϕ drd ϕ=6 ∙ ∴
s π /2 0
Stokes’s theorem is verified.
| |
^
R R θ^ R sin θ ϕ^
1 ∂ ∂ ∂
∇ × A= 2
R sin θ ∂ R ∂θ ∂ϕ
cos θ R ∙ 0 R sin θ sin θ
31
Matrices, Vectors & Fourier Analysis Spring 2018-19
❑ π /2 2 π
∫ ( ∇ × A ) ∙ d s= ∫ ∫ 2 sinθ cos θ d ϕ dθ
s θ=0 φ=0
π /2 1
¿ 4 π ∫ sin θ cos θ dθ=4 π ∫ u du=2 π .
0 0
❑ 2π
ϕ
1. Verify Stokes’s theorem for the vector field A=ϕ^ 3 sin by evaluating it on the
2
hemisphere of radius 2. Ans: 24
2. For vector field A=^z cos φ, verify Stokes’s theorem for a segment of a cylindrical surface
defined by r =5 , π / 4 ≤ φ ≤ π / 2, and 0 ≤ z ≤ 4 . Ans: −2 √ 2
rectangular contour, (b) find ∫( ∇ × A )∙ d s over rectangular arc, (c) verify Stokes’s
s
theorem and (d) can A be expressed as gradient of a scalar? Explain. Ans: 12
32
Matrices, Vectors & Fourier Analysis Spring 2018-19
4. Assume that a vector field, A=r^ r sin ϕ+ ϕ^ cos ϕ , (a) find ∮ A∙dl over the semicircular
c
❑
contour shown below, and (b) find ∫( ∇ × A )∙ d s over the surface of the semicircles.
s
Ans: 0
33