Laboratory 7
Partial Derivatives and Tangent Planes
Introduction
In this lab we examine the notion of the partial derivatives of a function, and study them both symbolically and graphically. We also use partial derivatives to calculate the equations of tangent planes to surfaces.
Example 7.1, A Graphical Introduction to Partial Derivatives
Let us consider a function
, say
We obtain the graph of this function on the region
,
in the usual fashion.
Note that we use the BoxRatios->{1,1,1} option to make sure that the graph has the same scale in each direction.
Now suppose that we choose a specific value for
, say
. We can then look at the function of one variable
. The graph of this function is the intersection of the three-dimensional graph and the plane
. To obtain these graphs, we have defined a new command called YSlice.
The that the first parameter is the function we wish to graph, while the second parameter is the fixed value of
whose slice we want, in our example
. The remaining parameters are the
-range,
-range, and
-range of the plot. We now apply this command to the previous function
.
On the left we have the three dimensional graph of
together with the plane
. On the right, we have the graph of the function
. Looking at the function on the right, we might ask what is the derivative of this function that corresponds to a single value of
, say
. To estimate the slope of this function from the graph at that point, we can zoom in at that point. To do so, we again call the function YSlice, changing repeatedly the range of values for
,
, and
as follows.
Notice that we changed the range of values for
at the same time that we changed the range of values for
and
. In particular, we chose the range of values for
so that our graphs show the variation in the values of the function.
We can then estimate the slope of the function
at the point
to be about
. Thus, we say that the partial derivative of
with respect to
at the point
,
is approximately
.
Suppose that instead we want to find the partial derivative of
with respect to
at the point
,
. We first draw the graph of the function along the slice
as before.
We then zoom in repeatedly near the point
,
, changing the range of
values for each graph as we do so.
We conclude that the partial derivative of
with respect to
at the point
,
is approximately zero.
There are a number of ways to write the partial derivative of
with respect to
symbolically. Two of the most common methods are
and
. From our computations above, we see that
![]()
and
.
Now we might ask if we can do the same sort of process, but holding the
-variable fixed and letting the
-variable vary. To do just that, we have the following modification of the command YSlice, which we call XSlice.
It is called in the same fashion as YSlice but now it takes as input an
-value, and returns the corresponding
-slice.
On the left is a plot of the function
together with the plane
. On the right is a plot of the function
. Since this is a function of one variable, we can ask what the derivative of this function is at some point, say
. To find this, we can zoom in as we did before near the point
.
From the graph on the right, we conclude that the slope of the function
at the point
is approximately
. As a consequence, we say that the partial derivative of
with respect to
at the point
,
is approximately
. Symbolically, we write this as
.
Experiment 7.1
For each of the following functions below, use either XSlice or YSlice to graph the appropriate intersection curve. Then estimate the partial derivative in question graphically by zooming in repeatedly about a suitable point.
1.
, find
.
2.
, find
.
3.
, find
.
4.
, find
.
5.
, find
.
6.
, find
.
Example 7.2, Algebraic Introduction to Partial Derivatives
So far we have learned that given a point
and a function
we could hold
fixed, and examine the function
. Because this is a function of one variable only, namely
, we can ask what the derivative of this function is at the point
. The result of this calculation we call the partial derivative of
with respect to
, and is written as
or
.
We also saw that we could instead hold
fixed, and examine the function
, and then ask what the derivative of this function is when
. The result of this calculation is called the partial derivative of
with respect
, and is written
or
.
To make these ideas precise, let us consider the first case, where
is held fixed. The definition of the derivative of the resulting function is
![]()
We notice that this has the same form as the standard definition of the derivative for a function of one variable, but that
is held fixed. If we instead want the derivative of
with respect to
, we shall hold
fixed and obtain
.
To see these definitions in action, let us return to our original example.
In Example 7.1 we graphically calculated that
. Let us now verify that this is correct by using the definition. We first form the difference quotient as follows.
Then we simplify it
and pass to the limit as
We see that this agrees with our graphical calculations.
Also in Example 7.1, we graphically calculated that
. Let us also verify that this is correct. First calculate the difference quotient
then simplify the result
and pass to the limit
Mathematica also has built-in commands to calculate partial derivatives directly. For example, if we want to calculate the derivative
, we can ask Mathematica
To evaluate this at a point, say
, we simply enter the following.
Note that this agrees with our graphical computation and our limit computation. Similarly, we have
which also agrees with our previous calculations.
Experiment 7.2
For each of the following functions,
i) Find the partial derivatives
and
. You may use any correct method to find the partial derivatives.
ii) Find all of the points
where
. Examine the graph of the function at these points, and describe the behavior of the function at each of these points.
iii) Find the points where
and
, and explain the behavior of the function at these points.
iv) Find the points where
and
, and explain the behavior of the function at these points.
1.
.
2.
.
3.
.
4..
.
5.. ![]()
Remember that you can use the Solve command to solve equations.
Example 7.3, Tangent Planes
One of the things that you may have noticed in Example 7.1 and Experiment 7.1 was that, as we zoomed in to a function more and more closely, the graph of the function looked more and more like a plane. This is analogous to the 2-dimensional case, where a differentiable function under repeated zooming looked more and more like a straight line. We remember from Calculus 1 that this line is in fact the tangent line to the graph of this function. For the same reason, we say that the plane that we approach under repeated zooming is the tangent plane to the graph of our function of two variables.
We can use the partial derivatives of a function to find its tangent plane. Indeed, given a function
, then the tangent plane to this function at the point
is the plane
![]()
Let us look once again at the function
and suppose that we want to find the tangent plane to the graph of this function at the point
. We begin by calculating
and
.
We then calculate
FInally, combining these, we find that the tangent plane is
. We can verify that this is the case by plotting both the function and this plane. Remember that to do this, we must plot each graph separately and then use the Show command to combine them.
Note that the
,
, and
ranges of the veiwing window for the plane and the surface are chosen to be identical. If we do not do this, our graph will only show a portion of the tangent plane or a portion of the graph of the function.
Let us examine what happens to the function and its tangent plane as we zoom in towards the point at which we found the tangent plane; in this case towards the point
. We shall use the commands DisplayFunction->Identity so that we do not see the intermediate graphs, and then use the command DisplayFunction->$DisplayFunction to show the final graph.
Zooming in even further, we obtain the following.
We see that the tangent plane is looking more and more like the graph of the original function.
Experiment 7.3
Find the equation of the tangent plane to each function at the indicated point, and give a graph showing both the function and the tangent plane. Zoom in on the graphs until the tangent plane and the function are nearly identical.
1. ![]()
at
.
2.
at
.
3.
at
.
4.
at
.
5.
at
.
Credits
These laboratories were created by Raouf Boules, Geoff Goodson, Ohoe Kim and Mike O'Leary for use in the Calculus courses of Towson University. Commercial use is prohibited without permission of the authors. Non-commercial use is permitted, provided this credit section is retained.
Created by Mathematica (August 20, 2004)