next up previous
Next: Grad Operator Up: Vectors and Vector Fields Previous: Volume Integrals


Gradient

A one-dimensional function $ f(x)$ has a gradient $ df/dx$ which is defined as the slope of the tangent to the curve at $ x$ . We wish to extend this idea to cover scalar fields in two and three dimensions.

Consider a two-dimensional scalar field $ h(x,\,y)$ that represents (say) height above sea-level in a hilly region. Let $ d{\bf r}\equiv(dx,\,dy)$ be an element of horizontal distance. Consider $ dh/dr$ , where $ dh$ is the change in height after moving an infinitesimal distance $ d{\bf r}$ . This quantity is somewhat like the one-dimensional gradient, except that $ dh$ depends on the direction of $ d{\bf r}$ , as well as its magnitude. In the immediate vicinity of some point $ P$ , the slope reduces to an inclined plane. (See Figure A.19.) The largest value of $ dh/dr$ is straight up the slope. It is easily shown that for any other direction

$\displaystyle \frac{dh}{dr}= \left(\frac{dh}{dr}\right)_{\rm max}\, \cos\theta,$ (A.103)

where $ \theta $ is the angle shown in Figure A.19. Let us define a two-dimensional vector, $ {\bf grad}\,h$ , called the gradient of $ h$ , whose magnitude is $ (dh/dr)_{\rm max}$ , and whose direction is the direction of steepest ascent. The $ \cos\theta$ variation exhibited in the previous expression ensures that the component of $ {\bf grad}\,h$ in any direction is equal to $ dh/dr$ for that direction.

Figure A.19: A two-dimensional gradient.
\begin{figure}
\epsfysize =2.25in
\centerline{\epsffile{AppendixA/figA.19.eps}}
\end{figure}

The component of $ dh/dr$ in the $ x$ -direction can be obtained by plotting out the profile of $ h$ at constant $ y$ , and then finding the slope of the tangent to the curve at given $ x$ . This quantity is known as the partial derivative of $ h$ with respect to $ x$ at constant $ y$ , and is denoted $ (\partial h/\partial x)_y$ . Likewise, the gradient of the profile at constant $ x$ is written $ (\partial h/\partial y)_x$ . Note that the subscripts denoting constant $ x$ and constant $ y$ are usually omitted, unless there is any ambiguity. It follows that in component form

$\displaystyle {\bf grad}\,h \equiv \left(\frac{\partial h}{\partial x},\, \frac{\partial h}{\partial y} \right).$ (A.104)

Now, the equation of the tangent plane at $ P=(x_0,\, y_0)$ is

$\displaystyle h_T(x,\,y)= h(x_0,\,y_0) + \alpha\,(x-x_0)+\beta\,(y-y_0).$ (A.105)

This has the same local gradients as $ h(x,\,y)$ , so

$\displaystyle \alpha = \frac{\partial h}{\partial x},~~~~~\beta= \frac{\partial h}{\partial y}.$ (A.106)

For small $ dx=x-x_0$ and $ dy=y-y_0$ , the function $ h$ is coincident with the tangent plane. It follows that

$\displaystyle dh = \frac{\partial h}{\partial x}\, dx +\frac{\partial h} {\partial y}\, dy.$ (A.107)

But, $ {\bf grad}\,h \equiv (\partial h/\partial x, \,\partial h/\partial y)$ and $ d{\bf r}\equiv(dx,\,dy)$ , so

$\displaystyle dh = {\bf grad}\,h \cdot d{\bf r}.$ (A.108)

Incidentally, the previous equation demonstrates that $ {\bf grad}\,h$ is a proper vector, because the left-hand side is a scalar, and, according to the properties of the dot product, the right-hand side is also a scalar provided that $ d{\bf r}$ and $ {\bf grad}\,h$ are both proper vectors ($ d{\bf r}$ is an obvious vector, because it is directly derived from displacements).

Consider, now, a three-dimensional temperature distribution $ T(x,\,y,\,z)$ in (say) a reaction vessel. Let us define $ {\bf grad}\,T$ , as before, as a vector whose magnitude is $ (dT/dr)_{\rm max}$ , and whose direction is the direction of the maximum gradient. This vector is written in component form

