Skip to content
Part IA Michaelmas, Lent, Easter Term

Partial Derivatives

Definition

For f(x,y)f(x, y), the partial derivative with respect to xx is:

fx=limh0f(x+h,y)f(x,y)h\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x+h, y) - f(x, y)}{h}

Hold yy constant and differentiate with respect to xx.

Alternative notation: fxf_x, xf\partial_x f.


Higher Derivatives

Second partial derivatives:

2fx2=fxx,2fy2=fyy\frac{\partial^2 f}{\partial x^2} = f_{xx}, \quad \frac{\partial^2 f}{\partial y^2} = f_{yy}

Mixed partials:

2fxy=fxy,2fyx=fyx\frac{\partial^2 f}{\partial x \partial y} = f_{xy}, \quad \frac{\partial^2 f}{\partial y \partial x} = f_{yx}

Equality of mixed partials: For well-behaved functions (continuous second derivatives):

fxy=fyxf_{xy} = f_{yx}


Chain Rule

One Independent Variable

If f=f(x,y)f = f(x, y) and x=x(t)x = x(t), y=y(t)y = y(t):

dfdt=fxdxdt+fydydt\frac{df}{dt} = \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt}

Chain rule as flow diagram: t → (x, y) → f, showing partial derivatives along each path

Two Independent Variables

If f=f(x,y)f = f(x, y) and x=x(u,v)x = x(u, v), y=y(u,v)y = y(u, v):

fu=fxxu+fyyu\frac{\partial f}{\partial u} = \frac{\partial f}{\partial x}\frac{\partial x}{\partial u} + \frac{\partial f}{\partial y}\frac{\partial y}{\partial u}

fv=fxxv+fyyv\frac{\partial f}{\partial v} = \frac{\partial f}{\partial x}\frac{\partial x}{\partial v} + \frac{\partial f}{\partial y}\frac{\partial y}{\partial v}


Implicit Differentiation

For F(x,y)=0F(x, y) = 0:

dydx=F/xF/y\frac{dy}{dx} = -\frac{\partial F/\partial x}{\partial F/\partial y}

Proof: Differentiate F(x,y(x))=0F(x, y(x)) = 0:

Fx+Fydydx=0\frac{\partial F}{\partial x} + \frac{\partial F}{\partial y}\frac{dy}{dx} = 0


Total Differential

For f=f(x,y)f = f(x, y):

df=fxdx+fydydf = \frac{\partial f}{\partial x}dx + \frac{\partial f}{\partial y}dy

This is the total differential: the linear approximation to the change in ff.


Directional Derivative

The rate of change of ff in direction n^=(nx,ny)\hat{\mathbf{n}} = (n_x, n_y):

Dn^f=fn^=fxnx+fynyD_{\hat{\mathbf{n}}}f = \nabla f \cdot \hat{\mathbf{n}} = \frac{\partial f}{\partial x}n_x + \frac{\partial f}{\partial y}n_y

The gradient f\nabla f points in direction of steepest increase.


Taylor Series for Two Variables

f(a+h,b+k)=f(a,b)+hfx(a,b)+kfy(a,b)+12(h2fxx+2hkfxy+k2fyy)+f(a+h, b+k) = f(a,b) + hf_x(a,b) + kf_y(a,b) + \frac{1}{2}(h^2f_{xx} + 2hkf_{xy} + k^2f_{yy}) + \cdots

Compact form:

f(a+h)=f(a)+fh+12hTHh+f(\mathbf{a} + \mathbf{h}) = f(\mathbf{a}) + \nabla f \cdot \mathbf{h} + \frac{1}{2}\mathbf{h}^T H \mathbf{h} + \cdots

where HH is the Hessian matrix:

H=(fxxfxyfyxfyy)H = \begin{pmatrix} f_{xx} & f_{xy} \\ f_{yx} & f_{yy} \end{pmatrix}


Reciprocity and Cyclic Relations

Reciprocity Relation

For f(x,y,z)=0f(x, y, z) = 0:

(xy)z=1(yx)z\left(\frac{\partial x}{\partial y}\right)_z = \frac{1}{\left(\frac{\partial y}{\partial x}\right)_z}

The subscript indicates what variable is held constant.

Cyclic Relation

(xy)z(yz)x(zx)y=1\left(\frac{\partial x}{\partial y}\right)_z \cdot \left(\frac{\partial y}{\partial z}\right)_x \cdot \left(\frac{\partial z}{\partial x}\right)_y = -1

Application: Thermodynamics (relating partial derivatives of state functions).


Why Partial Derivatives Matter

  • Optimisation: Find maxima and minima of multivariable functions
  • Thermodynamics: Relate state variables
  • PDEs: Model heat, waves, diffusion
  • Machine learning: Gradient descent optimises loss functions

The key skill is determining which variables are independent vs dependent — this determines which derivatives make sense.