Skip to main content
Logo image

Coordinated Multivariable Calculus

Section 2.2 Second-Order Partial Derivatives

Recall that for a single-variable function f, the second derivative of f is defined to be the derivative of the first derivative. That is, f(x)=ddx[f(x)], which can be stated in terms of the limit definition of the derivative by writing
f(x)=limh0f(x+h)f(x)h.
In what follows, we begin exploring the four different second-order partial derivatives of a function of two variables and seek to understand what these various derivatives tell us about the function’s behavior.

Preview Activity 2.2.1.

Once again, let’s consider the function f defined by f(x,y)=x2sin(2y)32 that measures a projectile’s range as a function of its initial speed x and launch angle y. The graph of this function, including traces with x=150 and y=0.6, is shown in Figure 2.2.1.
Figure 2.2.1. The distance function with traces x=150 and y=0.6.
  1. Compute the partial derivative fx. Notice that fx itself is a new function of x and y, so we may now compute the partial derivatives of fx. Find the partial derivative fxx=(fx)x and show that fxx(150,0.6)0.058.
  2. Figure 2.2.2 shows the trace of f with y=0.6 with three tangent lines included. Explain how your result from part (a) of this preview activity is reflected in this figure.
    Figure 2.2.2. The trace with y=0.6.
  3. Determine the partial derivative fy, and then find the partial derivative fyy=(fy)y. Evaluate fyy(150,0.6).
    Figure 2.2.3. More traces of the range function.
  4. Figure 2.2.3 shows the trace f(150,y) and includes three tangent lines. Explain how the value of fyy(150,0.6) is reflected in this figure.
  5. Because fx and fy are each functions of both x and y, they each have two partial derivatives. Not only can we compute fxx=(fx)x, but also fxy=(fx)y; likewise, in addition to fyy=(fy)y, but also fyx=(fy)x. For the range function f(x,y)=x2sin(2y)32, use your earlier computations of fx and fy to now determine fxy and fyx. Write one sentence to explain how you calculated these “mixed” partial derivatives.

Subsection 2.2.1 Second-Order Partial Derivatives

A function f of two independent variables x and y has two first order partial derivatives, fx and fy. As we saw in Preview Activity 2.2.1, each of these first-order partial derivatives has two partial derivatives, giving a total of four second-order partial derivatives:
  • fxx=(fx)x=x(fx)=2fx2,
  • fyy=(fy)y=y(fy)=2fy2,
  • fxy=(fx)y=y(fx)=2fyx,
  • fyx=(fy)x=x(fy)=2fxy.
The first two are called unmixed second-order partial derivatives while the last two are called the mixed second-order partial derivatives.
One aspect of this notation can be a little confusing. The notation
2fyx=y(fx)
means that we first differentiate with respect to x and then with respect to y; this can be expressed in the alternate notation fxy=(fx)y. However, to find the second partial derivative
fyx=(fy)x
we first differentiate with respect to y and then x. This means that
2fyx=fxy, and 2fxy=fyx.
Be sure to note carefully the difference between Leibniz notation and subscript notation and the order in which x and y appear in each. In addition, remember that anytime we compute a partial derivative, we hold constant the variable(s) other than the one we are differentiating with respect to.

Example 2.2.4.

Find all second order partial derivatives of the following functions. For each partial derivative you calculate, state explicitly which variable is being held constant.
  1. f(x,y)=x2y3
  2. f(x,y)=ycos(x)
  3. g(s,t)=st3+s4
  4. How many second order partial derivatives does the function h defined by h(x,y,z)=9x9zxyz9+9 have? Find hxz and hzx (you do not need to find the other second order partial derivatives).
Solution.
  1. fx=2xy3fy=3x2y2fxx=2y3fxy=6xy2fyx=6xy2fyy=6x2y
  2. fx=ysin(x)fy=cos(x)fxx=ycos(x)fxy=sin(x)fyx=sin(x)fyy=0
  3. gs=t3+4s3gt=3st2gss=12s2gst=3t2gts=3t2gtt=6st
  4. There are 333=92 two-letter ’words’ made from the letters x, y, and z:
    xx,xy,xz,yx,yy,yz,zx,zy,zz
    But we know from Clairaut’s Theorem  that hxy=hyx, hxz=hzx, and hyz=hzy. So there are 6 different second-order partial derivatives. Here are the ones we are asked to compute:
    hxz=z(81x8zyz9)=81x89yz8hzx=x(9x99xyz8)=81x89yz8
    Notice that these are equal!
