Partial Differentiation
The idea
For a function of several variables like f(x,y), a partial derivative with respect to one variable treats every other variable as a fixed constant, then differentiates normally:
∂x∂f=h→0limhf(x+h,y)−f(x,y)Worked example: first partial derivatives
Find ∂x∂f and ∂y∂f for f(x,y)=x3y2+sin(xy).
Solution: Differentiating with respect to x (holding y fixed, the chain rule on sin(xy) picks up a factor of y, the derivative of xy with respect to x):
∂x∂f=3x2y2+ycos(xy)Differentiating with respect to y instead:
∂y∂f=2x3y+xcos(xy)Worked example: mixed second partial derivatives agree
For a well-behaved function, the order of differentiation shouldn't matter: ∂x∂y∂2f=∂y∂x∂2f. Check this for the same f above.
Differentiating ∂x∂f with respect to y:
∂y∂x∂2f=6x2y+cos(xy)−xysin(xy)and differentiating ∂y∂f with respect to x:
∂x∂y∂2f=6x2y+cos(xy)−xysin(xy)Both routes land on the exact same expression, confirming the mixed partials agree for this f, not just asserting that they should.
Continue learning
The gradient (one of the three core vector calculus operators) is built entirely out of the same first partial derivatives covered here.