Skip to main content
Mathematics LibreTexts

10.3: Second-Order Partial Derivatives

  • Page ID
    107863
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Motivating Questions
    • Given a function \(f\) of two independent variables \(x\) and \(y\text{,}\) how are the second-order partial derivatives of \(f\) defined?
    • What do the second-order partial derivatives \(f_{xx}\text{,}\) \(f_{yy}\text{,}\) \(f_{xy}\text{,}\) and \(f_{yx}\) of a function \(f\) tell us about the function's behavior?

    Recall that for a single-variable function \(f\text{,}\) the second derivative of \(f\) is defined to be the derivative of the first derivative. That is, \(f''(x) = \frac{d}{dx}[f'(x)]\text{,}\) which can be stated in terms of the limit definition of the derivative by writing

    \[ f''(x) = \lim_{h \to 0} \frac{f'(x+h) - f'(x)}{h}. \nonumber \]

    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 \(\PageIndex{1}\)

    Once again, let's consider the function \(f\) defined by \(f(x,y) = \frac{x^2\sin(2y)}{32}\) that measures a projectile's range as a function of its initial speed \(x\) and launch angle \(y\text{.}\) The graph of this function, including traces with \(x=150\) and \(y=0.6\text{,}\) is shown in Figure \(\PageIndex{1}\).

    fig_10_2_trace_x_a-1.svgfig_10_2_trace_y_a-1.svg

    Figure \(\PageIndex{1}\). The distance function with traces \(x=150\) and \(y=0.6\text{.}\)

    a. Compute the partial derivative \(f_x\text{.}\) Notice that \(f_x\) itself is a new function of \(x\) and \(y\text{,}\) so we may now compute the partial derivatives of \(f_x\text{.}\) Find the partial derivative \(f_{xx} = (f_x)_x\) and show that \(f_{xx}(150,0.6) \approx 0.058\text{.}\)

    b. Figure \(\PageIndex{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.

    fig_10_3_preview_xx.svg

    Figure \(\PageIndex{2}\). The trace with \(y=0.6\text{.}\)

    c. Determine the partial derivative \(f_y\text{,}\) and then find the partial derivative \(f_{yy}=(f_y)_y\text{.}\) Evaluate \(f_{yy}(150, 0.6)\text{.}\)

    fig_10_3_preview_yy.svg

    Figure \(\PageIndex{3}\). More traces of the range function.

    d. Figure \(\PageIndex{3}\) shows the trace \(f(150, y)\) and includes three tangent lines. Explain how the value of \(f_{yy}(150,0.6)\) is reflected in this figure.

    e. Because \(f_x\) and \(f_y\) are each functions of both \(x\) and \(y\text{,}\) they each have two partial derivatives. Not only can we compute \(f_{xx} = (f_x)_x\text{,}\) but also \(f_{xy} = (f_x)_y\text{;}\) likewise, in addition to \(f_{yy} = (f_y)_y\text{,}\) but also \(f_{yx} = (f_y)_x\text{.}\) For the range function \(f(x,y) = \frac{x^2\sin(2y)}{32}\text{,}\) use your earlier computations of \(f_x\) and \(f_y\) to now determine \(f_{xy}\) and \(f_{yx}\text{.}\) Write one sentence to explain how you calculated these “mixed” partial derivatives.

    Second-Order Partial Derivatives

    A function \(f\) of two independent variables \(x\) and \(y\) has two first order partial derivatives, \(f_x\) and \(f_y\text{.}\) As we saw in Preview Activity \(\PageIndex{1}\), each of these first-order partial derivatives has two partial derivatives, giving a total of four second-order partial derivatives:

    • \(f_{xx} = (f_x)_x = \frac{\partial}{\partial x} \left(\frac{\partial f}{\partial x}\right) = \frac{\partial^2 f}{\partial x^2}\text{,}\)
    • \(f_{yy} = (f_y)_y=\frac{\partial}{\partial y} \left(\frac{\partial f}{\partial y}\right) = \frac{\partial^2 f}{\partial y^2}\text{,}\)
    • \(f_{xy} = (f_x)_y=\frac{\partial}{\partial y} \left(\frac{\partial f}{\partial x}\right) = \frac{\partial^2 f}{\partial y \partial x}\text{,}\)
    • \(f_{yx}=(f_y)_x=\frac{\partial}{\partial x} \left(\frac{\partial f}{\partial y}\right) = \frac{\partial^2 f}{\partial x \partial y}\text{.}\)

    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

    \[ \frac{\partial^2 f}{\partial y\partial x} = \frac{\partial}{\partial y}\left(\frac{\partial f}{\partial x}\right) \nonumber \]

    means that we first differentiate with respect to \(x\) and then with respect to \(y\text{;}\) this can be expressed in the alternate notation \(f_{xy} = (f_x)_y\text{.}\) However, to find the second partial derivative

    \[ f_{yx} = (f_y)_x \nonumber \]

    we first differentiate with respect to \(y\) and then \(x\text{.}\) This means that

    \[ \frac{\partial^2 f}{\partial y\partial x} = f_{xy}, \ \mbox{and} \ \frac{\partial^2 f}{\partial x\partial y} = f_{yx}. \nonumber \]

    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.

    Activity \(\PageIndex{2}\)

    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. \(\displaystyle f(x,y) = x^2y^3\)
    2. \(\displaystyle f(x,y) = y\cos(x)\)
    3. \(\displaystyle g(s,t) = st^3 + s^4\)
    4. How many second order partial derivatives does the function \(h\) defined by \(h(x,y,z) = 9x^9z-xyz^9 + 9\) have? Find \(h_{xz}\) and \(h_{zx}\) (you do not need to find the other second order partial derivatives).

    In Preview Activity \(\PageIndex{1}\) and Activity \(\PageIndex{2}\), 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 \(f_{xy}\) and \(f_{yx}\) are continuous near the point \((a,b)\text{.}\) Then

    \[ f_{xy}(a,b) = f_{yx}(a,b). \nonumber \]

    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.

    fig_10_3_fxx_1.svgfig_10_3_fxx_2.svgfig_10_3_fxx_3.svg

    Figure \(\PageIndex{4}\). The tangent lines to a trace with increasing \(x\text{.}\)

    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 \(f_{xx}\) requires us to hold \(y\) constant and differentiate twice with respect to \(x\text{,}\) we may simply view \(f_{xx}\) as the second derivative of a trace of \(f\) where \(y\) is fixed. As such, \(f_{xx}\) will measure the concavity of this trace.

    Consider, for example, \(f(x,y) = \sin(x) e^{-y}\text{.}\) Figure \(\PageIndex{4}\) shows the graph of this function along with the trace given by \(y=-1.5\text{.}\) Also shown are three tangent lines to this trace, with increasing \(x\)-values from left to right among the three plots in Figure \(\PageIndex{4}\).

    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 \(f_x(x,y)=\cos(x)e^{-y}\) and so \(f_{xx}(x,y)=-\sin(x)e^{-y} \lt 0\text{,}\) since \(e^{-y} > 0\) for all values of \(y\text{,}\) including \(y = -1.5\text{.}\)

    In the following activity, we further explore what second-order partial derivatives tell us about the geometric behavior of a surface.

    Activity \(\PageIndex{3}\)

    We continue to consider the function \(f\) defined by \(f(x,y) = \sin(x) e^{-y}\text{.}\)

    a. In Figure \(\PageIndex{5}\), we see the trace of \(f(x,y) = \sin(x) e^{-y}\) that has \(x\) held constant with \(x = 1.75\text{.}\) 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 \(f_{yy}(x,y)\text{,}\) explain how this observation is related to the value of \(f_{yy}(1.75,y)\text{.}\) 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.)

    fig_10_3_fyy_1.svgfig_10_3_fyy_2.svgfig_10_3_fyy_3.svg

    Figure \(\PageIndex{5}\). The tangent lines to a trace with increasing \(y\text{.}\)

    b. In Figure \(\PageIndex{6}\), we start to think about the mixed partial derivative, \(f_{xy}\text{.}\) Here, we first hold \(y\) constant to generate the first-order partial derivative \(f_x\text{,}\) and then we hold \(x\) constant to compute \(f_{xy}\text{.}\) 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 \((f_x)_y\) in order to further animate the three snapshots shown in the figure.

    fig_10_3_fxy_1.svgfig_10_3_fxy_2.svgfig_10_3_fxy_3.svg

    Figure \(\PageIndex{6}\). The trace of \(z = f(x,y) = \sin(x)e^{-y}\) with \(x = 1.75\text{,}\) along with tangent lines in the \(y\)-direction at three different points.

    Based on Figure \(\PageIndex{6}\), is \(f_{xy}(1.75, -1.5)\) positive or negative? Why?

    c. Determine the formula for \(f_{xy}(x,y)\text{,}\) and hence evaluate \(f_{xy}(1.75, -1.5)\text{.}\) How does this value compare with your observations in (b)?

    d. We know that \(f_{xx}(1.75, -1.5)\) measures the concavity of the \(y = -1.5\) trace, and that \(f_{yy}(1.75, -1.5)\) measures the concavity of the \(x = 1.75\) trace. What do you think the quantity \(f_{xy}(1.75, -1.5)\) measures?

    e. On Figure \(\PageIndex{6}\), sketch the trace with \(y = -1.5\text{,}\) and sketch three tangent lines whose slopes correspond to the value of \(f_{yx}(x,-1.5)\) for three different values of \(x\text{,}\) the middle of which is \(x = -1.5\text{.}\) Is \(f_{yx}(1.75, -1.5)\) positive or negative? Why? What does \(f_{yx}(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 \(\PageIndex{4}\)

    As we saw in Activity 10.2.5, the wind chill \(w(v,T)\text{,}\) 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 \(\PageIndex{1}\).

    Table \(\PageIndex{1}\). Wind chill as a function of wind speed and temperature.

    \(v \backslash T\) -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 \(w_{T}(20,-15)\text{,}\) \(w_{T}(20,-10)\text{,}\) and \(w_T(20,-5)\text{.}\) Use these results to estimate the second-order partial \(w_{TT}(20, -10)\text{.}\)
    2. In a similar way, estimate the second-order partial \(w_{vv}(20,-10)\text{.}\)
    3. Estimate the partial derivatives \(w_T(20,-10)\text{,}\) \(w_T(25,-10)\text{,}\) and \(w_T(15,-10)\text{,}\) and use your results to estimate the partial \(w_{Tv}(20,-10)\text{.}\)
    4. In a similar way, estimate the partial derivative \(w_{vT}(20,-10)\text{.}\)
    5. Write several sentences that explain what the values \(w_{TT}(20, -10)\text{,}\) \(w_{vv}(20,-10)\text{,}\) and \(w_{Tv}(20,-10)\) indicate regarding the behavior of \(w(v,T)\text{.}\)

    As we have found in Activities \(\PageIndex{3}\) and Activity \(\PageIndex{4}\), we may think of \(f_{xy}\) as measuring the “twist” of the graph as we increase \(y\) along a particular trace where \(x\) is held constant. In the same way, \(f_{yx}\) measures how the graph twists as we increase \(x\text{.}\) If we remember that Clairaut's theorem tells us that \(f_{xy} = f_{yx}\text{,}\) we see that the amount of twisting is the same in both directions. This twisting is perhaps more easily seen in Figure \(\PageIndex{7}\), which shows the graph of \(f(x,y) = -xy\text{,}\) for which \(f_{xy} = -1\text{.}\)

    fig_10_3_ruled.svg

    Figure \(\PageIndex{7}\). The graph of \(f(x,y) = -xy\text{.}\)

    Summary

    • There are four second-order partial derivatives of a function \(f\) of two independent variables \(x\) and \(y\text{:}\)
      \[ f_{xx} = (f_x)_x, f_{xy} = (f_x)_y, f_{yx} = (f_y)_x,\ \mbox{and} \ f_{yy} = (f_y)_y. \nonumber \]
    • The unmixed second-order partial derivatives, \(f_{xx}\) and \(f_{yy}\text{,}\) tell us about the concavity of the traces. The mixed second-order partial derivatives, \(f_{xy}\) and \(f_{yx}\text{,}\) tell us how the graph of \(f\) twists.

    This page titled 10.3: Second-Order Partial Derivatives is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin & Steven Schlicker (ScholarWorks @Grand Valley State University) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.