logo

Total Differentiation, Exact Differentiation 📂Mathematical Physics

Total Differentiation, Exact Differentiation

Definition

Let’s assume that a multivariable function f:RnRf : \mathbb{R}^{n} \to \mathbb{R} is given. The change of f(x)f(\mathbf{x}) according to the change of variable x=(x1,x2,,xn)\mathbf{x} = (x_{1}, x_{2}, \dots, x_{n}) is denoted as dfdf, and this is called the total differential or exact differential of ff.

df=fx1dx1+fx2dx2++fxndxn \begin{equation} df = \frac{ \partial f}{ \partial x_{1} }dx_{1} + \frac{ \partial f}{ \partial x_{2} }dx_{2} + \cdots + \frac{ \partial f}{ \partial x_{n} }dx_{n} \label{1} \end{equation}

Explanation

The above definition means that the change in value of ff according to the change in variable x\mathbf{x} is

accumulated by multiplying each component's change dxidx_{i} with the rate of change of ff due to each component's change fxi\dfrac{\partial f}{\partial x_{i}}, resulting in fxidxi\dfrac{ \partial f}{ \partial x_{i} }dx_{i}
.

This notation is intuitive and convenient, as can be seen in the following equation. When we say f=f(x,y,z)f=f(x,y,z),

dfdx=fxdxdx+fydydx+fzdzdx=fx \dfrac{df}{dx} = \frac{ \partial f}{ \partial x}\dfrac{dx}{dx} + \frac{ \partial f}{ \partial y}\dfrac{dy}{dx} + \frac{ \partial f}{ \partial z}\dfrac{dz}{dx} = \dfrac{\partial f}{\partial x}

In physics, it often appears in the following form. Regarding (x(t),y(t),z(t))\left( x(t), y(t), z(t) \right),

dfdt=fxdxdt+fydydt+fzdzdt \dfrac{d f}{d t} = \frac{ \partial f}{ \partial x}\dfrac{dx}{dt} + \frac{ \partial f}{ \partial y}\dfrac{dy}{dt} + \frac{ \partial f}{ \partial z}\dfrac{dz}{dt}

Derivation

For a function of two variables, (1)\eqref{1} can be derived as follows. Let’s assume z=f(x,y)z=f(x,y) is given. The total differential of zz is the change in zz when variables xx, yy change, so it can be represented as follows.

dz=f(x+dx,y+dy)f(x,y) dz = f(x+dx,y+dy)-f(x,y)

Here, by subtracting and adding f(x,y+dy)f(x,y+dy) on the right side, and then arranging the equation, it looks like the following. dz=f(x+dx,y+dy)f(x,y+dy)+f(x,y+dy)f(x,y)=[f(x+dx,y+dy)f(x,y+dy)]+[f(x,y+dy)f(x,y)]=f(x+dx,y+dy)f(x,y+dy)dxdx+f(x,y+dy)f(x,y)dydyfxdx+fydy=zxdx+zydy \begin{align*} dz &= f(x+dx,y+dy) {\color{blue}-f(x,y+dy)+f(x,y+dy)}-f(x,y) \\ &= [f(x+dx,y+dy) -f(x,y+dy)]+[f(x,y+dy)-f(x,y)] \\ &= \frac{f(x+dx,y+dy) -f(x,y+dy)}{dx}dx+\frac{f(x,y+dy)-f(x,y)}{dy}dy \\ &\approx \frac{ \partial f}{ \partial x}dx + \frac{ \partial f}{ \partial y }dy \\ &= \frac{ \partial z}{ \partial x}dx+\frac{ \partial z}{ \partial y}dy \end{align*}