Skip to main content
\(\newcommand{\R}{\mathbb{R}} \newcommand{\va}{\mathbf{a}} \newcommand{\vb}{\mathbf{b}} \newcommand{\vc}{\mathbf{c}} \newcommand{\vC}{\mathbf{C}} \newcommand{\vd}{\mathbf{d}} \newcommand{\ve}{\mathbf{e}} \newcommand{\vi}{\mathbf{i}} \newcommand{\vj}{\mathbf{j}} \newcommand{\vk}{\mathbf{k}} \newcommand{\vn}{\mathbf{n}} \newcommand{\vm}{\mathbf{m}} \newcommand{\vr}{\mathbf{r}} \newcommand{\vs}{\mathbf{s}} \newcommand{\vu}{\mathbf{u}} \newcommand{\vv}{\mathbf{v}} \newcommand{\vw}{\mathbf{w}} \newcommand{\vx}{\mathbf{x}} \newcommand{\vy}{\mathbf{y}} \newcommand{\vz}{\mathbf{z}} \newcommand{\vzero}{\mathbf{0}} \newcommand{\vF}{\mathbf{F}} \newcommand{\vG}{\mathbf{G}} \newcommand{\vH}{\mathbf{H}} \newcommand{\vR}{\mathbf{R}} \newcommand{\vT}{\mathbf{T}} \newcommand{\vN}{\mathbf{N}} \newcommand{\vL}{\mathbf{L}} \newcommand{\vB}{\mathbf{B}} \newcommand{\vS}{\mathbf{S}} \newcommand{\proj}{\text{proj}} \newcommand{\comp}{\text{comp}} \newcommand{\nin}{} \newcommand{\vecmag}[1]{|#1|} \newcommand{\grad}{\nabla} \DeclareMathOperator{\curl}{curl} \DeclareMathOperator{\divg}{div} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section2.1First-Order Partial Derivatives

Objectives
  • How are the first-order partial derivatives of a function \(f\) of the independent variables \(x\) and \(y\) defined?

  • Given a function \(f\) of the independent variables \(x\) and \(y\text{,}\) what do the first-order partial derivatives \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) tell us about \(f\text{?}\)

The derivative plays a central role in first semester calculus because it provides important information about a function. Thinking graphically, for instance, the derivative at a point tells us the slope of the tangent line to the graph at that point. In addition, the derivative at a point also provides the instantaneous rate of change of the function with respect to changes in the independent variable.

Now that we are investigating functions of two or more variables, we can still ask how fast the function is changing, though we have to be careful about what we mean. Thinking graphically again, we can try to measure how steep the graph of the function is in a particular direction. Alternatively, we may want to know how fast a function's output changes in response to a change in one of the inputs. Over the next few sections, we will develop tools for addressing issues such as these. Preview Activity2.1.1 explores some issues with what we will come to call partial derivatives.

Exploration2.1.1

Suppose we take out an $18,000 car loan at interest rate \(r\) and we agree to pay off the loan in \(t\) years. The monthly payment, in dollars, is

\begin{equation*} M(r,t) = \frac{1500r}{1-\left(1+\frac{r}{12}\right)^{-12t}}. \end{equation*}
  1. What is the monthly payment if the interest rate is \(3\%\) so that \(r = 0.03\text{,}\) and we pay the loan off in \(t=4\) years?

  2. Suppose the interest rate is fixed at \(3\%\text{.}\) Express \(M\) as a function \(f\) of \(t\) alone using \(r=0.03\text{.}\) That is, let \(f(t) = M(0.03, t)\text{.}\) Sketch the graph of \(f\) on the left of Figure2.1.1. Explain the meaning of the function \(f\text{.}\)

    Figure2.1.1Left: Graphs \(f(t)= M(0.03, t)\text{.}\) Right: Graph \(g(r) = M(r,4)\text{.}\)

  3. Find the instantaneous rate of change \(f'(4)\) and state the units on this quantity. What information does \(f'(4)\) tell us about our car loan? What information does \(f'(4)\) tell us about the graph you sketched in (b)?

  4. Express \(M\) as a function of \(r\) alone, using a fixed time of \(t=4\text{.}\) That is, let \(g(r) = M(r, 4)\text{.}\) Sketch the graph of \(g\) on the right of Figure2.1.1. Explain the meaning of the function \(g\text{.}\)

  5. Find the instantaneous rate of change \(g'(0.03)\) and state the units on this quantity. What information does \(g'(0.03)\) tell us about our car loan? What information does \(g'(0.03)\) tell us about the graph you sketched in (d)?

Subsection2.1.1First-Order Partial Derivatives

In Section1.1, we studied the behavior of a function of two or more variables by considering the traces of the function. Recall that in one example, we considered the function \(f\) defined by

\begin{equation*} f(x,y) = \frac{x^2 \sin(2 y)}{32}, \end{equation*}

which measures the range, or horizontal distance, in feet, traveled by a projectile launched with an initial speed of \(x\) feet per second at an angle \(y\) radians to the horizontal. The graph of this function is given again on the left in Figure2.1.2. Moreover, if we fix the angle \(y = 0.6\text{,}\) we may view the trace \(f(x,0.6)\) as a function of \(x\) alone, as seen at right in Figure2.1.2.

Figure2.1.2Left: The trace of \(z=\frac{x^2 \sin(2 y)}{32}\) with \(y = 0.6\text{.}\)

Since the trace is a one-variable function, we may consider its derivative just as we did in the first semester of calculus. With \(y=0.6\text{,}\) we have

\begin{equation*} f(x,0.6) = \frac{\sin(1.2)}{32}x^2, \end{equation*}

and therefore

\begin{equation*} \frac{d}{dx}[f(x,0.6)] = \frac{\sin(1.2)}{16}x. \end{equation*}

When \(x=150\text{,}\) this gives

\begin{equation*} \frac{d}{dx}[f(x,0.6)]|_{x=150} = \frac{\sin(1.2)}{16}150 \approx 8.74~\mbox{feet per feet per second} , \end{equation*}

which gives the slope of the tangent line shown on the right of Figure2.1.2. Thinking of this derivative as an instantaneous rate of change implies that if we increase the initial speed of the projectile by one foot per second, we expect the horizontal distance traveled to increase by approximately 8.74 feet if we hold the launch angle constant at \(0.6\) radians.

By holding \(y\) fixed and differentiating with respect to \(x\text{,}\) we obtain the first-order partial derivative of \(f\) with respect to \(x\). Denoting this partial derivative as \(f_x\text{,}\) we have seen that

\begin{equation*} f_x(150, 0.6) = \frac{d}{dx}f(x,0.6)|_{x=150} = \lim_{h\to 0}\frac{f(150+h, 0.6) - f(150, 0.6)}{h}. \end{equation*}

More generally, we have

\begin{equation*} f_x(a,b) = \lim_{h\to0} \frac{f(a+h, b)-f(a,b)}{h}, \end{equation*}

provided this limit exists.

In the same way, we may obtain a trace by setting, say, \(x=150\) as shown in Figure2.1.3.

Figure2.1.3The trace of \(z=\frac{x^2 \sin(2 y)}{32}\) with \(x = 150\text{.}\)

This gives

\begin{equation*} f(150, y) = \frac{150^2}{32}\sin(2y), \end{equation*}

and therefore

\begin{equation*} \frac{d}{dy}[f(150,y)] = \frac{150^2}{16}\cos(2y). \end{equation*}

If we evaluate this quantity at \(y=0.6\text{,}\) we have

\begin{equation*} \frac{d}{dy}[f(150,y)]|_{y=0.6} = \frac{150^2}{16}\cos(1.2) \approx 509.5 ~\mbox{feet per radian} . \end{equation*}

Once again, the derivative gives the slope of the tangent line shown on the right in Figure2.1.3. Thinking of the derivative as an instantaneous rate of change, we expect that the range of the projectile increases by 509.5 feet for every radian we increase the launch angle \(y\) if we keep the initial speed of the projectile constant at 150 feet per second.

By holding \(x\) fixed and differentiating with respect to \(y\text{,}\) we obtain the first-order partial derivative of \(f\) with respect to \(y\). As before, we denote this partial derivative as \(f_y\) and write

\begin{equation*} f_y(150, 0.6) = \frac{d}{dy}f(150,y)|_{y=0.6} = \lim_{h\to 0}\frac{f(150, 0.6+h) - f(150, 0.6)}{h}. \end{equation*}

As with the partial derivative with respect to \(x\text{,}\) we may express this quantity more generally at an arbitrary point \((a,b)\text{.}\) To recap, we have now arrived at the formal definition of the first-order partial derivatives of a function of two variables.

Definition2.1.4

The first-order partial derivatives of \(f\) with respect to \(x\) and \(y\) at a point \((a,b)\) are, respectively,

\begin{align*} f_x(a,b) \amp = \lim_{h \to 0} \frac{f(a+h,b)-f(a,b)}{h}, \ \mbox{and}\\ f_y(a,b) \amp = \lim_{h \to 0} \frac{f(a,b+h)-f(a,b)}{h}, \end{align*}

provided the limits exist.

Activity2.1.2

Consider the function \(f\) defined by

\begin{equation*} f(x,y) = \frac{xy^2}{x+1} \end{equation*}

at the point \((1,2)\text{.}\)

  1. Compute the trace \(f(x,2)\) at the fixed value \(y=2\text{.}\) On the left side of Figure2.1.5, draw the graph of the trace with \(y=2\) around the point where \(x=1\text{,}\) indicating the scale and labels on the axes. Also, sketch the tangent line at the point \(x=1\text{.}\)

    Figure2.1.5Traces of \(f(x,y) = \frac{xy^2}{x+1}\text{.}\)

  2. Find the partial derivative \(f_x(1,2)\) and relate its value to the sketch you just made.

  3. Compute the trace \(f(1,y)\) at the fixed value \(x=1\text{.}\) On the right side of Figure2.1.5, draw the graph of the trace with \(x=1\) indicating the scale and labels on the axes. Also, sketch the tangent line at the point \(y=2\text{.}\)

  4. Find the partial derivative \(f_y(1,2)\) and relate its value to the sketch you just made.

Answer
  1. The trace \(f(x,2)\) at the fixed value \(y=2\) is \(f(x,2)=\frac{x(2)^2}{x+1}=\frac{4x}{x+1}\text{.}\)

  2. \begin{align*} f_x(1,2) \amp = \lim_{h\rightarrow0}\frac{f(1+h, 2)-f(1,2)}{h}\\ \amp = \lim_{h\rightarrow0}\frac{\frac{4(1+h)}{2+h}-\frac{4}{2}}{h}\\ \amp = \lim_{h\rightarrow0}\frac{\frac{4(1+h)}{2+h}-\frac{2(2+h)}{2+h}}{h}\\ \amp = \lim_{h\rightarrow0}\frac{\frac{2h}{2+h}}{h}\\ \amp = \lim_{h\rightarrow0}\frac{2}{2+h}\\ \amp = \frac{2}{2} =1 \end{align*}

    so your sketch should have a slope of 1 when \(x=1\text{.}\)

  3. The trace \(f(1,y)\) at the fixed value \(x=1\) is \(f(1,y)=\frac{y^2}{2}\text{.}\)

  4. \begin{align*} f_y(1,2) \amp = \lim_{h\rightarrow0}\frac{f(1, 2+h)-f(1,2)}{h}\\ \amp = \lim_{h\rightarrow0}\frac{\frac{(2+h)^2}{2}-\frac{4}{2}}{h}\\ \amp = \lim_{h\rightarrow0}\frac{\frac{4h+h^2}{2}}{h}\\ \amp = \lim_{h\rightarrow0}\frac{4+h}{2}\\ \amp = \frac{4}{2} =2 \end{align*}

    so your sketch should have a slope of 2 when \(y=2\text{.}\)

As these examples show, each partial derivative at a point arises as the derivative of a one-variable function defined by fixing one of the coordinates. In addition, we may consider each partial derivative as defining a new function of the point \((x,y)\text{,}\) just as the derivative \(f'(x)\) defines a new function of \(x\) in single-variable calculus. Due to the connection between one-variable derivatives and partial derivatives, we will often use Leibniz-style notation to denote partial derivatives by writing

\begin{equation*} \frac{\partial f}{\partial x}(a, b) = f_x(a,b), \ \mbox{and} \ \frac{\partial f}{\partial y}(a, b) = f_y(a,b). \end{equation*}

To calculate the partial derivative \(f_x\text{,}\) we hold \(y\) fixed and thus we treat \(y\) as a constant. In Leibniz notation, observe that

\begin{equation*} \frac{\partial }{\partial x} (x) = 1 \ \mbox{and} \ \frac{\partial }{\partial x}(y) = 0. \end{equation*}

To see the contrast between how we calculate single variable derivatives and partial derivatives, and the difference between the notations \(\frac{d}{dx}[ \ ]\) and \(\frac{\partial}{\partial x}[ \ ]\text{,}\) observe that

\begin{align*} \amp \frac{d}{dx}[3x^2 - 2x + 3] = 3\frac{d}{dx}[x^2] - 2\frac{d}{dx}[x] + \frac{d}{dx}[3] = 3\cdot 2x - 2,\\ \mbox{and} \ \amp \frac{\partial}{\partial x}[x^2y - xy + 2y] = y\frac{\partial}{\partial x}[x^2] - y\frac{\partial}{\partial x}[x] + \frac{\partial}{\partial x}[2y] = y\cdot 2x - y \end{align*}

Thus, computing partial derivatives is straightforward: we use the standard rules of single variable calculus, but do so while holding one (or more) of the variables constant.

Activity2.1.3
  1. If \(f(x,y) = 3x^3 - 2x^2y^5\text{,}\) find the partial derivatives \(f_x\) and \(f_y\text{.}\)

  2. If \(f(x,y) = \displaystyle\frac{xy^2}{x+1}\text{,}\) find the partial derivatives \(f_x\) and \(f_y\text{.}\)

  3. If \(g(r,s) = rs\cos(r)\text{,}\) find the partial derivatives \(g_r\) and \(g_s\text{.}\)

  4. Assuming \(f(w,x,y) = (6w+1)\cos(3x^2+4xy^3+y)\text{,}\) find the partial derivatives \(f_w\text{,}\) \(f_x\text{,}\) and \(f_y\text{.}\)

  5. Find all possible first-order partial derivatives of \(q(x,t,z) = \displaystyle \frac{x2^tz^3}{1+x^2}.\)

Answer
  1. The partial derivatives are \(f_x(x,y) = 9x^2 - 4xy^5\) and \(f_y(x,y)=-10x^2y^4\text{.}\)

  2. The partial derivatives are \(f_x(x,y) = \frac{y^2(x+1)-xy^2}{(x+1)^2}\) and \(f_y(x,y)=\frac{2xy}{x+1}\text{.}\)

  3. The partial derivatives are \(g_r(r,s)=s\cos(r)-rs\sin(r)\) and \(g_s(r,s)=r\cos(r)\text{.}\)

  4. The partial derivatives are \(f_w(w,x,y)=6\cos(3x^2+4xy^3+y)\text{,}\) \(f_x(w,x,y)=-(6w+1)\sin(3x^2+4xy^3+y)(6x+4y^3)\text{,}\) and \(f_y(w,x,y)=-(6w+1)\sin(3x^2+4xy^3+y)(12xy^2+1)\text{.}\)

  5. The possible first-order partial derivatives of \(q(x,t,z) = \displaystyle \frac{x2^tz^3}{1+x^2}\) are \(q_x(x,t,z) = \displaystyle \frac{2^tz^3(1+x^2)-x2^tz^3(2x)}{(1+x^2)^2}\text{,}\) \(q_t(x,t,z) = \displaystyle \frac{x2^tz^3\ln(2)}{1+x^2}\text{,}\) and \(q_z(x,t,z) = \displaystyle \frac{3x2^tz^2}{1+x^2}\text{.}\)

Subsection2.1.2Interpretations of First-Order Partial Derivatives

Recall that the derivative of a single variable function has a geometric interpretation as the slope of the line tangent to the graph at a given point. Similarly, we have seen that the partial derivatives measure the slope of a line tangent to a trace of a function of two variables as shown in Figure2.1.6.

Figure2.1.6Tangent lines to two traces of the distance function.

Now we consider the first-order partial derivatives in context. Recall that the difference quotient \(\frac{f(a+h)-f(a)}{h}\) for a function \(f\) of a single variable \(x\) at a point where \(x=a\) tells us the average rate of change of \(f\) over the interval \([a,a+h]\text{,}\) while the derivative \(f'(a)\) tells us the instantaneous rate of change of \(f\) at \(x=a\text{.}\) We can use these same concepts to explain the meanings of the partial derivatives in context.

Activity2.1.4

The speed of sound \(C\) traveling through ocean water is a function of temperature, salinity and depth. It may be modeled by the function

\begin{equation*} C=1449.2+4.6T-0.055T^2+0.00029T^3+(1.34-0.01T)(S-35)+0.016D. \end{equation*}

Here \(C\) is the speed of sound in meters/second, \(T\) is the temperature in degrees Celsius, \(S\) is the salinity in grams/liter of water, and \(D\) is the depth below the ocean surface in meters.

  1. State the units in which each of the partial derivatives, \(C_T\text{,}\) \(C_S\) and \(C_D\text{,}\) are expressed and explain the physical meaning of each.

  2. Find the partial derivatives \(C_T\text{,}\) \(C_S\) and \(C_D\text{.}\)

  3. Evaluate each of the three partial derivatives at the point where \(T=10\text{,}\) \(S=35\) and \(D=100\text{.}\) What does the sign of each partial derivatives tell us about the behavior of the function \(C\) at the point \((10,35, 100)\text{?}\)

Answer
  1. The units of \(C_T\) are meters/second per degree Celcius and \(C_T\) represents how the speed of the sound changes as the water gets warmer; the units of \(C_S\) are meters/second per gram/liter and \(C_S\) represents how the speed changes as the water gets saltier; and the units of \(C_D\) are meters/second per meter and \(C_D\) represents how the speed changes as you move deeper in the ocean.

  2. The partials are:

    \begin{equation*} C_T = 4.6-0.11T+0.00087T^2+(-0.01)(S-35) \end{equation*}
    \begin{equation*} C_S = (1.34-0.01T)(1) \end{equation*}
    \begin{equation*} C_D = 0.016 \end{equation*}
  3. When \(T=10\text{,}\) \(S=35\) and \(D=100\) we get

    \begin{equation*} C_T = 4.6-0.11(10)+0.00087(10)^2+(-0.01)(35-35)=3.587 \end{equation*}

    which is positive, so sound moves faster in warmer water;

    \begin{equation*} C_S = 1.34-0.01(10)=1.24 \end{equation*}

    which is positive, so sound moves faster in saltier water; and

    \begin{equation*} C_D = 0.016 \end{equation*}

    which is positive, so sound moves faster in deeper water.

Subsection2.1.3Using tables and contours to estimate partial derivatives

Remember that functions of two variables are often represented as either a table of data or a contour plot. In single variable calculus, we saw how we can use the difference quotient to approximate derivatives if, instead of an algebraic formula, we only know the value of the function at a few points. The same idea applies to partial derivatives.

Activity2.1.5

The wind chill, as frequently reported, is a measure of how cold it feels outside when the wind is blowing. In Table2.1.7, the wind chill \(w\text{,}\) measured in degrees Fahrenheit, is a function of the wind speed \(v\text{,}\) measured in miles per hour, and the ambient air temperature \(T\text{,}\) also measured in degrees Fahrenheit. We thus view \(w\) as being of the form \(w = w(v, T)\text{.}\)

\(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\)
Table2.1.7
  1. Estimate the partial derivative \(w_v(20,-10)\text{.}\) What are the units on this quantity and what does it mean? (Recall that we can estimate a partial derivative of a single variable function \(f\) using the symmetric difference quotient \(\frac{f(x+h)-f(x-h)}{2h}\) for small values of \(h\text{.}\) A partial derivative is a derivative of an appropriate trace.)

  2. Estimate the partial derivative \(w_T(20,-10)\text{.}\) What are the units on this quantity and what does it mean?

  3. Use your results to estimate the wind chill \(w(18, -10)\text{.}\) (Recall from single variable calculus that for a function \(f\) of \(x\text{,}\) \(f(x+h) \approx f(x) + hf'(x)\text{.}\))

  4. Use your results to estimate the wind chill \(w(20, -12)\text{.}\)

  5. Consider how you might combine your previous results to estimate the wind chill \(w(18, -12)\text{.}\) Explain your process.

Answer
  1. Recall we can treat \(w(v,T)\) as a function of just one variable when the other is set to a constant (ie by taking a trace). Estimating the partial derivative of \(f(v) = w(v,-10)\) around \(v=20\) using the symmetric difference quotient with \(h=5\) we then get

    \begin{align*} w_v(20,-10) \amp = f_v(20)\\ \amp \approx \frac{f(20+5)-f(20-5)}{2\cdot 5}\\ \amp = \frac{w(25,-10)-w(15,-10)}{10}\\ \amp = \frac{-37-(-32)}{10}\\ \amp = -\frac{1}{2}. \end{align*}

    The units on this partial derivative are degrees Fahrenheit per miles/hour, and it is negative since windchill feels colder as the speed of the wind increases.

  2. We compute the partial derivative \(w_T(20,-10)\) by taking the symmetric difference quotient of \(w(20,T)\) around \(T=-10\) using \(h=5\text{:}\)

    \begin{align*} w_T(20,-10) \amp \approx \frac{w(20,-5)-w(20,-15)}{10}\\ \amp = \frac{-29-(-42)}{10}\\ \amp = \frac{13}{10}. \end{align*}

    The units on this partial derivative are degrees Fahrenheit per degree Fahrenheit, and it is positive since windchill feels warmer as the ambient temperature increases.

  3. The value \(w(18, -10)\) is the value of the windchill when the wind is blowing 2 meters/second slower than it is when the windchill is \(w(20,-10)=-35\text{.}\) From the first part we know that we expect windchill to change by \(-\frac{1}{2}\) degrees Fahrenheit when the wind blows one meter/second faster, so working in the opposite direction we get

    \begin{equation*} w(18, -10)\approx w(20, -10)+(-2)\left(-\frac{1}{2}\right)=-35+1=-34 \end{equation*}

    degrees Fahrenheit.

  4. From the second part we know that we expect windchill to change by \(\frac{13}{10}\) degrees Fahrenheit when the ambient temperature increases by one degree Fahrenheit, so

    \begin{equation*} w(20, -12)\approx w(20, -10)+(-2)\left(\frac{13}{10}\right)=-35-2.6=-37.6 \end{equation*}

    degrees Fahrenheit.

  5. To estimate the wind chill \(w(18, -12)\text{,}\) we can either use our estimate for \(w(18, -10)\) and consider how a change of \(-2\) degrees Fahrenheit in the ambient temperature would change the windchill or we can use our estimate for \(w(20, -12)\) and consider how a change of \(-2\) meters/second in the wind speed would change the windchill. Using the first option, we get

    \begin{equation*} w(18, -12)\approx w(18, -10)+(-2)\left(\frac{13}{10}\right)=-34-2.6=-36.6 \end{equation*}

    degrees Fahrenheit.

Activity2.1.6

Shown below in Figure2.1.8 is a contour plot of a function \(f\text{.}\) The values of the function on a few of the contours are indicated to the left of the figure.

Figure2.1.8A contour plot of \(f\text{.}\)
  1. Estimate the partial derivative \(f_x(-2,-1)\text{.}\) (Hint: How can you find values of \(f\) that are of the form \(f(-2+h, -1)\) and \(f(-2-h, -1)\) so that you can use a symmetric difference quotient?)

  2. Estimate the partial derivative \(f_y(-2,-1)\text{.}\)

  3. Estimate the partial derivatives \(f_x(-1,2)\) and \(f_y(-1,2)\text{.}\)

  4. Locate, if possible, one point \((x,y)\) where \(f_x(x,y)= 0\text{.}\)

  5. Locate, if possible, one point \((x,y)\) where \(f_x(x,y)\lt 0\text{.}\)

  6. Locate, if possible, one point \((x,y)\) where \(f_y(x,y)>0\text{.}\)

  7. Suppose you have a different function \(g\text{,}\) and you know that \(g(2,2) = 4\text{,}\) \(g_x(2,2) > 0\text{,}\) and \(g_y(2,2) > 0\text{.}\) Using this information, sketch a possibility for the contour \(g(x,y)=4\) passing through \((2,2)\) on the left side of Figure2.1.9. Then include possible contours \(g(x,y) = 3\) and \(g(x,y) = 5\text{.}\)

    Figure2.1.9Plots for contours of \(g\) and \(h\text{.}\)

  8. Suppose you have yet another function \(h\text{,}\) and you know that \(h(2,2) = 4\text{,}\) \(h_x(2,2) \lt 0\text{,}\) and \(h_y(2,2) > 0\text{.}\) Using this information, sketch a possible contour \(h(x,y)=4\) passing through \((2,2)\) on the right side of Figure2.1.9. Then include possible contours \(h(x,y) = 3\) and \(h(x,y) = 5\text{.}\)

Answer
  1. Unfortunately, the contour plot of \(f\) does not lend itself to a symmetric difference quotient in the \(x\) direction around \((-2,-1)\text{.}\) The point \((-2,-1)\) falls on the countour line for \(f=4\text{.}\) Fixing \(y=-1\text{,}\) the only contour line to the left is the one for \(f=3\text{,}\) which is about a step of 1 in the \(x\) direction. However, there is no contour line to the right that is about a step of 1 away in the \(x\) direction. We use a regular (non-symmetric) difference quotient.

    \begin{equation*} f_x(-2,-1)\approx \frac{f(-2,-1)-f(-3,-1)}{1}\approx 4-3=1. \end{equation*}
  2. To estimate the partial derivative \(f_y(-2,-1)\) we can use a symmetric difference quotient in the \(y\) direction with \(h=\frac{1}{2}\text{.}\)

    \begin{equation*} f_y(-2,-1)\approx\frac{f(-2,-.5) -f(-2,-1.5)}{2(0.5)}\approx 3-5=-2. \end{equation*}
  3. Using a symmetric difference quotient for the partial derivative in the \(x\) direction we get

    \begin{equation*} f_x(-1,2)\approx \frac{f(0.5,2) -f(-2.5,2)}{2(1.5)}\approx \frac{3-0}{3}=1 \end{equation*}

    and for the \(y\) direction we can note that \((-2,-1)\) is on a contour line which is approximately tangent to the \(x\)-axis at \((-2,-1)\text{,}\) giving \(f_y(-1,2)\approx 0\text{.}\)

  4. One of several points \((x,y)\) where \(f_x(x,y)=0\) is at approximately \((0,-.5)\text{.}\)

  5. One of many points \((x,y)\) where \(f_x(x,y)\lt 0\) is at approximately \((1.5, -2)\text{.}\)

  6. This section of the contour plot of \(f\) does not have many areas where \(f_y(x,y)\) is clearly positive. However, \(f\) appears to have a positive partial derivative in the \(y\) direction at \((-1.2,3)\text{.}\)

Subsection2.1.4Summary

  • If \(f=f(x,y)\) is a function of two variables, there are two first order partial derivatives of \(f\text{:}\) the partial derivative of \(f\) with respect to \(x\text{,}\)

    \begin{equation*} \frac{\partial f}{\partial x}(x,y) = f_x(x,y) = \lim_{h \to 0} \frac{f(x+h,y) - f(x,y)}{h}, \end{equation*}

    and the partial derivative of \(f\) with respect to \(y\text{,}\)

    \begin{equation*} \frac{\partial f}{\partial y}(x,y) = f_y(x,y) = \lim_{h \to 0} \frac{f(x,y+h) - f(x,y)}{h}, \end{equation*}

    where each partial derivative exists only at those points \((x,y)\) for which the limit exists.

  • The partial derivative \(f_x(a,b)\) tells us the instantaneous rate of change of \(f\) with respect to \(x\) at \((x,y) = (a,b)\) when \(y\) is fixed at \(b\text{.}\) Geometrically, the partial derivative \(f_x(a,b)\) tells us the slope of the line tangent to the \(y=b\) trace of the function \(f\) at the point \((a,b,f(a,b))\text{.}\)

  • The partial derivative \(f_y(a,b)\) tells us the instantaneous rate of change of \(f\) with respect to \(y\) at \((x,y) = (a,b)\) when \(x\) is fixed at \(a\text{.}\) Geometrically, the partial derivative \(f_y(a,b)\) tells us the slope of the line tangent to the \(x=a\) trace of the function \(f\) at the point \((a,b,f(a,b))\text{.}\)

Subsection2.1.5Exercises

The Heat Index, \(I\text{,}\) (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=I(T,H)\text{,}\) is reproduced in Table2.1.10.

T \(\downarrow \backslash\) H \(\rightarrow\) 70 75 80 85
90 106 109 112 115
92 112 115 119 123
94 118 122 127 132
96 125 130 135 141
Table2.1.10
  1. State the limit definition of the value \(I_T(94,75)\text{.}\) Then, estimate \(I_T(94,75)\text{,}\) and write one complete sentence that carefully explains the meaning of this value, including its units.

  2. State the limit definition of the value \(I_H(94,75)\text{.}\) Then, estimate \(I_H(94,75)\text{,}\) and write one complete sentence that carefully explains the meaning of this value, including its units.

  3. Suppose you are given that \(I_T(92,80) = 3.75\) and \(I_H(92,80) = 0.8\text{.}\) Estimate the values of \(I(91,80)\) and \(I(92,78)\text{.}\) Explain how the partial derivatives are relevant to your thinking.

  4. On a certain day, at 1 p.m. the temperature is 92 degrees and the relative humidity is 85%. At 3 p.m., the temperature is 96 degrees and the relative humidity 75%. What is the average rate of change of the heat index over this time period, and what are the units on your answer? Write a sentence to explain your thinking.

Let \(f(x,y) = \frac{1}{2}xy^2\) 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\text{.}\)

  1. Calculate \(f_x(a,b)\text{.}\)

  2. Explain as best you can in the context of kinetic energy what the partial derivative

    \begin{equation*} f_x(a,b) = \lim_{h \to 0} \frac{f(a+h,b) - f(a,b)}{h} \end{equation*}

    tells us about kinetic energy.

  3. Calculate \(f_y(a,b)\text{.}\)

  4. Explain as best you can in the context of kinetic energy what the partial derivative

    \begin{equation*} f_y(a,b) = \lim_{h \to 0} \frac{f(a,b+h) - f(a,b)}{h} \end{equation*}

    tells us about kinetic energy.

  5. Often we are given certain graphical information about a function instead of a rule. We can use that information to approximate partial derivatives. For example, suppose that we are given a contour plot of the kinetic energy function (as in Figure2.1.11) instead of a formula. Use this contour plot to approximate \(f_x(4,5)\) and \(f_y(4,5)\) as best you can. Compare to your calculations from earlier parts of this exercise.

    Figure2.1.11The graph of \(f(x,y) = \frac{1}{2}xy^2\text{.}\)

The temperature on an unevenly heated metal plate positioned in the first quadrant of the \(xy\)-plane is given by

\begin{equation*} C(x,y) = \frac{25xy+25}{(x-1)^2 + (y-1)^2 + 1}. \end{equation*}

Assume that temperature is measured in degrees Celsius and that \(x\) and \(y\) are each measured in inches. (Note: At no point in the following questions should you expand the denominator of \(C(x,y)\text{.}\))

  1. Determine \(\frac{\partial C}{\partial x}|_{(x,y)}\) and \(\frac{\partial C}{\partial y}|_{(x,y)}\text{.}\)

  2. If an ant is on the metal plate, standing at the point \((2,3)\text{,}\) and starts walking in the direction parallel to the positive \(y\) axis, at what rate will the temperature the ant is experiencing change? Explain, and include appropriate units.

  3. If an ant is walking along the line \(y = 3\) in the positive \(x\) direction, at what instantaneous rate will the temperature the ant is experiencing change when the ant passes the point \((1,3)\text{?}\)

  4. Now suppose the ant is stationed at the point \((6,3)\) and walks in a straight line towards the point \((2,0)\text{.}\) Determine the average rate of change in temperature (per unit distance traveled) the ant encounters in moving between these two points. Explain your reasoning carefully. What are the units on your answer?

Consider the function \(f\) defined by \(f(x,y) = 8 - x^2 - 3y^2\text{.}\)

  1. Determine \(f_x(x,y)\) and \(f_y(x,y)\text{.}\)

  2. Find parametric equations in \(\R^3\) for the tangent line to the trace \(f(x,1)\) at \(x=2\text{.}\)

  3. Find parametric equations in \(\R^3\) for the tangent line to the trace \(f(2,y)\) at \(y=1\text{.}\)

  4. State respective direction vectors for the two lines determined in (b) and (c).

  5. Determine the equation of the plane that passes through the point \((2,1,f(2,1))\) whose normal vector is orthogonal to the direction vectors of the two lines found in (b) and (c).

  6. Use a graphing utility to plot both the surface \(z = 8 - x^2 - 3y^2\) and the plane from (e) near the point \((2,1)\text{.}\) What is the relationship between the surface and the plane?

Recall from single variable calculus that, given the derivative of a single variable function and an initial condition, we can integrate to find the original function. We can sometimes use the same process for functions of more than one variable. For example, suppose that a function \(f\) satisfies \(f_x(x,y) = \cos(y)e^x+2x+y^2\text{,}\) \(f_y(x,y) = -\sin(y)e^x+2xy+3\text{,}\) and \(f(0,0) = 5\text{.}\)

  1. Find all possible functions \(f\) of \(x\) and \(y\) such that \(f_x(x,y) = \cos(y)e^x+2x+y^2\text{.}\) Your function will have both \(x\) and \(y\) as independent variables and may also contain summands that are functions of \(y\) alone.

  2. Use the fact that \(f_y(x,y) = -\sin(y)e^x+2xy+3\) to determine any unknown non-constant summands in your result from part (a).

  3. Complete the problem by determining the specific function \(f\) that satisfies the given conditions.