In thermodynamics, a component is one of a collection of chemically independent constituents of a system. The number of components represents the minimum number of independent chemical species necessary to define the composition of all phases of the system.
Calculating the number of components in a system is necessary when applying Gibbs' phase rule in determination of the number of degrees of freedom of a system.
The number of components is equal to the number of distinct chemical species (constituents), minus the number of chemical reactions between them, minus the number of any constraints (like charge neutrality or balance of molar quantities).
Calculation
Suppose that a chemical system has elements and chemical species (elements or compounds). The latter are combinations of the former, and each species can be represented as a sum of elements:
:<math> A_i = \sum_j a_{ij}E_j,</math>
where are the integers denoting number of atoms of element in molecule . Each species is determined by a vector (a row of this matrix), but the rows are not necessarily linearly independent. If the rank of the matrix is , then there are linearly independent vectors, and the remaining vectors can be obtained by adding up multiples of those vectors. The chemical species represented by those vectors are components of the system.
If, for example, the species are C (in the form of graphite), CO<sub>2</sub> and CO, then
:<math> \begin{bmatrix} 1 & 0 \\ 1 & 2\\ 1 & 1\end{bmatrix}\begin{bmatrix}C \\ \\ O\end{bmatrix} = \begin{bmatrix}C \\ CO_2\\ CO\end{bmatrix}.</math>
Since CO can be expressed as CO = (1/2)C + (1/2)CO<sub>2</sub>, it is not independent and C and CO can be chosen as the components of the system.
There are two ways that the vectors can be dependent. One is that some pairs of elements always appear in the same ratio in each species. An example is a series of polymers that are composed of different numbers of identical units. The number of such constraints is given by . In addition, some combinations of elements may be forbidden by chemical kinetics. If the number of such constraints is , then
:<math>C = M - Z + R'.</math>
Equivalently, if is the number of independent reactions that can take place, then
:<math>C = N - Z - R.</math>
The constants are related by .