In Preview Activity 2.2.1 and Activity 2.2.4, you may have noticed that the mixed second-order partial derivatives are equal. This observation holds generally and is known as Clairaut’s Theorem.

Clairaut’s Theorem.

Let f be a function of several variables for which the partial derivatives fxy and fyx are continuous near the point (a,b). Then
fxy(a,b)=fyx(a,b).

Subsection 2.2.2 Interpreting the Second-Order Partial Derivatives

Recall from single variable calculus that the second derivative measures the instantaneous rate of change of the derivative. This observation is the key to understanding the meaning of the second-order partial derivatives.
Figure 2.2.5. The tangent lines to a trace with increasing x.
Furthermore, we remember that the second derivative of a function at a point provides us with information about the concavity of the function at that point. Since the unmixed second-order partial derivative fxx requires us to hold y constant and differentiate twice with respect to x, we may simply view fxx as the second derivative of a trace of f where y is fixed. As such, fxx will measure the concavity of this trace.
Consider, for example, f(x,y)=sin(x)ey. Figure 2.2.5 shows the graph of this function along with the trace given by y=1.5. Also shown are three tangent lines to this trace, with increasing x-values from left to right among the three plots in Figure 2.2.5.
That the slope of the tangent line is decreasing as x increases is reflected, as it is in one-variable calculus, in the fact that the trace is concave down. Indeed, we see that fx(x,y)=cos(x)ey and so fxx(x,y)=sin(x)ey<0, since ey>0 for all values of y, including y=1.5.
In the following activity, we further explore what second-order partial derivatives tell us about the geometric behavior of a surface.

Activity 2.2.2.

We continue to consider the function f defined by f(x,y)=sin(x)ey.
  1. In Figure 2.2.6, we see the trace of f(x,y)=sin(x)ey that has x held constant with x=1.75. We also see three different lines that are tangent to the trace of f in the y direction at values of y that are increasing from left to right in the figure. Write a couple of sentences that describe whether the slope of the tangent lines to this curve increase or decrease as y increases, and, after computing fyy(x,y), explain how this observation is related to the value of fyy(1.75,y). Be sure to address the notion of concavity in your response.(You need to be careful about the directions in which x and y are increasing.)
    Figure 2.2.6. The tangent lines to a trace with increasing y.
  2. In Figure 2.2.7, we start to think about the mixed partial derivative, fxy. Here, we first hold y constant to generate the first-order partial derivative fx, and then we hold x constant to compute fxy. This leads to first thinking about a trace with x being constant, followed by slopes of tangent lines in the x-direction that slide along the original trace. You might think of sliding your pencil down the trace with x constant in a way that its slope indicates (fx)y in order to further animate the three snapshots shown in the figure.
    Figure 2.2.7. The trace of z=f(x,y)=sin(x)ey with x=1.75, along with tangent lines in the y-direction at three different points.
    Based on Figure 2.2.7, is fxy(1.75,1.5) positive or negative? Why?
  3. Determine the formula for fxy(x,y), and hence evaluate fxy(1.75,1.5). How does this value compare with your observations in (b)?
  4. We know that fxx(1.75,1.5) measures the concavity of the y=1.5 trace, and that fyy(1.75,1.5) measures the concavity of the x=1.75 trace. What do you think the quantity fxy(1.75,1.5) measures?
  5. On Figure 2.2.7, sketch the trace with y=1.5, and sketch three tangent lines whose slopes correspond to the value of fyx(x,1.5) for three different values of x, the middle of which is x=1.5. Is fyx(1.75,1.5) positive or negative? Why? What does fyx(1.75,1.5) measure?
Just as with the first-order partial derivatives, we can approximate second-order partial derivatives in the situation where we have only partial information about the function.

Activity 2.2.3.

