A partial derivative measures how a function changes when one input varies and the others stay fixed. It gives a local rate along a coordinate direction, not automatically a complete description of combined input changes.

That distinction matters when building a tangent plane, estimating a finite change or interchanging mixed derivatives. Useful formulas need their hypotheses, and an approximation must not be reported as an exact difference.

On this page

Keep the fixed input visible

For a function of two variables,

fx(a,b)=limh→0f(a+h,b)−f(a,b)h,f_x(a,b)=\lim_{h\to0}\frac{f(a+h,b)-f(a,b)}h,
fy(a,b)=limk→0f(a,b+k)−f(a,b)k.f_y(a,b)=\lim_{k\to0}\frac{f(a,b+k)-f(a,b)}k.

The second input remains fixed in the first limit; the first remains fixed in the second. At an interior point these are ordinary two-sided limits along coordinate lines.

If the function is instead restricted to a path where both inputs change, the total derivative generally has additional contributions. It is a different operation, even when similar symbols appear.

Differentiate a two-variable polynomial

Let

f(x,y)=x2y+3xy2.f(x,y)=x^2y+3xy^2.

Holding yy constant gives fx=2xy+3y2f_x=2xy+3y^2. Holding xx constant gives fy=x2+6xyf_y=x^2+6xy. At (1,2)(1,2),

fx(1,2)=16,fy(1,2)=13.f_x(1,2)=16,\qquad f_y(1,2)=13.

A term independent of the differentiated input has derivative zero, even when it depends on another input. A fixed-input factor acts as a constant coefficient during that calculation.

Interpret partials as slopes of traces

Fixing one input slices a surface into a single-variable curve. The partial derivative is the slope of that trace. Two coordinate traces do not by themselves establish that one plane approximates the surface well in every direction.

Two trace changes at (1,2)

Partial rates describe different coordinate tracesExact coordinate changes and their linear approximations for g=x²+3y² at (1,2).Partial rates describe different coordinate traces-0.100.1-1.5-0.7500.751.5Single-coordinate increment hChange in gx only: 2h+h². y only: 12h+3h².Dashed lines retain only the corresponding first-order terms.
The mathematical inputs are dimensionless in this example.
Diagram explanation and exact data

The partial slopes for g are two and twelve, distinct from the earlier polynomial f in the same lesson.

Two trace changes at (1,2): exact reference data
h x-only change y-only change
−0.1 −0.19 −1.17
0 0 0
0.1 0.21 1.23

The diagram uses the separate function g(x,y)=x2+3y2g(x,y)=x^2+3y^2 at (1,2)(1,2), developed below. Its partial rates are two and twelve. They must not be mixed with sixteen and thirteen from the earlier polynomial example.

Differentiability is a complete linear approximation

A function is differentiable at (a,b)(a,b) when

f(a+h,b+k)=f(a,b)+fx(a,b)h+fy(a,b)k+R(h,k),f(a+h,b+k)=f(a,b)+f_x(a,b)h+f_y(a,b)k+R(h,k),

where

R(h,k)h2+k2→0.\frac{R(h,k)}{\sqrt{h^2+k^2}}\longrightarrow0.

Continuous first partial derivatives in a neighbourhood are sufficient. Differentiability implies continuity and coordinate partials; partials alone do not imply differentiability. The linear-approximation reference develops this distinction.

The remainder condition controls every small input increment, not just one selected path. It is the basis for treating the differential as a useful combined first-order prediction.

Compare a differential with an exact finite change

Take g=x2+3y2g=x^2+3y^2 at (1,2)(1,2), with Δx=0.10\Delta x=0.10 and Δy=−0.05\Delta y=-0.05. The initial value is thirteen and the partials are gx=2g_x=2, gy=12g_y=12.

The differential is

dg=2(0.10)+12(−0.05)=−0.40.dg=2(0.10)+12(-0.05)=-0.40.

Direct substitution instead gives

g(1.10,1.95)=1.21+3(3.8025)=12.6175,g(1.10,1.95)=1.21+3(3.8025)=12.6175,

so

Δg=12.6175−13=−0.3825.\Delta g=12.6175-13=-0.3825.

Expansion identifies the difference exactly:

