Partial Derivatives
Suppose the temperature in a room is given by a function of position. Imagine standing still and asking how fast the temperature changes. You step in the -direction only, holding and fixed. This is asking for a partial derivative. This is a deceptively simple idea. You freeze all but one variable and differentiate as in single-variable calculus. But it is the atomic building block for multivariable differentiability. Gradients, directional derivatives, the Jacobian, and the total derivative all reduce, in coordinates, to partial derivatives. The subject matters because it lets us import one-variable calculus into higher dimensions. We do this one direction at a time. Yet this convenience hides a trap. Knowing all the partial derivatives of a function at a point tells you less than expected. A function can have every partial derivative exist at a point. It can even be continuous along every line through that point. Yet it can still be discontinuous there. This subtlety is important: mere partial differentiability does not imply continuity. It certainly does not imply true differentiability. This is one of the most important cautionary lessons in multivariable calculus. It is the reason a stronger notion, total differentiability, is needed later. This article gives the rigorous definition of a partial derivative as a genuine one-variable limit. It develops the notation and basic computational rules. It defines higher-order partial derivatives and mixed partials. It also proves, with a fully worked counterexample, an important fact. The existence of all first partial derivatives at a point does not imply continuity there. We also address a natural follow-up question: do mixed partials commute? We preview the precise hypotheses needed (Clairaut's theorem) without proving that theorem here. By the end, you should be able to compute partial derivatives directly from the limit definition. You should also compute them via single-variable rules. You should distinguish first- and higher-order partials, including mixed partials. You should correctly diagnose why a function with all partials existing at a point can fail to be continuous there. This sets the stage for Differentiability and the Total Derivative.
- A partial derivative differentiates a multivariable function with respect to one variable while holding all others fixed.
- Formally it is a genuine single-variable limit of a difference quotient along a coordinate direction.
- Existence of and at a point says nothing, by itself, about continuity there.
- Higher-order and mixed partial derivatives are defined by iterating the process; order of differentiation can matter.
- A classical counterexample shows both partials can exist everywhere while the function is discontinuous at the origin.
- Key idea: partial derivatives probe a function only along the coordinate axes, so they see far less than the full local behavior a genuine multivariable derivative must capture.
Where this lives today
Partial derivatives are the coordinate-level engine behind essentially all of multivariable analysis and its applications. In pure mathematics, they are the entries of the Jacobian Matrix and the components of the Gradient vector, and they appear as the coefficients in the linear approximation used to define total differentiability. In physics, partial derivatives express how a scalar field (temperature, pressure, potential energy) changes along each spatial or temporal axis while other variables are held fixed — this is precisely the meaning of thermodynamic quantities like , where the subscript explicitly signals which variables are frozen. Partial differential equations (the heat equation, wave equation, Laplace's equation, Maxwell's equations, Schrödinger's equation) are, by definition, equations relating partial derivatives of an unknown function of several variables. In optimization and machine learning, the gradient descent algorithm that trains neural networks computes partial derivatives of a loss function with respect to each parameter (via backpropagation, itself an efficient application of the multivariable chain rule built from partials), and the sensitivity of a model's output to a single input feature is literally a partial derivative. In economics, partial derivatives measure marginal quantities — marginal utility, marginal cost with respect to one input — holding other inputs fixed. In statistics, partial derivatives of a likelihood function with respect to each parameter, set to zero, give the maximum-likelihood equations; in numerical analysis, finite-difference approximations to PDEs are built directly by discretizing the partial-derivative limit definition given here.
Ask the tutor: Why does continuity of the partial derivatives themselves rescue us from the pathology, and how does that lead into the definition of total differentiability?
Let be open and let . Fix a point and an index . The partial derivative of with respect to at is defined as the limit
provided this limit exists (as a genuine limit of a real-valued function of the single real variable , taken over with ). Equivalently, letting be the function of one variable obtained by freezing every coordinate except the -th, we require to be differentiable at , and set
Because is open, there is such that is defined for all , so this is a legitimate one-variable derivative at an interior point of the domain of . Common alternative notations include , , and . If exists for every in some open set , we obtain a function , itself a candidate for further partial differentiation (see higher-order partials below).
Intuition
The definition says something very concrete: to compute at a point, you slice the domain with the line through that point parallel to the -axis, restrict to that line, and differentiate the resulting one-variable function in the ordinary sense. All other coordinates are treated as frozen constants during the computation. This is why, in practice, computing is mechanically identical to single-variable differentiation: you literally apply the same rules (power rule, product rule, chain rule) to the expression for , treating every symbol other than as a constant. The geometric picture for is the most useful mental image. If is a surface in , then fixing carves out a curve — the intersection of the surface with the vertical plane — and is the slope of the tangent line to that curve at . Symmetrically, is the slope of the tangent line to the curve cut out by the plane . These are two different tangent lines to the surface at the point , and crucially they are only two directions among infinitely many along which one could approach the point — which is exactly why partial derivatives, by themselves, cannot see everything about the local behavior of .
Higher-order partial derivatives
If exists on an open set , we may ask whether its partial derivative with respect to some exists at a point of . If so, we call the result a second-order partial derivative, written
Note the notational convention: in the rightmost operator is applied first (reading right to left), whereas in subscript notation the leftmost subscript is applied first (reading left to right). Both conventions are standard; one must fix and respect one of them. When we write or . When , the resulting derivative is called a mixed partial derivative. This process iterates: an order- partial derivative is obtained by successive partial differentiations, in some specified order of variables, and is denoted
A priori, nothing forces at a given point — the two mixed partials are computed via different iterated limit processes (differentiate in then in , versus then ), and different limiting procedures need not agree. It is a genuine theorem — Clairaut's theorem (also called Schwarz's theorem), covered separately — that mixed partials do coincide provided both are continuous near the point in question. Without such a continuity hypothesis, equality can fail, as the classical counterexample (with ) demonstrates: for that function . We flag this now and defer the full proof and analysis to Clairaut's Theorem.
There exists a function such that: 1. Both partial derivatives and exist at every point , and 2. is not continuous at the origin . Consequently, the existence of all first-order partial derivatives of at a point does not imply that is continuous at .
Construction. Define by
Step 1: the partial derivatives exist everywhere, including at the origin. Away from the origin: for , is a rational function whose denominator is nonzero on the open set . Rational functions are differentiable (in each variable separately, holding the other fixed) wherever the denominator does not vanish, by the quotient rule for single-variable derivatives applied to and . Explicitly, by the quotient rule,
both of which are well-defined (finite) for every , since the denominator there. At the origin: we must return to the definition and compute the limit directly, since is given by a different formula at . Consider . For every , , and by definition. Hence identically for all , so is the zero function, which is differentiable everywhere with . Therefore
By the identical computation with the roles of swapped (using for all , including ),
Both limits exist and equal . Thus and exist at every point of — this proves claim (1).
Step 2: is discontinuous at the origin. We show that does not satisfy the definition of continuity at , i.e. it is false that . To do this it suffices to exhibit two sequences of points approaching along which tends to two different limits; if existed and equaled some value , then evaluated along every sequence tending to the origin would converge to that same — this is the sequential characterization of the multivariable limit, established in the study of Limits and Continuity in Several Variables. Consider the sequence of points , which tends to as . For every ,
so along this sequence. Now consider , which also tends to as . For every ,
so along this sequence. Since , while both and , the two-path test shows does not exist as a well-defined single value (in particular it cannot equal ). Hence is discontinuous at . This proves claim (2).
Conclusion. We have exhibited a function for which and both exist (Step 1), yet fails to be continuous at (Step 2). Therefore existence of all first partial derivatives at a point does not imply continuity at that point.
∎Worked examples
Example 1 (computing partials directly from the limit definition, and via rules, for an asymmetric function). Let , and compute and two ways: by the rules, and by the raw limit definition, to confirm they agree. Via differentiation rules. Treating as constant and differentiating in :
Treating as constant and differentiating in :
Via the limit definition, for as a check. We must show
Compute , and . So
As , the first term . The second term is exactly the difference quotient for the single-variable derivative of at , so by the known fact , it tends to . Hence the whole expression tends to , matching the rule-based computation exactly. This illustrates why the "rules" method is legitimate: it is nothing more than the single-variable differentiation rules (product rule, chain rule) applied to the one-variable function , which is precisely what the partial-derivative limit computes.
Example 2 (a function requiring the definition at a boundary/special point, and second-order mixed partials). Let
We compute , from the definition, then compute and to see whether they agree for this particular function (they will, since it is smooth away from the origin and one can check the hypotheses of Clairaut's theorem hold — but we verify directly at the origin using limits, as good practice for the definition). First partials at the origin. Set for — wait, let's compute carefully: for , and , so for all . Then
Similarly for , and , so identically, giving
Partials away from the origin, to set up the mixed partial. For , write and , so . By the quotient rule,
We want for (needed to differentiate in at the origin along the -axis). At points with : , , , . So
Together with computed above, we get for all (including ). Hence
Now the other order: by symmetry of the quotient rule, with , . At points with : , , , , so
and together with this gives for all . Hence
Conclusion of Example 2. We find while : the mixed partials disagree at the origin for this function. This is not a contradiction of any theorem — it simply shows that and need not be continuous near here, so the hypothesis of Clairaut's theorem fails and no equality is guaranteed. This example (structurally similar to the standard textbook counterexample for Clairaut's theorem) reinforces that mixed-partial equality is a genuine theorem requiring a continuity hypothesis, not an automatic algebraic identity — the full statement and proof are developed in Clairaut's Theorem.
One might hope to weaken the theorem above by replacing "both partials exist" with the stronger-looking hypothesis " is continuous along every line through the point," and ask whether that forces full continuity. It does not, and the same function
demonstrates it. Fix any line through the origin, . If , then for ,
so restricted to this line is continuous at . If (the line is the -axis), then for all , again continuous. So is continuous along every straight line through the origin — a condition even stronger than merely having the two partials exist, since it covers infinitely many directions, not just the two axis directions. Yet is discontinuous at the origin: take the parabolic path . Then for ,
so along this curved path , violating continuity at the origin (again by the sequential characterization, using ). This shows that even continuity along every line — a much stronger hypothesis than mere existence of the two axis-direction partials — still cannot certify full (multivariable) continuity, because approach along curved paths can behave completely differently. It underscores exactly why the definition of continuity must quantify over all sequences (or all -balls), not just straight-line directions, and foreshadows why differentiability (not just partial differentiability) is defined via a genuine linear-approximation condition in every direction at once, in Differentiability and the Total Derivative.
Scope, edge cases & common traps
| Situation | What is true | What is not automatically true |
|---|---|---|
| and both exist | restricted to each coordinate axis through is differentiable there | need not be continuous at (see theorem above) |
| continuous along every line through | Directional behavior along straight paths is controlled | can still be discontinuous along curved paths (see counterexample) |
| and both exist at a point | Both iterated limits happen to exist | They need not be equal (Example 2) unless a continuity hypothesis holds (Clairaut) |
| is a polynomial or rational function with nonvanishing denominator | Partials of all orders exist and mixed partials agree automatically | This relies on the function being built from elementary continuous pieces — not a general fact |
| Domain point is on the boundary of the domain | The definition requires an open set / two-sided limit in | One-sided partials can be defined analogously but are a different (weaker) notion |
The mathematician behind it
Origins · 1 minAlexis Clairaut and how this was discovered
Clairaut was a child prodigy who presented mathematical work to the French Academy of Sciences at age 13 and was elected a member at 18 — the youngest in its history. Beyond his celebrated work computing the return of Halley's comet (correctly predicting the perturbing effect of Jupiter and Saturn), Clairaut's name is permanently attached to the theorem on the equality of mixed partial derivatives (also credited to Hermann Schwarz, who gave a rigorous proof a century later under precise continuity hypotheses). His work sits exactly at the seam this article approaches: the informal 18th-century assumption that mixed partials simply must commute, versus the careful 19th-century recognition that a genuine hypothesis is required.
Is a partial derivative the same thing as a directional derivative?
No. A partial derivative is the special case of a directional derivative taken along a coordinate axis direction (the standard basis vector ). A general directional derivative measures the instantaneous rate of change of at in an arbitrary unit direction , and is defined by the analogous limit . Partial derivatives are the special directional derivatives corresponding to . If is (totally) differentiable at , every directional derivative can be recovered from the partials via , but without differentiability this formula can fail.
Why does the existence of partial derivatives fail to imply continuity, intuitively?
Because a partial derivative only examines the behavior of along two rigid, straight coordinate directions through the point — it never looks at diagonal or curved paths of approach. A function can be extremely well-behaved along the -axis and -axis through a point while oscillating or jumping wildly along other paths, such as or with varying slope . Continuity, by contrast, is a much stronger condition: it requires the function values to converge to along every possible sequence approaching , from every direction and along every curve, not just two. This gap between "controlled along two special lines" and "controlled from every direction" is exactly what the counterexample in this article exploits.
If both and exist at every point near and are also continuous there, is that enough for continuity of ?
Yes — in fact more is true. If and exist in a neighborhood of and are continuous at , then is not just continuous but totally differentiable at (this is a standard sufficient condition for differentiability, proved using the mean value theorem applied along each coordinate direction in turn). Total differentiability in turn implies continuity. So the pathology in this article's theorem specifically requires the partials to exist without being continuous — the example function indeed has partials that are discontinuous at the origin, which is entirely consistent with this stronger continuity-of-partials criterion.
Do higher-order partial derivatives always exist if the first-order ones do?
No. Existence of on an open set gives you a new function , and there is no guarantee that this new function is itself differentiable in (or in ) at any particular point — differentiability of is a separate condition that must be checked independently, exactly as with any single-variable derivative that need not itself be differentiable. A function can be differentiable everywhere with a first derivative that is continuous but nowhere differentiable, and analogous phenomena occur for partials of multivariable functions.
Does the order of differentiation in a mixed partial ever matter in practice?
Yes, in principle, but for the overwhelming majority of functions encountered in practice — polynomials, rational functions away from poles, and standard elementary functions (exponential, trigonometric, logarithmic) composed on their natural domains — mixed partials are continuous and Clairaut's theorem guarantees . Order matters only for deliberately pathological functions, typically piecewise-defined functions with a special value patched in at one point (as in Example 2 above), where the mixed partial derivatives fail to be continuous at that special point.
How is a partial derivative actually computed in practice, step by step?
Identify the variable you are differentiating with respect to; treat every other variable as if it were a fixed numerical constant; then apply ordinary single-variable differentiation rules (power, product, quotient, chain rule) to the resulting one-variable expression. At a specific numerical point, you may either substitute the other coordinates' numerical values first and differentiate the resulting single-variable function, or differentiate symbolically first and substitute all coordinates afterward — both give the same answer, since substituting a constant commutes with holding a variable fixed. At specially defined points (e.g. a piecewise function's patched value), you must return to the raw limit definition, as ordinary differentiation rules do not apply directly to a value defined by cases.
Why does this article's counterexample not contradict "differentiable implies continuous" from single-variable calculus?
It does not contradict it because "having both partial derivatives exist" is a strictly weaker condition than "(total) differentiability" in the multivariable sense. Total differentiability at requires the existence of a single linear map that approximates well in every direction simultaneously, with an error term that is as in — and it is this stronger notion, developed in Differentiability and the Total Derivative, for which the implication "differentiable continuous" genuinely holds, by an argument directly generalizing the single-variable proof. Mere existence of partial derivatives only checks the linear-approximation property along two special axis directions, which is not strong enough to control the error term in all directions at once.