# 13.3 Partial Derivatives

Let $y$ be a function of $x$. We have studied in great detail the derivative of $y$ with respect to $x$, that is, $\frac{\operatorname{d}\!y}{\operatorname{d}\!x}$, which measures the rate at which $y$ changes with respect to $x$. Consider now $z=f(x,y)$. It makes sense to want to know how $z$ changes with respect to $x$ and/or $y$. This section begins our investigation into these rates of change.

margin: (a) (b) Figure 13.3.1: By fixing $y=2$, the surface $f(x,y)=x^{2}+2y^{2}$ is a curve in space. Λ

Consider the function $z=f(x,y)=x^{2}+2y^{2}$, as graphed in Figure 13.3.1(a). By fixing $y=2$, we focus our attention to all points on the surface where the $y$-value is 2, shown in both parts (a) and (b) of the figure. These points form a curve in space: $z=f(x,2)=x^{2}+8$ which is a function of just one variable. We can take the derivative of $z$ with respect to $x$ along this curve and find equations of tangent lines, etc.

The key notion to extract from this example is: by treating $y$ as constant (it does not vary) we can consider how $z$ changes with respect to $x$. In a similar fashion, we can hold $x$ constant and consider how $z$ changes with respect to $y$. 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.

###### Definition 13.3.1 Partial Derivative

Let $z=f(x,y)$ be a continuous function on an open set $S$ in $\mathbb{R}^{2}$.

1. (a)

The partial derivative of $f$ with respect to $x$ is:

 $f_{x}(x,y)=\lim_{h\to 0}\frac{f(x+h,y)-f(x,y)}{h}.$

Alternate notations for $f_{x}(x,y)$ include:

 $\frac{\partial}{\partial x}f(x,y)=\frac{\partial f}{\partial x}=\frac{\partial z% }{\partial x}=z_{x}.$
2. (b)

The partial derivative of $f$ with respect to $y$ is:

 $f_{y}(x,y)=\lim_{h\to 0}\frac{f(x,y+h)-f(x,y)}{h}.$

There are similar alternate notations for $f_{y}(x,y)$.

###### Example 13.3.1 Computing partial derivatives with the limit definition

Let $f(x,y)=x^{2}y+2x+y^{3}$. Find $f_{x}(x,y)$ using the limit definition.

SolutionUsing Definition 13.3.1, we have:

 $\displaystyle f_{x}(x,y)$ $\displaystyle=\lim_{h\to 0}\frac{f(x+h,y)-f(x,y)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{(x+h)^{2}y+2(x+h)+y^{3}-(x^{2}y+2x+y^{3})}{h}$ $\displaystyle=\lim_{h\to 0}\frac{x^{2}y+2xhy+h^{2}y+2x+2h+y^{3}-(x^{2}y+2x+y^{% 3})}{h}$ $\displaystyle=\lim_{h\to 0}\frac{2xhy+h^{2}y+2h}{h}$ $\displaystyle=\lim_{h\to 0}(2xy+hy+2)$ $\displaystyle=2xy+2.$

We have found $f_{x}(x,y)=2xy+2$.

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 $f_{x}(x,y)$, we hold $y$ fixed — it does not vary. Therefore we can compute the derivative with respect to $x$ by treating $y$ as a constant or coefficient.

Just as $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}5x^{2}\bigr{)}=10x$, we compute $\frac{\partial}{\partial x}\bigl{(}x^{2}y\bigr{)}=2xy$. Here we are treating $y$ as a coefficient.

Just as $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}5^{3}\bigr{)}=0$, we compute $\frac{\partial}{\partial x}\bigl{(}y^{3}\bigr{)}=0.$ Here we are treating $y$ as a constant. More examples will help make this clear.

###### Example 13.3.2 Finding partial derivatives

Find $f_{x}(x,y)$ and $f_{y}(x,y)$ in each of the following.

1. (a)

$f(x,y)=x^{3}y^{2}+5y^{2}-x+7$

2. (b)

$f(x,y)=\cos(xy^{2})+\sin x$

3. (c)

$f(x,y)=e^{x^{2}y^{3}}\sqrt{x^{2}+1}$

