The molar fraction of a component \(i\) in a mixture is defined as: \[X_i = \frac{n_i}{\sum_{j=1}^{N} n_j} \] where \( n_i \) is the number of moles of component \(i\).