As we saw in Activity 2.1.5, the wind chill w(v,T), in degrees Fahrenheit, is a function of the wind speed, in miles per hour, and the air temperature, in degrees Fahrenheit. Some values of the wind chill are recorded in Table 2.2.8.
Table 2.2.8. Wind chill as a function of wind speed and temperature.
vT -30 -25 -20 -15 -10 -5 0 5 10 15 20
5 -46 -40 -34 -28 -22 -16 -11 -5 1 7 13
10 -53 -47 -41 -35 -28 -22 -16 -10 -4 3 9
15 -58 -51 -45 -39 -32 -26 -19 -13 -7 0 6
20 -61 -55 -48 -42 -35 -29 -22 -15 -9 -2 4
25 -64 -58 -51 -44 -37 -31 -24 -17 -11 -4 3
30 -67 -60 -53 -46 -39 -33 -26 -19 -12 -5 1
35 -69 -62 -55 -48 -41 -34 -27 -21 -14 -7 0
40 -71 -64 -57 -50 -43 -36 -29 -22 -15 -8 -1
  1. Estimate the partial derivatives wT(20,15), wT(20,10), and wT(20,5). Use these results to estimate the second-order partial wTT(20,10).
  2. In a similar way, estimate the second-order partial wvv(20,10).
  3. Estimate the partial derivatives wT(20,10), wT(25,10), and wT(15,10), and use your results to estimate the partial wTv(20,10).
  4. In a similar way, estimate the partial derivative wvT(20,10).
  5. Write several sentences that explain what the values wTT(20,10), wvv(20,10), and wTv(20,10) indicate regarding the behavior of w(v,T).
As we have found in Activities 2.2.2 and Activity 2.2.3, we may think of fxy as measuring the “twist” of the graph as we increase y along a particular trace where x is held constant. In the same way, fyx measures how the graph twists as we increase x. If we remember that Clairaut’s theorem tells us that fxy=fyx, we see that the amount of twisting is the same in both directions. This twisting is perhaps more easily seen in Figure 2.2.9, which shows the graph of f(x,y)=xy, for which fxy=1.
Figure 2.2.9. The graph of f(x,y)=xy.

Subsection 2.2.3 Summary

  • There are four second-order partial derivatives of a function f of two independent variables x and y:
    fxx=(fx)x,fxy=(fx)y,fyx=(fy)x, and fyy=(fy)y.
  • The unmixed second-order partial derivatives, fxx and fyy, tell us about the concavity of the traces. The mixed second-order partial derivatives, fxy and fyx, tell us how the graph of f twists.

Exercises 2.2.4 Exercises

1.

Calculate all four second-order partial derivatives of f(x,y)=2x2y+4xy3.
fxx(x,y)=
fxy(x,y)=
fyx(x,y)=
fyy(x,y)=

2.

Find all the first and second order partial derivatives of f(x,y)=7sin(2x+y)+8cos(xy).
A. fx=fx=
B. fy=fy=
C. 2fx2=fxx=
D. 2fy2=fyy=
E. 2fxy=fyx=
F. 2fyx=fxy=

3.

Find the partial derivatives of the function
f(x,y)=xye4y
fx(x,y)=
fy(x,y)=
fxy(x,y)=
fyx(x,y)=

4.

Calculate all four second-order partial derivatives of f(x,y)=sin(3xy).
fxx(x,y)=
fxy(x,y)=
fyx(x,y)=
fyy(x,y)=

5.

Given F(r,s,t)=r(6s6+7t4), compute:
Frst=

6.

Calculate all four second-order partial derivatives and check that fxy=fyx. Assume the variables are restricted to a domain on which the function is defined.
f(x,y)=e4xy
fxx=
fyy=
fxy=
fyx=

7.

Calculate all four second-order partial derivatives of f(x,y)=(4x+2y)ey.
fxx(x,y)=
fxy(x,y)=
fyx(x,y)=
fyy(x,y)=

8.

Let f(x,y)=(4xy)8. Then
2fxy =
3fxyx =
3fx2y =

9.

If zxy=9y and all of the second order partial derivatives of z are continuous, then
(a) zyx=
(b) zxyx=
(c) zxyy=

10.

If z=f(x)+yg(x), what can we say about zyy?
  • zyy=y
  • zyy=0
  • zyy=zxx
  • zyy=g(x)
  • We cannot say anything

11.

Shown in Figure 2.2.10 is a contour plot of a function f with the values of f labeled on the contours. The point (2,1) is highlighted in red.
Figure 2.2.10. A contour plot of f(x,y).
  1. Estimate the partial derivatives fx(2,1) and fy(2,1).
  2. Determine whether the second-order partial derivative fxx(2,1) is positive or negative, and explain your thinking.
  3. Determine whether the second-order partial derivative fyy(2,1) is positive or negative, and explain your thinking.
  4. Determine whether the second-order partial derivative fxy(2,1) is positive or negative, and explain your thinking.
  5. Determine whether the second-order partial derivative fyx(2,1) is positive or negative, and explain your thinking.
  6. Consider a function g of the variables x and y for which gx(2,2)>0 and gxx(2,2)<0. Sketch possible behavior of some contours around (2,2) on the left axes in Figure 2.2.11.
    Figure 2.2.11. Plots for contours of g and h.
  7. Consider a function h of the variables x and y for which hx(2,2)>0 and hxy(2,2)<0. Sketch possible behavior of some contour lines around (2,2) on the right axes in Figure 2.2.11.

12.

The Heat Index, I, (measured in apparent degrees F) is a function of the actual temperature T outside (in degrees F) and the relative humidity H (measured as a percentage). A portion of the table which gives values for this function, I(T,H), is reproduced in Table 2.2.12.
Table 2.2.12. Heat index.
T H 70 75 80 85
90 106 109 112 115
92 112 115 119 123
94 118 122 127 132
96 125 130 135 141
  1. State the limit definition of the value ITT(94,75). Then, estimate ITT(94,75), and write one complete sentence that carefully explains the meaning of this value, including units.
  2. State the limit definition of the value IHH(94,75). Then, estimate IHH(94,75), and write one complete sentence that carefully explains the meaning of this value, including units.
  3. Finally, do likewise to estimate IHT(94,75), and write a sentence to explain the meaning of the value you found.

13.

The temperature on a heated metal plate positioned in the first quadrant of the xy-plane is given by
C(x,y)=25e(x1)2(y1)3.
Assume that temperature is measured in degrees Celsius and that x and y are each measured in inches.
  1. Determine Cxx(x,y) and Cyy(x,y). Do not do any additional work to algebraically simplify your results.
  2. Calculate Cxx(1.1,1.2). Suppose that an ant is walking past the point (1.1,1.2) along the line y=1.2. Write a sentence to explain the meaning of the value of Cxx(1.1,1.2), including units.
  3. Calculate Cyy(1.1,1.2). Suppose instead that an ant is walking past the point (1.1,1.2) along the line x=1.1. Write a sentence to explain the meaning of the value of Cyy(1.1,1.2), including units.
  4. Determine Cxy(x,y) and hence compute Cxy(1.1,1.2). What is the meaning of this value? Explain, in terms of an ant walking on the heated metal plate.

14.

Let f(x,y)=8x2y2 and g(x,y)=8x2+4xyy2.
  1. Determine fx, fy, fxx, fyy, fxy, and fyx.
  2. Evaluate each of the partial derivatives in (a) at the point (0,0).
  3. What do the values in (b) suggest about the behavior of f near (0,0)? Plot a graph of f and compare what you see visually to what the values suggest.
  4. Determine gx, gy, gxx, gyy, gxy, and gyx.
  5. Evaluate each of the partial derivatives in (d) at the point (0,0).
  6. What do the values in (e) suggest about the behavior of g near (0,0)? Plot a graph of g and compare what you see visually to what the values suggest.
  7. What do the functions f and g have in common at (0,0)? What is different? What do your observations tell you regarding the importance of a certain second-order partial derivative?

15.

Let f(x,y)=12xy2 represent the kinetic energy in Joules of an object of mass x in kilograms with velocity y in meters per second. Let (a,b) be the point (4,5) in the domain of f.
  1. Calculate 2fx2 at the point (a,b). Then explain as best you can what this second order partial derivative tells us about kinetic energy.
  2. Calculate 2fy2 at the point (a,b). Then explain as best you can what this second order partial derivative tells us about kinetic energy.
  3. Calculate 2fyx at the point (a,b). Then explain as best you can what this second order partial derivative tells us about kinetic energy.
  4. Calculate 2fxy at the point (a,b). Then explain as best you can what this second order partial derivative tells us about kinetic energy.