Solution

1. (a)

We have $f(x,y)=x^{3}y^{2}+5y^{2}-x+7$.
Begin with $f_{x}(x,y)$. Keep $y$ fixed, treating it as a constant or coefficient, as appropriate:

 $f_{x}(x,y)=3x^{2}y^{2}-1.$

Note how the $5y^{2}$ and $7$ terms go to zero. To compute $f_{y}(x,y)$, we hold $x$ fixed:

 $f_{y}(x,y)=2x^{3}y+10y.$

Note how the $-x$ and $7$ terms go to zero.

2. (b)

We have $f(x,y)=\cos(xy^{2})+\sin x$.
Begin with $f_{x}(x,y)$. We need to apply the Chain Rule with the cosine term; $y^{2}$ is the coefficient of the $x$-term inside the cosine function.

 $f_{x}(x,y)=-\sin(xy^{2})(y^{2})+\cos x=-y^{2}\sin(xy^{2})+\cos x.$

To find $f_{y}(x,y)$, note that $x$ is the coefficient of the $y^{2}$ term inside of the cosine term; also note that since $x$ is fixed, $\sin x$ is also fixed, and we treat it as a constant.

 $f_{y}(x,y)=-\sin(xy^{2})(2xy)=-2xy\sin(xy^{2}).$
3. (c)

We have $f(x,y)=e^{x^{2}y^{3}}\sqrt{x^{2}+1}$.
Beginning with $f_{x}(x,y)$, note how we need to apply the Product Rule.

 $\displaystyle f_{x}(x,y)$ $\displaystyle=e^{x^{2}y^{3}}(2xy^{3})\sqrt{x^{2}+1}+e^{x^{2}y^{3}}\frac{1}{2}% \bigl{(}x^{2}+1\bigr{)}^{-1/2}(2x)$ $\displaystyle=2xy^{3}e^{x^{2}y^{3}}\sqrt{x^{2}+1}+\frac{xe^{x^{2}y^{3}}}{\sqrt% {x^{2}+1}}.$

Note that when finding $f_{y}(x,y)$ we do not have to apply the Product Rule; since $\sqrt{x^{2}+1}$ does not contain $y$, we treat it as fixed and hence becomes a coefficient of the $e^{x^{2}y^{3}}$ term.

 $f_{y}(x,y)=e^{x^{2}y^{3}}(3x^{2}y^{2})\sqrt{x^{2}+1}=3x^{2}y^{2}e^{x^{2}y^{3}}% \sqrt{x^{2}+1}.$

We have shown how to compute a partial derivative, but it may still not be clear what a partial derivative means. Given $z=f(x,y)$, $f_{x}(x,y)$ measures the rate at which $z$ changes as only $x$ varies: $y$ 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 $z_{x}$: you are moving only east (in the “$x$”-direction) and not north/south at all. Going back to your original location, imagine now walking due north (in the “$y$”-direction). Perhaps walking due north does not change your elevation at all. This is analogous to $z_{y}=0$: $z$ does not change with respect to $y$. We can see that $z_{x}$ and $z_{y}$ 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.

###### Example 13.3.3 Evaluating partial derivatives

Let $z=f(x,y)=-x^{2}-\frac{1}{2}y^{2}+xy+10$. Find $f_{x}(2,1)$ and $f_{y}(2,1)$ and interpret their meaning.

SolutionWe begin by computing $f_{x}(x,y)=-2x+y$ and $f_{y}(x,y)=-y+x$. Thus

 $f_{x}(2,1)=-3\quad\text{and}\quad f_{y}(2,1)=1.$

It is also useful to note that $f(2,1)=7.5$. What does each of these numbers mean?

margin: (a) (b) Figure 13.3.2: Illustrating the meaning of partial derivatives. Λ

Consider $f_{x}(2,1)=-3$, along with Figure 13.3.2(a). If one “stands” on the surface at the point $(2,1,7.5)$ and moves parallel to the $x$-axis (i.e., only the $x$-value changes, not the $y$-value), then the instantaneous rate of change is $-3$. Increasing the $x$-value will decrease the $z$-value; decreasing the $x$-value will increase the $z$-value.

