Derivatives and differentials (total and partial)
If $f$ is a function of one variable with $y=f(x)$:
- derivative of $f$ (or $y$) at $x$:
$$\frac{dy}{dx}=\frac{df}{dx}=f'(x)=\lim_{h\rightarrow 0}\frac{f(x+h)-f(x)}{h}$$
If $f$ is a function of more than one variable with $z=f(x,y)$:
- partial derivatives of $f$ (or $z$) at $(x,y)$:
$$\frac{\partial z}{\partial x}=\frac{\partial f}{\partial x}=f'_x(x,y)=\lim_{h\rightarrow 0}\frac{f(x+h,y)-f(x,y)}{h}$$
$$\frac{\partial z}{\partial y}=\frac{\partial f}{\partial y}=f'_y(x,y)=\lim_{h\rightarrow 0}\frac{f(x,y+h)-f(x,y)}{h}$$
total (exact) differential of $f$ (or $z$):
$$dz=df(x,y,dx,dy)=\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial y}dy$$
where $x$, $y$, $dx$ and $dy$ are independent variables, $df$ or $dz$ are dependent variables, and $dx$, $dy$, $dz$ and $df$ are infinitesimals. (For an introduction to the rigorous use of infinitesimals in calculus, see the book by H. Jerome Keisler: Elementary Calculus: An Infinitesimal Approach.)
inexact differential:
When $f$ (or $z$) is a quantity defined by a relation of the type:
$$dz=df(x,y,dx,dy)=M(x,y)dx+N(x,y)dy,$$
we are not sure that the expression is the total (exact) differential of a function $f(x,y)$. It is only the case if one can identify $M(x,y)$ with $\partial f/\partial x$ and $N(x,y)$ with $\partial f/\partial y$, which is only ensured if:
$$\frac{\partial^2 f}{\partial y \partial x}=\frac{\partial^2 f}{\partial x \partial y}$$
that is, if:
$$\frac{\partial M(x,y)}{\partial y}=\frac{\partial N(x,y)}{\partial x}$$
If $M(x,y)$ and $N(x,y)$ do not verify this relation, the quantity
$$\Delta z=\Delta f(x,y,x_0,y_0)=\int_{(x_0,y_0)}^{(x,y)}df$$
depends on the path taken for the integration to go from $(x_0,y_0)$ to $(x,y)$. In thermodynamics, it is said that $z$ or $f$ are not state functions but instead process functions, or process quantities or path functions.
Example of total (exact) differential: $$dz=(9x^2+6xy+y^2)dx+(3x^2+2xy)dy$$
$dz$ is the total (exact) differential of a function of the form $$f(x,y)=3x^3+3yx^2+xy^2+c$$ because it verifies: $$\begin{align}\frac{\partial f}{\partial x}(x, y) & = (9x^2+6xy+y^2) \\ \\ \frac{\partial f}{\partial y}(x, y) & =(3x^2+2xy)\end{align}$$
Example of inexact differential: $$dz=(2x+y)dx+(x+y)dy$$
There is no function $f(x,y)$ of the variables $x$ and $y$ such that: $$\begin{align}\frac{\partial f}{\partial x}(x, y) & = (2x+y) \\ \\ \frac{\partial f}{\partial y}(x, y) & = (x+y)\end{align}$$
partial (inexact) differentials of $f$ (or $z$):
Here, I am not sure if the term "partial differential" is really used that way (see below for a different use in a different context), but in the context of a relation $y=f(x_1,x_2,x_3)$, by analogy with the partial derivatives, one could use the term "partial differential" to designate either of the forms (see for example this page):
$$d_{x_1} f=\frac{\partial f}{\partial x_1}dx_1$$
$$d_{x_2} f=\frac{\partial f}{\partial x_2}dx_2$$
$$d_{x_3} f=\frac{\partial f}{\partial x_3}dx_3$$
(One could possibly extend the term to any incomplete sum of such components:
$$d_{x_1 x_2}f=\frac{\partial f}{\partial x_1}dx_1 + \frac{\partial f}{\partial x_2}dx_2$$
$$d_{x_1 x_3}f=\frac{\partial f}{\partial x_1}dx_1 + \frac{\partial f}{\partial x_3}dx_3$$
$$d_{x_2 x_3}f=\frac{\partial f}{\partial x_2}dx_2 + \frac{\partial f}{\partial x_3}dx_3$$
but I have no reference for that.)
If $y$ can be expressed as a composed function $y=f(x(t))=(f\circ g)(t)=h(t)$:
(Here is where the language gets a bit tricky...)
total derivative of $y$:
$$\frac{dy}{dt}=\frac{dh}{dt}=h'(t)=\frac{d(f\circ g)}{dt}=(f\circ g)'(t)=g'(t)\cdot (f'\circ g)(t)$$
Note that I did not write "total derivative of the function $f$" but "the total derivative of $y$" (the depedent variable). This is on purpose, because here "total derivative" means that we take $y$ as a function of the ultimate variable $t$ taken as the independent variable—that is, the function considered is not $f$ but really $(f\circ g)=h$.
partial derivative of $y$:
$$\frac{\partial y}{\partial x}=\frac{\partial f(x(t)) }{\partial x}=\frac{df}{dx}=f'(x)=f'(x(t))=(f'\circ g)(t)$$
Note that here we take $x$ as the independent variable, ignoring any dependence of $x$ on $t$ for the computation of the derivative. So in this very specific context, $\partial f/\partial x=df/dx$, and the function considered is not $h = (f\circ g)$ but $f$.
The above way of defining "total" and "partial" might seem strange in the context of a relation $y=f(x(t))=(f\circ g)(t)$, but it makes more sens in the context of a relations of the type:
$$z = f(t,x(t),y(t))=(f\circ g)(t) = h(t).$$
In such a case, $f$ is a single-valued function of three variables, $f(t,x,y)$, whereas $g$ is a three-valued function of one variable, $g(t) = (g_1(t),g_2(t),g_3(t))$.
For example, if you have a function $f(x_1,x_2,\ldots,x_n)$ and then wish to take into account some dependencies between some of the variables $x_1$, $x_2$, ..., $x_n$, for example $x_n=u(x_1, x_2,\ldots,x_{n-1})$, then you are really considering a new function: $$h(x_1, x_2,\ldots, x_{n-1}) = f(x_1,x_2,\ldots,x_{n-1},u(x_1,x_2,\ldots,x_{n-1})).$$
total derivative of $z$:
In this new set-up:
$$\begin{align}\frac{dz}{dt} & = \frac{dh}{dt} = h'(t)\\
& = \frac{d(f\circ g)}{dt} = (f\circ g)'(t)\\
& = \frac{\partial f}{\partial t}+\frac{\partial f}{\partial x}\frac{dx}{dt}+\frac{\partial f}{\partial y}\frac{dy}{dt}\\
& = \frac{\partial f}{\partial t}\frac{dg_1}{dt}+\frac{\partial f}{\partial x}\frac{dg_2}{dt}+\frac{\partial f}{\partial y}\frac{dg_3}{dt}\\
& = g'(t)\cdot (f'\circ g)(t)\end{align}$$
partial derivatives of $z$:
$$\frac{\partial z}{\partial t} = \frac{\partial f}{\partial t} = \lim_{h\rightarrow 0}\frac{f(t+h,x(t),y(t))-f(t,x(t),y(t))}{h}$$
$$\frac{\partial z}{\partial x} = \frac{\partial f}{\partial x} = \lim_{h\rightarrow 0}\frac{f(t,x(t) + h,y(t))-f(t,x(t),y(t))}{h}$$
$$\frac{\partial z}{\partial y} = \frac{\partial f}{\partial y} = \lim_{h\rightarrow 0}\frac{f(t,x(t),y(t)+h)-f(t,x(t),y(t))}{h}$$
total (exact) differential of $z$:
$$dz = dh(t,dt) = d(f\circ g)(t, dt) = \frac{\partial f}{\partial t}dt + \frac{\partial f}{\partial x}\frac{dx}{dt}dt + \frac{\partial f}{\partial y}\frac{dy}{dt}dt$$
- partial (exact) differential of $z$:
$$dz = df(t,x,y,dt,dx,dy) = \frac{\partial f}{\partial t}dt + \frac{\partial f}{\partial x}dx + \frac{\partial f}{\partial y}dy$$
So overall, in the context of a composed function, it is important to understand the various levels of dependence of the variables through the composition to make sense of what is meant by "total" or "partial" derivatives or differentials.
Thermodynamics
In thermodynamics, because at equilibrium there exist relations between different thermodynamic variables (for example $PV=nRT$ for a perfect gas), quantities such as the internal energy $U$ or the entropy $S$ can be expressed as functions of different sets of independent thermodynamic variables:
- $U(S,V,n)$
or
$U(T,V,n)$
or
$U(S,P,n)$
or
$U(T, P, n)$ ...
and similarly:
- $S(U,V,n)$
or
$S(T,V,n)$
or
$S(U,P,n)$
or
$S(T,P,n)$ ...
Because of these alternative choices, it is important to indicate the variables that are kept constant in the partial derivatives as a reminder of the set of independent variables actually considered.
Example:
$$\begin{align}C_V & = T\left(\frac{\partial S}{\partial T}\right)_V \\ \\ C_P & = T\left(\frac{\partial S}{\partial T}\right)_P\end{align}$$
In the first case, $S$ is expressed as a function of $T$ and $V$. In the second case it is expressed as a function of $T$ and $P$.
As for
$$\left(\frac{\partial f}{\partial x_i}\right)_{x_j}$$
it is not an exact differential but a partial derivative.