$\displaystyle {\bf grad}\,T \equiv \left(\frac{\partial T}{\partial x}, \,\frac{\partial T}{\partial y},\, \frac{\partial T}{\partial z}\right).$ (A.109)

Here, $ \partial T/\partial x\equiv (\partial T/\partial x)_{y, z}$ is the gradient of the one-dimensional temperature profile at constant $ y$ and $ z$ . The change in $ T$ in going from point $ P$ to a neighboring point offset by $ d{\bf r} \equiv (dx,\,dy,\,dz)$ is

$\displaystyle dT = \frac{\partial T}{\partial x}\,dx +\frac{\partial T}{\partial y}\,dy+ \frac{\partial T}{\partial z}\,dz.$ (A.110)

In vector form, this becomes

$\displaystyle dT = {\bf grad}\,T \cdot d{\bf r}.$ (A.111)

Suppose that $ dT=0$ for some $ d{\bf r}$ . It follows that

$\displaystyle dT = {\bf grad}\,T \cdot d{\bf r} = 0.$ (A.112)

So, $ d{\bf r}$ is perpendicular to $ {\bf grad}\,T$ . Because $ dT=0$ along so-called ``isotherms'' (i.e., contours of the temperature), we conclude that the isotherms (contours) are everywhere perpendicular to $ {\bf grad}\,T$ . (See Figure A.20.)

Figure A.20: Isotherms.
\begin{figure}
\epsfysize =2.in
\centerline{\epsffile{AppendixA/figA.20.eps}}
\end{figure}

It is, of course, possible to integrate $ dT$ . For instance, the line integral of $ dT$ between points $ P$ and $ Q$ is written

$\displaystyle \int_P^Q dT = \int_P^Q {\bf grad}\,T\cdot d{\bf r} = T(Q)-T(P).$ (A.113)

This integral is clearly independent of the path taken between $ P$ and $ Q$ , so $ \int_P^Q {\bf grad }\,T\cdot d{\bf r}$ must be path independent.

Consider a vector field $ {\bf A}({\bf r})$ . In general, the line integral $ \int_P^Q {\bf A}\cdot d{\bf r}$ depends on the path taken between the end points. However, for some special vector fields the integral is path independent. Such fields are called conservative fields. It can be shown that if $ {\bf A}$ is a conservative field then $ {\bf A} = {\bf grad}\,V$ for some scalar field $ V$ . The proof of this is straightforward. Keeping $ P$ fixed, we have

$\displaystyle \int_P^Q {\bf A}\cdot d{\bf r} = V(Q),$ (A.114)

where $ V(Q)$ is a well-defined function, due to the path independent nature of the line integral. Consider moving the position of the end point by an infinitesimal amount $ dx$ in the $ x$ -direction. We have

$\displaystyle V(Q+dx) = V(Q) + \int_Q^{Q+dx} {\bf A}\cdot d{\bf r} = V(Q) + A_x\,dx.$ (A.115)

Hence,

$\displaystyle \frac{\partial V}{\partial x} = A_x,$ (A.116)

with analogous relations for the other components of $ {\bf A}$ . It follows that

$\displaystyle {\bf A} = {\bf grad} \,V.$ (A.117)

The force field due to gravity is a good example of a conservative field. Now, if $ {\bf A}({\bf r})$ is a force-field then $ \int {\bf A}\cdot d{\bf r}$ is the work done in traversing some path. If $ {\bf A}$ is conservative then

$\displaystyle \oint {\bf A}\cdot d{\bf r} = 0,$ (A.118)

where $ \oint$ corresponds to the line integral around a closed loop. The fact that zero net work is done in going around a closed loop is equivalent to the conservation of energy (which is why conservative fields are called ``conservative''). A good example of a non-conservative field is the force field due to friction. Clearly, a frictional system loses energy in going around a closed cycle, so $ \oint {\bf A}\cdot d{\bf r} \neq 0$ .


next up previous
Next: Grad Operator Up: Vectors and Vector Fields Previous: Volume Integrals
Richard Fitzpatrick 2016-03-31