Now consider $f_{y}(2,1)=1$, illustrated in Figure 13.3.2(b). Moving along the curve drawn on the surface, i.e., parallel to the $y$-axis and not changing the $x$-values, increases the $z$-value instantaneously at a rate of 1. Increasing the $y$-value by 1 would increase the $z$-value by approximately 1.

Since the magnitude of $f_{x}$ is greater than the magnitude of $f_{y}$ at $(2,1)$, it is “steeper” in the $x$-direction than in the $y$-direction.

## Second Partial Derivatives

Let $z=f(x,y)$. We have learned to find the partial derivatives $f_{x}(x,y)$ and $f_{y}(x,y)$, which are each functions of $x$ and $y$. Therefore we can take partial derivatives of these, each with respect to $x$ and $y$. We define these “second partials” along with the notation, give examples, then discuss their meaning.

###### Definition 13.3.2 Second Partial Derivative, Mixed Partial Derivative

Let $z=f(x,y)$ be continuous on an open set $S$.

1. (a)

The second partial derivative of $f$ with respect to $x$ then $x$ is

 $\frac{\partial}{\partial x}\left(\frac{\partial f}{\partial x}\right)=\frac{% \partial^{2}f}{\partial x^{2}}=\bigl{(}\,f_{x}\,\bigr{)}_{x}=f_{xx}$
2. (b)

The second partial derivative of $f$ with respect to $x$ then $y$ is

 $\frac{\partial}{\partial y}\left(\frac{\partial f}{\partial x}\right)=\frac{% \partial^{2}f}{\partial y\partial x}=\bigl{(}\,f_{x}\,\bigr{)}_{y}=f_{xy}$

Similar definitions hold for $\displaystyle\frac{\partial^{2}f}{\partial y^{2}}=f_{yy}$ and $\displaystyle\frac{\partial^{2}f}{\partial x\partial y}=f_{yx}$.

The second partial derivatives $f_{xy}$ and $f_{yx}$ are mixed partial derivatives.

margin: Note: The terms in Definition 13.3.2 all depend on limits, so each definition comes with the caveat “where the limit exists.” The way to keep track of the order is to start with the variable nearest to the function. Unfortunately, this means that while $\frac{\partial^{2}f}{\partial y\partial x}=f_{xy}$ both mean “differentiate with respect to $x$ first”, the $x$ and $y$ appear in a different order. Fortunately Theorem 13.3.1 will soon tell us that the order doesn’t usually matter. Λ

The notation of second partial derivatives gives some insight into the notation of the second derivative of a function of a single variable. If $y=f(x)$, then $\displaystyle f\,^{\prime\prime}(x)=\frac{\operatorname{d}\!^{2}y}{% \operatorname{d}\!x^{2}}$. The “$\operatorname{d}\!^{2}y$” portion means “take the derivative of $y$ twice,” while “$\operatorname{d}\!x^{2}$” means “with respect to $x$ 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.

###### Example 13.3.4 Second partial derivatives

For each of the following, find all six first and second partial derivatives. That is, find

 $f_{x},\quad f_{y},\quad f_{xx},\quad f_{yy},\quad f_{xy}\quad\text{and}\quad f% _{yx}\,.$
1. (a)

$f(x,y)=x^{3}y^{2}+2xy^{3}+\cos x$

2. (b)

$\displaystyle f(x,y)=\frac{x^{3}}{y^{2}}$

SolutionIn each, we give $f_{x}$ and $f_{y}$ immediately and then spend time deriving the second partial derivatives.

1. (a)

