# Partial derivatives and held-fixed quantities

A quantity that depends on more than one variable has more than one rate of change. A partial derivative varies one variable and holds the others fixed, and it means nothing until you say which ones are held fixed.

Written for this edition, not translated from Einstein.

## When a quantity depends on two things, what does its rate of change mean?

The concentration of particles in a tube depends on where you look, x, and when you look, t. Ask how fast the concentration changes and there are two different answers: how it changes as you move along the tube at one instant, and how it changes at one place as time passes.

A partial derivative picks one of them. ∂f/∂x is the rate of change along the tube with the time t held fixed, like comparing points in one photograph. ∂f/∂t is the rate of change in time at a fixed position x, like watching one spot under the microscope. The curly ∂ says that something else is being held fixed, and a subscript names it:

$$
\left(\frac{\partial f}{\partial x}\right)_t \qquad \left(\frac{\partial f}{\partial t}\right)_x
$$

The partial derivative of f with respect to x at fixed t, and the partial derivative of f with respect to t at fixed x.

Thermodynamics depends on the same care. How much a gas's volume changes as the pressure changes depends on whether its temperature T is held fixed, with heat flowing in and out, or its entropy S is held fixed, with the gas insulated. The two derivatives have different values, and ∂V/∂p written alone does not say which is meant:

$$
\left(\frac{\partial V}{\partial p}\right)_T \quad \text{versus} \quad \left(\frac{\partial V}{\partial p}\right)_S
$$

The partial derivative of V with respect to p at fixed temperature T, versus the same derivative at fixed entropy S.

In §3 of the light-quanta paper, radiation fills a fixed volume and φ is its entropy per unit volume and per unit interval of frequency, a function of the energy density ρ and of ν. Varying ρ with the frequency ν held fixed, Einstein finds that the derivative is 1/T:

$$
\left(\frac{\partial \varphi}{\partial \rho}\right)_{\nu} = \frac{1}{T}
$$

The partial derivative of phi with respect to rho, at fixed frequency nu, equals one over T.

In §6 of the relativity paper, Maxwell's equations are rewritten in the coordinates ξ, η, ζ, τ of a moving system. A derivative with respect to x taken with y, z and t held fixed then becomes a combination of a derivative with respect to ξ and one with respect to τ, because holding the resting time t fixed does not hold the moving time τ fixed.

## Worked example: The same diffusion profile, differentiated two ways

Take the spreading profile of the Brownian paper's §4, written for a single particle:

$$
f(x,t) = \frac{1}{\sqrt{4\pi D t}}\,e^{-x^2/4Dt}
$$

f of x and t equals one over the square root of four pi D t, times e to the minus x squared over four D t.

Hold t fixed and differentiate with respect to x. Only the exponent depends on x, and the derivative of −x²/4Dt with respect to x is −x/2Dt:

$$
\left(\frac{\partial f}{\partial x}\right)_t = -\frac{x}{2Dt}\,f(x,t)
$$

The partial derivative of f with respect to x at fixed t equals minus x over two D t, times f.

That is the slope of the profile in one snapshot: downhill to the right of the centre, uphill to the left. Now hold x fixed and differentiate with respect to t. Both the factor in front and the exponent depend on t:

$$
\left(\frac{\partial f}{\partial t}\right)_x = \left(-\frac{1}{2t} + \frac{x^2}{4Dt^2}\right) f(x,t)
$$

The partial derivative of f with respect to t at fixed x equals minus one over two t, plus x squared over four D t squared, all times f.

That is what a probe fixed at one place records. Near the centre, where x² is less than 2Dt, the bracket is negative: the concentration falls as the cloud spreads away. Farther out it is positive: the concentration rises as the cloud arrives. Differentiate the first result once more with respect to x and multiply by D, and you get the second. That is the §4 equation ∂f/∂t = D ∂²f/∂x², a rate at one place equal to a curvature at one time.

## Where this lesson stops

A partial derivative is not defined until you have said which quantities are held fixed.

## This lesson builds on

- [Rates of change and derivatives](/foundations/derivatives/)
