Multivariable calculus
Partial Derivatives of x^2y + y^2z + z^2x
For f(x,y,z) = x^2 y + y^2 z + z^2 x, the partial derivative with respect to x is 2xy + z^2, with respect to y is x^2 + 2yz, and with respect to z is y^2 + 2zx. Each one treats the other two variables as constants, so the single term that lacks that variable contributes nothing.
Differentiate one variable at a time
A partial derivative in three variables is still an ordinary one variable derivative. To find , freeze and at whatever values they hold and differentiate what is left as a function of alone.
Go term by term. In the factor is just a constant multiplier, so that term gives . The term contains no at all, so it gives . In the factor is constant, and the derivative of is , so that term gives .
The function is cyclic: swapping returns the same expression. That means you can rotate the answer instead of redoing the work, which is a genuine shortcut and also a way to catch an arithmetic slip.
The mistake: treating a constant as a zero
Students often decide that vanishes when differentiating with respect to , on the grounds that is being held constant. Constants multiply, they do not delete. Read the term as , a constant times , and its derivative is .
The mirror image of that error is expecting every partial derivative to have three terms because has three terms. Here exactly one term is free of each variable, so each partial derivative has two terms. Count the surviving terms deliberately rather than by habit.
- A term containing the variable: differentiate it, keeping the other letters as constant factors.
- A term not containing the variable: it contributes .
- A constant factor never disappears, it multiplies the derivative.
A check that catches a wrong coefficient
Every term of has total degree three, so is homogeneous of degree three and Euler's relation holds. It ties all three partial derivatives to the original function, so one substitution audits the whole answer.
Test it at . There , and the partials come out to , and . The left side is , and the right side is . Had you written instead of , the two sides would disagree and you would know at once.
Frequently asked questions
How do I evaluate the gradient at a specific point?
Differentiate first, substitute second. At the gradient is . If you substitute the numbers into before differentiating, you turn into a constant and every derivative collapses to zero.
Do the mixed partials come out the same in either order?
Yes. A polynomial is smooth everywhere, so Clairaut's theorem applies. Differentiating with respect to gives , and differentiating with respect to also gives .