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.
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 tox(holdystill).∂f/∂y: the partial derivative with respect toy(holdxstill).
The curly symbol ∂ is read "partial".
Worked example: x²y
Take f(x, y) = x²y.
- With respect to x: treat
ylike a plain number, as if it were 3 or 5. The derivative ofx²is2x(power rule), and the constantyjust rides along:∂f/∂x = 2xy. - With respect to y: now hold
xstill, sox²is the constant. The derivative ofyis1, 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/∂xis the slope when you walk in the x direction (y fixed).∂f/∂yis 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
- For
g(x, y) = x²y, what is∂g/∂xat(2, 1)? - 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.
Sources
- OpenStax, "Calculus Volume 3, 4.3 Partial Derivatives": differentiate in one variable while holding the others constant; slopes along slices
- Wolfram MathWorld, "Partial Derivative": definition and ∂ notation
- MIT OpenCourseWare, "18.02 Multivariable Calculus (Fall 2007)": lecture notes
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
- Multivariable calculus EP1Functions of two variables
- Multivariable calculus EP5Finding peaks and valleys in 3D
- Multivariable calculus EP6Lagrange multipliers
- Multivariable calculus EP7Double integrals