Δg=dg+(Δx)2+3(Δy)2,\Delta g=dg+(\Delta x)^2+3(\Delta y)^2,
Δg−dg=0.01+3(0.0025)=0.0175.\Delta g-dg=0.01+3(0.0025)=0.0175.

This is not a rounding accident. The first-order estimate omits quadratic terms. Their smallness makes the approximation useful, but reporting −0.40-0.40 as the exact change would discard a known part of the calculation.

Existing partials need not give continuity

Define p(0,0)=0p(0,0)=0 and p(x,y)=xy/(x2+y2)p(x,y)=xy/(x^2+y^2) elsewhere. Both coordinate traces through the origin are zero, so px(0,0)=py(0,0)=0p_x(0,0)=p_y(0,0)=0.

Along y=xy=x, the value is 1/21/2. The function is not continuous at the origin and therefore is not differentiable there. Writing a formal differential of zero does not rescue a tangent approximation whose hypothesis is absent.

The existence of both partial derivatives alone does not establish differentiability or justify a tangent-plane approximation.

Calculate higher and mixed partials

For f=x2y+3xy2f=x^2y+3xy^2,

fxx=2y,fyy=6x,f_{xx}=2y,\qquad f_{yy}=6x,
fxy=2x+6y,fyx=2x+6y.f_{xy}=2x+6y,\qquad f_{yx}=2x+6y.

Here fxyf_{xy} means first differentiating in xx, then differentiating that result in yy. Stating the convention avoids confusion with operator notation read from right to left.

Equality of mixed partials is guaranteed under suitable continuity of the second partial derivatives near the point. Polynomials satisfy those conditions. The partial-derivative reference gives the standard theorem.

Without those hypotheses, order can matter

Define H(0,0)=0H(0,0)=0 and

H(x,y)=xy(x2−y2)x2+y2H(x,y)=\frac{xy(x^2-y^2)}{x^2+y^2}

elsewhere. Direct calculations on the axes give Hx(0,y)=−yH_x(0,y)=-y and Hy(x,0)=xH_y(x,0)=x, including their zero values at the origin. Consequently,

Hxy(0,0)=−1,Hyx(0,0)=1.H_{xy}(0,0)=-1,\qquad H_{yx}(0,0)=1.

This does not contradict the theorem because its continuity hypotheses fail. Agreement in many familiar examples is not a general licence to interchange derivative order.

Apply the chain rule when both inputs change

Along x=tx=t, y=t2y=t^2, the polynomial becomes f=t4+3t5f=t^4+3t^5. Its derivative is 4t3+15t44t^3+15t^4.

The multivariable chain rule gives

dfdt=fxx′+fyy′.\frac{df}{dt}=f_xx’+f_yy’.

Here fx=2t3+3t4f_x=2t^3+3t^4, fy=t2+6t3f_y=t^2+6t^3, x′=1x’=1 and y′=2ty’=2t. Combining them gives the same result. Using only fxf_x would describe a different situation in which the second input remains fixed.

Use units to interpret sensitivity

If output is litres, xx is minutes and yy is metres, then fxf_x is in litres per minute and fyf_y in litres per metre. The products fxΔxf_x\Delta x and fyΔyf_y\Delta y both have litres as units and can be added.

The raw numerical sizes of partials with different units do not establish which input matters more. Compare changes on a justified scale. Derivatives describe local sensitivity; meaningful input increments make that sensitivity interpretable.

Practice questions

  1. For f=x2y+3xy2f=x^2y+3xy^2, find the partials at (1,2)(1,2).
  2. For the gg example, state dgdg, Δg\Delta g and Δg−dg\Delta g-dg.
  3. Does the existence of two coordinate partial derivatives guarantee differentiability?
Check your answers
  1. The partials are 2xy+3y22xy+3y^2 and x2+6xyx^2+6xy, giving sixteen and thirteen.
  2. They are −0.40-0.40, −0.3825-0.3825 and 0.01750.0175, respectively. The last quantity is the exact quadratic remainder.
  3. No. The extended function xy/(x2+y2)xy/(x^2+y^2) has both partials at the origin but is not continuous there. Continuity of the first partials in a neighbourhood is a sufficient stronger condition.

Related topics

Functions of Several Variables supplies limit arguments. Gradient and Directional Change combines partial rates under differentiability, and Approximation and Error in Calculus develops the broader error framework.

Sources and further reading