|
|||||
Suppose we have a function given to us as f(x, y) in two
dimensions or as g(x, y, z). which mean Suppose however, we are given f as a function of r and ,
that is, in polar coordinates, or g in spherical coordinates,
as a function of ,
,
and . and find It is a bit more convenient to be able to express the gradient
directly in polar coordinates or spherical coordinates just
like we can do in our rectangular coordinates. To do this we must address two questions: what are unit vectors
in the r and
directions? And what are the somethings these should be multiplied
by to give f? The unit vector in the direction lies in the direction 90o past the r direction and is therefore given by We can deduce how to write f
in polar coordinates directly in terms of these unit vectors
by using the following facts: (A) Second, we want the change in f to obey
for any change in r and/orwhere
ds is a vector pointing in the direction of the change
whose magnitude is the length of that change. and we can identify . from which we can deduce: , and we have shown: . A similar computation can be made for any orthogonal directions
in any dimension, and we can anticipate the result. The
component of f
in the direction of any such variable will be the partial
derivative of f with respect to that variable, divided by
a factor which is the ratio of distance change in that direction
to change in the variable itself.
and use the latter two equations to get rid of dz and dy
in the first equation; the result is a rather messy expression
for df in terms of dr and d.
The gradient in polar coordinates can be deduced from this
expression, with the same answer as heretofore. This approach
is useful when f is given in rectangular coordinates but you
want to write the gradient in polar coordinates. This kind of substitution is sometimes called the chain
rule for partial derivatives. There are times and places where in a partial derivative
one can become confused as to which variable or variables
are being kept constant, and under such circumstances it is
wise to modify the notation to supply this information explicitly.
Thus we can write
to mean the partial derivative with respect to x keeping y
fixed, and then there can be no confusion as to what is kept
constant. The facts to remember about the gradient are: |