\begin{aligned} f(x,y)&=x^{3}y^{2}+2xy^{3}+\cos x\\ f_{x}(x,y)&=3x^{2}y^{2}+2y^{3}-\sin x\\ f_{y}(x,y)&=2x^{3}y+6xy^{2}\\ f_{xx}(x,y)&=\frac{\partial}{\partial x}\bigl{(}f_{x}\bigr{)}=\frac{\partial}{% \partial x}\bigl{(}3x^{2}y^{2}+2y^{3}-\sin x\bigr{)}=6xy^{2}-\cos x\\ f_{yy}(x,y)&=\frac{\partial}{\partial y}\bigl{(}f_{y}\bigr{)}=\frac{\partial}{% \partial y}\bigl{(}2x^{3}y+6xy^{2}\bigr{)}=2x^{3}+12xy\\ f_{xy}(x,y)&=\frac{\partial}{\partial y}\bigl{(}f_{x}\bigr{)}=\frac{\partial}{% \partial y}\bigl{(}3x^{2}y^{2}+2y^{3}-\sin x\bigr{)}=6x^{2}y+6y^{2}\\ f_{yx}(x,y)&=\frac{\partial}{\partial x}\bigl{(}f_{y}\bigr{)}=\frac{\partial}{% \partial x}\bigl{(}2x^{3}y+6xy^{2}\bigr{)}=6x^{2}y+6y^{2}\end{aligned}

2. (b)

\begin{aligned} f(x,y)&=\frac{x^{3}}{y^{2}}=x^{3}y^{-2}\\ f_{x}(x,y)&=\frac{3x^{2}}{y^{2}}\\ f_{y}(x,y)&=-\frac{2x^{3}}{y^{3}}\\ f_{xx}(x,y)&=\frac{\partial}{\partial x}\bigl{(}f_{x}\bigr{)}=\frac{\partial}{% \partial x}\bigl{(}\frac{3x^{2}}{y^{2}}\bigr{)}=\frac{6x}{y^{2}}\\ f_{yy}(x,y)&=\frac{\partial}{\partial y}\bigl{(}f_{y}\bigr{)}=\frac{\partial}{% \partial y}\bigl{(}-\frac{2x^{3}}{y^{3}}\bigr{)}=\frac{6x^{3}}{y^{4}}\\ f_{xy}(x,y)&=\frac{\partial}{\partial y}\bigl{(}f_{x}\bigr{)}=\frac{\partial}{% \partial y}\bigl{(}\frac{3x^{2}}{y^{2}}\bigr{)}=-\frac{6x^{2}}{y^{3}}\\ f_{yx}(x,y)&=\frac{\partial}{\partial x}\bigl{(}f_{y}\bigr{)}=\frac{\partial}{% \partial x}\bigl{(}-\frac{2x^{3}}{y^{3}}\bigr{)}=-\frac{6x^{2}}{y^{3}}.\end{aligned}

Notice how in both of the functions in Example 13.3.4, $f_{xy}=f_{yx}$. Due to the complexity of the examples, this likely is not a coincidence. The following theorem states that it is not.

###### Theorem 13.3.1 Clairaut’s Theorem: Mixed Partial Derivatives

Let $f$ be defined such that $f_{xy}$ and $f_{yx}$ are continuous on an open set $S$. Then for each point $(x,y)$ in $S$, $f_{xy}(x,y)=f_{yx}(x,y)$.

Finding $f_{xy}$ and $f_{yx}$ independently and comparing the results provides a convenient way of checking our work.

## Understanding Second Partial Derivatives

Now that we know how to find second partials, we investigate what they tell us.

Again we refer back to a function $y=f(x)$ of a single variable. The second derivative of $f$ 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 $f\,^{\prime\prime}(x)<0$, then the derivative is getting smaller (so the graph of $f$ is concave down); if $f\,^{\prime\prime}(x)>0$, then the derivative is growing, making the graph of $f$ concave up.

Now consider $z=f(x,y)$. Similar statements can be made about $f_{xx}$ and $f_{yy}$ as could be made about $f\,^{\prime\prime}(x)$ above. When taking derivatives with respect to $x$ twice, we measure how much $f_{x}$ changes with respect to $x$. If $f_{xx}(x,y)<0$, it means that as $x$ increases, $f_{x}$ decreases, and the graph of $f$ will be concave down in the $x$-direction. Using the analogy of standing in the rolling meadow used earlier in this section, $f_{xx}$ measures whether one’s path is concave up/down when walking due east.

Similarly, $f_{yy}$ measures the concavity in the $y$-direction. If $f_{yy}(x,y)>0$, then $f_{y}$ is increasing with respect to $y$ and the graph of $f$ will be concave up in the $y$-direction. Appealing to the rolling meadow analogy again, $f_{yy}$ measures whether one’s path is concave up/down when walking due north.

