Module 1: A Crash Course in Vectors Lecture 4: Gradient of A Scalar Function
Module 1: A Crash Course in Vectors Lecture 4: Gradient of A Scalar Function
Module 1: A Crash Course in Vectors Lecture 4: Gradient of A Scalar Function
Consider a scalar field such as temperature in some region of space. The distribution of temperature
may be represented by drawing isothermal surfaces or contours connecting points of identical temperatures,
One can draw such contours for different temperatures. If we are located at a point on one of these contours
and move away along any direction other than along the contour, the temperature would change.
is given by
Note that , the gradient of a scalar is itself a vector. If is the angle between the direction of and
where is the component of the gradient in the direction of . If lies on an isothermal surface then
conservative field of force in mechanics. Suppose we have a force field which is expressible as a gradient
where the symbols and represent the initial and thec final positions and in the last step we have used an
expression for similar to that derived for 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
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 conservative forces.
Example 14
Solution :
Exercise 1
(ii)
(iii) (Ans.
Gradient can be expressed in other coordinate systems by finding the length elements in the direction of basis
vectors. For example, in cylindrical coordinates the length elements are , and along and
3.
4.
Example 15
Exercise 2
Find the gradient of the function of Example 15 in cartesian coordinates and then transform into polar form to
verify the answer.
Exercise 3
Exercise 4
(Ans. .)
Exercise 5
A potential function is given in cylidrical coordinates as Find the force field it represents and express
(Ans. )
Divergence of a vector field is a measure of net outward flux from a closed surface enclosing a volume ,
as the volume shrinks to zero.
where is the volume (enclosed by the closed surface ) in which the point P at which the divergence is being
calculated is located. Since the volume shrinks to zero, the divergence is a point relationship and is a scalar.
Consider a closed volume bounded by . The volume may be mentally broken into a large number of
elemental volumes closely packed together. It is easy to see that the flux out of the boundary is equal to the
sum of fluxes out of the surfaces of the constituent volumes. This is because surfaces of boundaries of two adjacent
volumes have their outward normals pointing opposite to each other. The following figure illustrates it.
We can generalize the above to closely packed volumes and conclude that the flux out of the bounding surface
of a volume is equal to the sum of fluxes out of the elemental cubes. If is the volume of an elemental
cube with as the surface, then,
The quantity in the bracket of the above expression was defined as the divergence of , giving
We now calculate the divergence of from an infinitisimal volume over which variation of is small so that one
can retain only the first order term in a Taylor expansion. Let the dimensions of the volume element be
and let the element be oriented parallel to the axes.
Consider the contribution to the flux from the two shaded faces. On these faces, the normal is along the and
directions so that the contribution to the flux is from the y-component of only and is given by
Expanding in a Taylor series and retaining only the fiirst order term
Thus
2.
3.
4. In cylindrical coordinates
5.In spherical polar coordinates
Example 16
Divergence of
One can also calculate easily in spherical coordinate since only has radial component
Exercise 6
Calculate the divergence of the vector field using all the three coordinate systems. (Ans. 0)
Example 17
A vector field is given by . Find the surface integral of the field from the surfaces of a
unit cube bounded by planes and . Verify that the result agrees
Solution :
Divergence of is
face so that . Since , the integrand is zero. For the surface BFGC, the normal is
along and on this face . On this face the vector field is . The surface integral is
Consider the top face (ABFE) for which the normal is so that the surface integral is . On this face
For the bottom face (DOGC) the normal is along and . This gives so that the integral
vanishes.
For the face EFGO the normal is along so that the surface integral is . On this face
giving . The surface integral is zero. For the front face ABCD, the normal is along and on this face
giving . The surface integral is
Adding the six contributions above, the surface integral is consistent with the divergence theorem.
Exercise 7
Verify the divergence theorem by calculating the surface integral of the vector field for
the cubical volume of Example 17. (Ans. Surface integral has value 3)
Example 18
In Example 13 we found that the surface integral of a vector field over a cylinder of radius and
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 .
Example 19
A vector field is given by . 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
. Recalling that the volume element is , the integral is
In order to calculate the surface integral, we first observe that the end faces have their normals along . 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.
and
Using these
The area element on the curved surface is , where is the radius. Thus the surface integral is
Exercise 8
In the Exercise following Example 13, we had seen that surface integral of the vector field
Example 20
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 in the hemisphere and verify the
divergence theorem.
Solution :
where is the distance from origin. The volume integral over the hemisphere is conveniently calculated in spherical
polar using the violume element . Since it is a hemisphere with as the base, the range of
is to .
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 direction but the z-component of the field is zero because the
Using and , the above integral can be seen to give the correct
result.
Recap
In this lecture you have learnt the following
The magnitude of the gradient is equal to the maxium rate of change of the scalar field and its direction is
along the direction of greatest change in the scalar function.
The net outward flux from a volume element around a point is a measure of the divergence of the vector
field at that point.
We derived trhe divergence theorem which shows that the volume integral of the divergence of a vector
function overany volume is equal to the outward flux through a surface which encloses this volume.
Divergence was calculated for functions in different coordinate systems and divergence theorem was verified.