Let be a function of . We have studied in great detail the derivative of with respect to , that is, , which measures the rate at which changes with respect to . Consider now . It makes sense to want to know how changes with respect to and/or . This section begins our investigation into these rates of change.
Consider the function , as graphed in Figure 13.3.1(a). By fixing , we focus our attention to all points on the surface where the -value is 2, shown in both parts (a) and (b) of the figure. These points form a curve in space: which is a function of just one variable. We can take the derivative of with respect to along this curve and find equations of tangent lines, etc.
The key notion to extract from this example is: by treating as constant (it does not vary) we can consider how changes with respect to . In a similar fashion, we can hold constant and consider how changes with respect to . This is the underlying principle of partial derivatives. We state the formal, limit-based definition first, then show how to compute these partial derivatives without directly taking limits.
Let be a continuous function on an open set in .
The partial derivative of with respect to is:
Alternate notations for include:
The partial derivative of with respect to is:
There are similar alternate notations for .
Watch the video:
Partial Derivatives from https://youtu.be/SbfRDBmyAMI
Let . Find using the limit definition.
Example 13.3.1 found a partial derivative using the formal, limit-based definition. Using limits is not necessary, though, as we can rely on our previous knowledge of derivatives to compute partial derivatives easily. When computing , we hold fixed — it does not vary. Therefore we can compute the derivative with respect to by treating as a constant or coefficient.
Just as , we compute . Here we are treating as a coefficient.
Just as , we compute Here we are treating as a constant. More examples will help make this clear.
Find and in each of the following.
Solution
We have .
Begin with . Keep fixed, treating it as a constant or coefficient, as appropriate:
Note how the and terms go to zero. To compute , we hold fixed:
Note how the and terms go to zero.
We have .
Begin with . We need to apply the Chain Rule with the cosine term; is the coefficient of the -term inside the cosine function.
To find , note that is the coefficient of the term inside of the cosine term; also note that since is fixed, is also fixed, and we treat it as a constant.
We have .
Beginning with , note how we need to apply the Product Rule.
Note that when finding we do not have to apply the Product Rule; since does not contain , we treat it as fixed and hence becomes a coefficient of the term.
We have shown how to compute a partial derivative, but it may still not be clear what a partial derivative means. Given , measures the rate at which changes as only varies: is held constant.
Imagine standing in a rolling meadow, then beginning to walk due east. Depending on your location, you might walk up, sharply down, or perhaps not change elevation at all. This is similar to measuring : you are moving only east (in the “”-direction) and not north/south at all. Going back to your original location, imagine now walking due north (in the “”-direction). Perhaps walking due north does not change your elevation at all. This is analogous to : does not change with respect to . We can see that and do not have to be the same, or even similar, as it is easy to imagine circumstances where walking east means you walk downhill, though walking north makes you walk uphill.
The following example helps us visualize this more.
Let . Find and and interpret their meaning.
SolutionWe begin by computing and . Thus
It is also useful to note that . What does each of these numbers mean?
Consider , along with Figure 13.3.2(a). If one “stands” on the surface at the point and moves parallel to the -axis (i.e., only the -value changes, not the -value), then the instantaneous rate of change is . Increasing the -value will decrease the -value; decreasing the -value will increase the -value.
Now consider , illustrated in Figure 13.3.2(b). Moving along the curve drawn on the surface, i.e., parallel to the -axis and not changing the -values, increases the -value instantaneously at a rate of 1. Increasing the -value by 1 would increase the -value by approximately 1.
Since the magnitude of is greater than the magnitude of at , it is “steeper” in the -direction than in the -direction.
Let . We have learned to find the partial derivatives and , which are each functions of and . Therefore we can take partial derivatives of these, each with respect to and . We define these “second partials” along with the notation, give examples, then discuss their meaning.
Let be continuous on an open set .
The second partial derivative of with respect to then is
The second partial derivative of with respect to then is
Similar definitions hold for and .
The second partial derivatives and are mixed partial derivatives.
The notation of second partial derivatives gives some insight into the notation of the second derivative of a function of a single variable. If , then . The “” portion means “take the derivative of twice,” while “” means “with respect to both times.” When we only know of functions of a single variable, this latter phrase seems silly: there is only one variable to take the derivative with respect to. Now that we understand functions of multiple variables, we see the importance of specifying which variables we are referring to.
For each of the following, find all six first and second partial derivatives. That is, find
SolutionIn each, we give and immediately and then spend time deriving the second partial derivatives.
Notice how in both of the functions in Example 13.3.4, . Due to the complexity of the examples, this likely is not a coincidence. The following theorem states that it is not.
Let be defined such that and are continuous on an open set . Then for each point in , .
Finding and independently and comparing the results provides a convenient way of checking our work.
Now that we know how to find second partials, we investigate what they tell us.
Again we refer back to a function of a single variable. The second derivative of is “the derivative of the derivative,” or “the rate of change of the rate of change.” The second derivative measures how much the derivative is changing. If , then the derivative is getting smaller (so the graph of is concave down); if , then the derivative is growing, making the graph of concave up.
Now consider . Similar statements can be made about and as could be made about above. When taking derivatives with respect to twice, we measure how much changes with respect to . If , it means that as increases, decreases, and the graph of will be concave down in the -direction. Using the analogy of standing in the rolling meadow used earlier in this section, measures whether one’s path is concave up/down when walking due east.
Similarly, measures the concavity in the -direction. If , then is increasing with respect to and the graph of will be concave up in the -direction. Appealing to the rolling meadow analogy again, measures whether one’s path is concave up/down when walking due north.
We now consider the mixed partials and . The mixed partial measures how much changes with respect to . Once again using the rolling meadow analogy, measures the slope if one walks due east. Looking east, begin walking north (side-stepping). Is the path towards the east getting steeper? If so, . Is the path towards the east not changing in steepness? If so, then . A similar thing can be said about : consider the steepness of paths heading north while side-stepping to the east.
The following example examines these ideas with concrete numbers and graphs.
Let . Evaluate the 6 first and second partial derivatives at and interpret what each of these numbers mean.
SolutionWe find that:
, , , and . Thus at we have
The slope of the tangent line at in the direction of is : if one moves from that point parallel to the -axis, the instantaneous rate of change will be . The slope of the tangent line at this point in the direction of is : if one moves from this point parallel to the -axis, the instantaneous rate of change will be . These tangents lines are graphed in Figure 13.3.3(a) and (b), respectively, where the tangent lines are drawn in a solid line.
Now consider only Figure 13.3.3(a). Three directed tangent lines are drawn (two are dashed), each in the direction of ; that is, each has a slope determined by . Note how as increases, the slope of these lines get closer to . Since the slopes are all negative, getting closer to 0 means the slopes are increasing. The slopes given by are increasing as increases, meaning must be positive.
Since , we also expect to increase as increases. Consider Figure 13.3.3(b) where again three directed tangent lines are drawn, this time each in the direction of with slopes determined by . As increases, the slopes become less steep (closer to 0). Since these are negative slopes, this means the slopes are increasing.
Thus far we have a visual understanding of , , and . We now interpret and . In Figure 13.3.3(a), we see a curve drawn where is held constant at : only varies. This curve is clearly concave down, corresponding to the fact that . In part (b) of the figure, we see a similar curve where is constant and only varies. This curve is concave up, corresponding to the fact that .
The concepts underlying partial derivatives can be easily extend to more than two variables. We give some definitions and examples in the case of three variables and trust the reader can extend these definitions to more variables if needed.
Let be a continuous function on an open set in .
The partial derivative of with respect to is:
Similar definitions hold for and .
By taking partial derivatives of partial derivatives, we can find second partial derivatives of with respect to then , for instance, just as before.
For each of the following, find , , , , , and .
Solution
We can continue taking partial derivatives of partial derivatives of partial derivatives of …; we do not have to stop with second partial derivatives. These higher order partial derivatives do not have a tidy graphical interpretation; nevertheless they are not hard to compute and worthy of some practice.
We do not formally define each higher order derivative, but rather give just a few examples of the notation.
(a)
Let . Find and .
(b)
Let . Find .
Solution
To find , we first find , then , then :
To find , we first find , then , then :
Note how .
To find , we find , then , then :
In the previous example we saw that ; this is not a coincidence. While we do not state this as a formal theorem, as long as each partial derivative is continuous, it does not matter the order in which the partial derivatives are taken. For instance, .
This can be useful at times. Had we known this, the second part of Example 13.3.7 would have been much simpler to compute. Instead of computing in the , then orders, we could have applied the , then then order (as ). It is easy to see that ; then and are clearly 0 as does not contain an or .
We have seen that partial derivatives measure the instantaneous rate of change of a multivariable function with respect to one variable. With , the partial derivatives and measure the instantaneous rate of change of when moving parallel to the - and -axes, respectively. How do we measure the rate of change at a point when we do not move parallel to one of these axes? What if we move in the direction given by the vector ? Can we measure that rate of change? The answer is, of course, yes, we can. This is the topic of Section 13.6. First, we need to define what it means for a function of two variables to be differentiable.
What is the difference between a constant and a coefficient?
Given a function , explain in your own words how to compute .
In the expression , which is computed first, or ?
In the expression , which is computed first, or ?
In Exercises 5–8., evaluate and at the indicated point.
at
at
at
at
In Exercises 9–26., find , , , , and .
In Exercises 27–30., form a function such that and match those given.
,
,
,
,
In Exercises 31–34., find , , , and .