Partial Derivatives
A partial derivative asks how changes when you nudge just one input and hold the rest still. That makes it an ordinary derivative in disguise: treat the other variables as constants and differentiate the way you always have.
What the symbols mean
- Partial with respect to x
How fast f changes as x moves, with y held fixed. The curly ∂ signals that the other variables are held constant.
- Step in x
Only x moves; y stays put.
Explanation
A partial derivative is simply the rate of change of a function when you change just one of its inputs and freeze all the others. It's called "partial" because it only tells part of the story, the change in one direction. It's how you'd ask "how much warmer does it get if I step east, without stepping north at all?" The formula looks like the usual derivative definition, and it is: (the change in height when only moves by ) divided by (the size of the step). The curly is just a reminder that other variables are being held still.
So why does this work so smoothly? Freeze at some value, say , and is a function of alone. Its derivative is plain single-variable calculus. That means every rule you know, power, product, quotient and chain, still works. The only new skill is keeping track of what's constant:
- In , is just a constant factor, like the in : .
- In , now is the constant: .
Notation: , , and all mean the same thing.
With three or more variables it's the same idea: hold all the others fixed. There's an animation further down showing what this looks like on a surface.
See it
Worked examples
Find and for .
- 1
For , treat as a constant. The first term gives . For use the chain rule: the inside, , has -derivative . So .
Practice
Type your answer and check it. Solve them all to complete the lesson.
For , find .
For the same , find .
Find .
For , find .
Find .
A circuit board's temperature is °C, with a hot chip at the origin ( and in cm). At , how fast does the temperature change as you move in the direction?
The hardest one here. Get it, and you've got this lesson.
For , find and .
Where it's used
Every machine-learning model is trained with partial derivatives: the loss depends on millions of weights, and each update needs for every one of them.