and where the coefficients μ μ i are the chemical potentials for the components of type i in the system. The chemical potentials are defined as the partial derivatives of the internal energy with respect to the variations in composition: