Three-dimensional gradients and directional derivatives
The definition of a gradient can be extended to functions of more than two variables.
Definition
Let
be a function of three variables such that
exist. The vector
is called the gradient of
and is defined as
can also be written as
Calculating the gradient of a function in three variables is very similar to calculating the gradient of a function in two variables. First, we calculate the partial derivatives
and
and then we use
[link] .
Finding gradients in three dimensions
Find the gradient
of each of the following functions:
For both parts a. and b., we first calculate the partial derivatives
and
then use
[link] .
The directional derivative can also be generalized to functions of three variables. To determine a direction in three dimensions, a vector with three components is needed. This vector is a unit vector, and the components of the unit vector are called
directional cosines . Given a three-dimensional unit vector
in standard form (i.e., the initial point is at the origin), this vector forms three different angles with the positive
and
z- axes. Let’s call these angles
and
Then the directional cosines are given by
and
These are the components of the unit vector
since
is a unit vector, it is true that
Definition
Suppose
is a function of three variables with a domain of
Let
and let
be a unit vector. Then, the directional derivative of
in the direction of
is given by
provided the limit exists.
We can calculate the directional derivative of a function of three variables by using the gradient, leading to a formula that is analogous to
[link] .
Directional derivative of a function of three variables
Let
be a differentiable function of three variables and let
be a unit vector. Then, the directional derivative of
in the direction of
is given by
The three angles
determine the unit vector
In practice, we can use an arbitrary (nonunit) vector, then divide by its magnitude to obtain a unit vector in the desired direction.
Finding a directional derivative in three dimensions
Calculate
in the direction of
for the function
First, we find the magnitude of
Therefore,
is a unit vector in the direction of
so
Next, we calculate the partial derivatives of