Partial Derivatives: Change One Input at a Time
Learn to read and compute partial derivatives so you can predict how multivariable functions respond to one input, interpret slopes on surfaces and contour maps, and connect single-direction rates of change to the gradient for real modeling and optimization.
A function like can change for two reasons at once. If your output is temperature, cost, altitude, or loss, it is hard to say what is causing the change when and both move. Partial derivatives fix that by asking a simpler question. How fast does change when only one input changes and the others stay frozen? That one-at-a-time slope is the basic tool behind reading 3D graphs, navigating contour maps, and building linear approximations that work locally. Let’s see how the slope differs depending on which input we nudge:
Partial derivatives are one-direction slopes
At a point , the partial derivative with respect to is the slope you see when you move in the direction and refuse to let drift. Formally, it is an ordinary derivative of a one-variable function created by freezing .
If depends on two variables, you get two first partials:
- measures change in per unit when is fixed at
- measures change in per unit when is fixed at
You can think of these as two different cross-sections through the same surface. One slice runs parallel to the axis, the other runs parallel to the axis.
Freeze the rest
When you take , every symbol except acts like a constant.
Notation that tells you what moved
The curly is a reminder that the function has more than one input. The fraction-style notation tells you output over input, and the symbol in the denominator is the only one allowed to vary.
You will see several equivalent ways to write the same idea:
- and both mean the partial derivative of with respect to
- emphasizes the operation, differentiate with respect to
- means evaluate the partial derivative at the specific point
Holding others constant means you temporarily treat them like numbers. If , then while computing , the entire acts like a constant multiplier. While computing , the acts like a constant factor.
The language can be subtle. Independent variables are the inputs you are free to choose. The partial derivative tells you what happens if you change one independent variable while the rest are held fixed, even if in a real system they might be related. This is a modeling choice that isolates one effect.
Keep these terms close at hand as we use them:
Connect the formula to pictures and rates
A partial derivative is a rate per unit. If is measured in dollars and is measured in hours, then is dollars per hour, but only under the rule that the other inputs do not change.
Cross-sections on a surface
On a 3D surface , freezing turns the surface into a 2D curve . The slope of that curve at is . Doing the same with gives .
Reading the same idea on a contour map
On a contour map, you do not see height directly. You see level curves, which are curves where stays constant. Large partial derivatives show up as tightly spaced contours in the direction you are moving, because a small horizontal move produces a big change in .
Units reveal meaning
If the units in feel wrong, the setup is wrong.
Here is the same function shown as a surface and as contours, so we can connect what is saying in each view:
Compute partial derivatives by pretending
A partial derivative is computed like an ordinary derivative, except you pretend every other variable is a constant. This is the whole method.
A featured-snippet way to remember it is this. To find , differentiate with respect to while treating and any other variables as constants. To find , differentiate with respect to while treating and the rest as constants. Only after differentiating do you plug in a point.
Quick examples
Let .
- because is a constant multiplier and becomes a constant
- because is constant with respect to and becomes a constant
If , then
because is a product but only one factor varies at a time.
Try building your own terms and watch the two partials change:
Pitfalls that waste the most time
The rules are simple, but the mistakes are predictable.
One is forgetting what is frozen. When taking , any you see is treated like a constant, even if it is sitting inside something like .
Another is evaluating too early. You differentiate first to get a general expression, then substitute . Doing it in the opposite order often erases the dependence you needed to differentiate.
A third is mixing up partial change with total change. If both and actually change, then alone does not describe the full change in . It describes the contribution from moving while is held fixed.
Differentiate, then plug
Points belong at the end, not in the middle.
Check these common gotchas against your own work:
From partials to the gradient
Once you have all first partial derivatives, you can bundle them into one object that points where increases fastest. Gradient means the vector of partial derivatives:
At a point, points in the direction of steepest ascent on the surface, and it is perpendicular to the level curve through that point on a contour map. The two partials are still in there. They are just the components along the coordinate axes, while the gradient answers a broader question about the best direction to move.
The gradient field view makes this click quickly:
Next steps that make partials stick
Practice is fastest when you separate two skills. One is computing partials mechanically. The other is interpreting them with units and a picture. Pick a handful of functions, compute and , then evaluate them at the same point and explain what each number means in one sentence.
When that feels natural, move to optimization with critical points where , and to linearization where partials become the coefficients of a local approximation. Write down one function you care about and we can choose points to interpret next.
Generate a follow-up sub-lesson on any aspect of this topic