Multivariable calculus: Exercises

09 Partial derivatives, part 1

Exercise 1: Conceptual questions

Let’s mix it up a little and start off with some foundational questions about partial derivatives. I want to make sure you understand what all this stuff means before you start computing things.

Answer all the following questions in your own words.

  1. Explain what all of the symbols in the definition \[ \frac{\partial f}{\partial x}(x_0,y_0) = f'(x_0,y_0)\mathbf{e}_1 \tag{1}\] mean. What type of mathematical objects are these? Numbers? Matrices? Vectors? Functions? Apples? Bananas? Something else? And when we write \(f'(x_0,y_0)\) and \(\mathbf{e}_1\) next to each other on the right-hand side, what sort of multiplication are we doing?

  2. The partial derivative \(\frac{\partial f}{\partial x}(x_0,y_0)\) is defined according to (1). But I showed you in class that the partial derivative can also be computed using a limit formula. What is that formula?

  3. I said in class that the partial derivative \(\frac{\partial f}{\partial x}(x_0,y_0)\) measures the rate of change of \(f\) in the direction of the \(x\)-axis. Why? What is it about the definition of the partial derivative that makes this true?

  4. If I told you that \(\frac{\partial f}{\partial y}(1,1)=2\), what does that tell you about the tangent plane of \(f\) at \((1,1)\)?

  5. True or false: If \(\frac{\partial f}{\partial x}(x_0,y_0)=0\) and \(\frac{\partial f}{\partial y}(x_0,y_0)=0\), then the tangent plane of \(f\) at \((1,1)\) is horizontal. Explain your answer.

  6. We know that the partial derivatives of \(f\) at a point \((x_0,y_0)\) give us the rate of change of \(f\) in the directions of the \(x\)- and \(y\)-axes. But what if we wanted to know the rate of change of \(f\) at \((x_0,y_0)\) in some other direction, say the direction of the vector \(\mathbf{v}\)? How would we compute that?

Nope! You really, really need to struggle through these on your own. But if you want to make sure your thoughts are headed in the right direction, you can always come talk to me during office hours or after class.

Exercise 2: Computing partial derivatives of functions \(f:\mathbb{R}^2\to \mathbb{R}\)

Given a differentiable function \(f:\mathbb{R}^2\to \mathbb{R}\), recall that you can compute the partial derivatives

\[ \frac{\partial f}{\partial x}(x,y) \quad \text{and} \quad \frac{\partial f}{\partial y}(x,y) \]

by holding one variable constant and differentiating the other, just like in single-variable calculus.

Compute both partial derivatives of the following functions:

  1. \(f(x,y) = 2x-3y+5\)
  2. \(f(x,y) = y\sqrt{x}\)
  3. \(f(x,y) = e^{xy}\)
  4. \(f(x,y) = \displaystyle\ln \left( \frac{x+y}{x-y} \right)\)
  5. \(f(x,y) = e^y \sin{(xy)}\)
  6. \(f(x,y) = \displaystyle\frac{xy}{x^2+y^2}\)
  1. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = 2\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = -3\)

  2. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = \displaystyle\frac{y}{2\sqrt{x}}\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = \sqrt{x}\)

  3. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = ye^{xy}\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = xe^{xy}\)

  4. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = \displaystyle\frac{2y}{y^2-x^2}\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = \displaystyle\frac{2x}{x^2-y^2}\)

  5. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = ye^y \cos{(xy)}\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = e^y \sin{(xy)} + xe^y \cos{(xy)}\)

  6. \(\displaystyle\frac{\partial f}{\partial x}(x,y) = \displaystyle\frac{y(y^2-x^2)}{(x^2+y^2)^2}\) and \(\displaystyle\frac{\partial f}{\partial y}(x,y) = \displaystyle\frac{x(x^2-y^2)}{(x^2+y^2)^2}\)

Exercise 3: Computing total derivatives of functions \(f:\mathbb{R}^2\to \mathbb{R}\)

If \(f:\mathbb{R}^2\to \mathbb{R}\) is a differentiable function, then as we saw in class, the (total) derivative of \(f\) at a point \((x,y)\) is given by the formula

\[ f'(x,y) = \begin{bmatrix} \displaystyle\frac{\partial f}{\partial x}(x,y) & \displaystyle\frac{\partial f}{\partial y}(x,y) \end{bmatrix}. \]

Compute the total derivatives of each of the functions in the previous exercise:

  1. \(f(x,y) = 2x-3y+5\)
  2. \(f(x,y) = y\sqrt{x}\)
  3. \(f(x,y) = e^{xy}\)
  4. \(f(x,y) = \displaystyle\ln \left( \frac{x+y}{x-y} \right)\)
  5. \(f(x,y) = e^y \sin{(xy)}\)
  6. \(f(x,y) = \displaystyle\frac{xy}{x^2+y^2}\)
  1. \(f'(x,y) = \begin{bmatrix} 2 & -3 \end{bmatrix}\)

  2. \(f'(x,y) = \begin{bmatrix} \displaystyle\frac{y}{2\sqrt{x}} & \sqrt{x} \end{bmatrix}\)

  3. \(f'(x,y) = \begin{bmatrix} ye^{xy} & xe^{xy} \end{bmatrix}\)

  4. \(f'(x,y) = \begin{bmatrix} \displaystyle\frac{2y}{y^2-x^2} & \displaystyle\frac{2x}{x^2-y^2} \end{bmatrix}\)

  5. \(f'(x,y) = \begin{bmatrix} ye^y \cos{(xy)} & e^y \sin{(xy)} + xe^y \cos{(xy)} \end{bmatrix}\)

  6. \(f'(x,y) = \begin{bmatrix} \displaystyle\frac{y(y^2-x^2)}{(x^2+y^2)^2} & \displaystyle\frac{x(x^2-y^2)}{(x^2+y^2)^2} \end{bmatrix}\)

Exercise 4: Computing tangent planes

Given a differentiable function \(f:\mathbb{R}^2\to \mathbb{R}\), the tangent plane to the graph of \(f\) at a point \((x_0,y_0)\) is the graph of the function

\[ L(x,y) = \frac{\partial f}{\partial x}(x_0,y_0)(x-x_0) + \frac{\partial f}{\partial y}(x_0,y_0)(y-y_0) + f(x_0,y_0). \]

Compute the tangent planes of each of the functions in the previous exercise at the given point and plot your results using Desmos:

  1. \(f(x,y) = 2x-3y+5\), at the point \((1,2)\)
  2. \(f(x,y) = y\sqrt{x}\), at the point \((4,3)\)
  3. \(f(x,y) = e^{xy}\), at the point \((0,1)\)
  4. \(f(x,y) = \displaystyle\ln \left( \frac{x+y}{x-y} \right)\), at the point \((2,1)\)
  5. \(f(x,y) = e^y \sin{(xy)}\), at the point \(\left( \displaystyle\frac{\pi}{2},1 \right)\)
  6. \(f(x,y) = \displaystyle\frac{xy}{x^2+y^2}\), at the point \((1,1)\)
  1. \(L(x,y) = 2x - 3y + 5\)

  2. \(L(x,y) = \displaystyle\frac{3}{4}x + 2y - 3\)

  3. \(L(x,y) = x-3\)

  4. \(L(x,y) = -\displaystyle\frac{2}{3}x + \displaystyle\frac{4}{3}y + \ln{3} - \frac{4}{3}\)

  5. \(L(x,y) = ey-2e\)

  6. \(L(x,y) = \displaystyle\frac{1}{2}\)