We now consider the mixed partials $f_{xy}$ and $f_{yx}$. The mixed partial $f_{xy}$ measures how much $f_{x}$ changes with respect to $y$. Once again using the rolling meadow analogy, $f_{x}$ 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, $f_{xy}>0$. Is the path towards the east not changing in steepness? If so, then $f_{xy}=0$. A similar thing can be said about $f_{yx}$: consider the steepness of paths heading north while side-stepping to the east.

The following example examines these ideas with concrete numbers and graphs.

###### Example 13.3.5 Understanding second partial derivatives

Let $z=x^{2}-y^{2}+xy$. Evaluate the 6 first and second partial derivatives at $(-1/2,1/2)$ and interpret what each of these numbers mean.

SolutionWe find that:

$f_{x}(x,y)=2x+y$, $f_{y}(x,y)=-2y+x$, $f_{xx}(x,y)=2$,  $f_{yy}(x,y)=-2$ and $f_{xy}(x,y)=f_{yx}(x,y)=1$. Thus at $(-1/2,1/2)$ we have

 $f_{x}(-1/2,1/2)=-1/2,\qquad f_{y}(-1/2,1/2)=-3/2.$

The slope of the tangent line at $(-1/2,1/2,-1/4)$ in the direction of $x$ is $-1/2$: if one moves from that point parallel to the $x$-axis, the instantaneous rate of change will be $-1/2$. The slope of the tangent line at this point in the direction of $y$ is $-3/2$: if one moves from this point parallel to the $y$-axis, the instantaneous rate of change will be $-3/2$. These tangents lines are graphed in Figure 13.3.3(a) and (b), respectively, where the tangent lines are drawn in a solid line.

margin: (a) (b) Figure 13.3.3: Understanding the second partial derivatives in Example 13.3.5. Λ

Now consider only Figure 13.3.3(a). Three directed tangent lines are drawn (two are dashed), each in the direction of $x$; that is, each has a slope determined by $f_{x}$. Note how as $y$ increases, the slope of these lines get closer to $0$. Since the slopes are all negative, getting closer to 0 means the slopes are increasing. The slopes given by $f_{x}$ are increasing as $y$ increases, meaning $f_{xy}$ must be positive.

Since $f_{xy}=f_{yx}$, we also expect $f_{y}$ to increase as $x$ increases. Consider Figure 13.3.3(b) where again three directed tangent lines are drawn, this time each in the direction of $y$ with slopes determined by $f_{y}$. As $x$ 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 $f_{x}$, $f_{y}$, and $f_{xy}=f_{yx}$. We now interpret $f_{xx}$ and $f_{yy}$. In Figure 13.3.3(a), we see a curve drawn where $x$ is held constant at $x=-1/2$: only $y$ varies. This curve is clearly concave down, corresponding to the fact that $f_{yy}<0$. In part (b) of the figure, we see a similar curve where $y$ is constant and only $x$ varies. This curve is concave up, corresponding to the fact that $f_{xx}>0$.

## Partial Derivatives and Functions of Three Variables

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.

###### Definition 13.3.3 Partial Derivatives with Three Variables

Let $w=f(x,y,z)$ be a continuous function on an open set $S$ in $\mathbb{R}^{3}$.

The partial derivative of $f$ with respect to $x$ is:

 $f_{x}(x,y,z)=\lim_{h\to 0}\frac{f(x+h,y,z)-f(x,y,z)}{h}.$

Similar definitions hold for $f_{y}(x,y,z)$ and $f_{z}(x,y,z)$.

By taking partial derivatives of partial derivatives, we can find second partial derivatives of $f$ with respect to $z$ then $y$, for instance, just as before.

###### Example 13.3.6 Partial derivatives of functions of three variables

For each of the following, find $f_{x}$,  $f_{y}$,  $f_{z}$,   $f_{xz}$,   $f_{yz}$, and $f_{zz}$.

1. (a)

$f(x,y,z)=x^{2}y^{3}z^{4}+x^{2}y^{2}+x^{3}z^{3}+y^{4}z^{4}$

