For a reversible change

Thus for a closed system (
fixed):

where
is the internal energy.
For an open system:

where
is the chemical potential.
For Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle U(S,V)}
one has the following total differential

See also
References