Partial Derivatives
Ordinary calculus asks how a quantity changes when one input changes. But almost nothing in the real world depends on just one thing. The temperature in a room depends on where you stand — on , , and . The profit of a company depends on price and quantity and cost. The height of a hillside depends on your east-west position and your north-south position at once. A partial derivative is the tool that lets us ask a precise question about such functions: "If I nudge this one variable and hold everything else perfectly still, how fast does the output respond?"
That single idea — freeze all but one variable, then differentiate normally — unlocks the entire landscape of multivariable calculus: gradients that point uphill, tangent planes that hug a surface, and the machinery for finding the highest peak or lowest valley of a function of many variables. If you can differentiate , you already know 90% of the mechanics. The new part is learning to think about several directions of change simultaneously.
Learning Objectives
- Compute partial derivatives by treating all but one variable as constant.
- Interpret a partial derivative geometrically as a slope of a slice through a surface.
- Assemble partial derivatives into the gradient vector and understand what it tells you about direction and rate of steepest change.
- Write the equation of a tangent plane to a surface.
- Find and classify critical points of a two-variable function using the second-derivative (Hessian) test.
- Recognize where partial derivatives appear in physics, economics, and machine learning.
Quick Answer
A partial derivative measures the rate of change of a multivariable function with respect to one variable while all other variables are held constant. For we write (or ) for the -partial and (or ) for the -partial. You compute each one using ordinary differentiation rules, simply pretending the other variables are fixed numbers. Collecting all first partials into a vector gives the gradient , which points in the direction of steepest increase and whose length is the maximum rate of increase. Partial derivatives also build the tangent plane to a surface and drive optimization: at a smooth maximum or minimum, every first partial is zero.
Where It Came From
Partial derivatives were forced into existence by physics, not by mathematical curiosity. In the eighteenth century, thinkers like Leonhard Euler, Jean le Rond d'Alembert, and Daniel Bernoulli were wrestling with problems that ordinary calculus could not touch: the shape of a vibrating violin string, the flow of heat through a solid, the motion of fluids. A vibrating string's displacement depends on both position along the string and time — you need to talk about how it changes in space separately from how it changes in time. D'Alembert's 1747 wave equation, , is essentially the birth certificate of the partial derivative, even though the crisp notation came later.
The symbol itself — a stylized cursive "d" — was popularized by the French mathematician Adrien-Marie Legendre in the 1780s and cemented by Carl Gustav Jacob Jacobi in the 1840s, precisely so nobody would confuse "the rate of change holding other variables fixed" with an ordinary total derivative.
The real explosion of need came from two nineteenth-century fields. Thermodynamics describes a gas by quantities like pressure, volume, and temperature that are all interlinked; to say "how does energy change if I raise the temperature but keep the volume fixed?" you must have partial derivatives — the entire subject is written in them, and the notation (the subscript naming what is held constant) is standard to this day. Field theory — electromagnetism as unified by James Clerk Maxwell in the 1860s, and later gravitation — describes quantities spread through all of space and time. Maxwell's equations are statements about partial derivatives of the electric and magnetic fields. Without partial derivatives there is no wave equation, no heat equation, no Maxwell's equations, and no modern physics. The concept exists because the universe rarely varies one input at a time.
Computing Partials: Freeze Everything Else
The mechanical rule is disarmingly simple. To find , treat every variable except as if it were a constant number, then differentiate with respect to using all your usual rules (power, product, quotient, chain).
Worked example. Let
To get , hold constant. The term becomes (the rides along as a constant coefficient); becomes ; and is a pure constant, so it dies:
To get , hold constant. Now becomes (the differentiates to ); is constant, so it vanishes; and becomes :
Evaluate at the point : , and . This says that near , moving in the direction increases about 17 units per unit step, while moving in increases it about 9 units per unit step.
Geometric meaning. Picture the surface floating above the -plane. Slicing it with the vertical plane produces a curve; is the ordinary slope of that curve at . Each partial derivative is the slope of a slice taken parallel to one axis.
Higher-order partials. You can differentiate again. From we get and ; from we get and . Notice . This is Clairaut's theorem: for functions with continuous second partials, the order of differentiation doesn't matter.
The Gradient: Packaging the Partials
Individually, partials tell you about the axis directions. Bundled together, they tell you about every direction. The gradient of is the vector
Two facts make the gradient one of the most useful objects in all of applied math:
- The gradient points in the direction of steepest ascent. If you stand on a hill described by and want to climb fastest, walk in the direction of .
- Its magnitude is the maximum rate of increase at that point.
Worked example. For (a bowl), the gradient is . At the point , . This points directly away from the origin — exactly the "uphill" direction on a bowl — and its magnitude is . So the steepest possible slope at is 10, achieved by heading straight outward.
The gradient also underlies the directional derivative: the rate of change in an arbitrary unit direction is . Because the dot product is largest when the two vectors align, the maximum occurs exactly along — a clean proof of fact 1 above.
Tangent Planes: The Best Flat Approximation
In single-variable calculus, the tangent line is the best straight-line approximation to a curve. In two variables, the analog is the tangent plane — the flat sheet that best hugs a surface at a point. For , the tangent plane at is
Each partial supplies the tilt of the plane in one axis direction.
Worked example. Find the tangent plane to at . First, . The partials are and , so and . The tangent plane is
which simplifies to . You can sanity-check: at this gives , matching the surface exactly, as a tangent plane must.
This linear approximation is the foundation of linearization and of the total differential , which estimates how much changes when and each change a little — the everyday workhorse of error analysis in the sciences.
Optimization: Finding Peaks and Valleys
At a smooth maximum or minimum of , the surface is momentarily level in every direction, so both partials vanish. A point where and is a critical point. But not every critical point is an extremum — some are saddle points, high in one direction and low in another (think of a mountain pass). To classify them, use the second-derivative test with the discriminant
- If and : local minimum.
- If and : local maximum.
- If : saddle point.
- If : test is inconclusive.
Worked example. Classify the critical points of . The partials are and . Setting both to zero gives and , so the only critical point is . The second partials are , , , so
and since , the point is a local minimum. Plugging in, , so the lowest value of this bowl is at .
Saddle example. For , the only critical point is , with , , , giving — a saddle point, exactly the Pringle-chip shape you'd expect.
Real-World Applications
- Thermodynamics. Heat capacity at constant volume is literally a partial derivative, . Every Maxwell relation in thermodynamics equates two mixed partials.
- Machine learning. Training a neural network is optimization in millions of dimensions. Gradient descent repeatedly steps in the direction of (downhill on the loss surface); "backpropagation" is just the chain rule for partial derivatives applied efficiently.
- Economics. The marginal utility of a good and the marginal rate of substitution between two goods are ratios of partial derivatives of a utility function. Firms find profit-maximizing output by setting partials to zero.
- Physics and engineering. Maxwell's equations, the heat equation, fluid flow (Navier–Stokes), and the Schrödinger equation are all partial differential equations built from partial derivatives of fields.
- Image processing. An image is a function of pixel coordinates; the gradient's magnitude highlights edges, which is how edge-detection filters like Sobel work.
Common Mistakes
Mistake 1: Differentiating the "frozen" variables anyway. A student computing for writes , accidentally differentiating too. Why it's wrong: when taking , is a constant multiplier, not a variable. Correction: only; treat exactly like the number 7.
Mistake 2: Forgetting that constant terms in the other variable survive as constants but their derivatives don't. For , some write . Why it's wrong: has no in it, so its -partial is , not . Correction: . The term belongs to , not .
Mistake 3: Assuming every critical point is a max or min. Setting and stopping there. Why it's wrong: saddle points also have zero gradient, so you can mislabel a pass as a peak. Correction: always run the second-derivative test; a negative discriminant means saddle, not extremum.
Mistake 4 (bonus): Confusing the gradient's direction with the surface's slope. Students think points "along" the surface. Correction: lives in the input plane (the -plane) and points toward increasing ; it is perpendicular to the level curves of .
Comparison and Connections
| Concept | Function type | What it measures | Notation |
|---|---|---|---|
| Ordinary derivative | one variable | slope of a curve | , |
| Partial derivative | many variables, one at a time | slope of an axis-parallel slice | , |
| Gradient | many variables, all at once | direction and rate of steepest ascent | |
| Directional derivative | many variables, chosen direction | rate of change along a unit vector | |
| Total differential | many variables, small changes | net change from all inputs shifting |
The partial derivative is the building block; the gradient bundles the partials into a vector; the directional derivative projects that vector onto any direction; and the total differential uses them to approximate change. Partial derivatives are also the ingredients of partial differential equations, which describe how fields evolve in space and time.
Practice Questions
Recall
State in one sentence what it means to compute .
Answer: It means to differentiate with respect to while treating every other variable (such as ) as a constant.
Understanding
For , compute and .
Answer: Holding constant, . Holding constant, .
Application
Find the gradient of at the point , and state the maximum rate of increase there.
Guidance: and . At : , , so . The maximum rate of increase is .
Analysis
Classify the critical point(s) of .
Guidance: and . Setting both to zero: from the first, ; substituting into the second, , so and . The only critical point is . Second partials: , , , so . It is a saddle point.
FAQ
Why is the symbol different from ? The rounded signals "hold the other variables constant." A total derivative accounts for all the ways a quantity can change, including through its dependence on other changing variables; the partial deliberately ignores those. Using distinct symbols prevents catastrophic confusion, especially in physics.
Do partial derivatives obey the product and chain rules? Yes. When you take a partial, you're doing ordinary single-variable differentiation with the other variables frozen, so all the familiar rules apply. There is also a multivariable chain rule for when the inputs themselves depend on other variables — a common next topic.
Is always equal to ? For essentially every function you'll meet in a course — those with continuous second partial derivatives — yes, by Clairaut's theorem. Pathological counterexamples exist, but they require deliberately constructed functions that are not continuously twice-differentiable at a point.
How is the gradient related to gradient descent in machine learning? Gradient descent minimizes a loss function by repeatedly stepping in the direction of , the direction of steepest decrease. Each partial derivative tells the algorithm how to nudge one parameter to reduce error; there can be millions of them, but the principle is identical to the two-variable case.
What's the difference between a saddle point and an extremum if both have zero gradient? At an extremum the surface curves the same way in every direction (all up for a minimum, all down for a maximum). At a saddle it curves up in one direction and down in another, so it's neither. The second-derivative test's discriminant detects this difference: for extrema, for saddles.
Can I have partial derivatives with three or more variables? Absolutely. For you compute , , and , each time freezing the other two. The gradient becomes , and everything generalizes. This is exactly the setting of field theory and thermodynamics.
Quick Revision
- Partial derivative: differentiate with respect to one variable, hold the rest constant. Notation or .
- Geometric meaning: slope of the slice of the surface parallel to one axis.
- Gradient: ; points uphill (steepest ascent); = max rate of increase.
- Directional derivative: for a unit vector .
- Tangent plane: .
- Critical points: where and .
- Second-derivative test: . , → min; , → max; → saddle; → inconclusive.
- Clairaut: when second partials are continuous.
Related Topics
Prerequisites
- Derivatives — the single-variable foundation, including the power, product, quotient, and chain rules that all carry over here; partials are just ordinary derivatives with other variables frozen.
Related Topics
- The gradient, directional derivatives, and multivariable chain rule extend the ideas here (see the Calculus overview).
- Linear Algebra — vectors and the dot product power the gradient and directional derivatives.
Next Topics
- Multiple Integrals — integration over multivariable regions, the counterpart to partial differentiation.
- Differential Equations — partial derivatives are the language of partial differential equations that describe heat, waves, and fields.