2. (b)

$f(x,y,z)=x\sin(yz)$

Solution

1. (a)

\begin{aligned} f_{x}&=2xy^{3}z^{4}+2xy^{2}+3x^{2}z^{3}&f_{y}&=3x^{2}y^{2}z^{4% }+2x^{2}y+4y^{3}z^{4}\\ f_{z}&=4x^{2}y^{3}z^{3}+3x^{3}z^{2}+4y^{4}z^{3}&f_{xz}&=8xy^{3}z^{3}+9x^{2}z^{% 2}\\ f_{yz}&=12x^{2}y^{2}z^{3}+16y^{3}z^{3}&f_{zz}&=12x^{2}y^{3}z^{2}+6x^{3}z+12y^{% 4}z^{2}\end{aligned}

2. (b)

\begin{aligned} f_{x}&=\sin(yz)&f_{y}&=xz\cos(yz)&f_{z}&=xy\cos(yz)\\ f_{xz}&=y\cos(yz)&f_{yz}&=x\cos(yz)-xyz\sin(yz)&f_{zz}&=-xy^{2}\sin(xy)\end{aligned}

## Higher Order Partial Derivatives

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.

 $\displaystyle f_{xyx}(x,y)$ $\displaystyle=\frac{\partial}{\partial x}\left(\frac{\partial}{\partial y}% \left(\frac{\partial f}{\partial x}\right)\right)\quad\text{and}$ $\displaystyle f_{xyz}(x,y,z)$ $\displaystyle=\frac{\partial}{\partial z}\left(\frac{\partial}{\partial y}% \left(\frac{\partial f}{\partial x}\right)\right).$
###### Example 13.3.7 Higher order partial derivatives

(a) Let $f(x,y)=x^{2}y^{2}+\sin(xy)$. Find $f_{xxy}$ and $f_{yxx}$. (b) Let $f(x,y,z)=x^{3}e^{xy}+\cos(z)$. Find $f_{xyz}$.

Solution

1. (a)

To find $f_{xxy}$, we first find $f_{x}$, then $f_{xx}$, then $f_{xxy}$:

 $\displaystyle f_{x}$ $\displaystyle=2xy^{2}+y\cos(xy)\quad\quad f_{xx}=2y^{2}-y^{2}\sin(xy)$ $\displaystyle f_{xxy}$ $\displaystyle=4y-2y\sin(xy)-xy^{2}\cos(xy).$

To find $f_{yxx}$, we first find $f_{y}$, then $f_{yx}$, then $f_{yxx}$:

 $\displaystyle f_{y}$ $\displaystyle=2x^{2}y+x\cos(xy)\quad\quad f_{yx}=4xy+\cos(xy)-xy\sin(xy)$ $\displaystyle f_{yxx}$ $\displaystyle=4y-y\sin(xy)-\bigl{(}y\sin(xy)+xy^{2}\cos(xy)\bigr{)}$ $\displaystyle=4y-2y\sin(xy)-xy^{2}\cos(xy).$

Note how $f_{xxy}=f_{yxx}$.

2. (b)

To find $f_{xyz}$, we find $f_{x}$, then $f_{xy}$, then $f_{xyz}$:

 $\displaystyle f_{x}$ $\displaystyle=3x^{2}e^{xy}+x^{3}ye^{xy}$ $\displaystyle f_{xy}$ $\displaystyle=3x^{3}e^{xy}+x^{3}e^{xy}+x^{4}ye^{xy}=4x^{3}e^{xy}+x^{4}ye^{xy}$ $\displaystyle f_{xyz}$ $\displaystyle=0.$

In the previous example we saw that $f_{xxy}=f_{yxx}$; 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, $f_{xxy}=f_{xyx}=f_{yxx}$.

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 $f_{xyz}$ in the $x$, $y$ then $z$ orders, we could have applied the $z$, then $x$ then $y$ order (as $f_{xyz}=f_{zxy}$). It is easy to see that $f_{z}=-\sin z$; then $f_{zx}$ and $f_{zxy}$ are clearly 0 as $f_{z}$ does not contain an $x$ or $y$.

