Watch on Instagram

Math Bytes · Multivariable calculus · Episode 3 · Derivatives of multivariable functions

Partial derivatives

A partial derivative changes one input and holds the others still. For f(x, y) = x²y, treating y as a constant gives ∂f/∂x = 2xy, and treating x as a constant gives ∂f/∂y = x²; each one is a slope on the surface, in the x or the y direction.

Posted · About a 1 minute watch, 2 minute read · Take the quiz

Two inputs, two derivatives

A function of two variables, f(x, y), has two inputs you could change. A partial derivative picks one of them: change that input, and hold every other input still (treat it as a constant).

  • ∂f/∂x: the partial derivative with respect to x (hold y still).
  • ∂f/∂y: the partial derivative with respect to y (hold x still).

The curly symbol ∂ is read "partial".

Worked example: x²y

Take f(x, y) = x²y.

  1. With respect to x: treat y like a plain number, as if it were 3 or 5. The derivative of x² is 2x (power rule), and the constant y just rides along: ∂f/∂x = 2xy.
  2. With respect to y: now hold x still, so x² is the constant. The derivative of y is 1, leaving ∂f/∂y = x² · 1 = x².

A slope on the surface

The graph z = f(x, y) is a surface. Each partial derivative is a slope on it:

  • ∂f/∂x is the slope when you walk in the x direction (y fixed).
  • ∂f/∂y is the slope when you walk in the y direction (x fixed).

At the point (1, 3): ∂f/∂x = 2 · 1 · 3 = 6, so walking in x the surface climbs 6 units per unit step. (Walking in y there, the slope is ∂f/∂y = 1² = 1.)

Try it yourself

  1. For g(x, y) = x²y, what is ∂g/∂x at (2, 1)?
  2. For h(x, y) = 3x + y², what is ∂h/∂y?

(Answers: 1. 2 · 2 · 1 = 4. 2. 2y, since 3x has no y and counts as a constant.)

Good to know

  • Holding a variable still is the whole trick: every derivative rule you already know works unchanged, with the other letters treated as numbers.
  • The lock in the video is just a memory aid for "held constant".
  • Functions with more inputs, like f(x, y, z), have one partial derivative per input.
  • The 3D pictures in the video are flat sketches with simple perspective.

Answer to the comment question

f(x, y) = x³ + 5xy. What's ∂f/∂y at (2, 7)? 10. Hold x still: x³ has no y, so its partial is 0, and 5xy gives 5x. So ∂f/∂y = 5x, and at x = 2 that's 5 · 2 = 10, whatever y is.

Test your knowledge

Quick quiz: Partial derivatives

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What does a partial derivative with respect to x do with the other input, y?
2For f(x, y) = x²y, what is ∂f/∂x?
3For f(x, y) = x²y, what is ∂f/∂y?
4For f(x, y) = x²y, what is ∂f/∂x at the point (1, 3)?

Sources

Video transcript

How do you take a derivative when a function has two inputs?

Change one input and hold the other still. That's a partial derivative.

Take f of x, y equals x squared y. For the partial with respect to x, treat y like a plain number. The derivative of x squared is two x, so the partial is two x y.

Now hold x still. x squared is the constant, so the partial with respect to y is x squared.

Each one is a slope on the surface: walking in x, or in y. At one, three, the x slope is six.

Your turn. f equals x cubed plus five x y. What's the partial with respect to y at two, seven? Comment your answer below!

That's your byte.

More from Multivariable calculus

All Multivariable calculus lessons