We have seen that partial derivatives measure the instantaneous rate of change of a multivariable function with respect to one variable. With $z=f(x,y)$, the partial derivatives $f_{x}$ and $f_{y}$ measure the instantaneous rate of change of $z$ when moving parallel to the $x$- and $y$-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 $\left\langle 2,1\right\rangle$? 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.

## Exercises 13.3

### Terms and Concepts

1. 1.

What is the difference between a constant and a coefficient?

2. 2.

Given a function $z=f(x,y)$, explain in your own words how to compute $f_{x}$.

3. 3.

In the expression $f_{xy}$, which is computed first, $f_{x}$ or $f_{y}$?

4. 4.

In the expression $\dfrac{\partial^{2}f}{\partial x\partial y}$, which is computed first, $f_{x}$ or $f_{y}$?

### Problems

In Exercises 5–8., evaluate $f_{x}(x,y)$ and $f_{y}(x,y)$ at the indicated point.

1. 5.

$f(x,y)=x^{2}y-x+2y+3$ at $(1,2)$

2. 6.

$f(x,y)=x^{3}-3x+y^{2}-6y$ at $(-1,3)$

3. 7.

$f(x,y)=\sin y\cos x$ at $(\pi/3,\pi/3)$

4. 8.

$f(x,y)=\ln(xy)$ at $(-2,-3)$

In Exercises 9–26., find $f_{x}$,  $f_{y}$,   $f_{xx}$,   $f_{yy}$,   $f_{xy}$ and $f_{yx}$.

1. 9.

$f(x,y)=x^{2}y+3x^{2}+4y-5$

2. 10.

$f(x,y)=y^{3}+3xy^{2}+3x^{2}y+x^{3}$

3. 11.

$\displaystyle f(x,y)=\frac{x}{y}$

4. 12.

$\displaystyle f(x,y)=\frac{4}{xy}$

5. 13.

$\displaystyle f(x,y)=e^{x^{2}+y^{2}}$

6. 14.

$\displaystyle f(x,y)=e^{x+2y}$

7. 15.

$\displaystyle f(x,y)=\sin x\cos y$

8. 16.

$\displaystyle f(x,y)=(x+y)^{3}$

9. 17.

$f(x,y)=\cos(5xy^{3})$

10. 18.

$f(x,y)=\sin(5x^{2}+2y^{3})$

11. 19.

$\displaystyle f(x,y)=\sqrt{4xy^{2}+1}$

12. 20.

$\displaystyle f(x,y)=(2x+5y)\sqrt{y}$

13. 21.

$\displaystyle f(x,y)=\frac{1}{x^{2}+y^{2}+1}$

14. 22.

$\displaystyle f(x,y)=5x-17y$

15. 23.

$\displaystyle f(x,y)=3x^{2}+1$

16. 24.

$\displaystyle f(x,y)=\ln(x^{2}+y)$

17. 25.

$\displaystyle f(x,y)=\frac{\ln x}{4y}$

18. 26.

$\displaystyle f(x,y)=5e^{x}\sin y+9$

In Exercises 27–30., form a function $z=f(x,y)$ such that $f_{x}$ and $f_{y}$ match those given.

1. 27.

$f_{x}=\sin y+1$, $f_{y}=x\cos y$

2. 28.

$f_{x}=x+y$, $f_{y}=x+y$

3. 29.

$f_{x}=6xy-4y^{2}$, $f_{y}=3x^{2}-8xy+2$

4. 30.

$\displaystyle f_{x}=\frac{2x}{x^{2}+y^{2}}$, $\displaystyle f_{y}=\frac{2y}{x^{2}+y^{2}}$

In Exercises 31–34., find $f_{x}$,  $f_{y}$,  $f_{z}$,  $f_{yz}$ and $f_{zy}$.

1. 31.

$\displaystyle f(x,y,z)=x^{2}e^{2y-3z}$

2. 32.

$\displaystyle f(x,y,z)=x^{3}y^{2}+x^{3}z+y^{2}z$

3. 33.

$\displaystyle f(x,y,z)=\frac{3x}{7y^{2}z}$

4. 34.

$\displaystyle f(x,y,z)=\ln(xyz)$